10024
# Report which library types will actually be built
10025
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10026
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10027
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10028
echo "${ECHO_T}$can_build_shared" >&6; }
10030
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10031
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10032
test "$can_build_shared" = "no" && enable_shared=no
10034
# On AIX, shared libraries and static libraries use the same namespace, and
10035
# are all built from PIC.
10038
test "$enable_shared" = yes && enable_static=no
10039
if test -n "$RANLIB"; then
10040
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10041
postinstall_cmds='$RANLIB $lib'
10046
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10047
test "$enable_shared" = yes && enable_static=no
10051
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10052
echo "${ECHO_T}$enable_shared" >&6; }
10054
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10055
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10056
# Make sure either enable_shared or enable_static is yes.
10057
test "$enable_shared" = yes || enable_static=yes
10058
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10059
echo "${ECHO_T}$enable_static" >&6; }
10061
# The else clause should only fire when bootstrapping the
10062
# libtool distribution, otherwise you forgot to ship ltmain.sh
10063
# with your package, and you will get complaints that there are
10064
# no rules to generate ltmain.sh.
10065
if test -f "$ltmain"; then
10066
# See if we are running on zsh, and set the options which allow our commands through
10067
# without removal of \ escapes.
10068
if test -n "${ZSH_VERSION+set}" ; then
10069
setopt NO_GLOB_SUBST
10071
# Now quote all the things that may contain metacharacters while being
10072
# careful not to overquote the AC_SUBSTed values. We take copies of the
10073
# variables and quote the copies for generation of the libtool script.
10074
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10076
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10077
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10078
deplibs_check_method reload_flag reload_cmds need_locks \
10079
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10080
lt_cv_sys_global_symbol_to_c_name_address \
10081
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10082
old_postinstall_cmds old_postuninstall_cmds \
10086
lt_prog_compiler_wl \
10087
lt_prog_compiler_pic \
10088
lt_prog_compiler_static \
10089
lt_prog_compiler_no_builtin_flag \
10090
export_dynamic_flag_spec \
10091
thread_safe_flag_spec \
10092
whole_archive_flag_spec \
10093
enable_shared_with_static_runtimes \
10095
old_archive_from_new_cmds \
10100
compiler_lib_search_path \
10102
archive_expsym_cmds \
10104
postuninstall_cmds \
10105
old_archive_from_expsyms_cmds \
10106
allow_undefined_flag \
10107
no_undefined_flag \
10108
export_symbols_cmds \
10109
hardcode_libdir_flag_spec \
10110
hardcode_libdir_flag_spec_ld \
10111
hardcode_libdir_separator \
10112
hardcode_automatic \
10114
module_expsym_cmds \
10115
lt_cv_prog_compiler_c_o \
10117
include_expsyms; do
10120
old_archive_cmds | \
10121
old_archive_from_new_cmds | \
10123
archive_expsym_cmds | \
10125
module_expsym_cmds | \
10126
old_archive_from_expsyms_cmds | \
10127
export_symbols_cmds | \
10128
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10129
postinstall_cmds | postuninstall_cmds | \
10130
old_postinstall_cmds | old_postuninstall_cmds | \
10131
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10132
# Double-quote double-evaled strings.
10133
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10136
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10142
*'\$0 --fallback-echo"')
10143
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10147
cfgfile="${ofile}T"
10148
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10150
{ echo "$as_me:$LINENO: creating $ofile" >&5
10151
echo "$as_me: creating $ofile" >&6;}
10153
cat <<__EOF__ >> "$cfgfile"
10156
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10157
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10158
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10160
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10161
# Free Software Foundation, Inc.
10163
# This file is part of GNU Libtool:
10164
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10166
# This program is free software; you can redistribute it and/or modify
10167
# it under the terms of the GNU General Public License as published by
10168
# the Free Software Foundation; either version 2 of the License, or
10169
# (at your option) any later version.
10171
# This program is distributed in the hope that it will be useful, but
10172
# WITHOUT ANY WARRANTY; without even the implied warranty of
10173
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10174
# General Public License for more details.
10176
# You should have received a copy of the GNU General Public License
10177
# along with this program; if not, write to the Free Software
10178
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10180
# As a special exception to the GNU General Public License, if you
10181
# distribute this file as part of a program that contains a
10182
# configuration script generated by Autoconf, you may include it under
10183
# the same distribution terms that you use for the rest of that program.
10185
# A sed program that does not truncate output.
10188
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10189
Xsed="$SED -e 1s/^X//"
10191
# The HP-UX ksh and POSIX shell print the target directory to stdout
10192
# if CDPATH is set.
10193
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10195
# The names of the tagged configurations supported by this script.
10198
# ### BEGIN LIBTOOL CONFIG
10200
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10202
# Shell to use when invoking shell scripts.
10205
# Whether or not to build shared libraries.
10206
build_libtool_libs=$enable_shared
10208
# Whether or not to build static libraries.
10209
build_old_libs=$enable_static
10211
# Whether or not to add -lc for building shared libraries.
10212
build_libtool_need_lc=$archive_cmds_need_lc
10214
# Whether or not to disallow shared libs when runtime libs are static
10215
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10217
# Whether or not to optimize for fast installation.
10218
fast_install=$enable_fast_install
10221
host_alias=$host_alias
10225
# The build system.
10226
build_alias=$build_alias
10230
# An echo program that does not interpret backslashes.
10235
AR_FLAGS=$lt_AR_FLAGS
10240
# LTCC compiler flags.
10241
LTCFLAGS=$lt_LTCFLAGS
10243
# A language-specific compiler.
10246
# Is the compiler the GNU C compiler?
10252
# The linker used to build libraries.
10255
# Whether we need hard or soft links.
10258
# A BSD-compatible nm program.
10261
# A symbol stripping program
10264
# Used to examine libraries when file_magic_cmd begins "file"
10265
MAGIC_CMD=$MAGIC_CMD
10267
# Used on cygwin: DLL creation program.
10270
# Used on cygwin: object dumper.
10273
# Used on cygwin: assembler.
10276
# The name of the directory that contains temporary libtool files.
10279
# How to create reloadable object files.
10280
reload_flag=$lt_reload_flag
10281
reload_cmds=$lt_reload_cmds
10283
# How to pass a linker flag through the compiler.
10284
wl=$lt_lt_prog_compiler_wl
10286
# Object file suffix (normally "o").
10287
objext="$ac_objext"
10289
# Old archive suffix (normally "a").
10292
# Shared library suffix (normally ".so").
10293
shrext_cmds='$shrext_cmds'
10295
# Executable file suffix (normally "").
10298
# Additional compiler flags for building library objects.
10299
pic_flag=$lt_lt_prog_compiler_pic
10302
# What is the maximum length of a command?
10303
max_cmd_len=$lt_cv_sys_max_cmd_len
10305
# Does compiler simultaneously support -c and -o options?
10306
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10308
# Must we lock files when doing compilation?
10309
need_locks=$lt_need_locks
10311
# Do we need the lib prefix for modules?
10312
need_lib_prefix=$need_lib_prefix
10314
# Do we need a version for libraries?
10315
need_version=$need_version
10317
# Whether dlopen is supported.
10318
dlopen_support=$enable_dlopen
10320
# Whether dlopen of programs is supported.
10321
dlopen_self=$enable_dlopen_self
10323
# Whether dlopen of statically linked programs is supported.
10324
dlopen_self_static=$enable_dlopen_self_static
10326
# Compiler flag to prevent dynamic linking.
10327
link_static_flag=$lt_lt_prog_compiler_static
10329
# Compiler flag to turn off builtin functions.
10330
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10332
# Compiler flag to allow reflexive dlopens.
10333
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10335
# Compiler flag to generate shared objects directly from archives.
10336
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10338
# Compiler flag to generate thread-safe objects.
10339
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10341
# Library versioning type.
10342
version_type=$version_type
10344
# Format of library name prefix.
10345
libname_spec=$lt_libname_spec
10347
# List of archive names. First name is the real one, the rest are links.
10348
# The last name is the one that the linker finds with -lNAME.
10349
library_names_spec=$lt_library_names_spec
10351
# The coded name of the library, if different from the real name.
10352
soname_spec=$lt_soname_spec
10354
# Commands used to build and install an old-style archive.
10356
old_archive_cmds=$lt_old_archive_cmds
10357
old_postinstall_cmds=$lt_old_postinstall_cmds
10358
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10360
# Create an old-style archive from a shared archive.
10361
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10363
# Create a temporary old-style archive to link instead of a shared archive.
10364
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10366
# Commands used to build and install a shared archive.
10367
archive_cmds=$lt_archive_cmds
10368
archive_expsym_cmds=$lt_archive_expsym_cmds
10369
postinstall_cmds=$lt_postinstall_cmds
10370
postuninstall_cmds=$lt_postuninstall_cmds
10372
# Commands used to build a loadable module (assumed same as above if empty)
10373
module_cmds=$lt_module_cmds
10374
module_expsym_cmds=$lt_module_expsym_cmds
10376
# Commands to strip libraries.
10377
old_striplib=$lt_old_striplib
10378
striplib=$lt_striplib
10380
# Dependencies to place before the objects being linked to create a
10382
predep_objects=$lt_predep_objects
10384
# Dependencies to place after the objects being linked to create a
10386
postdep_objects=$lt_postdep_objects
10388
# Dependencies to place before the objects being linked to create a
10390
predeps=$lt_predeps
10392
# Dependencies to place after the objects being linked to create a
10394
postdeps=$lt_postdeps
10396
# The library search path used internally by the compiler when linking
10397
# a shared library.
10398
compiler_lib_search_path=$lt_compiler_lib_search_path
10400
# Method to check whether dependent libraries are shared objects.
10401
deplibs_check_method=$lt_deplibs_check_method
10403
# Command to use when deplibs_check_method == file_magic.
10404
file_magic_cmd=$lt_file_magic_cmd
10406
# Flag that allows shared libraries with undefined symbols to be built.
10407
allow_undefined_flag=$lt_allow_undefined_flag
10409
# Flag that forces no undefined symbols.
10410
no_undefined_flag=$lt_no_undefined_flag
10412
# Commands used to finish a libtool library installation in a directory.
10413
finish_cmds=$lt_finish_cmds
10415
# Same as above, but a single script fragment to be evaled but not shown.
10416
finish_eval=$lt_finish_eval
10418
# Take the output of nm and produce a listing of raw symbols and C names.
10419
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10421
# Transform the output of nm in a proper C declaration
10422
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10424
# Transform the output of nm in a C name address pair
10425
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10427
# This is the shared library runtime path variable.
10428
runpath_var=$runpath_var
10430
# This is the shared library path variable.
10431
shlibpath_var=$shlibpath_var
10433
# Is shlibpath searched before the hard-coded library search path?
10434
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10436
# How to hardcode a shared library path into an executable.
10437
hardcode_action=$hardcode_action
10439
# Whether we should hardcode library paths into libraries.
10440
hardcode_into_libs=$hardcode_into_libs
10442
# Flag to hardcode \$libdir into a binary during linking.
10443
# This must work even if \$libdir does not exist.
10444
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10446
# If ld is used when linking, flag to hardcode \$libdir into
10447
# a binary during linking. This must work even if \$libdir does
10449
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10451
# Whether we need a single -rpath flag with a separated argument.
10452
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10454
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10455
# resulting binary.
10456
hardcode_direct=$hardcode_direct
10458
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10459
# resulting binary.
10460
hardcode_minus_L=$hardcode_minus_L
10462
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10463
# the resulting binary.
10464
hardcode_shlibpath_var=$hardcode_shlibpath_var
10466
# Set to yes if building a shared library automatically hardcodes DIR into the library
10467
# and all subsequent libraries and executables linked against it.
10468
hardcode_automatic=$hardcode_automatic
10470
# Variables whose values should be saved in libtool wrapper scripts and
10471
# restored at relink time.
10472
variables_saved_for_relink="$variables_saved_for_relink"
10474
# Whether libtool must link a program against all its dependency libraries.
10475
link_all_deplibs=$link_all_deplibs
10477
# Compile-time system search path for libraries
10478
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10480
# Run-time system search path for libraries
10481
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10483
# Fix the shell variable \$srcfile for the compiler.
10484
fix_srcfile_path="$fix_srcfile_path"
10486
# Set to yes if exported symbols are required.
10487
always_export_symbols=$always_export_symbols
10489
# The commands to list exported symbols.
10490
export_symbols_cmds=$lt_export_symbols_cmds
10492
# The commands to extract the exported symbol list from a shared archive.
10493
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10495
# Symbols that should not be listed in the preloaded symbols.
10496
exclude_expsyms=$lt_exclude_expsyms
10498
# Symbols that must always be exported.
10499
include_expsyms=$lt_include_expsyms
10501
# ### END LIBTOOL CONFIG
10508
cat <<\EOF >> "$cfgfile"
10510
# AIX sometimes has problems with the GCC collect2 program. For some
10511
# reason, if we set the COLLECT_NAMES environment variable, the problems
10512
# vanish in a puff of smoke.
10513
if test "X${COLLECT_NAMES+set}" != Xset; then
10515
export COLLECT_NAMES
10521
# We use sed instead of cat because bash on DJGPP gets confused if
10522
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10523
# text mode, it properly converts lines to CR/LF. This bash problem
10524
# is reportedly fixed, but why not run on old versions too?
10525
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10527
mv -f "$cfgfile" "$ofile" || \
10528
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10532
# If there is no Makefile yet, we rely on a make rule to execute
10533
# `config.status --recheck' to rerun these tests and create the
10534
# libtool script then.
10535
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10536
if test -f "$ltmain_in"; then
10537
test -f Makefile && make "$ltmain"
10543
ac_cpp='$CPP $CPPFLAGS'
10544
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10551
# Check whether --with-tags was given.
10552
if test "${with_tags+set}" = set; then
10553
withval=$with_tags; tagnames="$withval"
10557
if test -f "$ltmain" && test -n "$tagnames"; then
10558
if test ! -f "${ofile}"; then
10559
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10560
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10563
if test -z "$LTCC"; then
10564
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10565
if test -z "$LTCC"; then
10566
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10567
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10569
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10570
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10573
if test -z "$LTCFLAGS"; then
10574
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10577
# Extract list of available tagged configurations in $ofile.
10578
# Note that this assumes the entire list is on one line.
10579
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10581
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10582
for tagname in $tagnames; do
10584
# Check whether tagname contains only valid characters
10585
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10587
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10588
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10589
{ (exit 1); exit 1; }; }
10593
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10595
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10596
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10597
{ (exit 1); exit 1; }; }
10600
# Update the list of available tags.
10601
if test -n "$tagname"; then
10602
echo appending configuration tag \"$tagname\" to $ofile
10606
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10607
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10608
(test "X$CXX" != "Xg++"))) ; then
10610
ac_cpp='$CXXCPP $CPPFLAGS'
10611
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10612
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10613
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10618
archive_cmds_need_lc_CXX=no
10619
allow_undefined_flag_CXX=
10620
always_export_symbols_CXX=no
10621
archive_expsym_cmds_CXX=
10622
export_dynamic_flag_spec_CXX=
10623
hardcode_direct_CXX=no
10624
hardcode_libdir_flag_spec_CXX=
10625
hardcode_libdir_flag_spec_ld_CXX=
10626
hardcode_libdir_separator_CXX=
10627
hardcode_minus_L_CXX=no
10628
hardcode_shlibpath_var_CXX=unsupported
10629
hardcode_automatic_CXX=no
10631
module_expsym_cmds_CXX=
10632
link_all_deplibs_CXX=unknown
10633
old_archive_cmds_CXX=$old_archive_cmds
10634
no_undefined_flag_CXX=
10635
whole_archive_flag_spec_CXX=
10636
enable_shared_with_static_runtimes_CXX=no
10638
# Dependencies to place before and after the object being linked:
10639
predep_objects_CXX=
10640
postdep_objects_CXX=
10643
compiler_lib_search_path_CXX=
10645
# Source file extension for C++ test sources.
10648
# Object file extension for compiled C++ test sources.
10652
# Code to be used in simple compile tests
10653
lt_simple_compile_test_code="int some_variable = 0;\n"
10655
# Code to be used in simple link tests
10656
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10658
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10660
# If no C compiler was specified, use CC.
10663
# If no C compiler flags were specified, use CFLAGS.
10664
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10666
# Allow CC to be a program name with arguments.
10670
# save warnings/boilerplate of simple test code
10671
ac_outfile=conftest.$ac_objext
10672
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10673
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10674
_lt_compiler_boilerplate=`cat conftest.err`
10677
ac_outfile=conftest.$ac_objext
10678
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10679
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10680
_lt_linker_boilerplate=`cat conftest.err`
10684
# Allow CC to be a program name with arguments.
10689
lt_save_with_gnu_ld=$with_gnu_ld
10690
lt_save_path_LD=$lt_cv_path_LD
10691
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10692
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10694
$as_unset lt_cv_prog_gnu_ld
10696
if test -n "${lt_cv_path_LDCXX+set}"; then
10697
lt_cv_path_LD=$lt_cv_path_LDCXX
10699
$as_unset lt_cv_path_LD
10701
test -z "${LDCXX+set}" || LD=$LDCXX
10705
for cc_temp in $compiler""; do
10707
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10708
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10713
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10716
# We don't want -fno-exception wen compiling C++ code, so set the
10717
# no_builtin_flag separately
10718
if test "$GXX" = yes; then
10719
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10721
lt_prog_compiler_no_builtin_flag_CXX=
10724
if test "$GXX" = yes; then
10725
# Set up default GNU C++ configuration
10728
# Check whether --with-gnu-ld was given.
10729
if test "${with_gnu_ld+set}" = set; then
10730
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10736
if test "$GCC" = yes; then
10737
# Check if gcc -print-prog-name=ld gives a path.
10738
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10739
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10742
# gcc leaves a trailing carriage return which upsets mingw
10743
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10745
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10748
# Accept absolute paths.
10750
re_direlt='/[^/][^/]*/\.\./'
10751
# Canonicalize the pathname of ld
10752
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10753
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10754
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10756
test -z "$LD" && LD="$ac_prog"
10759
# If it fails, then pretend we aren't using GCC.
10763
# If it is relative, then search for the first ld in PATH.
10764
with_gnu_ld=unknown
10767
elif test "$with_gnu_ld" = yes; then
10768
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10769
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10771
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10772
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10774
if test "${lt_cv_path_LD+set}" = set; then
10775
echo $ECHO_N "(cached) $ECHO_C" >&6
10777
if test -z "$LD"; then
10778
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10779
for ac_dir in $PATH; do
10781
test -z "$ac_dir" && ac_dir=.
10782
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10783
lt_cv_path_LD="$ac_dir/$ac_prog"
10784
# Check to see if the program is GNU ld. I'd rather use --version,
10785
# but apparently some variants of GNU ld only accept -v.
10786
# Break only if it was the GNU/non-GNU ld that we prefer.
10787
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10788
*GNU* | *'with BFD'*)
10789
test "$with_gnu_ld" != no && break
10792
test "$with_gnu_ld" != yes && break
10799
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10803
LD="$lt_cv_path_LD"
10804
if test -n "$LD"; then
10805
{ echo "$as_me:$LINENO: result: $LD" >&5
10806
echo "${ECHO_T}$LD" >&6; }
10808
{ echo "$as_me:$LINENO: result: no" >&5
10809
echo "${ECHO_T}no" >&6; }
10811
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10812
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10813
{ (exit 1); exit 1; }; }
10814
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10815
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10816
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10817
echo $ECHO_N "(cached) $ECHO_C" >&6
10819
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10820
case `$LD -v 2>&1 </dev/null` in
10821
*GNU* | *'with BFD'*)
10822
lt_cv_prog_gnu_ld=yes
10825
lt_cv_prog_gnu_ld=no
10829
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10830
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10831
with_gnu_ld=$lt_cv_prog_gnu_ld
10835
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10836
# archiving commands below assume that GNU ld is being used.
10837
if test "$with_gnu_ld" = yes; then
10838
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10839
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'
10841
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10842
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10844
# If archive_cmds runs LD, not CC, wlarc should be empty
10845
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10846
# investigate it a little bit more. (MM)
10849
# ancient GNU ld didn't support --whole-archive et. al.
10850
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10851
grep 'no-whole-archive' > /dev/null; then
10852
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10854
whole_archive_flag_spec_CXX=
10860
# A generic and very simple default shared library creation
10861
# command for GNU C++ for the case where it uses the native
10862
# linker, instead of GNU ld. If possible, this setting should
10863
# overridden to take advantage of the native linker features on
10864
# the platform it is being used on.
10865
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10868
# Commands to make compiler produce verbose output that lists
10869
# what "hidden" libraries, object files and flags are used when
10870
# linking a shared library.
10871
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10879
# PORTME: fill in a description of your system's C++ link characteristics
10880
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10885
# FIXME: insert proper C++ library support
10889
if test "$host_cpu" = ia64; then
10890
# On IA64, the linker does run time linking by default, so we don't
10891
# have to do anything special.
10892
aix_use_runtimelinking=no
10893
exp_sym_flag='-Bexport'
10896
aix_use_runtimelinking=no
10898
# Test if we are trying to use run time linking or normal
10899
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10900
# need to do runtime linking.
10901
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10902
for ld_flag in $LDFLAGS; do
10905
aix_use_runtimelinking=yes
10913
exp_sym_flag='-bexport'
10914
no_entry_flag='-bnoentry'
10917
# When large executables or shared objects are built, AIX ld can
10918
# have problems creating the table of contents. If linking a library
10919
# or program results in "error TOC overflow" add -mminimal-toc to
10920
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10921
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10923
archive_cmds_CXX=''
10924
hardcode_direct_CXX=yes
10925
hardcode_libdir_separator_CXX=':'
10926
link_all_deplibs_CXX=yes
10928
if test "$GXX" = yes; then
10929
case $host_os in aix4.[012]|aix4.[012].*)
10930
# We only want to do this on AIX 4.2 and lower, the check
10931
# below for broken collect2 doesn't work under 4.3+
10932
collect2name=`${CC} -print-prog-name=collect2`
10933
if test -f "$collect2name" && \
10934
strings "$collect2name" | grep resolve_lib_name >/dev/null
10936
# We have reworked collect2
10937
hardcode_direct_CXX=yes
10939
# We have old collect2
10940
hardcode_direct_CXX=unsupported
10941
# It fails to find uninstalled libraries when the uninstalled
10942
# path is not listed in the libpath. Setting hardcode_minus_L
10943
# to unsupported forces relinking
10944
hardcode_minus_L_CXX=yes
10945
hardcode_libdir_flag_spec_CXX='-L$libdir'
10946
hardcode_libdir_separator_CXX=
10950
shared_flag='-shared'
10951
if test "$aix_use_runtimelinking" = yes; then
10952
shared_flag="$shared_flag "'${wl}-G'
10956
if test "$host_cpu" = ia64; then
10957
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10958
# chokes on -Wl,-G. The following line is correct:
10961
if test "$aix_use_runtimelinking" = yes; then
10962
shared_flag='${wl}-G'
10964
shared_flag='${wl}-bM:SRE'
10969
# It seems that -bexpall does not export symbols beginning with
10970
# underscore (_), so it is better to generate a list of symbols to export.
10971
always_export_symbols_CXX=yes
10972
if test "$aix_use_runtimelinking" = yes; then
10973
# Warning - without using the other runtime loading flags (-brtl),
10974
# -berok will link without error, but may produce a broken library.
10975
allow_undefined_flag_CXX='-berok'
10976
# Determine the default libpath from the value encoded in an empty executable.
10977
cat >conftest.$ac_ext <<_ACEOF
10980
cat confdefs.h >>conftest.$ac_ext
10981
cat >>conftest.$ac_ext <<_ACEOF
10982
/* end confdefs.h. */
10992
rm -f conftest.$ac_objext conftest$ac_exeext
10993
if { (ac_try="$ac_link"
10994
case "(($ac_try" in
10995
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996
*) ac_try_echo=$ac_try;;
10998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999
(eval "$ac_link") 2>conftest.er1
11001
grep -v '^ *+' conftest.er1 >conftest.err
11003
cat conftest.err >&5
11004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005
(exit $ac_status); } && {
11006
test -z "$ac_cxx_werror_flag" ||
11007
test ! -s conftest.err
11008
} && test -s conftest$ac_exeext &&
11009
$as_test_x conftest$ac_exeext; then
11011
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11013
# Check for a 64-bit object if we didn't find anything.
11014
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; }
11017
echo "$as_me: failed program was:" >&5
11018
sed 's/^/| /' conftest.$ac_ext >&5
11023
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024
conftest$ac_exeext conftest.$ac_ext
11025
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11027
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11029
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"
11031
if test "$host_cpu" = ia64; then
11032
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11033
allow_undefined_flag_CXX="-z nodefs"
11034
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"
11036
# Determine the default libpath from the value encoded in an empty executable.
11037
cat >conftest.$ac_ext <<_ACEOF
11040
cat confdefs.h >>conftest.$ac_ext
11041
cat >>conftest.$ac_ext <<_ACEOF
11042
/* end confdefs.h. */
11052
rm -f conftest.$ac_objext conftest$ac_exeext
11053
if { (ac_try="$ac_link"
11054
case "(($ac_try" in
11055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056
*) ac_try_echo=$ac_try;;
11058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059
(eval "$ac_link") 2>conftest.er1
11061
grep -v '^ *+' conftest.er1 >conftest.err
11063
cat conftest.err >&5
11064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065
(exit $ac_status); } && {
11066
test -z "$ac_cxx_werror_flag" ||
11067
test ! -s conftest.err
11068
} && test -s conftest$ac_exeext &&
11069
$as_test_x conftest$ac_exeext; then
11071
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11073
# Check for a 64-bit object if we didn't find anything.
11074
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; }
11077
echo "$as_me: failed program was:" >&5
11078
sed 's/^/| /' conftest.$ac_ext >&5
11083
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11084
conftest$ac_exeext conftest.$ac_ext
11085
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11087
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11088
# Warning - without using the other run time loading flags,
11089
# -berok will link without error, but may produce a broken library.
11090
no_undefined_flag_CXX=' ${wl}-bernotok'
11091
allow_undefined_flag_CXX=' ${wl}-berok'
11092
# Exported symbols can be pulled into shared objects from archives
11093
whole_archive_flag_spec_CXX='$convenience'
11094
archive_cmds_need_lc_CXX=yes
11095
# This is similar to how AIX traditionally builds its shared libraries.
11096
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'
11102
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11103
allow_undefined_flag_CXX=unsupported
11104
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11105
# support --undefined. This deserves some investigation. FIXME
11106
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11113
case $cc_basename in
11115
# FIXME: insert proper C++ library support
11121
cygwin* | mingw* | pw32*)
11122
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11123
# as there is no search path for DLLs.
11124
hardcode_libdir_flag_spec_CXX='-L$libdir'
11125
allow_undefined_flag_CXX=unsupported
11126
always_export_symbols_CXX=no
11127
enable_shared_with_static_runtimes_CXX=yes
11129
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11130
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'
11131
# If the export-symbols file already is a .def file (1st line
11132
# is EXPORTS), use it as is; otherwise, prepend...
11133
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11134
cp $export_symbols $output_objdir/$soname.def;
11136
echo EXPORTS > $output_objdir/$soname.def;
11137
cat $export_symbols >> $output_objdir/$soname.def;
11139
$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'
11144
darwin* | rhapsody*)
11146
rhapsody* | darwin1.[012])
11147
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11150
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11151
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11153
case ${MACOSX_DEPLOYMENT_TARGET} in
11155
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11158
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11164
archive_cmds_need_lc_CXX=no
11165
hardcode_direct_CXX=no
11166
hardcode_automatic_CXX=yes
11167
hardcode_shlibpath_var_CXX=unsupported
11168
whole_archive_flag_spec_CXX=''
11169
link_all_deplibs_CXX=yes
11171
if test "$GXX" = yes ; then
11172
lt_int_apple_cc_single_mod=no
11173
output_verbose_link_cmd='echo'
11174
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11175
lt_int_apple_cc_single_mod=yes
11177
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11178
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11180
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'
11182
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11183
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11184
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11185
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}'
11187
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}'
11189
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}'
11191
case $cc_basename in
11193
output_verbose_link_cmd='echo'
11194
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'
11195
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11196
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11197
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}'
11198
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}'
11208
case $cc_basename in
11210
# FIXME: insert proper C++ library support
11214
# Green Hills C++ Compiler
11215
# FIXME: insert proper C++ library support
11219
# FIXME: insert proper C++ library support
11225
# C++ shared libraries reported to be fairly broken before switch to ELF
11229
archive_cmds_need_lc_CXX=no
11231
freebsd* | kfreebsd*-gnu | dragonfly*)
11232
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11239
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11240
hardcode_libdir_separator_CXX=:
11241
export_dynamic_flag_spec_CXX='${wl}-E'
11242
hardcode_direct_CXX=yes
11243
hardcode_minus_L_CXX=yes # Not in the search PATH,
11244
# but as the default
11245
# location of the library.
11247
case $cc_basename in
11249
# FIXME: insert proper C++ library support
11253
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'
11254
# Commands to make compiler produce verbose output that lists
11255
# what "hidden" libraries, object files and flags are used when
11256
# linking a shared library.
11258
# There doesn't appear to be a way to prevent this compiler from
11259
# explicitly linking system object files so we need to strip them
11260
# from the output so that they don't get included in the library
11262
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'
11265
if test "$GXX" = yes; then
11266
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'
11268
# FIXME: insert proper C++ library support
11275
if test $with_gnu_ld = no; then
11276
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11277
hardcode_libdir_separator_CXX=:
11281
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11284
export_dynamic_flag_spec_CXX='${wl}-E'
11290
hardcode_direct_CXX=no
11291
hardcode_shlibpath_var_CXX=no
11294
hardcode_direct_CXX=yes
11295
hardcode_minus_L_CXX=yes # Not in the search PATH,
11296
# but as the default
11297
# location of the library.
11301
case $cc_basename in
11303
# FIXME: insert proper C++ library support
11309
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11312
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11315
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318
# Commands to make compiler produce verbose output that lists
11319
# what "hidden" libraries, object files and flags are used when
11320
# linking a shared library.
11322
# There doesn't appear to be a way to prevent this compiler from
11323
# explicitly linking system object files so we need to strip them
11324
# from the output so that they don't get included in the library
11326
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'
11329
if test "$GXX" = yes; then
11330
if test $with_gnu_ld = no; then
11333
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339
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'
11344
# FIXME: insert proper C++ library support
11351
hardcode_direct_CXX=no
11352
hardcode_shlibpath_var_CXX=no
11353
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11354
export_dynamic_flag_spec_CXX='${wl}-E'
11355
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11356
# Instead, shared libraries are loaded at an image base (0x10000000 by
11357
# default) and relocated if they conflict, which is a slow very memory
11358
# consuming and fragmenting process. To avoid this, we pick a random,
11359
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11360
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11361
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'
11362
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'
11365
case $cc_basename in
11368
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'
11370
# Archives containing C++ object files must be created using
11371
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11372
# necessary to make sure instantiated templates are included
11374
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11377
if test "$GXX" = yes; then
11378
if test "$with_gnu_ld" = no; then
11379
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'
11381
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'
11384
link_all_deplibs_CXX=yes
11387
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11388
hardcode_libdir_separator_CXX=:
11391
case $cc_basename in
11393
# Kuck and Associates, Inc. (KAI) C++ Compiler
11395
# KCC will only create a shared library if the output file
11396
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11397
# to its proper name (with version) after linking.
11398
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'
11399
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'
11400
# Commands to make compiler produce verbose output that lists
11401
# what "hidden" libraries, object files and flags are used when
11402
# linking a shared library.
11404
# There doesn't appear to be a way to prevent this compiler from
11405
# explicitly linking system object files so we need to strip them
11406
# from the output so that they don't get included in the library
11408
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'
11410
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11411
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11413
# Archives containing C++ object files must be created using
11414
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11415
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11420
# version 8.0 and above of icpc choke on multiply defined symbols
11421
# if we add $predep_objects and $postdep_objects, however 7.1 and
11422
# earlier do not add the objects themselves.
11423
case `$CC -V 2>&1` in
11425
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11426
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'
11428
*) # Version 8.0 or newer
11431
ia64*) tmp_idyn=' -i_dynamic';;
11433
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11434
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'
11437
archive_cmds_need_lc_CXX=no
11438
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11439
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11440
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11443
# Portland Group C++ compiler
11444
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11445
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'
11447
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11448
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11449
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'
11453
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11454
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'
11456
runpath_var=LD_RUN_PATH
11457
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11458
hardcode_libdir_separator_CXX=:
11460
# Commands to make compiler produce verbose output that lists
11461
# what "hidden" libraries, object files and flags are used when
11462
# linking a shared library.
11464
# There doesn't appear to be a way to prevent this compiler from
11465
# explicitly linking system object files so we need to strip them
11466
# from the output so that they don't get included in the library
11468
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'
11473
# FIXME: insert proper C++ library support
11477
# FIXME: insert proper C++ library support
11481
case $cc_basename in
11483
# FIXME: insert proper C++ library support
11487
# FIXME: insert proper C++ library support
11493
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11494
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11496
hardcode_libdir_flag_spec_CXX='-R$libdir'
11497
hardcode_direct_CXX=yes
11498
hardcode_shlibpath_var_CXX=no
11500
# Workaround some broken pre-1.5 toolchains
11501
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11504
# C++ shared libraries are fairly broken
11508
hardcode_direct_CXX=yes
11509
hardcode_shlibpath_var_CXX=no
11510
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11511
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11512
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11513
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11514
export_dynamic_flag_spec_CXX='${wl}-E'
11515
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11517
output_verbose_link_cmd='echo'
11520
case $cc_basename in
11522
# Kuck and Associates, Inc. (KAI) C++ Compiler
11524
# KCC will only create a shared library if the output file
11525
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11526
# to its proper name (with version) after linking.
11527
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'
11529
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11530
hardcode_libdir_separator_CXX=:
11532
# Archives containing C++ object files must be created using
11533
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11534
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11538
# Rational C++ 2.4.1
11539
# FIXME: insert proper C++ library support
11543
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11544
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'
11546
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11547
hardcode_libdir_separator_CXX=:
11549
# Commands to make compiler produce verbose output that lists
11550
# what "hidden" libraries, object files and flags are used when
11551
# linking a shared library.
11553
# There doesn't appear to be a way to prevent this compiler from
11554
# explicitly linking system object files so we need to strip them
11555
# from the output so that they don't get included in the library
11557
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'
11560
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11561
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11562
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'
11564
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11565
hardcode_libdir_separator_CXX=:
11567
# Commands to make compiler produce verbose output that lists
11568
# what "hidden" libraries, object files and flags are used when
11569
# linking a shared library.
11570
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11573
# FIXME: insert proper C++ library support
11580
case $cc_basename in
11582
# Kuck and Associates, Inc. (KAI) C++ Compiler
11584
# KCC will only create a shared library if the output file
11585
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11586
# to its proper name (with version) after linking.
11587
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'
11589
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11590
hardcode_libdir_separator_CXX=:
11592
# Archives containing C++ object files must be created using
11593
# the KAI C++ compiler.
11594
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11597
# Rational C++ 2.4.1
11598
# FIXME: insert proper C++ library support
11602
allow_undefined_flag_CXX=' -expect_unresolved \*'
11603
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'
11604
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11605
echo "-hidden">> $lib.exp~
11606
$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~
11609
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11610
hardcode_libdir_separator_CXX=:
11612
# Commands to make compiler produce verbose output that lists
11613
# what "hidden" libraries, object files and flags are used when
11614
# linking a shared library.
11616
# There doesn't appear to be a way to prevent this compiler from
11617
# explicitly linking system object files so we need to strip them
11618
# from the output so that they don't get included in the library
11620
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'
11623
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11624
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11625
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'
11627
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11628
hardcode_libdir_separator_CXX=:
11630
# Commands to make compiler produce verbose output that lists
11631
# what "hidden" libraries, object files and flags are used when
11632
# linking a shared library.
11633
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11636
# FIXME: insert proper C++ library support
11643
# FIXME: insert proper C++ library support
11647
case $cc_basename in
11650
# FIXME: insert proper C++ library support
11655
# FIXME: insert proper C++ library support
11659
# FIXME: insert proper C++ library support
11665
case $cc_basename in
11667
# Sun C++ 4.2, 5.x and Centerline C++
11668
archive_cmds_need_lc_CXX=yes
11669
no_undefined_flag_CXX=' -zdefs'
11670
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11671
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11672
$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'
11674
hardcode_libdir_flag_spec_CXX='-R$libdir'
11675
hardcode_shlibpath_var_CXX=no
11677
solaris2.[0-5] | solaris2.[0-5].*) ;;
11679
# The C++ compiler is used as linker so we must use $wl
11680
# flag to pass the commands to the underlying system
11681
# linker. We must also pass each convience library through
11682
# to the system linker between allextract/defaultextract.
11683
# The C++ compiler will combine linker options so we
11684
# cannot just pass the convience library names through
11686
# Supported since Solaris 2.6 (maybe 2.5.1?)
11687
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'
11690
link_all_deplibs_CXX=yes
11692
output_verbose_link_cmd='echo'
11694
# Archives containing C++ object files must be created using
11695
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11696
# necessary to make sure instantiated templates are included
11698
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11701
# Green Hills C++ Compiler
11702
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11704
# The C++ compiler must be used to create the archive.
11705
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11708
# GNU C++ compiler with Solaris linker
11709
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11710
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11711
if $CC --version | grep -v '^2\.7' > /dev/null; then
11712
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11713
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11714
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11716
# Commands to make compiler produce verbose output that lists
11717
# what "hidden" libraries, object files and flags are used when
11718
# linking a shared library.
11719
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11721
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11723
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11725
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11727
# Commands to make compiler produce verbose output that lists
11728
# what "hidden" libraries, object files and flags are used when
11729
# linking a shared library.
11730
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11733
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11738
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11739
no_undefined_flag_CXX='${wl}-z,text'
11740
archive_cmds_need_lc_CXX=no
11741
hardcode_shlibpath_var_CXX=no
11742
runpath_var='LD_RUN_PATH'
11744
case $cc_basename in
11746
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11747
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11751
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11755
sysv5* | sco3.2v5* | sco5v6*)
11756
# Note: We can NOT use -z defs as we might desire, because we do not
11757
# link with -lc, and that would cause any symbols used from libc to
11758
# always be unresolved, which means just about no library would
11759
# ever link correctly. If we're not using GNU ld we use -z text
11760
# though, which does catch some bad symbols but isn't as heavy-handed
11762
# For security reasons, it is highly recommended that you always
11763
# use absolute paths for naming shared libraries, and exclude the
11764
# DT_RUNPATH tag from executables and libraries. But doing so
11765
# requires that you compile everything twice, which is a pain.
11766
# So that behaviour is only enabled if SCOABSPATH is set to a
11767
# non-empty value in the environment. Most likely only useful for
11768
# creating official distributions of packages.
11769
# This is a hack until libtool officially supports absolute path
11770
# names for shared libraries.
11771
no_undefined_flag_CXX='${wl}-z,text'
11772
allow_undefined_flag_CXX='${wl}-z,nodefs'
11773
archive_cmds_need_lc_CXX=no
11774
hardcode_shlibpath_var_CXX=no
11775
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11776
hardcode_libdir_separator_CXX=':'
11777
link_all_deplibs_CXX=yes
11778
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11779
runpath_var='LD_RUN_PATH'
11781
case $cc_basename in
11783
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11784
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11787
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11788
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11793
case $cc_basename in
11795
# NonStop-UX NCC 3.20
11796
# FIXME: insert proper C++ library support
11800
# FIXME: insert proper C++ library support
11806
# FIXME: insert proper C++ library support
11810
# FIXME: insert proper C++ library support
11814
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11815
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11816
test "$ld_shlibs_CXX" = no && can_build_shared=no
11822
cat > conftest.$ac_ext <<EOF
11826
Foo (void) { a = 0; }
11832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11833
(eval $ac_compile) 2>&5
11835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836
(exit $ac_status); }; then
11837
# Parse the compiler output and extract the necessary
11838
# objects, libraries and library flags.
11840
# Sentinel used to keep track of whether or not we are before
11841
# the conftest object file.
11842
pre_test_object_deps_done=no
11844
# The `*' in the case matches for architectures that use `case' in
11845
# $output_verbose_cmd can trigger glob expansion during the loop
11846
# eval without this substitution.
11847
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11849
for p in `eval $output_verbose_link_cmd`; do
11853
# Some compilers place space between "-{L,R}" and the path.
11854
# Remove the space.
11855
if test $p = "-L" \
11856
|| test $p = "-R"; then
11863
if test "$pre_test_object_deps_done" = no; then
11866
# Internal compiler library paths should come after those
11867
# provided the user. The postdeps already come after the
11868
# user supplied libs so there is no need to process them.
11869
if test -z "$compiler_lib_search_path_CXX"; then
11870
compiler_lib_search_path_CXX="${prev}${p}"
11872
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11875
# The "-l" case would never come before the object being
11876
# linked, so don't bother handling this case.
11879
if test -z "$postdeps_CXX"; then
11880
postdeps_CXX="${prev}${p}"
11882
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11888
# This assumes that the test object file only shows up
11889
# once in the compiler output.
11890
if test "$p" = "conftest.$objext"; then
11891
pre_test_object_deps_done=yes
11895
if test "$pre_test_object_deps_done" = no; then
11896
if test -z "$predep_objects_CXX"; then
11897
predep_objects_CXX="$p"
11899
predep_objects_CXX="$predep_objects_CXX $p"
11902
if test -z "$postdep_objects_CXX"; then
11903
postdep_objects_CXX="$p"
11905
postdep_objects_CXX="$postdep_objects_CXX $p"
11910
*) ;; # Ignore the rest.
11918
echo "libtool.m4: error: problem compiling CXX test program"
11921
$rm -f confest.$objext
11923
# PORTME: override above test on systems where it is broken
11926
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11927
# hack all around it, let's just trust "g++" to DTRT.
11928
predep_objects_CXX=
11929
postdep_objects_CXX=
11934
case $cc_basename in
11936
# Adding this requires a known-good setup of shared libraries for
11937
# Sun compiler versions before 5.6, else PIC objects from an old
11938
# archive will be linked into the output, leading to subtle bugs.
11939
postdeps_CXX='-lCstd -lCrun'
11946
case " $postdeps_CXX " in
11947
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11950
lt_prog_compiler_wl_CXX=
11951
lt_prog_compiler_pic_CXX=
11952
lt_prog_compiler_static_CXX=
11954
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11955
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11957
# C++ specific cases for pic, static, wl, etc.
11958
if test "$GXX" = yes; then
11959
lt_prog_compiler_wl_CXX='-Wl,'
11960
lt_prog_compiler_static_CXX='-static'
11964
# All AIX code is PIC.
11965
if test "$host_cpu" = ia64; then
11966
# AIX 5 now supports IA64 processor
11967
lt_prog_compiler_static_CXX='-Bstatic'
11971
# FIXME: we need at least 68020 code to build shared libraries, but
11972
# adding the `-m68020' flag to GCC prevents building anything better,
11974
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11976
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11977
# PIC is the default for these OSes.
11979
mingw* | os2* | pw32*)
11980
# This hack is so that the source file can tell whether it is being
11981
# built for inclusion in a dll (and should export symbols for example).
11982
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11984
darwin* | rhapsody*)
11985
# PIC is the default on this platform
11986
# Common symbols not allowed in MH_DYLIB files
11987
lt_prog_compiler_pic_CXX='-fno-common'
11990
# DJGPP does not support shared libraries at all
11991
lt_prog_compiler_pic_CXX=
11994
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11995
# Instead, we relocate shared libraries at runtime.
11998
if test -d /usr/nec; then
11999
lt_prog_compiler_pic_CXX=-Kconform_pic
12003
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12004
# not for PA HP-UX.
12009
lt_prog_compiler_pic_CXX='-fPIC'
12014
lt_prog_compiler_pic_CXX='-fPIC'
12020
# All AIX code is PIC.
12021
if test "$host_cpu" = ia64; then
12022
# AIX 5 now supports IA64 processor
12023
lt_prog_compiler_static_CXX='-Bstatic'
12025
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12029
case $cc_basename in
12031
# Green Hills C++ Compiler
12032
# _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"
12037
# PIC is the default on this platform
12038
# Common symbols not allowed in MH_DYLIB files
12039
case $cc_basename in
12041
lt_prog_compiler_pic_CXX='-qnocommon'
12042
lt_prog_compiler_wl_CXX='-Wl,'
12047
case $cc_basename in
12049
lt_prog_compiler_pic_CXX='-KPIC'
12052
# Green Hills C++ Compiler
12053
lt_prog_compiler_pic_CXX='-pic'
12059
freebsd* | kfreebsd*-gnu | dragonfly*)
12060
# FreeBSD uses GNU C++
12062
hpux9* | hpux10* | hpux11*)
12063
case $cc_basename in
12065
lt_prog_compiler_wl_CXX='-Wl,'
12066
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12067
if test "$host_cpu" != ia64; then
12068
lt_prog_compiler_pic_CXX='+Z'
12072
lt_prog_compiler_wl_CXX='-Wl,'
12073
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12079
lt_prog_compiler_pic_CXX='+Z'
12088
# This is c89, which is MS Visual C++ (no shared libs)
12089
# Anyone wants to do a port?
12091
irix5* | irix6* | nonstopux*)
12092
case $cc_basename in
12094
lt_prog_compiler_wl_CXX='-Wl,'
12095
lt_prog_compiler_static_CXX='-non_shared'
12096
# CC pic flag -KPIC is the default.
12103
case $cc_basename in
12106
lt_prog_compiler_wl_CXX='--backend -Wl,'
12107
lt_prog_compiler_pic_CXX='-fPIC'
12111
lt_prog_compiler_wl_CXX='-Wl,'
12112
lt_prog_compiler_pic_CXX='-KPIC'
12113
lt_prog_compiler_static_CXX='-static'
12116
# Portland Group C++ compiler.
12117
lt_prog_compiler_wl_CXX='-Wl,'
12118
lt_prog_compiler_pic_CXX='-fpic'
12119
lt_prog_compiler_static_CXX='-Bstatic'
12123
# Make sure the PIC flag is empty. It appears that all Alpha
12124
# Linux and Compaq Tru64 Unix objects are PIC.
12125
lt_prog_compiler_pic_CXX=
12126
lt_prog_compiler_static_CXX='-non_shared'
12137
case $cc_basename in
12139
lt_prog_compiler_pic_CXX='-W c,exportall'
12147
osf3* | osf4* | osf5*)
12148
case $cc_basename in
12150
lt_prog_compiler_wl_CXX='--backend -Wl,'
12153
# Rational C++ 2.4.1
12154
lt_prog_compiler_pic_CXX='-pic'
12157
# Digital/Compaq C++
12158
lt_prog_compiler_wl_CXX='-Wl,'
12159
# Make sure the PIC flag is empty. It appears that all Alpha
12160
# Linux and Compaq Tru64 Unix objects are PIC.
12161
lt_prog_compiler_pic_CXX=
12162
lt_prog_compiler_static_CXX='-non_shared'
12171
case $cc_basename in
12173
# Sun C++ 4.2, 5.x and Centerline C++
12174
lt_prog_compiler_pic_CXX='-KPIC'
12175
lt_prog_compiler_static_CXX='-Bstatic'
12176
lt_prog_compiler_wl_CXX='-Qoption ld '
12179
# Green Hills C++ Compiler
12180
lt_prog_compiler_pic_CXX='-PIC'
12187
case $cc_basename in
12190
lt_prog_compiler_pic_CXX='-pic'
12191
lt_prog_compiler_static_CXX='-Bstatic'
12195
lt_prog_compiler_pic_CXX='-pic'
12202
case $cc_basename in
12204
# NonStop-UX NCC 3.20
12205
lt_prog_compiler_pic_CXX='-KPIC'
12211
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12212
case $cc_basename in
12214
lt_prog_compiler_wl_CXX='-Wl,'
12215
lt_prog_compiler_pic_CXX='-KPIC'
12216
lt_prog_compiler_static_CXX='-Bstatic'
12223
lt_prog_compiler_can_build_shared_CXX=no
12228
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12229
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12232
# Check to make sure the PIC flag actually works.
12234
if test -n "$lt_prog_compiler_pic_CXX"; then
12236
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12237
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12238
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12239
echo $ECHO_N "(cached) $ECHO_C" >&6
12241
lt_prog_compiler_pic_works_CXX=no
12242
ac_outfile=conftest.$ac_objext
12243
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12244
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12245
# Insert the option either (1) after the last *FLAGS variable, or
12246
# (2) before a word containing "conftest.", or (3) at the end.
12247
# Note that $ac_compile itself does not contain backslashes and begins
12248
# with a dollar sign (not a hyphen), so the echo should work correctly.
12249
# The option is referenced via a variable to avoid confusing sed.
12250
lt_compile=`echo "$ac_compile" | $SED \
12251
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12252
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12253
-e 's:$: $lt_compiler_flag:'`
12254
(eval echo "\"\$as_me:12254: $lt_compile\"" >&5)
12255
(eval "$lt_compile" 2>conftest.err)
12257
cat conftest.err >&5
12258
echo "$as_me:12258: \$? = $ac_status" >&5
12259
if (exit $ac_status) && test -s "$ac_outfile"; then
12260
# The compiler can only warn and ignore the option if not recognized
12261
# So say no if there are warnings other than the usual output.
12262
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12263
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12264
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12265
lt_prog_compiler_pic_works_CXX=yes
12271
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12272
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12274
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12275
case $lt_prog_compiler_pic_CXX in
12277
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12280
lt_prog_compiler_pic_CXX=
12281
lt_prog_compiler_can_build_shared_CXX=no
12286
# For platforms which do not support PIC, -DPIC is meaningless:
12288
lt_prog_compiler_pic_CXX=
12291
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12296
# Check to make sure the static flag actually works.
12298
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12299
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12300
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12301
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12302
echo $ECHO_N "(cached) $ECHO_C" >&6
12304
lt_prog_compiler_static_works_CXX=no
12305
save_LDFLAGS="$LDFLAGS"
12306
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12307
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12308
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12309
# The linker can only warn and ignore the option if not recognized
12310
# So say no if there are warnings
12311
if test -s conftest.err; then
12312
# Append any errors to the config.log.
12313
cat conftest.err 1>&5
12314
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12315
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12316
if diff conftest.exp conftest.er2 >/dev/null; then
12317
lt_prog_compiler_static_works_CXX=yes
12320
lt_prog_compiler_static_works_CXX=yes
12324
LDFLAGS="$save_LDFLAGS"
12327
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12328
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12330
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12333
lt_prog_compiler_static_CXX=
12337
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12338
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12339
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12340
echo $ECHO_N "(cached) $ECHO_C" >&6
12342
lt_cv_prog_compiler_c_o_CXX=no
12343
$rm -r conftest 2>/dev/null
12347
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12349
lt_compiler_flag="-o out/conftest2.$ac_objext"
12350
# Insert the option either (1) after the last *FLAGS variable, or
12351
# (2) before a word containing "conftest.", or (3) at the end.
12352
# Note that $ac_compile itself does not contain backslashes and begins
12353
# with a dollar sign (not a hyphen), so the echo should work correctly.
12354
lt_compile=`echo "$ac_compile" | $SED \
12355
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12356
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12357
-e 's:$: $lt_compiler_flag:'`
12358
(eval echo "\"\$as_me:12358: $lt_compile\"" >&5)
12359
(eval "$lt_compile" 2>out/conftest.err)
12361
cat out/conftest.err >&5
12362
echo "$as_me:12362: \$? = $ac_status" >&5
12363
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12365
# The compiler can only warn and ignore the option if not recognized
12366
# So say no if there are warnings
12367
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12368
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12369
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12370
lt_cv_prog_compiler_c_o_CXX=yes
12375
# SGI C++ compiler will create directory out/ii_files/ for
12376
# template instantiation
12377
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12378
$rm out/* && rmdir out
12384
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12385
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12388
hard_links="nottested"
12389
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12390
# do not overwrite the value of need_locks provided by the user
12391
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12392
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12395
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12397
ln conftest.a conftest.b 2>&5 || hard_links=no
12398
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12399
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12400
echo "${ECHO_T}$hard_links" >&6; }
12401
if test "$hard_links" = no; then
12402
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12403
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12410
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12411
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12413
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12416
# If we're using GNU nm, then we don't want the "-C" option.
12417
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12418
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12419
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'
12421
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'
12425
export_symbols_cmds_CXX="$ltdll_cmds"
12428
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'
12431
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12436
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12437
test "$ld_shlibs_CXX" = no && can_build_shared=no
12440
# Do we need to explicitly link libc?
12442
case "x$archive_cmds_need_lc_CXX" in
12444
# Assume -lc should be added
12445
archive_cmds_need_lc_CXX=yes
12447
if test "$enable_shared" = yes && test "$GCC" = yes; then
12448
case $archive_cmds_CXX in
12450
# FIXME: we may have to deal with multi-command sequences.
12453
# Test whether the compiler implicitly links with -lc since on some
12454
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12455
# to ld, don't add -lc before -lgcc.
12456
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12457
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12459
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462
(eval $ac_compile) 2>&5
12464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465
(exit $ac_status); } 2>conftest.err; then
12468
libobjs=conftest.$ac_objext
12470
wl=$lt_prog_compiler_wl_CXX
12471
pic_flag=$lt_prog_compiler_pic_CXX
12477
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12478
allow_undefined_flag_CXX=
12479
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12480
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483
(exit $ac_status); }
12485
archive_cmds_need_lc_CXX=no
12487
archive_cmds_need_lc_CXX=yes
12489
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12491
cat conftest.err 1>&5
12494
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12495
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12502
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12503
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12504
library_names_spec=
12505
libname_spec='lib$name'
12509
postuninstall_cmds=
12513
shlibpath_overrides_runpath=unknown
12515
dynamic_linker="$host_os ld.so"
12516
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12517
if test "$GCC" = yes; then
12518
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12519
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12520
# if the path contains ";" then we assume it to be the separator
12521
# otherwise default to the standard path separator (i.e. ":") - it is
12522
# assumed that no part of a normal pathname contains ";" but that should
12523
# okay in the real world where ";" in dirpaths is itself problematic.
12524
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12526
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12529
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12531
need_lib_prefix=unknown
12532
hardcode_into_libs=no
12534
# when you set need_version to no, make sure it does not cause -set_version
12535
# flags to be left without arguments
12536
need_version=unknown
12541
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12542
shlibpath_var=LIBPATH
12544
# AIX 3 has no versioning support, so we append a major version to the name.
12545
soname_spec='${libname}${release}${shared_ext}$major'
12552
hardcode_into_libs=yes
12553
if test "$host_cpu" = ia64; then
12554
# AIX 5 supports IA64
12555
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12556
shlibpath_var=LD_LIBRARY_PATH
12558
# With GCC up to 2.95.x, collect2 would create an import file
12559
# for dependence libraries. The import file would start with
12560
# the line `#! .'. This would cause the generated library to
12561
# depend on `.', always an invalid library. This was fixed in
12562
# development snapshots of GCC prior to 3.0.
12564
aix4 | aix4.[01] | aix4.[01].*)
12565
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12567
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12570
can_build_shared=no
12574
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12575
# soname into executable. Probably we can add versioning support to
12576
# collect2, so additional links can be useful in future.
12577
if test "$aix_use_runtimelinking" = yes; then
12578
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12579
# instead of lib<name>.a to let people know that these are not
12580
# typical AIX shared libraries.
12581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583
# We preserve .a as extension for shared libraries through AIX4.2
12584
# and later when we are not doing run time linking.
12585
library_names_spec='${libname}${release}.a $libname.a'
12586
soname_spec='${libname}${release}${shared_ext}$major'
12588
shlibpath_var=LIBPATH
12593
library_names_spec='$libname.ixlibrary $libname.a'
12594
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12595
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'
12599
library_names_spec='${libname}${shared_ext}'
12600
dynamic_linker="$host_os ld.so"
12601
shlibpath_var=LIBRARY_PATH
12607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608
soname_spec='${libname}${release}${shared_ext}$major'
12609
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12610
shlibpath_var=LD_LIBRARY_PATH
12611
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12612
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12613
# the default ld.so.conf also contains /usr/contrib/lib and
12614
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12615
# libtool to hard-code these into programs
12618
cygwin* | mingw* | pw32*)
12619
version_type=windows
12624
case $GCC,$host_os in
12625
yes,cygwin* | yes,mingw* | yes,pw32*)
12626
library_names_spec='$libname.dll.a'
12627
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12628
postinstall_cmds='base_file=`basename \${file}`~
12629
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12630
dldir=$destdir/`dirname \$dlpath`~
12631
test -d \$dldir || mkdir -p \$dldir~
12632
$install_prog $dir/$dlname \$dldir/$dlname~
12633
chmod a+x \$dldir/$dlname'
12634
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12635
dlpath=$dir/\$dldll~
12637
shlibpath_overrides_runpath=yes
12641
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12642
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12643
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12646
# MinGW DLLs use traditional 'lib' prefix
12647
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12648
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12649
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12650
# It is most probably a Windows format PATH printed by
12651
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12652
# path with ; separators, and with drive letters. We can handle the
12653
# drive letters (cygwin fileutils understands them), so leave them,
12654
# especially as we might pass files found there to a mingw objdump,
12655
# which wouldn't understand a cygwinified path. Ahh.
12656
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12658
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12662
# pw32 DLLs use 'pw' prefix rather than 'lib'
12663
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12669
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12672
dynamic_linker='Win32 ld.exe'
12673
# FIXME: first we should search . and the directory the executable is in
12677
darwin* | rhapsody*)
12678
dynamic_linker="$host_os dyld"
12679
version_type=darwin
12682
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12683
soname_spec='${libname}${release}${major}$shared_ext'
12684
shlibpath_overrides_runpath=yes
12685
shlibpath_var=DYLD_LIBRARY_PATH
12686
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12687
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12688
if test "$GCC" = yes; then
12689
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"`
12691
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12693
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12701
soname_spec='${libname}${release}${shared_ext}$major'
12702
shlibpath_var=LD_LIBRARY_PATH
12713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12714
soname_spec='${libname}${release}${shared_ext}$major'
12715
shlibpath_var=LD_LIBRARY_PATH
12716
shlibpath_overrides_runpath=no
12717
hardcode_into_libs=yes
12718
dynamic_linker='GNU ld.so'
12721
freebsd* | dragonfly*)
12722
# DragonFly does not have aout. When/if they implement a new
12723
# versioning mechanism, adjust this.
12724
if test -x /usr/bin/objformat; then
12725
objformat=`/usr/bin/objformat`
12728
freebsd[123]*) objformat=aout ;;
12729
*) objformat=elf ;;
12732
version_type=freebsd-$objformat
12733
case $version_type in
12735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12740
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12744
shlibpath_var=LD_LIBRARY_PATH
12747
shlibpath_overrides_runpath=yes
12749
freebsd3.[01]* | freebsdelf3.[01]*)
12750
shlibpath_overrides_runpath=yes
12751
hardcode_into_libs=yes
12753
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12754
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12755
shlibpath_overrides_runpath=no
12756
hardcode_into_libs=yes
12758
freebsd*) # from 4.6 on
12759
shlibpath_overrides_runpath=yes
12760
hardcode_into_libs=yes
12769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12770
soname_spec='${libname}${release}${shared_ext}$major'
12771
shlibpath_var=LD_LIBRARY_PATH
12772
hardcode_into_libs=yes
12775
hpux9* | hpux10* | hpux11*)
12776
# Give a soname corresponding to the major version so that dld.sl refuses to
12777
# link against other versions.
12784
hardcode_into_libs=yes
12785
dynamic_linker="$host_os dld.so"
12786
shlibpath_var=LD_LIBRARY_PATH
12787
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789
soname_spec='${libname}${release}${shared_ext}$major'
12790
if test "X$HPUX_IA64_MODE" = X32; then
12791
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12793
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12795
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12799
hardcode_into_libs=yes
12800
dynamic_linker="$host_os dld.sl"
12801
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12802
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804
soname_spec='${libname}${release}${shared_ext}$major'
12805
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12806
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12810
dynamic_linker="$host_os dld.sl"
12811
shlibpath_var=SHLIB_PATH
12812
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814
soname_spec='${libname}${release}${shared_ext}$major'
12817
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12818
postinstall_cmds='chmod 555 $lib'
12825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12826
soname_spec='${libname}${release}${shared_ext}$major'
12827
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12828
shlibpath_var=LD_LIBRARY_PATH
12829
shlibpath_overrides_runpath=no
12830
hardcode_into_libs=yes
12833
irix5* | irix6* | nonstopux*)
12835
nonstopux*) version_type=nonstopux ;;
12837
if test "$lt_cv_prog_gnu_ld" = yes; then
12845
soname_spec='${libname}${release}${shared_ext}$major'
12846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12848
irix5* | nonstopux*)
12849
libsuff= shlibsuff=
12852
case $LD in # libtool.m4 will add one of these switches to LD
12853
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12854
libsuff= shlibsuff= libmagic=32-bit;;
12855
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12856
libsuff=32 shlibsuff=N32 libmagic=N32;;
12857
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12858
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12859
*) libsuff= shlibsuff= libmagic=never-match;;
12863
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12864
shlibpath_overrides_runpath=no
12865
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12866
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12867
hardcode_into_libs=yes
12870
# No shared lib support for Linux oldld, aout, or coff.
12871
linux*oldld* | linux*aout* | linux*coff*)
12875
# This must be Linux ELF.
12880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881
soname_spec='${libname}${release}${shared_ext}$major'
12882
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12883
shlibpath_var=LD_LIBRARY_PATH
12884
shlibpath_overrides_runpath=no
12885
# This implies no fast_install, which is unacceptable.
12886
# Some rework will be needed to allow for fast_install
12887
# before this can be enabled.
12888
hardcode_into_libs=yes
12890
# find out which ABI we are using
12892
case "$host_cpu" in
12893
x86_64*|s390x*|powerpc64*)
12894
echo '#line 12894 "configure"' > conftest.$ac_ext
12895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896
(eval $ac_compile) 2>&5
12898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899
(exit $ac_status); }; then
12900
case `/usr/bin/file conftest.$ac_objext` in
12903
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12911
# Append ld.so.conf contents to the search path
12912
if test -f /etc/ld.so.conf; then
12913
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' ' '`
12914
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12917
# We used to test for /lib/ld.so.1 and disable shared libraries on
12918
# powerpc, because MkLinux only supported shared libraries with the
12919
# GNU dynamic linker. Since this was broken with cross compilers,
12920
# most powerpc-linux boxes support dynamic linking these days and
12921
# people can always --disable-shared, the test was removed, and we
12922
# assume the GNU/Linux dynamic linker is in use.
12923
dynamic_linker='GNU/Linux ld.so'
12930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12931
soname_spec='${libname}${release}${shared_ext}$major'
12932
shlibpath_var=LD_LIBRARY_PATH
12933
shlibpath_overrides_runpath=no
12934
hardcode_into_libs=yes
12935
dynamic_linker='GNU ld.so'
12942
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12944
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12945
dynamic_linker='NetBSD (a.out) ld.so'
12947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12948
soname_spec='${libname}${release}${shared_ext}$major'
12949
dynamic_linker='NetBSD ld.elf_so'
12951
shlibpath_var=LD_LIBRARY_PATH
12952
shlibpath_overrides_runpath=yes
12953
hardcode_into_libs=yes
12958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12959
shlibpath_var=LD_LIBRARY_PATH
12960
shlibpath_overrides_runpath=yes
12967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12968
soname_spec='${libname}${release}${shared_ext}$major'
12969
shlibpath_var=LD_LIBRARY_PATH
12970
shlibpath_overrides_runpath=yes
12975
sys_lib_dlsearch_path_spec="/usr/lib"
12977
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12979
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12980
*) need_version=no ;;
12982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12983
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12984
shlibpath_var=LD_LIBRARY_PATH
12985
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12987
openbsd2.[89] | openbsd2.[89].*)
12988
shlibpath_overrides_runpath=no
12991
shlibpath_overrides_runpath=yes
12995
shlibpath_overrides_runpath=yes
13000
libname_spec='$name'
13003
library_names_spec='$libname${shared_ext} $libname.a'
13004
dynamic_linker='OS/2 ld.exe'
13005
shlibpath_var=LIBPATH
13008
osf3* | osf4* | osf5*)
13012
soname_spec='${libname}${release}${shared_ext}$major'
13013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13014
shlibpath_var=LD_LIBRARY_PATH
13015
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13016
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024
soname_spec='${libname}${release}${shared_ext}$major'
13025
shlibpath_var=LD_LIBRARY_PATH
13026
shlibpath_overrides_runpath=yes
13027
hardcode_into_libs=yes
13028
# ldd complains unless libraries are executable
13029
postinstall_cmds='chmod +x $lib'
13034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13035
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13036
shlibpath_var=LD_LIBRARY_PATH
13037
shlibpath_overrides_runpath=yes
13038
if test "$with_gnu_ld" = yes; then
13046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047
soname_spec='${libname}${release}${shared_ext}$major'
13048
shlibpath_var=LD_LIBRARY_PATH
13049
case $host_vendor in
13051
shlibpath_overrides_runpath=no
13053
export_dynamic_flag_spec='${wl}-Blargedynsym'
13054
runpath_var=LD_RUN_PATH
13062
shlibpath_overrides_runpath=no
13063
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13069
if test -d /usr/nec ;then
13071
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13072
soname_spec='$libname${shared_ext}.$major'
13073
shlibpath_var=LD_LIBRARY_PATH
13077
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13078
version_type=freebsd-elf
13081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13082
soname_spec='${libname}${release}${shared_ext}$major'
13083
shlibpath_var=LD_LIBRARY_PATH
13084
hardcode_into_libs=yes
13085
if test "$with_gnu_ld" = yes; then
13086
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13087
shlibpath_overrides_runpath=no
13089
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13090
shlibpath_overrides_runpath=yes
13093
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13097
sys_lib_dlsearch_path_spec='/usr/lib'
13102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13103
soname_spec='${libname}${release}${shared_ext}$major'
13104
shlibpath_var=LD_LIBRARY_PATH
13111
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13112
echo "${ECHO_T}$dynamic_linker" >&6; }
13113
test "$dynamic_linker" = no && can_build_shared=no
13115
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13116
if test "$GCC" = yes; then
13117
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13120
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13121
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13122
hardcode_action_CXX=
13123
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13124
test -n "$runpath_var_CXX" || \
13125
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13127
# We can hardcode non-existant directories.
13128
if test "$hardcode_direct_CXX" != no &&
13129
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13130
# have to relink, otherwise we might link with an installed library
13131
# when we should be linking with a yet-to-be-installed one
13132
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13133
test "$hardcode_minus_L_CXX" != no; then
13134
# Linking always hardcodes the temporary library directory.
13135
hardcode_action_CXX=relink
13137
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13138
hardcode_action_CXX=immediate
13141
# We cannot hardcode anything, or else we can only hardcode existing
13143
hardcode_action_CXX=unsupported
13145
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13146
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13148
if test "$hardcode_action_CXX" = relink; then
13149
# Fast installation is not supported
13150
enable_fast_install=no
13151
elif test "$shlibpath_overrides_runpath" = yes ||
13152
test "$enable_shared" = no; then
13153
# Fast installation is not necessary
13154
enable_fast_install=needless
13158
# The else clause should only fire when bootstrapping the
13159
# libtool distribution, otherwise you forgot to ship ltmain.sh
13160
# with your package, and you will get complaints that there are
13161
# no rules to generate ltmain.sh.
13162
if test -f "$ltmain"; then
13163
# See if we are running on zsh, and set the options which allow our commands through
13164
# without removal of \ escapes.
13165
if test -n "${ZSH_VERSION+set}" ; then
13166
setopt NO_GLOB_SUBST
13168
# Now quote all the things that may contain metacharacters while being
13169
# careful not to overquote the AC_SUBSTed values. We take copies of the
13170
# variables and quote the copies for generation of the libtool script.
13171
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13173
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13174
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13175
deplibs_check_method reload_flag reload_cmds need_locks \
13176
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13177
lt_cv_sys_global_symbol_to_c_name_address \
13178
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13179
old_postinstall_cmds old_postuninstall_cmds \
13183
lt_prog_compiler_wl_CXX \
13184
lt_prog_compiler_pic_CXX \
13185
lt_prog_compiler_static_CXX \
13186
lt_prog_compiler_no_builtin_flag_CXX \
13187
export_dynamic_flag_spec_CXX \
13188
thread_safe_flag_spec_CXX \
13189
whole_archive_flag_spec_CXX \
13190
enable_shared_with_static_runtimes_CXX \
13191
old_archive_cmds_CXX \
13192
old_archive_from_new_cmds_CXX \
13193
predep_objects_CXX \
13194
postdep_objects_CXX \
13197
compiler_lib_search_path_CXX \
13199
archive_expsym_cmds_CXX \
13200
postinstall_cmds_CXX \
13201
postuninstall_cmds_CXX \
13202
old_archive_from_expsyms_cmds_CXX \
13203
allow_undefined_flag_CXX \
13204
no_undefined_flag_CXX \
13205
export_symbols_cmds_CXX \
13206
hardcode_libdir_flag_spec_CXX \
13207
hardcode_libdir_flag_spec_ld_CXX \
13208
hardcode_libdir_separator_CXX \
13209
hardcode_automatic_CXX \
13211
module_expsym_cmds_CXX \
13212
lt_cv_prog_compiler_c_o_CXX \
13213
exclude_expsyms_CXX \
13214
include_expsyms_CXX; do
13217
old_archive_cmds_CXX | \
13218
old_archive_from_new_cmds_CXX | \
13219
archive_cmds_CXX | \
13220
archive_expsym_cmds_CXX | \
13221
module_cmds_CXX | \
13222
module_expsym_cmds_CXX | \
13223
old_archive_from_expsyms_cmds_CXX | \
13224
export_symbols_cmds_CXX | \
13225
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13226
postinstall_cmds | postuninstall_cmds | \
13227
old_postinstall_cmds | old_postuninstall_cmds | \
13228
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13229
# Double-quote double-evaled strings.
13230
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13233
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13239
*'\$0 --fallback-echo"')
13240
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13246
cat <<__EOF__ >> "$cfgfile"
13247
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13249
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13251
# Shell to use when invoking shell scripts.
13254
# Whether or not to build shared libraries.
13255
build_libtool_libs=$enable_shared
13257
# Whether or not to build static libraries.
13258
build_old_libs=$enable_static
13260
# Whether or not to add -lc for building shared libraries.
13261
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13263
# Whether or not to disallow shared libs when runtime libs are static
13264
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13266
# Whether or not to optimize for fast installation.
13267
fast_install=$enable_fast_install
13270
host_alias=$host_alias
13274
# The build system.
13275
build_alias=$build_alias
13279
# An echo program that does not interpret backslashes.
13284
AR_FLAGS=$lt_AR_FLAGS
13289
# LTCC compiler flags.
13290
LTCFLAGS=$lt_LTCFLAGS
13292
# A language-specific compiler.
13293
CC=$lt_compiler_CXX
13295
# Is the compiler the GNU C compiler?
13301
# The linker used to build libraries.
13304
# Whether we need hard or soft links.
13307
# A BSD-compatible nm program.
13310
# A symbol stripping program
13313
# Used to examine libraries when file_magic_cmd begins "file"
13314
MAGIC_CMD=$MAGIC_CMD
13316
# Used on cygwin: DLL creation program.
13319
# Used on cygwin: object dumper.
13322
# Used on cygwin: assembler.
13325
# The name of the directory that contains temporary libtool files.
13328
# How to create reloadable object files.
13329
reload_flag=$lt_reload_flag
13330
reload_cmds=$lt_reload_cmds
13332
# How to pass a linker flag through the compiler.
13333
wl=$lt_lt_prog_compiler_wl_CXX
13335
# Object file suffix (normally "o").
13336
objext="$ac_objext"
13338
# Old archive suffix (normally "a").
13341
# Shared library suffix (normally ".so").
13342
shrext_cmds='$shrext_cmds'
13344
# Executable file suffix (normally "").
13347
# Additional compiler flags for building library objects.
13348
pic_flag=$lt_lt_prog_compiler_pic_CXX
13351
# What is the maximum length of a command?
13352
max_cmd_len=$lt_cv_sys_max_cmd_len
13354
# Does compiler simultaneously support -c and -o options?
13355
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13357
# Must we lock files when doing compilation?
13358
need_locks=$lt_need_locks
13360
# Do we need the lib prefix for modules?
13361
need_lib_prefix=$need_lib_prefix
13363
# Do we need a version for libraries?
13364
need_version=$need_version
13366
# Whether dlopen is supported.
13367
dlopen_support=$enable_dlopen
13369
# Whether dlopen of programs is supported.
13370
dlopen_self=$enable_dlopen_self
13372
# Whether dlopen of statically linked programs is supported.
13373
dlopen_self_static=$enable_dlopen_self_static
13375
# Compiler flag to prevent dynamic linking.
13376
link_static_flag=$lt_lt_prog_compiler_static_CXX
13378
# Compiler flag to turn off builtin functions.
13379
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13381
# Compiler flag to allow reflexive dlopens.
13382
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13384
# Compiler flag to generate shared objects directly from archives.
13385
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13387
# Compiler flag to generate thread-safe objects.
13388
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13390
# Library versioning type.
13391
version_type=$version_type
13393
# Format of library name prefix.
13394
libname_spec=$lt_libname_spec
13396
# List of archive names. First name is the real one, the rest are links.
13397
# The last name is the one that the linker finds with -lNAME.
13398
library_names_spec=$lt_library_names_spec
13400
# The coded name of the library, if different from the real name.
13401
soname_spec=$lt_soname_spec
13403
# Commands used to build and install an old-style archive.
13405
old_archive_cmds=$lt_old_archive_cmds_CXX
13406
old_postinstall_cmds=$lt_old_postinstall_cmds
13407
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13409
# Create an old-style archive from a shared archive.
13410
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13412
# Create a temporary old-style archive to link instead of a shared archive.
13413
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13415
# Commands used to build and install a shared archive.
13416
archive_cmds=$lt_archive_cmds_CXX
13417
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13418
postinstall_cmds=$lt_postinstall_cmds
13419
postuninstall_cmds=$lt_postuninstall_cmds
13421
# Commands used to build a loadable module (assumed same as above if empty)
13422
module_cmds=$lt_module_cmds_CXX
13423
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13425
# Commands to strip libraries.
13426
old_striplib=$lt_old_striplib
13427
striplib=$lt_striplib
13429
# Dependencies to place before the objects being linked to create a
13431
predep_objects=$lt_predep_objects_CXX
13433
# Dependencies to place after the objects being linked to create a
13435
postdep_objects=$lt_postdep_objects_CXX
13437
# Dependencies to place before the objects being linked to create a
13439
predeps=$lt_predeps_CXX
13441
# Dependencies to place after the objects being linked to create a
13443
postdeps=$lt_postdeps_CXX
13445
# The library search path used internally by the compiler when linking
13446
# a shared library.
13447
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13449
# Method to check whether dependent libraries are shared objects.
13450
deplibs_check_method=$lt_deplibs_check_method
13452
# Command to use when deplibs_check_method == file_magic.
13453
file_magic_cmd=$lt_file_magic_cmd
13455
# Flag that allows shared libraries with undefined symbols to be built.
13456
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13458
# Flag that forces no undefined symbols.
13459
no_undefined_flag=$lt_no_undefined_flag_CXX
13461
# Commands used to finish a libtool library installation in a directory.
13462
finish_cmds=$lt_finish_cmds
13464
# Same as above, but a single script fragment to be evaled but not shown.
13465
finish_eval=$lt_finish_eval
13467
# Take the output of nm and produce a listing of raw symbols and C names.
13468
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13470
# Transform the output of nm in a proper C declaration
13471
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13473
# Transform the output of nm in a C name address pair
13474
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13476
# This is the shared library runtime path variable.
13477
runpath_var=$runpath_var
13479
# This is the shared library path variable.
13480
shlibpath_var=$shlibpath_var
13482
# Is shlibpath searched before the hard-coded library search path?
13483
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13485
# How to hardcode a shared library path into an executable.
13486
hardcode_action=$hardcode_action_CXX
13488
# Whether we should hardcode library paths into libraries.
13489
hardcode_into_libs=$hardcode_into_libs
13491
# Flag to hardcode \$libdir into a binary during linking.
13492
# This must work even if \$libdir does not exist.
13493
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13495
# If ld is used when linking, flag to hardcode \$libdir into
13496
# a binary during linking. This must work even if \$libdir does
13498
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13500
# Whether we need a single -rpath flag with a separated argument.
13501
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13503
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13504
# resulting binary.
13505
hardcode_direct=$hardcode_direct_CXX
13507
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13508
# resulting binary.
13509
hardcode_minus_L=$hardcode_minus_L_CXX
13511
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13512
# the resulting binary.
13513
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13515
# Set to yes if building a shared library automatically hardcodes DIR into the library
13516
# and all subsequent libraries and executables linked against it.
13517
hardcode_automatic=$hardcode_automatic_CXX
13519
# Variables whose values should be saved in libtool wrapper scripts and
13520
# restored at relink time.
13521
variables_saved_for_relink="$variables_saved_for_relink"
13523
# Whether libtool must link a program against all its dependency libraries.
13524
link_all_deplibs=$link_all_deplibs_CXX
13526
# Compile-time system search path for libraries
13527
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13529
# Run-time system search path for libraries
13530
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13532
# Fix the shell variable \$srcfile for the compiler.
13533
fix_srcfile_path="$fix_srcfile_path_CXX"
13535
# Set to yes if exported symbols are required.
13536
always_export_symbols=$always_export_symbols_CXX
13538
# The commands to list exported symbols.
13539
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13541
# The commands to extract the exported symbol list from a shared archive.
13542
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13544
# Symbols that should not be listed in the preloaded symbols.
13545
exclude_expsyms=$lt_exclude_expsyms_CXX
13547
# Symbols that must always be exported.
13548
include_expsyms=$lt_include_expsyms_CXX
13550
# ### END LIBTOOL TAG CONFIG: $tagname
13556
# If there is no Makefile yet, we rely on a make rule to execute
13557
# `config.status --recheck' to rerun these tests and create the
13558
# libtool script then.
13559
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13560
if test -f "$ltmain_in"; then
13561
test -f Makefile && make "$ltmain"
13567
ac_cpp='$CPP $CPPFLAGS'
13568
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13569
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13570
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13576
with_gnu_ldcxx=$with_gnu_ld
13577
with_gnu_ld=$lt_save_with_gnu_ld
13578
lt_cv_path_LDCXX=$lt_cv_path_LD
13579
lt_cv_path_LD=$lt_save_path_LD
13580
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13581
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13589
if test -n "$F77" && test "X$F77" != "Xno"; then
13592
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13593
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13594
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13597
archive_cmds_need_lc_F77=no
13598
allow_undefined_flag_F77=
13599
always_export_symbols_F77=no
13600
archive_expsym_cmds_F77=
13601
export_dynamic_flag_spec_F77=
13602
hardcode_direct_F77=no
13603
hardcode_libdir_flag_spec_F77=
13604
hardcode_libdir_flag_spec_ld_F77=
13605
hardcode_libdir_separator_F77=
13606
hardcode_minus_L_F77=no
13607
hardcode_automatic_F77=no
13609
module_expsym_cmds_F77=
13610
link_all_deplibs_F77=unknown
13611
old_archive_cmds_F77=$old_archive_cmds
13612
no_undefined_flag_F77=
13613
whole_archive_flag_spec_F77=
13614
enable_shared_with_static_runtimes_F77=no
13616
# Source file extension for f77 test sources.
13619
# Object file extension for compiled f77 test sources.
13623
# Code to be used in simple compile tests
13624
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13626
# Code to be used in simple link tests
13627
lt_simple_link_test_code=" program t\n end\n"
13629
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13631
# If no C compiler was specified, use CC.
13634
# If no C compiler flags were specified, use CFLAGS.
13635
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13637
# Allow CC to be a program name with arguments.
13641
# save warnings/boilerplate of simple test code
13642
ac_outfile=conftest.$ac_objext
13643
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13644
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13645
_lt_compiler_boilerplate=`cat conftest.err`
13648
ac_outfile=conftest.$ac_objext
13649
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13650
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13651
_lt_linker_boilerplate=`cat conftest.err`
13655
# Allow CC to be a program name with arguments.
13660
for cc_temp in $compiler""; do
13662
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13663
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13668
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13671
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13672
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13673
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13674
echo "${ECHO_T}$can_build_shared" >&6; }
13676
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13677
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13678
test "$can_build_shared" = "no" && enable_shared=no
13680
# On AIX, shared libraries and static libraries use the same namespace, and
13681
# are all built from PIC.
13684
test "$enable_shared" = yes && enable_static=no
13685
if test -n "$RANLIB"; then
13686
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13687
postinstall_cmds='$RANLIB $lib'
13691
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13692
test "$enable_shared" = yes && enable_static=no
13696
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13697
echo "${ECHO_T}$enable_shared" >&6; }
13699
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13700
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13701
# Make sure either enable_shared or enable_static is yes.
13702
test "$enable_shared" = yes || enable_static=yes
13703
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13704
echo "${ECHO_T}$enable_static" >&6; }
13709
lt_prog_compiler_wl_F77=
13710
lt_prog_compiler_pic_F77=
13711
lt_prog_compiler_static_F77=
13713
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13714
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13716
if test "$GCC" = yes; then
13717
lt_prog_compiler_wl_F77='-Wl,'
13718
lt_prog_compiler_static_F77='-static'
13722
# All AIX code is PIC.
13723
if test "$host_cpu" = ia64; then
13724
# AIX 5 now supports IA64 processor
13725
lt_prog_compiler_static_F77='-Bstatic'
13730
# FIXME: we need at least 68020 code to build shared libraries, but
13731
# adding the `-m68020' flag to GCC prevents building anything better,
13733
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13736
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13737
# PIC is the default for these OSes.
13740
mingw* | pw32* | os2*)
13741
# This hack is so that the source file can tell whether it is being
13742
# built for inclusion in a dll (and should export symbols for example).
13743
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13746
darwin* | rhapsody*)
13747
# PIC is the default on this platform
13748
# Common symbols not allowed in MH_DYLIB files
13749
lt_prog_compiler_pic_F77='-fno-common'
13753
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13754
# Instead, we relocate shared libraries at runtime.
13758
# Just because we use GCC doesn't mean we suddenly get shared libraries
13759
# on systems that don't support them.
13760
lt_prog_compiler_can_build_shared_F77=no
13765
if test -d /usr/nec; then
13766
lt_prog_compiler_pic_F77=-Kconform_pic
13771
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13772
# not for PA HP-UX.
13778
lt_prog_compiler_pic_F77='-fPIC'
13784
lt_prog_compiler_pic_F77='-fPIC'
13788
# PORTME Check for flag to pass linker flags through the system compiler.
13791
lt_prog_compiler_wl_F77='-Wl,'
13792
if test "$host_cpu" = ia64; then
13793
# AIX 5 now supports IA64 processor
13794
lt_prog_compiler_static_F77='-Bstatic'
13796
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13800
# PIC is the default on this platform
13801
# Common symbols not allowed in MH_DYLIB files
13802
case $cc_basename in
13804
lt_prog_compiler_pic_F77='-qnocommon'
13805
lt_prog_compiler_wl_F77='-Wl,'
13810
mingw* | pw32* | os2*)
13811
# This hack is so that the source file can tell whether it is being
13812
# built for inclusion in a dll (and should export symbols for example).
13813
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13816
hpux9* | hpux10* | hpux11*)
13817
lt_prog_compiler_wl_F77='-Wl,'
13818
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13819
# not for PA HP-UX.
13825
lt_prog_compiler_pic_F77='+Z'
13828
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13829
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13832
irix5* | irix6* | nonstopux*)
13833
lt_prog_compiler_wl_F77='-Wl,'
13834
# PIC (with -KPIC) is the default.
13835
lt_prog_compiler_static_F77='-non_shared'
13839
lt_prog_compiler_pic_F77='-KPIC'
13840
lt_prog_compiler_static_F77='-Bstatic'
13844
case $cc_basename in
13846
lt_prog_compiler_wl_F77='-Wl,'
13847
lt_prog_compiler_pic_F77='-KPIC'
13848
lt_prog_compiler_static_F77='-static'
13850
pgcc* | pgf77* | pgf90* | pgf95*)
13851
# Portland Group compilers (*not* the Pentium gcc compiler,
13852
# which looks to be a dead project)
13853
lt_prog_compiler_wl_F77='-Wl,'
13854
lt_prog_compiler_pic_F77='-fpic'
13855
lt_prog_compiler_static_F77='-Bstatic'
13858
lt_prog_compiler_wl_F77='-Wl,'
13859
# All Alpha code is PIC.
13860
lt_prog_compiler_static_F77='-non_shared'
13865
osf3* | osf4* | osf5*)
13866
lt_prog_compiler_wl_F77='-Wl,'
13867
# All OSF/1 code is PIC.
13868
lt_prog_compiler_static_F77='-non_shared'
13872
lt_prog_compiler_pic_F77='-KPIC'
13873
lt_prog_compiler_static_F77='-Bstatic'
13874
case $cc_basename in
13875
f77* | f90* | f95*)
13876
lt_prog_compiler_wl_F77='-Qoption ld ';;
13878
lt_prog_compiler_wl_F77='-Wl,';;
13883
lt_prog_compiler_wl_F77='-Qoption ld '
13884
lt_prog_compiler_pic_F77='-PIC'
13885
lt_prog_compiler_static_F77='-Bstatic'
13888
sysv4 | sysv4.2uw2* | sysv4.3*)
13889
lt_prog_compiler_wl_F77='-Wl,'
13890
lt_prog_compiler_pic_F77='-KPIC'
13891
lt_prog_compiler_static_F77='-Bstatic'
13895
if test -d /usr/nec ;then
13896
lt_prog_compiler_pic_F77='-Kconform_pic'
13897
lt_prog_compiler_static_F77='-Bstatic'
13901
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902
lt_prog_compiler_wl_F77='-Wl,'
13903
lt_prog_compiler_pic_F77='-KPIC'
13904
lt_prog_compiler_static_F77='-Bstatic'
13908
lt_prog_compiler_wl_F77='-Wl,'
13909
lt_prog_compiler_can_build_shared_F77=no
13913
lt_prog_compiler_pic_F77='-pic'
13914
lt_prog_compiler_static_F77='-Bstatic'
13918
lt_prog_compiler_can_build_shared_F77=no
13923
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13924
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13927
# Check to make sure the PIC flag actually works.
13929
if test -n "$lt_prog_compiler_pic_F77"; then
13931
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13932
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13933
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13934
echo $ECHO_N "(cached) $ECHO_C" >&6
13936
lt_prog_compiler_pic_works_F77=no
13937
ac_outfile=conftest.$ac_objext
13938
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13939
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13940
# Insert the option either (1) after the last *FLAGS variable, or
13941
# (2) before a word containing "conftest.", or (3) at the end.
13942
# Note that $ac_compile itself does not contain backslashes and begins
13943
# with a dollar sign (not a hyphen), so the echo should work correctly.
13944
# The option is referenced via a variable to avoid confusing sed.
13945
lt_compile=`echo "$ac_compile" | $SED \
13946
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13947
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13948
-e 's:$: $lt_compiler_flag:'`
13949
(eval echo "\"\$as_me:13949: $lt_compile\"" >&5)
13950
(eval "$lt_compile" 2>conftest.err)
13952
cat conftest.err >&5
13953
echo "$as_me:13953: \$? = $ac_status" >&5
13954
if (exit $ac_status) && test -s "$ac_outfile"; then
13955
# The compiler can only warn and ignore the option if not recognized
13956
# So say no if there are warnings other than the usual output.
13957
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13958
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13959
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13960
lt_prog_compiler_pic_works_F77=yes
13966
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13967
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13969
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13970
case $lt_prog_compiler_pic_F77 in
13972
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13975
lt_prog_compiler_pic_F77=
13976
lt_prog_compiler_can_build_shared_F77=no
13981
# For platforms which do not support PIC, -DPIC is meaningless:
13983
lt_prog_compiler_pic_F77=
13986
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13991
# Check to make sure the static flag actually works.
13993
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13994
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13996
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13997
echo $ECHO_N "(cached) $ECHO_C" >&6
13999
lt_prog_compiler_static_works_F77=no
14000
save_LDFLAGS="$LDFLAGS"
14001
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14003
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004
# The linker can only warn and ignore the option if not recognized
14005
# So say no if there are warnings
14006
if test -s conftest.err; then
14007
# Append any errors to the config.log.
14008
cat conftest.err 1>&5
14009
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14010
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011
if diff conftest.exp conftest.er2 >/dev/null; then
14012
lt_prog_compiler_static_works_F77=yes
14015
lt_prog_compiler_static_works_F77=yes
14019
LDFLAGS="$save_LDFLAGS"
14022
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14023
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14025
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14028
lt_prog_compiler_static_F77=
14032
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14033
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14034
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14035
echo $ECHO_N "(cached) $ECHO_C" >&6
14037
lt_cv_prog_compiler_c_o_F77=no
14038
$rm -r conftest 2>/dev/null
14042
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14044
lt_compiler_flag="-o out/conftest2.$ac_objext"
14045
# Insert the option either (1) after the last *FLAGS variable, or
14046
# (2) before a word containing "conftest.", or (3) at the end.
14047
# Note that $ac_compile itself does not contain backslashes and begins
14048
# with a dollar sign (not a hyphen), so the echo should work correctly.
14049
lt_compile=`echo "$ac_compile" | $SED \
14050
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052
-e 's:$: $lt_compiler_flag:'`
14053
(eval echo "\"\$as_me:14053: $lt_compile\"" >&5)
14054
(eval "$lt_compile" 2>out/conftest.err)
14056
cat out/conftest.err >&5
14057
echo "$as_me:14057: \$? = $ac_status" >&5
14058
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14060
# The compiler can only warn and ignore the option if not recognized
14061
# So say no if there are warnings
14062
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14063
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14064
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14065
lt_cv_prog_compiler_c_o_F77=yes
14070
# SGI C++ compiler will create directory out/ii_files/ for
14071
# template instantiation
14072
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14073
$rm out/* && rmdir out
14079
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14080
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14083
hard_links="nottested"
14084
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14085
# do not overwrite the value of need_locks provided by the user
14086
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14087
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14090
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14092
ln conftest.a conftest.b 2>&5 || hard_links=no
14093
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14094
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14095
echo "${ECHO_T}$hard_links" >&6; }
14096
if test "$hard_links" = no; then
14097
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14098
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14105
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14106
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14109
allow_undefined_flag_F77=
14110
enable_shared_with_static_runtimes_F77=no
14112
archive_expsym_cmds_F77=
14113
old_archive_From_new_cmds_F77=
14114
old_archive_from_expsyms_cmds_F77=
14115
export_dynamic_flag_spec_F77=
14116
whole_archive_flag_spec_F77=
14117
thread_safe_flag_spec_F77=
14118
hardcode_libdir_flag_spec_F77=
14119
hardcode_libdir_flag_spec_ld_F77=
14120
hardcode_libdir_separator_F77=
14121
hardcode_direct_F77=no
14122
hardcode_minus_L_F77=no
14123
hardcode_shlibpath_var_F77=unsupported
14124
link_all_deplibs_F77=unknown
14125
hardcode_automatic_F77=no
14127
module_expsym_cmds_F77=
14128
always_export_symbols_F77=no
14129
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130
# include_expsyms should be a list of space-separated symbols to be *always*
14131
# included in the symbol list
14132
include_expsyms_F77=
14133
# exclude_expsyms can be an extended regexp of symbols to exclude
14134
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14135
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14136
# as well as any symbol that contains `d'.
14137
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14138
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14139
# platforms (ab)use it in PIC code, but their linkers get confused if
14140
# the symbol is explicitly referenced. Since portable code cannot
14141
# rely on this symbol name, it's probably fine to never include it in
14142
# preloaded symbol tables.
14143
extract_expsyms_cmds=
14144
# Just being paranoid about ensuring that cc_basename is set.
14145
for cc_temp in $compiler""; do
14147
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14148
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14153
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14156
cygwin* | mingw* | pw32*)
14157
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14158
# When not using gcc, we currently assume that we are using
14159
# Microsoft Visual C++.
14160
if test "$GCC" != yes; then
14165
# we just hope/assume this is gcc and not c89 (= MSVC++)
14174
if test "$with_gnu_ld" = yes; then
14175
# If archive_cmds runs LD, not CC, wlarc should be empty
14178
# Set some defaults for GNU ld with shared library support. These
14179
# are reset later if shared libraries are not supported. Putting them
14180
# here allows them to be overridden if necessary.
14181
runpath_var=LD_RUN_PATH
14182
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14183
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14184
# ancient GNU ld didn't support --whole-archive et. al.
14185
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14186
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14188
whole_archive_flag_spec_F77=
14190
supports_anon_versioning=no
14191
case `$LD -v 2>/dev/null` in
14192
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14193
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14194
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14195
*\ 2.11.*) ;; # other 2.11 versions
14196
*) supports_anon_versioning=yes ;;
14199
# See if GNU ld supports shared libraries.
14201
aix3* | aix4* | aix5*)
14202
# On AIX/PPC, the GNU linker is very broken
14203
if test "$host_cpu" != ia64; then
14207
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14208
*** to be unable to reliably create shared libraries on AIX.
14209
*** Therefore, libtool is disabling shared libraries support. If you
14210
*** really care for shared libraries, you may want to modify your PATH
14211
*** so that a non-GNU linker is found, and then restart.
14218
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)'
14219
hardcode_libdir_flag_spec_F77='-L$libdir'
14220
hardcode_minus_L_F77=yes
14222
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14223
# that the semantics of dynamic libraries on AmigaOS, at least up
14224
# to version 4, is to share data among multiple programs linked
14225
# with the same dynamic library. Since this doesn't match the
14226
# behavior of shared libraries on other platforms, we can't use
14232
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14233
allow_undefined_flag_F77=unsupported
14234
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14235
# support --undefined. This deserves some investigation. FIXME
14236
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242
cygwin* | mingw* | pw32*)
14243
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14244
# as there is no search path for DLLs.
14245
hardcode_libdir_flag_spec_F77='-L$libdir'
14246
allow_undefined_flag_F77=unsupported
14247
always_export_symbols_F77=no
14248
enable_shared_with_static_runtimes_F77=yes
14249
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14251
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14252
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14253
# If the export-symbols file already is a .def file (1st line
14254
# is EXPORTS), use it as is; otherwise, prepend...
14255
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14256
cp $export_symbols $output_objdir/$soname.def;
14258
echo EXPORTS > $output_objdir/$soname.def;
14259
cat $export_symbols >> $output_objdir/$soname.def;
14261
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14268
hardcode_direct_F77=no
14269
hardcode_shlibpath_var_F77=no
14270
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14271
export_dynamic_flag_spec_F77='${wl}-E'
14272
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14273
# Instead, shared libraries are loaded at an image base (0x10000000 by
14274
# default) and relocated if they conflict, which is a slow very memory
14275
# consuming and fragmenting process. To avoid this, we pick a random,
14276
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14277
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14278
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'
14279
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'
14283
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14285
case $cc_basename,$host_cpu in
14286
pgcc*) # Portland Group C compiler
14287
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'
14288
tmp_addflag=' $pic_flag'
14290
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14291
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'
14292
tmp_addflag=' $pic_flag -Mnomain' ;;
14293
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14294
tmp_addflag=' -i_dynamic' ;;
14295
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14296
tmp_addflag=' -i_dynamic -nofor_main' ;;
14297
ifc* | ifort*) # Intel Fortran compiler
14298
tmp_addflag=' -nofor_main' ;;
14300
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14302
if test $supports_anon_versioning = yes; then
14303
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14304
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14305
$echo "local: *; };" >> $output_objdir/$libname.ver~
14306
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14314
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14315
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14318
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14328
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14329
*** create shared libraries on Solaris systems. Therefore, libtool
14330
*** is disabling shared libraries support. We urge you to upgrade GNU
14331
*** binutils to release 2.9.1 or newer. Another option is to modify
14332
*** your PATH or compiler configuration so that the native linker is
14333
*** used, and then restart.
14336
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14344
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14345
case `$LD -v 2>&1` in
14346
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14350
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14351
*** reliably create shared libraries on SCO systems. Therefore, libtool
14352
*** is disabling shared libraries support. We urge you to upgrade GNU
14353
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14354
*** your PATH or compiler configuration so that the native linker is
14355
*** used, and then restart.
14360
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14361
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14362
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14363
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14372
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14374
hardcode_direct_F77=yes
14375
hardcode_shlibpath_var_F77=no
14379
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14380
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14381
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14388
if test "$ld_shlibs_F77" = no; then
14390
hardcode_libdir_flag_spec_F77=
14391
export_dynamic_flag_spec_F77=
14392
whole_archive_flag_spec_F77=
14395
# PORTME fill in a description of your system's linker (not GNU ld)
14398
allow_undefined_flag_F77=unsupported
14399
always_export_symbols_F77=yes
14400
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'
14401
# Note: this linker hardcodes the directories in LIBPATH if there
14402
# are no directories specified by -L.
14403
hardcode_minus_L_F77=yes
14404
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14405
# Neither direct hardcoding nor static linking is supported with a
14407
hardcode_direct_F77=unsupported
14412
if test "$host_cpu" = ia64; then
14413
# On IA64, the linker does run time linking by default, so we don't
14414
# have to do anything special.
14415
aix_use_runtimelinking=no
14416
exp_sym_flag='-Bexport'
14419
# If we're using GNU nm, then we don't want the "-C" option.
14420
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14421
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14422
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'
14424
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'
14426
aix_use_runtimelinking=no
14428
# Test if we are trying to use run time linking or normal
14429
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14430
# need to do runtime linking.
14431
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14432
for ld_flag in $LDFLAGS; do
14433
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14434
aix_use_runtimelinking=yes
14441
exp_sym_flag='-bexport'
14442
no_entry_flag='-bnoentry'
14445
# When large executables or shared objects are built, AIX ld can
14446
# have problems creating the table of contents. If linking a library
14447
# or program results in "error TOC overflow" add -mminimal-toc to
14448
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14449
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14451
archive_cmds_F77=''
14452
hardcode_direct_F77=yes
14453
hardcode_libdir_separator_F77=':'
14454
link_all_deplibs_F77=yes
14456
if test "$GCC" = yes; then
14457
case $host_os in aix4.[012]|aix4.[012].*)
14458
# We only want to do this on AIX 4.2 and lower, the check
14459
# below for broken collect2 doesn't work under 4.3+
14460
collect2name=`${CC} -print-prog-name=collect2`
14461
if test -f "$collect2name" && \
14462
strings "$collect2name" | grep resolve_lib_name >/dev/null
14464
# We have reworked collect2
14465
hardcode_direct_F77=yes
14467
# We have old collect2
14468
hardcode_direct_F77=unsupported
14469
# It fails to find uninstalled libraries when the uninstalled
14470
# path is not listed in the libpath. Setting hardcode_minus_L
14471
# to unsupported forces relinking
14472
hardcode_minus_L_F77=yes
14473
hardcode_libdir_flag_spec_F77='-L$libdir'
14474
hardcode_libdir_separator_F77=
14478
shared_flag='-shared'
14479
if test "$aix_use_runtimelinking" = yes; then
14480
shared_flag="$shared_flag "'${wl}-G'
14484
if test "$host_cpu" = ia64; then
14485
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14486
# chokes on -Wl,-G. The following line is correct:
14489
if test "$aix_use_runtimelinking" = yes; then
14490
shared_flag='${wl}-G'
14492
shared_flag='${wl}-bM:SRE'
14497
# It seems that -bexpall does not export symbols beginning with
14498
# underscore (_), so it is better to generate a list of symbols to export.
14499
always_export_symbols_F77=yes
14500
if test "$aix_use_runtimelinking" = yes; then
14501
# Warning - without using the other runtime loading flags (-brtl),
14502
# -berok will link without error, but may produce a broken library.
14503
allow_undefined_flag_F77='-berok'
14504
# Determine the default libpath from the value encoded in an empty executable.
14505
cat >conftest.$ac_ext <<_ACEOF
14510
rm -f conftest.$ac_objext conftest$ac_exeext
14511
if { (ac_try="$ac_link"
14512
case "(($ac_try" in
14513
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514
*) ac_try_echo=$ac_try;;
14516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517
(eval "$ac_link") 2>conftest.er1
14519
grep -v '^ *+' conftest.er1 >conftest.err
14521
cat conftest.err >&5
14522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523
(exit $ac_status); } && {
14524
test -z "$ac_f77_werror_flag" ||
14525
test ! -s conftest.err
14526
} && test -s conftest$ac_exeext &&
14527
$as_test_x conftest$ac_exeext; then
14529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14531
# Check for a 64-bit object if we didn't find anything.
14532
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; }
14535
echo "$as_me: failed program was:" >&5
14536
sed 's/^/| /' conftest.$ac_ext >&5
14541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14542
conftest$ac_exeext conftest.$ac_ext
14543
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14545
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546
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"
14548
if test "$host_cpu" = ia64; then
14549
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14550
allow_undefined_flag_F77="-z nodefs"
14551
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"
14553
# Determine the default libpath from the value encoded in an empty executable.
14554
cat >conftest.$ac_ext <<_ACEOF
14559
rm -f conftest.$ac_objext conftest$ac_exeext
14560
if { (ac_try="$ac_link"
14561
case "(($ac_try" in
14562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563
*) ac_try_echo=$ac_try;;
14565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566
(eval "$ac_link") 2>conftest.er1
14568
grep -v '^ *+' conftest.er1 >conftest.err
14570
cat conftest.err >&5
14571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572
(exit $ac_status); } && {
14573
test -z "$ac_f77_werror_flag" ||
14574
test ! -s conftest.err
14575
} && test -s conftest$ac_exeext &&
14576
$as_test_x conftest$ac_exeext; then
14578
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14580
# Check for a 64-bit object if we didn't find anything.
14581
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; }
14584
echo "$as_me: failed program was:" >&5
14585
sed 's/^/| /' conftest.$ac_ext >&5
14590
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14591
conftest$ac_exeext conftest.$ac_ext
14592
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14594
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14595
# Warning - without using the other run time loading flags,
14596
# -berok will link without error, but may produce a broken library.
14597
no_undefined_flag_F77=' ${wl}-bernotok'
14598
allow_undefined_flag_F77=' ${wl}-berok'
14599
# Exported symbols can be pulled into shared objects from archives
14600
whole_archive_flag_spec_F77='$convenience'
14601
archive_cmds_need_lc_F77=yes
14602
# This is similar to how AIX traditionally builds its shared libraries.
14603
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'
14609
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)'
14610
hardcode_libdir_flag_spec_F77='-L$libdir'
14611
hardcode_minus_L_F77=yes
14612
# see comment about different semantics on the GNU ld section
14617
export_dynamic_flag_spec_F77=-rdynamic
14620
cygwin* | mingw* | pw32*)
14621
# When not using gcc, we currently assume that we are using
14622
# Microsoft Visual C++.
14623
# hardcode_libdir_flag_spec is actually meaningless, as there is
14624
# no search path for DLLs.
14625
hardcode_libdir_flag_spec_F77=' '
14626
allow_undefined_flag_F77=unsupported
14627
# Tell ltmain to make .lib files, not .a files.
14629
# Tell ltmain to make .dll files, not .so files.
14631
# FIXME: Setting linknames here is a bad hack.
14632
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14633
# The linker will automatically build a .lib file if we build a DLL.
14634
old_archive_From_new_cmds_F77='true'
14635
# FIXME: Should let the user specify the lib program.
14636
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14637
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14638
enable_shared_with_static_runtimes_F77=yes
14641
darwin* | rhapsody*)
14643
rhapsody* | darwin1.[012])
14644
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14647
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14648
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14650
case ${MACOSX_DEPLOYMENT_TARGET} in
14652
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14655
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14661
archive_cmds_need_lc_F77=no
14662
hardcode_direct_F77=no
14663
hardcode_automatic_F77=yes
14664
hardcode_shlibpath_var_F77=unsupported
14665
whole_archive_flag_spec_F77=''
14666
link_all_deplibs_F77=yes
14667
if test "$GCC" = yes ; then
14668
output_verbose_link_cmd='echo'
14669
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14670
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14671
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14672
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}'
14673
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}'
14675
case $cc_basename in
14677
output_verbose_link_cmd='echo'
14678
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14679
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14680
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14681
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}'
14682
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}'
14692
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14693
hardcode_libdir_flag_spec_F77='-L$libdir'
14694
hardcode_shlibpath_var_F77=no
14701
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14702
# support. Future versions do this automatically, but an explicit c++rt0.o
14703
# does not break anything, and helps significantly (at the cost of a little
14706
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14707
hardcode_libdir_flag_spec_F77='-R$libdir'
14708
hardcode_direct_F77=yes
14709
hardcode_shlibpath_var_F77=no
14712
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14714
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14715
hardcode_direct_F77=yes
14716
hardcode_minus_L_F77=yes
14717
hardcode_shlibpath_var_F77=no
14720
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14721
freebsd* | kfreebsd*-gnu | dragonfly*)
14722
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14723
hardcode_libdir_flag_spec_F77='-R$libdir'
14724
hardcode_direct_F77=yes
14725
hardcode_shlibpath_var_F77=no
14729
if test "$GCC" = yes; then
14730
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'
14732
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'
14734
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14735
hardcode_libdir_separator_F77=:
14736
hardcode_direct_F77=yes
14738
# hardcode_minus_L: Not really in the search PATH,
14739
# but as the default location of the library.
14740
hardcode_minus_L_F77=yes
14741
export_dynamic_flag_spec_F77='${wl}-E'
14745
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14746
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14748
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14750
if test "$with_gnu_ld" = no; then
14751
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14752
hardcode_libdir_separator_F77=:
14754
hardcode_direct_F77=yes
14755
export_dynamic_flag_spec_F77='${wl}-E'
14757
# hardcode_minus_L: Not really in the search PATH,
14758
# but as the default location of the library.
14759
hardcode_minus_L_F77=yes
14764
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14767
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14770
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14773
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14779
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14782
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14785
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789
if test "$with_gnu_ld" = no; then
14790
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14791
hardcode_libdir_separator_F77=:
14795
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14796
hardcode_direct_F77=no
14797
hardcode_shlibpath_var_F77=no
14800
hardcode_direct_F77=yes
14801
export_dynamic_flag_spec_F77='${wl}-E'
14803
# hardcode_minus_L: Not really in the search PATH,
14804
# but as the default location of the library.
14805
hardcode_minus_L_F77=yes
14811
irix5* | irix6* | nonstopux*)
14812
if test "$GCC" = yes; then
14813
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'
14815
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'
14816
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14818
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14819
hardcode_libdir_separator_F77=:
14820
link_all_deplibs_F77=yes
14824
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14825
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14827
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14829
hardcode_libdir_flag_spec_F77='-R$libdir'
14830
hardcode_direct_F77=yes
14831
hardcode_shlibpath_var_F77=no
14835
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14836
hardcode_direct_F77=yes
14837
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14838
hardcode_libdir_separator_F77=:
14839
hardcode_shlibpath_var_F77=no
14843
hardcode_direct_F77=yes
14844
hardcode_shlibpath_var_F77=no
14845
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14846
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14847
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14848
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14849
export_dynamic_flag_spec_F77='${wl}-E'
14852
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14853
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14854
hardcode_libdir_flag_spec_F77='-R$libdir'
14857
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14858
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14865
hardcode_libdir_flag_spec_F77='-L$libdir'
14866
hardcode_minus_L_F77=yes
14867
allow_undefined_flag_F77=unsupported
14868
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'
14869
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14873
if test "$GCC" = yes; then
14874
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14875
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'
14877
allow_undefined_flag_F77=' -expect_unresolved \*'
14878
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'
14880
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881
hardcode_libdir_separator_F77=:
14884
osf4* | osf5*) # as osf3* with the addition of -msym flag
14885
if test "$GCC" = yes; then
14886
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14887
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'
14888
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14890
allow_undefined_flag_F77=' -expect_unresolved \*'
14891
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'
14892
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~
14893
$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'
14895
# Both c and cxx compiler support -rpath directly
14896
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14898
hardcode_libdir_separator_F77=:
14902
no_undefined_flag_F77=' -z text'
14903
if test "$GCC" = yes; then
14905
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14906
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14907
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14910
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14911
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14912
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14914
hardcode_libdir_flag_spec_F77='-R$libdir'
14915
hardcode_shlibpath_var_F77=no
14917
solaris2.[0-5] | solaris2.[0-5].*) ;;
14919
# The compiler driver will combine linker options so we
14920
# cannot just pass the convience library names through
14921
# without $wl, iff we do not link with $LD.
14922
# Luckily, gcc supports the same syntax we need for Sun Studio.
14923
# Supported since Solaris 2.6 (maybe 2.5.1?)
14926
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14928
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' ;;
14931
link_all_deplibs_F77=yes
14935
if test "x$host_vendor" = xsequent; then
14936
# Use $CC to link under sequent, because it throws in some extra .o
14937
# files that make .init and .fini sections work.
14938
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14940
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14942
hardcode_libdir_flag_spec_F77='-L$libdir'
14943
hardcode_direct_F77=yes
14944
hardcode_minus_L_F77=yes
14945
hardcode_shlibpath_var_F77=no
14949
case $host_vendor in
14951
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14952
hardcode_direct_F77=yes # is this really true???
14955
## LD is ld it makes a PLAMLIB
14956
## CC just makes a GrossModule.
14957
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14958
reload_cmds_F77='$CC -r -o $output$reload_objs'
14959
hardcode_direct_F77=no
14962
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14966
runpath_var='LD_RUN_PATH'
14967
hardcode_shlibpath_var_F77=no
14971
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972
hardcode_shlibpath_var_F77=no
14973
export_dynamic_flag_spec_F77='-Bexport'
14977
if test -d /usr/nec; then
14978
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979
hardcode_shlibpath_var_F77=no
14980
runpath_var=LD_RUN_PATH
14981
hardcode_runpath_var=yes
14986
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14987
no_undefined_flag_F77='${wl}-z,text'
14988
archive_cmds_need_lc_F77=no
14989
hardcode_shlibpath_var_F77=no
14990
runpath_var='LD_RUN_PATH'
14992
if test "$GCC" = yes; then
14993
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001
sysv5* | sco3.2v5* | sco5v6*)
15002
# Note: We can NOT use -z defs as we might desire, because we do not
15003
# link with -lc, and that would cause any symbols used from libc to
15004
# always be unresolved, which means just about no library would
15005
# ever link correctly. If we're not using GNU ld we use -z text
15006
# though, which does catch some bad symbols but isn't as heavy-handed
15008
no_undefined_flag_F77='${wl}-z,text'
15009
allow_undefined_flag_F77='${wl}-z,nodefs'
15010
archive_cmds_need_lc_F77=no
15011
hardcode_shlibpath_var_F77=no
15012
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15013
hardcode_libdir_separator_F77=':'
15014
link_all_deplibs_F77=yes
15015
export_dynamic_flag_spec_F77='${wl}-Bexport'
15016
runpath_var='LD_RUN_PATH'
15018
if test "$GCC" = yes; then
15019
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15020
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15022
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15023
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15028
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029
hardcode_libdir_flag_spec_F77='-L$libdir'
15030
hardcode_shlibpath_var_F77=no
15039
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15040
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15041
test "$ld_shlibs_F77" = no && can_build_shared=no
15044
# Do we need to explicitly link libc?
15046
case "x$archive_cmds_need_lc_F77" in
15048
# Assume -lc should be added
15049
archive_cmds_need_lc_F77=yes
15051
if test "$enable_shared" = yes && test "$GCC" = yes; then
15052
case $archive_cmds_F77 in
15054
# FIXME: we may have to deal with multi-command sequences.
15057
# Test whether the compiler implicitly links with -lc since on some
15058
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15059
# to ld, don't add -lc before -lgcc.
15060
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066
(eval $ac_compile) 2>&5
15068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069
(exit $ac_status); } 2>conftest.err; then
15072
libobjs=conftest.$ac_objext
15074
wl=$lt_prog_compiler_wl_F77
15075
pic_flag=$lt_prog_compiler_pic_F77
15081
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15082
allow_undefined_flag_F77=
15083
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087
(exit $ac_status); }
15089
archive_cmds_need_lc_F77=no
15091
archive_cmds_need_lc_F77=yes
15093
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15095
cat conftest.err 1>&5
15098
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15099
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15106
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15107
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15108
library_names_spec=
15109
libname_spec='lib$name'
15113
postuninstall_cmds=
15117
shlibpath_overrides_runpath=unknown
15119
dynamic_linker="$host_os ld.so"
15120
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15121
if test "$GCC" = yes; then
15122
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15123
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15124
# if the path contains ";" then we assume it to be the separator
15125
# otherwise default to the standard path separator (i.e. ":") - it is
15126
# assumed that no part of a normal pathname contains ";" but that should
15127
# okay in the real world where ";" in dirpaths is itself problematic.
15128
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15130
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15133
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15135
need_lib_prefix=unknown
15136
hardcode_into_libs=no
15138
# when you set need_version to no, make sure it does not cause -set_version
15139
# flags to be left without arguments
15140
need_version=unknown
15145
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15146
shlibpath_var=LIBPATH
15148
# AIX 3 has no versioning support, so we append a major version to the name.
15149
soname_spec='${libname}${release}${shared_ext}$major'
15156
hardcode_into_libs=yes
15157
if test "$host_cpu" = ia64; then
15158
# AIX 5 supports IA64
15159
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15160
shlibpath_var=LD_LIBRARY_PATH
15162
# With GCC up to 2.95.x, collect2 would create an import file
15163
# for dependence libraries. The import file would start with
15164
# the line `#! .'. This would cause the generated library to
15165
# depend on `.', always an invalid library. This was fixed in
15166
# development snapshots of GCC prior to 3.0.
15168
aix4 | aix4.[01] | aix4.[01].*)
15169
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15171
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15174
can_build_shared=no
15178
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15179
# soname into executable. Probably we can add versioning support to
15180
# collect2, so additional links can be useful in future.
15181
if test "$aix_use_runtimelinking" = yes; then
15182
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15183
# instead of lib<name>.a to let people know that these are not
15184
# typical AIX shared libraries.
15185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187
# We preserve .a as extension for shared libraries through AIX4.2
15188
# and later when we are not doing run time linking.
15189
library_names_spec='${libname}${release}.a $libname.a'
15190
soname_spec='${libname}${release}${shared_ext}$major'
15192
shlibpath_var=LIBPATH
15197
library_names_spec='$libname.ixlibrary $libname.a'
15198
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15199
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'
15203
library_names_spec='${libname}${shared_ext}'
15204
dynamic_linker="$host_os ld.so"
15205
shlibpath_var=LIBRARY_PATH
15211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212
soname_spec='${libname}${release}${shared_ext}$major'
15213
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15214
shlibpath_var=LD_LIBRARY_PATH
15215
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15216
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15217
# the default ld.so.conf also contains /usr/contrib/lib and
15218
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15219
# libtool to hard-code these into programs
15222
cygwin* | mingw* | pw32*)
15223
version_type=windows
15228
case $GCC,$host_os in
15229
yes,cygwin* | yes,mingw* | yes,pw32*)
15230
library_names_spec='$libname.dll.a'
15231
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15232
postinstall_cmds='base_file=`basename \${file}`~
15233
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15234
dldir=$destdir/`dirname \$dlpath`~
15235
test -d \$dldir || mkdir -p \$dldir~
15236
$install_prog $dir/$dlname \$dldir/$dlname~
15237
chmod a+x \$dldir/$dlname'
15238
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15239
dlpath=$dir/\$dldll~
15241
shlibpath_overrides_runpath=yes
15245
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15246
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15247
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250
# MinGW DLLs use traditional 'lib' prefix
15251
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15252
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15253
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15254
# It is most probably a Windows format PATH printed by
15255
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15256
# path with ; separators, and with drive letters. We can handle the
15257
# drive letters (cygwin fileutils understands them), so leave them,
15258
# especially as we might pass files found there to a mingw objdump,
15259
# which wouldn't understand a cygwinified path. Ahh.
15260
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15262
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15266
# pw32 DLLs use 'pw' prefix rather than 'lib'
15267
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15273
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276
dynamic_linker='Win32 ld.exe'
15277
# FIXME: first we should search . and the directory the executable is in
15281
darwin* | rhapsody*)
15282
dynamic_linker="$host_os dyld"
15283
version_type=darwin
15286
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15287
soname_spec='${libname}${release}${major}$shared_ext'
15288
shlibpath_overrides_runpath=yes
15289
shlibpath_var=DYLD_LIBRARY_PATH
15290
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15291
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15292
if test "$GCC" = yes; then
15293
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"`
15295
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15297
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15305
soname_spec='${libname}${release}${shared_ext}$major'
15306
shlibpath_var=LD_LIBRARY_PATH
15317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15318
soname_spec='${libname}${release}${shared_ext}$major'
15319
shlibpath_var=LD_LIBRARY_PATH
15320
shlibpath_overrides_runpath=no
15321
hardcode_into_libs=yes
15322
dynamic_linker='GNU ld.so'
15325
freebsd* | dragonfly*)
15326
# DragonFly does not have aout. When/if they implement a new
15327
# versioning mechanism, adjust this.
15328
if test -x /usr/bin/objformat; then
15329
objformat=`/usr/bin/objformat`
15332
freebsd[123]*) objformat=aout ;;
15333
*) objformat=elf ;;
15336
version_type=freebsd-$objformat
15337
case $version_type in
15339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15344
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15348
shlibpath_var=LD_LIBRARY_PATH
15351
shlibpath_overrides_runpath=yes
15353
freebsd3.[01]* | freebsdelf3.[01]*)
15354
shlibpath_overrides_runpath=yes
15355
hardcode_into_libs=yes
15357
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15358
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15359
shlibpath_overrides_runpath=no
15360
hardcode_into_libs=yes
15362
freebsd*) # from 4.6 on
15363
shlibpath_overrides_runpath=yes
15364
hardcode_into_libs=yes
15373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15374
soname_spec='${libname}${release}${shared_ext}$major'
15375
shlibpath_var=LD_LIBRARY_PATH
15376
hardcode_into_libs=yes
15379
hpux9* | hpux10* | hpux11*)
15380
# Give a soname corresponding to the major version so that dld.sl refuses to
15381
# link against other versions.
15388
hardcode_into_libs=yes
15389
dynamic_linker="$host_os dld.so"
15390
shlibpath_var=LD_LIBRARY_PATH
15391
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393
soname_spec='${libname}${release}${shared_ext}$major'
15394
if test "X$HPUX_IA64_MODE" = X32; then
15395
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15397
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15399
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15403
hardcode_into_libs=yes
15404
dynamic_linker="$host_os dld.sl"
15405
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15406
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408
soname_spec='${libname}${release}${shared_ext}$major'
15409
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15410
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15414
dynamic_linker="$host_os dld.sl"
15415
shlibpath_var=SHLIB_PATH
15416
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418
soname_spec='${libname}${release}${shared_ext}$major'
15421
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15422
postinstall_cmds='chmod 555 $lib'
15429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430
soname_spec='${libname}${release}${shared_ext}$major'
15431
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15432
shlibpath_var=LD_LIBRARY_PATH
15433
shlibpath_overrides_runpath=no
15434
hardcode_into_libs=yes
15437
irix5* | irix6* | nonstopux*)
15439
nonstopux*) version_type=nonstopux ;;
15441
if test "$lt_cv_prog_gnu_ld" = yes; then
15449
soname_spec='${libname}${release}${shared_ext}$major'
15450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15452
irix5* | nonstopux*)
15453
libsuff= shlibsuff=
15456
case $LD in # libtool.m4 will add one of these switches to LD
15457
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15458
libsuff= shlibsuff= libmagic=32-bit;;
15459
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15460
libsuff=32 shlibsuff=N32 libmagic=N32;;
15461
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15462
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15463
*) libsuff= shlibsuff= libmagic=never-match;;
15467
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15468
shlibpath_overrides_runpath=no
15469
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15470
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15471
hardcode_into_libs=yes
15474
# No shared lib support for Linux oldld, aout, or coff.
15475
linux*oldld* | linux*aout* | linux*coff*)
15479
# This must be Linux ELF.
15484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485
soname_spec='${libname}${release}${shared_ext}$major'
15486
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15487
shlibpath_var=LD_LIBRARY_PATH
15488
shlibpath_overrides_runpath=no
15489
# This implies no fast_install, which is unacceptable.
15490
# Some rework will be needed to allow for fast_install
15491
# before this can be enabled.
15492
hardcode_into_libs=yes
15494
# find out which ABI we are using
15496
case "$host_cpu" in
15497
x86_64*|s390x*|powerpc64*)
15498
echo '#line 15498 "configure"' > conftest.$ac_ext
15499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500
(eval $ac_compile) 2>&5
15502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503
(exit $ac_status); }; then
15504
case `/usr/bin/file conftest.$ac_objext` in
15507
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15515
# Append ld.so.conf contents to the search path
15516
if test -f /etc/ld.so.conf; then
15517
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' ' '`
15518
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15521
# We used to test for /lib/ld.so.1 and disable shared libraries on
15522
# powerpc, because MkLinux only supported shared libraries with the
15523
# GNU dynamic linker. Since this was broken with cross compilers,
15524
# most powerpc-linux boxes support dynamic linking these days and
15525
# people can always --disable-shared, the test was removed, and we
15526
# assume the GNU/Linux dynamic linker is in use.
15527
dynamic_linker='GNU/Linux ld.so'
15534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15535
soname_spec='${libname}${release}${shared_ext}$major'
15536
shlibpath_var=LD_LIBRARY_PATH
15537
shlibpath_overrides_runpath=no
15538
hardcode_into_libs=yes
15539
dynamic_linker='GNU ld.so'
15546
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15548
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15549
dynamic_linker='NetBSD (a.out) ld.so'
15551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15552
soname_spec='${libname}${release}${shared_ext}$major'
15553
dynamic_linker='NetBSD ld.elf_so'
15555
shlibpath_var=LD_LIBRARY_PATH
15556
shlibpath_overrides_runpath=yes
15557
hardcode_into_libs=yes
15562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563
shlibpath_var=LD_LIBRARY_PATH
15564
shlibpath_overrides_runpath=yes
15571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572
soname_spec='${libname}${release}${shared_ext}$major'
15573
shlibpath_var=LD_LIBRARY_PATH
15574
shlibpath_overrides_runpath=yes
15579
sys_lib_dlsearch_path_spec="/usr/lib"
15581
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15583
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15584
*) need_version=no ;;
15586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15587
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15588
shlibpath_var=LD_LIBRARY_PATH
15589
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15591
openbsd2.[89] | openbsd2.[89].*)
15592
shlibpath_overrides_runpath=no
15595
shlibpath_overrides_runpath=yes
15599
shlibpath_overrides_runpath=yes
15604
libname_spec='$name'
15607
library_names_spec='$libname${shared_ext} $libname.a'
15608
dynamic_linker='OS/2 ld.exe'
15609
shlibpath_var=LIBPATH
15612
osf3* | osf4* | osf5*)
15616
soname_spec='${libname}${release}${shared_ext}$major'
15617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618
shlibpath_var=LD_LIBRARY_PATH
15619
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15620
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628
soname_spec='${libname}${release}${shared_ext}$major'
15629
shlibpath_var=LD_LIBRARY_PATH
15630
shlibpath_overrides_runpath=yes
15631
hardcode_into_libs=yes
15632
# ldd complains unless libraries are executable
15633
postinstall_cmds='chmod +x $lib'
15638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15640
shlibpath_var=LD_LIBRARY_PATH
15641
shlibpath_overrides_runpath=yes
15642
if test "$with_gnu_ld" = yes; then
15650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651
soname_spec='${libname}${release}${shared_ext}$major'
15652
shlibpath_var=LD_LIBRARY_PATH
15653
case $host_vendor in
15655
shlibpath_overrides_runpath=no
15657
export_dynamic_flag_spec='${wl}-Blargedynsym'
15658
runpath_var=LD_RUN_PATH
15666
shlibpath_overrides_runpath=no
15667
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15673
if test -d /usr/nec ;then
15675
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15676
soname_spec='$libname${shared_ext}.$major'
15677
shlibpath_var=LD_LIBRARY_PATH
15681
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15682
version_type=freebsd-elf
15685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686
soname_spec='${libname}${release}${shared_ext}$major'
15687
shlibpath_var=LD_LIBRARY_PATH
15688
hardcode_into_libs=yes
15689
if test "$with_gnu_ld" = yes; then
15690
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15691
shlibpath_overrides_runpath=no
15693
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15694
shlibpath_overrides_runpath=yes
15697
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15701
sys_lib_dlsearch_path_spec='/usr/lib'
15706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707
soname_spec='${libname}${release}${shared_ext}$major'
15708
shlibpath_var=LD_LIBRARY_PATH
15715
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15716
echo "${ECHO_T}$dynamic_linker" >&6; }
15717
test "$dynamic_linker" = no && can_build_shared=no
15719
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15720
if test "$GCC" = yes; then
15721
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15724
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15725
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15726
hardcode_action_F77=
15727
if test -n "$hardcode_libdir_flag_spec_F77" || \
15728
test -n "$runpath_var_F77" || \
15729
test "X$hardcode_automatic_F77" = "Xyes" ; then
15731
# We can hardcode non-existant directories.
15732
if test "$hardcode_direct_F77" != no &&
15733
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15734
# have to relink, otherwise we might link with an installed library
15735
# when we should be linking with a yet-to-be-installed one
15736
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15737
test "$hardcode_minus_L_F77" != no; then
15738
# Linking always hardcodes the temporary library directory.
15739
hardcode_action_F77=relink
15741
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15742
hardcode_action_F77=immediate
15745
# We cannot hardcode anything, or else we can only hardcode existing
15747
hardcode_action_F77=unsupported
15749
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15750
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15752
if test "$hardcode_action_F77" = relink; then
15753
# Fast installation is not supported
15754
enable_fast_install=no
15755
elif test "$shlibpath_overrides_runpath" = yes ||
15756
test "$enable_shared" = no; then
15757
# Fast installation is not necessary
15758
enable_fast_install=needless
15762
# The else clause should only fire when bootstrapping the
15763
# libtool distribution, otherwise you forgot to ship ltmain.sh
15764
# with your package, and you will get complaints that there are
15765
# no rules to generate ltmain.sh.
15766
if test -f "$ltmain"; then
15767
# See if we are running on zsh, and set the options which allow our commands through
15768
# without removal of \ escapes.
15769
if test -n "${ZSH_VERSION+set}" ; then
15770
setopt NO_GLOB_SUBST
15772
# Now quote all the things that may contain metacharacters while being
15773
# careful not to overquote the AC_SUBSTed values. We take copies of the
15774
# variables and quote the copies for generation of the libtool script.
15775
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15777
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15778
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15779
deplibs_check_method reload_flag reload_cmds need_locks \
15780
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15781
lt_cv_sys_global_symbol_to_c_name_address \
15782
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15783
old_postinstall_cmds old_postuninstall_cmds \
15787
lt_prog_compiler_wl_F77 \
15788
lt_prog_compiler_pic_F77 \
15789
lt_prog_compiler_static_F77 \
15790
lt_prog_compiler_no_builtin_flag_F77 \
15791
export_dynamic_flag_spec_F77 \
15792
thread_safe_flag_spec_F77 \
15793
whole_archive_flag_spec_F77 \
15794
enable_shared_with_static_runtimes_F77 \
15795
old_archive_cmds_F77 \
15796
old_archive_from_new_cmds_F77 \
15797
predep_objects_F77 \
15798
postdep_objects_F77 \
15801
compiler_lib_search_path_F77 \
15803
archive_expsym_cmds_F77 \
15804
postinstall_cmds_F77 \
15805
postuninstall_cmds_F77 \
15806
old_archive_from_expsyms_cmds_F77 \
15807
allow_undefined_flag_F77 \
15808
no_undefined_flag_F77 \
15809
export_symbols_cmds_F77 \
15810
hardcode_libdir_flag_spec_F77 \
15811
hardcode_libdir_flag_spec_ld_F77 \
15812
hardcode_libdir_separator_F77 \
15813
hardcode_automatic_F77 \
15815
module_expsym_cmds_F77 \
15816
lt_cv_prog_compiler_c_o_F77 \
15817
exclude_expsyms_F77 \
15818
include_expsyms_F77; do
15821
old_archive_cmds_F77 | \
15822
old_archive_from_new_cmds_F77 | \
15823
archive_cmds_F77 | \
15824
archive_expsym_cmds_F77 | \
15825
module_cmds_F77 | \
15826
module_expsym_cmds_F77 | \
15827
old_archive_from_expsyms_cmds_F77 | \
15828
export_symbols_cmds_F77 | \
15829
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15830
postinstall_cmds | postuninstall_cmds | \
15831
old_postinstall_cmds | old_postuninstall_cmds | \
15832
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15833
# Double-quote double-evaled strings.
15834
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15837
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15843
*'\$0 --fallback-echo"')
15844
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15850
cat <<__EOF__ >> "$cfgfile"
15851
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15853
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15855
# Shell to use when invoking shell scripts.
15858
# Whether or not to build shared libraries.
15859
build_libtool_libs=$enable_shared
15861
# Whether or not to build static libraries.
15862
build_old_libs=$enable_static
15864
# Whether or not to add -lc for building shared libraries.
15865
build_libtool_need_lc=$archive_cmds_need_lc_F77
15867
# Whether or not to disallow shared libs when runtime libs are static
15868
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15870
# Whether or not to optimize for fast installation.
15871
fast_install=$enable_fast_install
15874
host_alias=$host_alias
15878
# The build system.
15879
build_alias=$build_alias
15883
# An echo program that does not interpret backslashes.
15888
AR_FLAGS=$lt_AR_FLAGS
15893
# LTCC compiler flags.
15894
LTCFLAGS=$lt_LTCFLAGS
15896
# A language-specific compiler.
15897
CC=$lt_compiler_F77
15899
# Is the compiler the GNU C compiler?
15905
# The linker used to build libraries.
15908
# Whether we need hard or soft links.
15911
# A BSD-compatible nm program.
15914
# A symbol stripping program
15917
# Used to examine libraries when file_magic_cmd begins "file"
15918
MAGIC_CMD=$MAGIC_CMD
15920
# Used on cygwin: DLL creation program.
15923
# Used on cygwin: object dumper.
15926
# Used on cygwin: assembler.
15929
# The name of the directory that contains temporary libtool files.
15932
# How to create reloadable object files.
15933
reload_flag=$lt_reload_flag
15934
reload_cmds=$lt_reload_cmds
15936
# How to pass a linker flag through the compiler.
15937
wl=$lt_lt_prog_compiler_wl_F77
15939
# Object file suffix (normally "o").
15940
objext="$ac_objext"
15942
# Old archive suffix (normally "a").
15945
# Shared library suffix (normally ".so").
15946
shrext_cmds='$shrext_cmds'
15948
# Executable file suffix (normally "").
15951
# Additional compiler flags for building library objects.
15952
pic_flag=$lt_lt_prog_compiler_pic_F77
15955
# What is the maximum length of a command?
15956
max_cmd_len=$lt_cv_sys_max_cmd_len
15958
# Does compiler simultaneously support -c and -o options?
15959
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15961
# Must we lock files when doing compilation?
15962
need_locks=$lt_need_locks
15964
# Do we need the lib prefix for modules?
15965
need_lib_prefix=$need_lib_prefix
15967
# Do we need a version for libraries?
15968
need_version=$need_version
15970
# Whether dlopen is supported.
15971
dlopen_support=$enable_dlopen
15973
# Whether dlopen of programs is supported.
15974
dlopen_self=$enable_dlopen_self
15976
# Whether dlopen of statically linked programs is supported.
15977
dlopen_self_static=$enable_dlopen_self_static
15979
# Compiler flag to prevent dynamic linking.
15980
link_static_flag=$lt_lt_prog_compiler_static_F77
15982
# Compiler flag to turn off builtin functions.
15983
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15985
# Compiler flag to allow reflexive dlopens.
15986
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15988
# Compiler flag to generate shared objects directly from archives.
15989
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15991
# Compiler flag to generate thread-safe objects.
15992
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15994
# Library versioning type.
15995
version_type=$version_type
15997
# Format of library name prefix.
15998
libname_spec=$lt_libname_spec
16000
# List of archive names. First name is the real one, the rest are links.
16001
# The last name is the one that the linker finds with -lNAME.
16002
library_names_spec=$lt_library_names_spec
16004
# The coded name of the library, if different from the real name.
16005
soname_spec=$lt_soname_spec
16007
# Commands used to build and install an old-style archive.
16009
old_archive_cmds=$lt_old_archive_cmds_F77
16010
old_postinstall_cmds=$lt_old_postinstall_cmds
16011
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16013
# Create an old-style archive from a shared archive.
16014
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16016
# Create a temporary old-style archive to link instead of a shared archive.
16017
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16019
# Commands used to build and install a shared archive.
16020
archive_cmds=$lt_archive_cmds_F77
16021
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16022
postinstall_cmds=$lt_postinstall_cmds
16023
postuninstall_cmds=$lt_postuninstall_cmds
16025
# Commands used to build a loadable module (assumed same as above if empty)
16026
module_cmds=$lt_module_cmds_F77
16027
module_expsym_cmds=$lt_module_expsym_cmds_F77
16029
# Commands to strip libraries.
16030
old_striplib=$lt_old_striplib
16031
striplib=$lt_striplib
16033
# Dependencies to place before the objects being linked to create a
16035
predep_objects=$lt_predep_objects_F77
16037
# Dependencies to place after the objects being linked to create a
16039
postdep_objects=$lt_postdep_objects_F77
16041
# Dependencies to place before the objects being linked to create a
16043
predeps=$lt_predeps_F77
16045
# Dependencies to place after the objects being linked to create a
16047
postdeps=$lt_postdeps_F77
16049
# The library search path used internally by the compiler when linking
16050
# a shared library.
16051
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16053
# Method to check whether dependent libraries are shared objects.
16054
deplibs_check_method=$lt_deplibs_check_method
16056
# Command to use when deplibs_check_method == file_magic.
16057
file_magic_cmd=$lt_file_magic_cmd
16059
# Flag that allows shared libraries with undefined symbols to be built.
16060
allow_undefined_flag=$lt_allow_undefined_flag_F77
16062
# Flag that forces no undefined symbols.
16063
no_undefined_flag=$lt_no_undefined_flag_F77
16065
# Commands used to finish a libtool library installation in a directory.
16066
finish_cmds=$lt_finish_cmds
16068
# Same as above, but a single script fragment to be evaled but not shown.
16069
finish_eval=$lt_finish_eval
16071
# Take the output of nm and produce a listing of raw symbols and C names.
16072
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16074
# Transform the output of nm in a proper C declaration
16075
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16077
# Transform the output of nm in a C name address pair
16078
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16080
# This is the shared library runtime path variable.
16081
runpath_var=$runpath_var
16083
# This is the shared library path variable.
16084
shlibpath_var=$shlibpath_var
16086
# Is shlibpath searched before the hard-coded library search path?
16087
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16089
# How to hardcode a shared library path into an executable.
16090
hardcode_action=$hardcode_action_F77
16092
# Whether we should hardcode library paths into libraries.
16093
hardcode_into_libs=$hardcode_into_libs
16095
# Flag to hardcode \$libdir into a binary during linking.
16096
# This must work even if \$libdir does not exist.
16097
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16099
# If ld is used when linking, flag to hardcode \$libdir into
16100
# a binary during linking. This must work even if \$libdir does
16102
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16104
# Whether we need a single -rpath flag with a separated argument.
16105
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16107
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16108
# resulting binary.
16109
hardcode_direct=$hardcode_direct_F77
16111
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16112
# resulting binary.
16113
hardcode_minus_L=$hardcode_minus_L_F77
16115
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16116
# the resulting binary.
16117
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16119
# Set to yes if building a shared library automatically hardcodes DIR into the library
16120
# and all subsequent libraries and executables linked against it.
16121
hardcode_automatic=$hardcode_automatic_F77
16123
# Variables whose values should be saved in libtool wrapper scripts and
16124
# restored at relink time.
16125
variables_saved_for_relink="$variables_saved_for_relink"
16127
# Whether libtool must link a program against all its dependency libraries.
16128
link_all_deplibs=$link_all_deplibs_F77
16130
# Compile-time system search path for libraries
16131
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16133
# Run-time system search path for libraries
16134
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16136
# Fix the shell variable \$srcfile for the compiler.
16137
fix_srcfile_path="$fix_srcfile_path_F77"
16139
# Set to yes if exported symbols are required.
16140
always_export_symbols=$always_export_symbols_F77
16142
# The commands to list exported symbols.
16143
export_symbols_cmds=$lt_export_symbols_cmds_F77
16145
# The commands to extract the exported symbol list from a shared archive.
16146
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16148
# Symbols that should not be listed in the preloaded symbols.
16149
exclude_expsyms=$lt_exclude_expsyms_F77
16151
# Symbols that must always be exported.
16152
include_expsyms=$lt_include_expsyms_F77
16154
# ### END LIBTOOL TAG CONFIG: $tagname
16160
# If there is no Makefile yet, we rely on a make rule to execute
16161
# `config.status --recheck' to rerun these tests and create the
16162
# libtool script then.
16163
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16164
if test -f "$ltmain_in"; then
16165
test -f Makefile && make "$ltmain"
16171
ac_cpp='$CPP $CPPFLAGS'
16172
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16184
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16187
# Source file extension for Java test sources.
16190
# Object file extension for compiled Java test sources.
16194
# Code to be used in simple compile tests
16195
lt_simple_compile_test_code="class foo {}\n"
16197
# Code to be used in simple link tests
16198
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16200
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16202
# If no C compiler was specified, use CC.
16205
# If no C compiler flags were specified, use CFLAGS.
16206
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16208
# Allow CC to be a program name with arguments.
16212
# save warnings/boilerplate of simple test code
16213
ac_outfile=conftest.$ac_objext
16214
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16215
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16216
_lt_compiler_boilerplate=`cat conftest.err`
16219
ac_outfile=conftest.$ac_objext
16220
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16221
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16222
_lt_linker_boilerplate=`cat conftest.err`
16226
# Allow CC to be a program name with arguments.
16231
for cc_temp in $compiler""; do
16233
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16234
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16239
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16242
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16243
archive_cmds_need_lc_GCJ=no
16245
old_archive_cmds_GCJ=$old_archive_cmds
16248
lt_prog_compiler_no_builtin_flag_GCJ=
16250
if test "$GCC" = yes; then
16251
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16254
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16255
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16256
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16257
echo $ECHO_N "(cached) $ECHO_C" >&6
16259
lt_cv_prog_compiler_rtti_exceptions=no
16260
ac_outfile=conftest.$ac_objext
16261
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16262
lt_compiler_flag="-fno-rtti -fno-exceptions"
16263
# Insert the option either (1) after the last *FLAGS variable, or
16264
# (2) before a word containing "conftest.", or (3) at the end.
16265
# Note that $ac_compile itself does not contain backslashes and begins
16266
# with a dollar sign (not a hyphen), so the echo should work correctly.
16267
# The option is referenced via a variable to avoid confusing sed.
16268
lt_compile=`echo "$ac_compile" | $SED \
16269
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16270
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16271
-e 's:$: $lt_compiler_flag:'`
16272
(eval echo "\"\$as_me:16272: $lt_compile\"" >&5)
16273
(eval "$lt_compile" 2>conftest.err)
16275
cat conftest.err >&5
16276
echo "$as_me:16276: \$? = $ac_status" >&5
16277
if (exit $ac_status) && test -s "$ac_outfile"; then
16278
# The compiler can only warn and ignore the option if not recognized
16279
# So say no if there are warnings other than the usual output.
16280
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16281
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16282
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16283
lt_cv_prog_compiler_rtti_exceptions=yes
16289
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16290
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16292
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16293
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16300
lt_prog_compiler_wl_GCJ=
16301
lt_prog_compiler_pic_GCJ=
16302
lt_prog_compiler_static_GCJ=
16304
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16305
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16307
if test "$GCC" = yes; then
16308
lt_prog_compiler_wl_GCJ='-Wl,'
16309
lt_prog_compiler_static_GCJ='-static'
16313
# All AIX code is PIC.
16314
if test "$host_cpu" = ia64; then
16315
# AIX 5 now supports IA64 processor
16316
lt_prog_compiler_static_GCJ='-Bstatic'
16321
# FIXME: we need at least 68020 code to build shared libraries, but
16322
# adding the `-m68020' flag to GCC prevents building anything better,
16324
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16327
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16328
# PIC is the default for these OSes.
16331
mingw* | pw32* | os2*)
16332
# This hack is so that the source file can tell whether it is being
16333
# built for inclusion in a dll (and should export symbols for example).
16334
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16337
darwin* | rhapsody*)
16338
# PIC is the default on this platform
16339
# Common symbols not allowed in MH_DYLIB files
16340
lt_prog_compiler_pic_GCJ='-fno-common'
16344
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16345
# Instead, we relocate shared libraries at runtime.
16349
# Just because we use GCC doesn't mean we suddenly get shared libraries
16350
# on systems that don't support them.
16351
lt_prog_compiler_can_build_shared_GCJ=no
16356
if test -d /usr/nec; then
16357
lt_prog_compiler_pic_GCJ=-Kconform_pic
16362
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16363
# not for PA HP-UX.
16369
lt_prog_compiler_pic_GCJ='-fPIC'
16375
lt_prog_compiler_pic_GCJ='-fPIC'
16379
# PORTME Check for flag to pass linker flags through the system compiler.
16382
lt_prog_compiler_wl_GCJ='-Wl,'
16383
if test "$host_cpu" = ia64; then
16384
# AIX 5 now supports IA64 processor
16385
lt_prog_compiler_static_GCJ='-Bstatic'
16387
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16391
# PIC is the default on this platform
16392
# Common symbols not allowed in MH_DYLIB files
16393
case $cc_basename in
16395
lt_prog_compiler_pic_GCJ='-qnocommon'
16396
lt_prog_compiler_wl_GCJ='-Wl,'
16401
mingw* | pw32* | os2*)
16402
# This hack is so that the source file can tell whether it is being
16403
# built for inclusion in a dll (and should export symbols for example).
16404
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16407
hpux9* | hpux10* | hpux11*)
16408
lt_prog_compiler_wl_GCJ='-Wl,'
16409
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16410
# not for PA HP-UX.
16416
lt_prog_compiler_pic_GCJ='+Z'
16419
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16420
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16423
irix5* | irix6* | nonstopux*)
16424
lt_prog_compiler_wl_GCJ='-Wl,'
16425
# PIC (with -KPIC) is the default.
16426
lt_prog_compiler_static_GCJ='-non_shared'
16430
lt_prog_compiler_pic_GCJ='-KPIC'
16431
lt_prog_compiler_static_GCJ='-Bstatic'
16435
case $cc_basename in
16437
lt_prog_compiler_wl_GCJ='-Wl,'
16438
lt_prog_compiler_pic_GCJ='-KPIC'
16439
lt_prog_compiler_static_GCJ='-static'
16441
pgcc* | pgf77* | pgf90* | pgf95*)
16442
# Portland Group compilers (*not* the Pentium gcc compiler,
16443
# which looks to be a dead project)
16444
lt_prog_compiler_wl_GCJ='-Wl,'
16445
lt_prog_compiler_pic_GCJ='-fpic'
16446
lt_prog_compiler_static_GCJ='-Bstatic'
16449
lt_prog_compiler_wl_GCJ='-Wl,'
16450
# All Alpha code is PIC.
16451
lt_prog_compiler_static_GCJ='-non_shared'
16456
osf3* | osf4* | osf5*)
16457
lt_prog_compiler_wl_GCJ='-Wl,'
16458
# All OSF/1 code is PIC.
16459
lt_prog_compiler_static_GCJ='-non_shared'
16463
lt_prog_compiler_pic_GCJ='-KPIC'
16464
lt_prog_compiler_static_GCJ='-Bstatic'
16465
case $cc_basename in
16466
f77* | f90* | f95*)
16467
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16469
lt_prog_compiler_wl_GCJ='-Wl,';;
16474
lt_prog_compiler_wl_GCJ='-Qoption ld '
16475
lt_prog_compiler_pic_GCJ='-PIC'
16476
lt_prog_compiler_static_GCJ='-Bstatic'
16479
sysv4 | sysv4.2uw2* | sysv4.3*)
16480
lt_prog_compiler_wl_GCJ='-Wl,'
16481
lt_prog_compiler_pic_GCJ='-KPIC'
16482
lt_prog_compiler_static_GCJ='-Bstatic'
16486
if test -d /usr/nec ;then
16487
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16488
lt_prog_compiler_static_GCJ='-Bstatic'
16492
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16493
lt_prog_compiler_wl_GCJ='-Wl,'
16494
lt_prog_compiler_pic_GCJ='-KPIC'
16495
lt_prog_compiler_static_GCJ='-Bstatic'
16499
lt_prog_compiler_wl_GCJ='-Wl,'
16500
lt_prog_compiler_can_build_shared_GCJ=no
16504
lt_prog_compiler_pic_GCJ='-pic'
16505
lt_prog_compiler_static_GCJ='-Bstatic'
16509
lt_prog_compiler_can_build_shared_GCJ=no
16514
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16515
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16518
# Check to make sure the PIC flag actually works.
16520
if test -n "$lt_prog_compiler_pic_GCJ"; then
16522
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16523
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16524
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16525
echo $ECHO_N "(cached) $ECHO_C" >&6
16527
lt_prog_compiler_pic_works_GCJ=no
16528
ac_outfile=conftest.$ac_objext
16529
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16530
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16531
# Insert the option either (1) after the last *FLAGS variable, or
16532
# (2) before a word containing "conftest.", or (3) at the end.
16533
# Note that $ac_compile itself does not contain backslashes and begins
16534
# with a dollar sign (not a hyphen), so the echo should work correctly.
16535
# The option is referenced via a variable to avoid confusing sed.
16536
lt_compile=`echo "$ac_compile" | $SED \
16537
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16538
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16539
-e 's:$: $lt_compiler_flag:'`
16540
(eval echo "\"\$as_me:16540: $lt_compile\"" >&5)
16541
(eval "$lt_compile" 2>conftest.err)
16543
cat conftest.err >&5
16544
echo "$as_me:16544: \$? = $ac_status" >&5
16545
if (exit $ac_status) && test -s "$ac_outfile"; then
16546
# The compiler can only warn and ignore the option if not recognized
16547
# So say no if there are warnings other than the usual output.
16548
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16549
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16550
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16551
lt_prog_compiler_pic_works_GCJ=yes
16557
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16558
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16560
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16561
case $lt_prog_compiler_pic_GCJ in
16563
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16566
lt_prog_compiler_pic_GCJ=
16567
lt_prog_compiler_can_build_shared_GCJ=no
16572
# For platforms which do not support PIC, -DPIC is meaningless:
16574
lt_prog_compiler_pic_GCJ=
16577
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16582
# Check to make sure the static flag actually works.
16584
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16585
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16586
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16587
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16588
echo $ECHO_N "(cached) $ECHO_C" >&6
16590
lt_prog_compiler_static_works_GCJ=no
16591
save_LDFLAGS="$LDFLAGS"
16592
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16593
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16594
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16595
# The linker can only warn and ignore the option if not recognized
16596
# So say no if there are warnings
16597
if test -s conftest.err; then
16598
# Append any errors to the config.log.
16599
cat conftest.err 1>&5
16600
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16601
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602
if diff conftest.exp conftest.er2 >/dev/null; then
16603
lt_prog_compiler_static_works_GCJ=yes
16606
lt_prog_compiler_static_works_GCJ=yes
16610
LDFLAGS="$save_LDFLAGS"
16613
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16614
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16616
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16619
lt_prog_compiler_static_GCJ=
16623
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16624
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16625
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16626
echo $ECHO_N "(cached) $ECHO_C" >&6
16628
lt_cv_prog_compiler_c_o_GCJ=no
16629
$rm -r conftest 2>/dev/null
16633
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16635
lt_compiler_flag="-o out/conftest2.$ac_objext"
16636
# Insert the option either (1) after the last *FLAGS variable, or
16637
# (2) before a word containing "conftest.", or (3) at the end.
16638
# Note that $ac_compile itself does not contain backslashes and begins
16639
# with a dollar sign (not a hyphen), so the echo should work correctly.
16640
lt_compile=`echo "$ac_compile" | $SED \
16641
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16642
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16643
-e 's:$: $lt_compiler_flag:'`
16644
(eval echo "\"\$as_me:16644: $lt_compile\"" >&5)
16645
(eval "$lt_compile" 2>out/conftest.err)
16647
cat out/conftest.err >&5
16648
echo "$as_me:16648: \$? = $ac_status" >&5
16649
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16651
# The compiler can only warn and ignore the option if not recognized
16652
# So say no if there are warnings
16653
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16654
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16655
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16656
lt_cv_prog_compiler_c_o_GCJ=yes
16661
# SGI C++ compiler will create directory out/ii_files/ for
16662
# template instantiation
16663
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16664
$rm out/* && rmdir out
16670
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16671
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16674
hard_links="nottested"
16675
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16676
# do not overwrite the value of need_locks provided by the user
16677
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16678
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16681
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16683
ln conftest.a conftest.b 2>&5 || hard_links=no
16684
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16685
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16686
echo "${ECHO_T}$hard_links" >&6; }
16687
if test "$hard_links" = no; then
16688
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16689
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16696
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16697
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16700
allow_undefined_flag_GCJ=
16701
enable_shared_with_static_runtimes_GCJ=no
16703
archive_expsym_cmds_GCJ=
16704
old_archive_From_new_cmds_GCJ=
16705
old_archive_from_expsyms_cmds_GCJ=
16706
export_dynamic_flag_spec_GCJ=
16707
whole_archive_flag_spec_GCJ=
16708
thread_safe_flag_spec_GCJ=
16709
hardcode_libdir_flag_spec_GCJ=
16710
hardcode_libdir_flag_spec_ld_GCJ=
16711
hardcode_libdir_separator_GCJ=
16712
hardcode_direct_GCJ=no
16713
hardcode_minus_L_GCJ=no
16714
hardcode_shlibpath_var_GCJ=unsupported
16715
link_all_deplibs_GCJ=unknown
16716
hardcode_automatic_GCJ=no
16718
module_expsym_cmds_GCJ=
16719
always_export_symbols_GCJ=no
16720
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16721
# include_expsyms should be a list of space-separated symbols to be *always*
16722
# included in the symbol list
16723
include_expsyms_GCJ=
16724
# exclude_expsyms can be an extended regexp of symbols to exclude
16725
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16726
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16727
# as well as any symbol that contains `d'.
16728
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16729
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16730
# platforms (ab)use it in PIC code, but their linkers get confused if
16731
# the symbol is explicitly referenced. Since portable code cannot
16732
# rely on this symbol name, it's probably fine to never include it in
16733
# preloaded symbol tables.
16734
extract_expsyms_cmds=
16735
# Just being paranoid about ensuring that cc_basename is set.
16736
for cc_temp in $compiler""; do
16738
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16739
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16744
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16747
cygwin* | mingw* | pw32*)
16748
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16749
# When not using gcc, we currently assume that we are using
16750
# Microsoft Visual C++.
16751
if test "$GCC" != yes; then
16756
# we just hope/assume this is gcc and not c89 (= MSVC++)
16765
if test "$with_gnu_ld" = yes; then
16766
# If archive_cmds runs LD, not CC, wlarc should be empty
16769
# Set some defaults for GNU ld with shared library support. These
16770
# are reset later if shared libraries are not supported. Putting them
16771
# here allows them to be overridden if necessary.
16772
runpath_var=LD_RUN_PATH
16773
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16774
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16775
# ancient GNU ld didn't support --whole-archive et. al.
16776
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16777
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16779
whole_archive_flag_spec_GCJ=
16781
supports_anon_versioning=no
16782
case `$LD -v 2>/dev/null` in
16783
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16784
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16785
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16786
*\ 2.11.*) ;; # other 2.11 versions
16787
*) supports_anon_versioning=yes ;;
16790
# See if GNU ld supports shared libraries.
16792
aix3* | aix4* | aix5*)
16793
# On AIX/PPC, the GNU linker is very broken
16794
if test "$host_cpu" != ia64; then
16798
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16799
*** to be unable to reliably create shared libraries on AIX.
16800
*** Therefore, libtool is disabling shared libraries support. If you
16801
*** really care for shared libraries, you may want to modify your PATH
16802
*** so that a non-GNU linker is found, and then restart.
16809
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)'
16810
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16811
hardcode_minus_L_GCJ=yes
16813
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16814
# that the semantics of dynamic libraries on AmigaOS, at least up
16815
# to version 4, is to share data among multiple programs linked
16816
# with the same dynamic library. Since this doesn't match the
16817
# behavior of shared libraries on other platforms, we can't use
16823
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824
allow_undefined_flag_GCJ=unsupported
16825
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16826
# support --undefined. This deserves some investigation. FIXME
16827
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16833
cygwin* | mingw* | pw32*)
16834
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16835
# as there is no search path for DLLs.
16836
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16837
allow_undefined_flag_GCJ=unsupported
16838
always_export_symbols_GCJ=no
16839
enable_shared_with_static_runtimes_GCJ=yes
16840
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16842
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16843
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16844
# If the export-symbols file already is a .def file (1st line
16845
# is EXPORTS), use it as is; otherwise, prepend...
16846
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16847
cp $export_symbols $output_objdir/$soname.def;
16849
echo EXPORTS > $output_objdir/$soname.def;
16850
cat $export_symbols >> $output_objdir/$soname.def;
16852
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16859
hardcode_direct_GCJ=no
16860
hardcode_shlibpath_var_GCJ=no
16861
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16862
export_dynamic_flag_spec_GCJ='${wl}-E'
16863
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16864
# Instead, shared libraries are loaded at an image base (0x10000000 by
16865
# default) and relocated if they conflict, which is a slow very memory
16866
# consuming and fragmenting process. To avoid this, we pick a random,
16867
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16868
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16869
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'
16870
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'
16874
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16876
case $cc_basename,$host_cpu in
16877
pgcc*) # Portland Group C compiler
16878
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'
16879
tmp_addflag=' $pic_flag'
16881
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16882
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'
16883
tmp_addflag=' $pic_flag -Mnomain' ;;
16884
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16885
tmp_addflag=' -i_dynamic' ;;
16886
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16887
tmp_addflag=' -i_dynamic -nofor_main' ;;
16888
ifc* | ifort*) # Intel Fortran compiler
16889
tmp_addflag=' -nofor_main' ;;
16891
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16893
if test $supports_anon_versioning = yes; then
16894
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16895
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16896
$echo "local: *; };" >> $output_objdir/$libname.ver~
16897
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16905
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16906
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16909
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16915
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16919
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16920
*** create shared libraries on Solaris systems. Therefore, libtool
16921
*** is disabling shared libraries support. We urge you to upgrade GNU
16922
*** binutils to release 2.9.1 or newer. Another option is to modify
16923
*** your PATH or compiler configuration so that the native linker is
16924
*** used, and then restart.
16927
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16928
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16929
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16935
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16936
case `$LD -v 2>&1` in
16937
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16941
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16942
*** reliably create shared libraries on SCO systems. Therefore, libtool
16943
*** is disabling shared libraries support. We urge you to upgrade GNU
16944
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16945
*** your PATH or compiler configuration so that the native linker is
16946
*** used, and then restart.
16951
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16952
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16953
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16954
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16963
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16965
hardcode_direct_GCJ=yes
16966
hardcode_shlibpath_var_GCJ=no
16970
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16971
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16972
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16979
if test "$ld_shlibs_GCJ" = no; then
16981
hardcode_libdir_flag_spec_GCJ=
16982
export_dynamic_flag_spec_GCJ=
16983
whole_archive_flag_spec_GCJ=
16986
# PORTME fill in a description of your system's linker (not GNU ld)
16989
allow_undefined_flag_GCJ=unsupported
16990
always_export_symbols_GCJ=yes
16991
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'
16992
# Note: this linker hardcodes the directories in LIBPATH if there
16993
# are no directories specified by -L.
16994
hardcode_minus_L_GCJ=yes
16995
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16996
# Neither direct hardcoding nor static linking is supported with a
16998
hardcode_direct_GCJ=unsupported
17003
if test "$host_cpu" = ia64; then
17004
# On IA64, the linker does run time linking by default, so we don't
17005
# have to do anything special.
17006
aix_use_runtimelinking=no
17007
exp_sym_flag='-Bexport'
17010
# If we're using GNU nm, then we don't want the "-C" option.
17011
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17012
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17013
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'
17015
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'
17017
aix_use_runtimelinking=no
17019
# Test if we are trying to use run time linking or normal
17020
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17021
# need to do runtime linking.
17022
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17023
for ld_flag in $LDFLAGS; do
17024
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17025
aix_use_runtimelinking=yes
17032
exp_sym_flag='-bexport'
17033
no_entry_flag='-bnoentry'
17036
# When large executables or shared objects are built, AIX ld can
17037
# have problems creating the table of contents. If linking a library
17038
# or program results in "error TOC overflow" add -mminimal-toc to
17039
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17040
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17042
archive_cmds_GCJ=''
17043
hardcode_direct_GCJ=yes
17044
hardcode_libdir_separator_GCJ=':'
17045
link_all_deplibs_GCJ=yes
17047
if test "$GCC" = yes; then
17048
case $host_os in aix4.[012]|aix4.[012].*)
17049
# We only want to do this on AIX 4.2 and lower, the check
17050
# below for broken collect2 doesn't work under 4.3+
17051
collect2name=`${CC} -print-prog-name=collect2`
17052
if test -f "$collect2name" && \
17053
strings "$collect2name" | grep resolve_lib_name >/dev/null
17055
# We have reworked collect2
17056
hardcode_direct_GCJ=yes
17058
# We have old collect2
17059
hardcode_direct_GCJ=unsupported
17060
# It fails to find uninstalled libraries when the uninstalled
17061
# path is not listed in the libpath. Setting hardcode_minus_L
17062
# to unsupported forces relinking
17063
hardcode_minus_L_GCJ=yes
17064
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17065
hardcode_libdir_separator_GCJ=
17069
shared_flag='-shared'
17070
if test "$aix_use_runtimelinking" = yes; then
17071
shared_flag="$shared_flag "'${wl}-G'
17075
if test "$host_cpu" = ia64; then
17076
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17077
# chokes on -Wl,-G. The following line is correct:
17080
if test "$aix_use_runtimelinking" = yes; then
17081
shared_flag='${wl}-G'
17083
shared_flag='${wl}-bM:SRE'
17088
# It seems that -bexpall does not export symbols beginning with
17089
# underscore (_), so it is better to generate a list of symbols to export.
17090
always_export_symbols_GCJ=yes
17091
if test "$aix_use_runtimelinking" = yes; then
17092
# Warning - without using the other runtime loading flags (-brtl),
17093
# -berok will link without error, but may produce a broken library.
17094
allow_undefined_flag_GCJ='-berok'
17095
# Determine the default libpath from the value encoded in an empty executable.
17096
cat >conftest.$ac_ext <<_ACEOF
17099
cat confdefs.h >>conftest.$ac_ext
17100
cat >>conftest.$ac_ext <<_ACEOF
17101
/* end confdefs.h. */
17111
rm -f conftest.$ac_objext conftest$ac_exeext
17112
if { (ac_try="$ac_link"
17113
case "(($ac_try" in
17114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115
*) ac_try_echo=$ac_try;;
17117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118
(eval "$ac_link") 2>conftest.er1
17120
grep -v '^ *+' conftest.er1 >conftest.err
17122
cat conftest.err >&5
17123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124
(exit $ac_status); } && {
17125
test -z "$ac_c_werror_flag" ||
17126
test ! -s conftest.err
17127
} && test -s conftest$ac_exeext &&
17128
$as_test_x conftest$ac_exeext; then
17130
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17132
# Check for a 64-bit object if we didn't find anything.
17133
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; }
17136
echo "$as_me: failed program was:" >&5
17137
sed 's/^/| /' conftest.$ac_ext >&5
17142
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17143
conftest$ac_exeext conftest.$ac_ext
17144
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17146
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17147
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"
17149
if test "$host_cpu" = ia64; then
17150
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17151
allow_undefined_flag_GCJ="-z nodefs"
17152
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"
17154
# Determine the default libpath from the value encoded in an empty executable.
17155
cat >conftest.$ac_ext <<_ACEOF
17158
cat confdefs.h >>conftest.$ac_ext
17159
cat >>conftest.$ac_ext <<_ACEOF
17160
/* end confdefs.h. */
17170
rm -f conftest.$ac_objext conftest$ac_exeext
17171
if { (ac_try="$ac_link"
17172
case "(($ac_try" in
17173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174
*) ac_try_echo=$ac_try;;
17176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177
(eval "$ac_link") 2>conftest.er1
17179
grep -v '^ *+' conftest.er1 >conftest.err
17181
cat conftest.err >&5
17182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183
(exit $ac_status); } && {
17184
test -z "$ac_c_werror_flag" ||
17185
test ! -s conftest.err
17186
} && test -s conftest$ac_exeext &&
17187
$as_test_x conftest$ac_exeext; then
17189
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17191
# Check for a 64-bit object if we didn't find anything.
17192
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; }
17195
echo "$as_me: failed program was:" >&5
17196
sed 's/^/| /' conftest.$ac_ext >&5
17201
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202
conftest$ac_exeext conftest.$ac_ext
17203
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17205
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17206
# Warning - without using the other run time loading flags,
17207
# -berok will link without error, but may produce a broken library.
17208
no_undefined_flag_GCJ=' ${wl}-bernotok'
17209
allow_undefined_flag_GCJ=' ${wl}-berok'
17210
# Exported symbols can be pulled into shared objects from archives
17211
whole_archive_flag_spec_GCJ='$convenience'
17212
archive_cmds_need_lc_GCJ=yes
17213
# This is similar to how AIX traditionally builds its shared libraries.
17214
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'
17220
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)'
17221
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17222
hardcode_minus_L_GCJ=yes
17223
# see comment about different semantics on the GNU ld section
17228
export_dynamic_flag_spec_GCJ=-rdynamic
17231
cygwin* | mingw* | pw32*)
17232
# When not using gcc, we currently assume that we are using
17233
# Microsoft Visual C++.
17234
# hardcode_libdir_flag_spec is actually meaningless, as there is
17235
# no search path for DLLs.
17236
hardcode_libdir_flag_spec_GCJ=' '
17237
allow_undefined_flag_GCJ=unsupported
17238
# Tell ltmain to make .lib files, not .a files.
17240
# Tell ltmain to make .dll files, not .so files.
17242
# FIXME: Setting linknames here is a bad hack.
17243
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17244
# The linker will automatically build a .lib file if we build a DLL.
17245
old_archive_From_new_cmds_GCJ='true'
17246
# FIXME: Should let the user specify the lib program.
17247
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17248
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17249
enable_shared_with_static_runtimes_GCJ=yes
17252
darwin* | rhapsody*)
17254
rhapsody* | darwin1.[012])
17255
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17258
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17259
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17261
case ${MACOSX_DEPLOYMENT_TARGET} in
17263
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17266
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17272
archive_cmds_need_lc_GCJ=no
17273
hardcode_direct_GCJ=no
17274
hardcode_automatic_GCJ=yes
17275
hardcode_shlibpath_var_GCJ=unsupported
17276
whole_archive_flag_spec_GCJ=''
17277
link_all_deplibs_GCJ=yes
17278
if test "$GCC" = yes ; then
17279
output_verbose_link_cmd='echo'
17280
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17281
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17282
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17283
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}'
17284
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}'
17286
case $cc_basename in
17288
output_verbose_link_cmd='echo'
17289
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17290
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17291
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17292
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}'
17293
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}'
17303
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17305
hardcode_shlibpath_var_GCJ=no
17312
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17313
# support. Future versions do this automatically, but an explicit c++rt0.o
17314
# does not break anything, and helps significantly (at the cost of a little
17317
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17318
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17319
hardcode_direct_GCJ=yes
17320
hardcode_shlibpath_var_GCJ=no
17323
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17325
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17326
hardcode_direct_GCJ=yes
17327
hardcode_minus_L_GCJ=yes
17328
hardcode_shlibpath_var_GCJ=no
17331
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17332
freebsd* | kfreebsd*-gnu | dragonfly*)
17333
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17334
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17335
hardcode_direct_GCJ=yes
17336
hardcode_shlibpath_var_GCJ=no
17340
if test "$GCC" = yes; then
17341
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'
17343
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'
17345
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17346
hardcode_libdir_separator_GCJ=:
17347
hardcode_direct_GCJ=yes
17349
# hardcode_minus_L: Not really in the search PATH,
17350
# but as the default location of the library.
17351
hardcode_minus_L_GCJ=yes
17352
export_dynamic_flag_spec_GCJ='${wl}-E'
17356
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17357
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17359
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17361
if test "$with_gnu_ld" = no; then
17362
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17363
hardcode_libdir_separator_GCJ=:
17365
hardcode_direct_GCJ=yes
17366
export_dynamic_flag_spec_GCJ='${wl}-E'
17368
# hardcode_minus_L: Not really in the search PATH,
17369
# but as the default location of the library.
17370
hardcode_minus_L_GCJ=yes
17375
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17378
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17381
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17384
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17390
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17393
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17396
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17400
if test "$with_gnu_ld" = no; then
17401
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17402
hardcode_libdir_separator_GCJ=:
17406
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17407
hardcode_direct_GCJ=no
17408
hardcode_shlibpath_var_GCJ=no
17411
hardcode_direct_GCJ=yes
17412
export_dynamic_flag_spec_GCJ='${wl}-E'
17414
# hardcode_minus_L: Not really in the search PATH,
17415
# but as the default location of the library.
17416
hardcode_minus_L_GCJ=yes
17422
irix5* | irix6* | nonstopux*)
17423
if test "$GCC" = yes; then
17424
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'
17426
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'
17427
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17429
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17430
hardcode_libdir_separator_GCJ=:
17431
link_all_deplibs_GCJ=yes
17435
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17436
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17438
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17440
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17441
hardcode_direct_GCJ=yes
17442
hardcode_shlibpath_var_GCJ=no
17446
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447
hardcode_direct_GCJ=yes
17448
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17449
hardcode_libdir_separator_GCJ=:
17450
hardcode_shlibpath_var_GCJ=no
17454
hardcode_direct_GCJ=yes
17455
hardcode_shlibpath_var_GCJ=no
17456
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17457
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17458
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17459
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17460
export_dynamic_flag_spec_GCJ='${wl}-E'
17463
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17464
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17465
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17468
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17469
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17476
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17477
hardcode_minus_L_GCJ=yes
17478
allow_undefined_flag_GCJ=unsupported
17479
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'
17480
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17484
if test "$GCC" = yes; then
17485
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17486
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'
17488
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17489
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'
17491
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17492
hardcode_libdir_separator_GCJ=:
17495
osf4* | osf5*) # as osf3* with the addition of -msym flag
17496
if test "$GCC" = yes; then
17497
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17498
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'
17499
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17501
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17502
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'
17503
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~
17504
$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'
17506
# Both c and cxx compiler support -rpath directly
17507
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17509
hardcode_libdir_separator_GCJ=:
17513
no_undefined_flag_GCJ=' -z text'
17514
if test "$GCC" = yes; then
17516
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17517
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17518
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17521
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17523
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17525
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17526
hardcode_shlibpath_var_GCJ=no
17528
solaris2.[0-5] | solaris2.[0-5].*) ;;
17530
# The compiler driver will combine linker options so we
17531
# cannot just pass the convience library names through
17532
# without $wl, iff we do not link with $LD.
17533
# Luckily, gcc supports the same syntax we need for Sun Studio.
17534
# Supported since Solaris 2.6 (maybe 2.5.1?)
17537
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17539
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' ;;
17542
link_all_deplibs_GCJ=yes
17546
if test "x$host_vendor" = xsequent; then
17547
# Use $CC to link under sequent, because it throws in some extra .o
17548
# files that make .init and .fini sections work.
17549
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17551
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17553
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17554
hardcode_direct_GCJ=yes
17555
hardcode_minus_L_GCJ=yes
17556
hardcode_shlibpath_var_GCJ=no
17560
case $host_vendor in
17562
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563
hardcode_direct_GCJ=yes # is this really true???
17566
## LD is ld it makes a PLAMLIB
17567
## CC just makes a GrossModule.
17568
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17569
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17570
hardcode_direct_GCJ=no
17573
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17574
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17577
runpath_var='LD_RUN_PATH'
17578
hardcode_shlibpath_var_GCJ=no
17582
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17583
hardcode_shlibpath_var_GCJ=no
17584
export_dynamic_flag_spec_GCJ='-Bexport'
17588
if test -d /usr/nec; then
17589
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590
hardcode_shlibpath_var_GCJ=no
17591
runpath_var=LD_RUN_PATH
17592
hardcode_runpath_var=yes
17597
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17598
no_undefined_flag_GCJ='${wl}-z,text'
17599
archive_cmds_need_lc_GCJ=no
17600
hardcode_shlibpath_var_GCJ=no
17601
runpath_var='LD_RUN_PATH'
17603
if test "$GCC" = yes; then
17604
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17605
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17607
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17608
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612
sysv5* | sco3.2v5* | sco5v6*)
17613
# Note: We can NOT use -z defs as we might desire, because we do not
17614
# link with -lc, and that would cause any symbols used from libc to
17615
# always be unresolved, which means just about no library would
17616
# ever link correctly. If we're not using GNU ld we use -z text
17617
# though, which does catch some bad symbols but isn't as heavy-handed
17619
no_undefined_flag_GCJ='${wl}-z,text'
17620
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17621
archive_cmds_need_lc_GCJ=no
17622
hardcode_shlibpath_var_GCJ=no
17623
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17624
hardcode_libdir_separator_GCJ=':'
17625
link_all_deplibs_GCJ=yes
17626
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17627
runpath_var='LD_RUN_PATH'
17629
if test "$GCC" = yes; then
17630
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17631
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17633
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17634
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17639
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17640
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17641
hardcode_shlibpath_var_GCJ=no
17650
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17651
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17652
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17655
# Do we need to explicitly link libc?
17657
case "x$archive_cmds_need_lc_GCJ" in
17659
# Assume -lc should be added
17660
archive_cmds_need_lc_GCJ=yes
17662
if test "$enable_shared" = yes && test "$GCC" = yes; then
17663
case $archive_cmds_GCJ in
17665
# FIXME: we may have to deal with multi-command sequences.
17668
# Test whether the compiler implicitly links with -lc since on some
17669
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17670
# to ld, don't add -lc before -lgcc.
17671
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17672
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17674
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17676
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677
(eval $ac_compile) 2>&5
17679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680
(exit $ac_status); } 2>conftest.err; then
17683
libobjs=conftest.$ac_objext
17685
wl=$lt_prog_compiler_wl_GCJ
17686
pic_flag=$lt_prog_compiler_pic_GCJ
17692
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17693
allow_undefined_flag_GCJ=
17694
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17695
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698
(exit $ac_status); }
17700
archive_cmds_need_lc_GCJ=no
17702
archive_cmds_need_lc_GCJ=yes
17704
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17706
cat conftest.err 1>&5
17709
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17710
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17717
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17718
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17719
library_names_spec=
17720
libname_spec='lib$name'
17724
postuninstall_cmds=
17728
shlibpath_overrides_runpath=unknown
17730
dynamic_linker="$host_os ld.so"
17731
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17732
if test "$GCC" = yes; then
17733
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17734
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17735
# if the path contains ";" then we assume it to be the separator
17736
# otherwise default to the standard path separator (i.e. ":") - it is
17737
# assumed that no part of a normal pathname contains ";" but that should
17738
# okay in the real world where ";" in dirpaths is itself problematic.
17739
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17741
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17744
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17746
need_lib_prefix=unknown
17747
hardcode_into_libs=no
17749
# when you set need_version to no, make sure it does not cause -set_version
17750
# flags to be left without arguments
17751
need_version=unknown
17756
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17757
shlibpath_var=LIBPATH
17759
# AIX 3 has no versioning support, so we append a major version to the name.
17760
soname_spec='${libname}${release}${shared_ext}$major'
17767
hardcode_into_libs=yes
17768
if test "$host_cpu" = ia64; then
17769
# AIX 5 supports IA64
17770
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17771
shlibpath_var=LD_LIBRARY_PATH
17773
# With GCC up to 2.95.x, collect2 would create an import file
17774
# for dependence libraries. The import file would start with
17775
# the line `#! .'. This would cause the generated library to
17776
# depend on `.', always an invalid library. This was fixed in
17777
# development snapshots of GCC prior to 3.0.
17779
aix4 | aix4.[01] | aix4.[01].*)
17780
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17782
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17785
can_build_shared=no
17789
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17790
# soname into executable. Probably we can add versioning support to
17791
# collect2, so additional links can be useful in future.
17792
if test "$aix_use_runtimelinking" = yes; then
17793
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17794
# instead of lib<name>.a to let people know that these are not
17795
# typical AIX shared libraries.
17796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798
# We preserve .a as extension for shared libraries through AIX4.2
17799
# and later when we are not doing run time linking.
17800
library_names_spec='${libname}${release}.a $libname.a'
17801
soname_spec='${libname}${release}${shared_ext}$major'
17803
shlibpath_var=LIBPATH
17808
library_names_spec='$libname.ixlibrary $libname.a'
17809
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17810
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'
17814
library_names_spec='${libname}${shared_ext}'
17815
dynamic_linker="$host_os ld.so"
17816
shlibpath_var=LIBRARY_PATH
17822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823
soname_spec='${libname}${release}${shared_ext}$major'
17824
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17825
shlibpath_var=LD_LIBRARY_PATH
17826
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17827
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17828
# the default ld.so.conf also contains /usr/contrib/lib and
17829
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17830
# libtool to hard-code these into programs
17833
cygwin* | mingw* | pw32*)
17834
version_type=windows
17839
case $GCC,$host_os in
17840
yes,cygwin* | yes,mingw* | yes,pw32*)
17841
library_names_spec='$libname.dll.a'
17842
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17843
postinstall_cmds='base_file=`basename \${file}`~
17844
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17845
dldir=$destdir/`dirname \$dlpath`~
17846
test -d \$dldir || mkdir -p \$dldir~
17847
$install_prog $dir/$dlname \$dldir/$dlname~
17848
chmod a+x \$dldir/$dlname'
17849
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17850
dlpath=$dir/\$dldll~
17852
shlibpath_overrides_runpath=yes
17856
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17857
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17858
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17861
# MinGW DLLs use traditional 'lib' prefix
17862
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17863
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17864
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17865
# It is most probably a Windows format PATH printed by
17866
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17867
# path with ; separators, and with drive letters. We can handle the
17868
# drive letters (cygwin fileutils understands them), so leave them,
17869
# especially as we might pass files found there to a mingw objdump,
17870
# which wouldn't understand a cygwinified path. Ahh.
17871
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17873
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17877
# pw32 DLLs use 'pw' prefix rather than 'lib'
17878
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17884
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17887
dynamic_linker='Win32 ld.exe'
17888
# FIXME: first we should search . and the directory the executable is in
17892
darwin* | rhapsody*)
17893
dynamic_linker="$host_os dyld"
17894
version_type=darwin
17897
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17898
soname_spec='${libname}${release}${major}$shared_ext'
17899
shlibpath_overrides_runpath=yes
17900
shlibpath_var=DYLD_LIBRARY_PATH
17901
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17902
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17903
if test "$GCC" = yes; then
17904
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"`
17906
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17908
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17916
soname_spec='${libname}${release}${shared_ext}$major'
17917
shlibpath_var=LD_LIBRARY_PATH
17928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17929
soname_spec='${libname}${release}${shared_ext}$major'
17930
shlibpath_var=LD_LIBRARY_PATH
17931
shlibpath_overrides_runpath=no
17932
hardcode_into_libs=yes
17933
dynamic_linker='GNU ld.so'
17936
freebsd* | dragonfly*)
17937
# DragonFly does not have aout. When/if they implement a new
17938
# versioning mechanism, adjust this.
17939
if test -x /usr/bin/objformat; then
17940
objformat=`/usr/bin/objformat`
17943
freebsd[123]*) objformat=aout ;;
17944
*) objformat=elf ;;
17947
version_type=freebsd-$objformat
17948
case $version_type in
17950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17955
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17959
shlibpath_var=LD_LIBRARY_PATH
17962
shlibpath_overrides_runpath=yes
17964
freebsd3.[01]* | freebsdelf3.[01]*)
17965
shlibpath_overrides_runpath=yes
17966
hardcode_into_libs=yes
17968
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17969
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17970
shlibpath_overrides_runpath=no
17971
hardcode_into_libs=yes
17973
freebsd*) # from 4.6 on
17974
shlibpath_overrides_runpath=yes
17975
hardcode_into_libs=yes
17984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17985
soname_spec='${libname}${release}${shared_ext}$major'
17986
shlibpath_var=LD_LIBRARY_PATH
17987
hardcode_into_libs=yes
17990
hpux9* | hpux10* | hpux11*)
17991
# Give a soname corresponding to the major version so that dld.sl refuses to
17992
# link against other versions.
17999
hardcode_into_libs=yes
18000
dynamic_linker="$host_os dld.so"
18001
shlibpath_var=LD_LIBRARY_PATH
18002
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004
soname_spec='${libname}${release}${shared_ext}$major'
18005
if test "X$HPUX_IA64_MODE" = X32; then
18006
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18008
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18010
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18014
hardcode_into_libs=yes
18015
dynamic_linker="$host_os dld.sl"
18016
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18017
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019
soname_spec='${libname}${release}${shared_ext}$major'
18020
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18021
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18025
dynamic_linker="$host_os dld.sl"
18026
shlibpath_var=SHLIB_PATH
18027
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029
soname_spec='${libname}${release}${shared_ext}$major'
18032
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18033
postinstall_cmds='chmod 555 $lib'
18040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18041
soname_spec='${libname}${release}${shared_ext}$major'
18042
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18043
shlibpath_var=LD_LIBRARY_PATH
18044
shlibpath_overrides_runpath=no
18045
hardcode_into_libs=yes
18048
irix5* | irix6* | nonstopux*)
18050
nonstopux*) version_type=nonstopux ;;
18052
if test "$lt_cv_prog_gnu_ld" = yes; then
18060
soname_spec='${libname}${release}${shared_ext}$major'
18061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18063
irix5* | nonstopux*)
18064
libsuff= shlibsuff=
18067
case $LD in # libtool.m4 will add one of these switches to LD
18068
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18069
libsuff= shlibsuff= libmagic=32-bit;;
18070
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18071
libsuff=32 shlibsuff=N32 libmagic=N32;;
18072
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18073
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18074
*) libsuff= shlibsuff= libmagic=never-match;;
18078
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18079
shlibpath_overrides_runpath=no
18080
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18081
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18082
hardcode_into_libs=yes
18085
# No shared lib support for Linux oldld, aout, or coff.
18086
linux*oldld* | linux*aout* | linux*coff*)
18090
# This must be Linux ELF.
18095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096
soname_spec='${libname}${release}${shared_ext}$major'
18097
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18098
shlibpath_var=LD_LIBRARY_PATH
18099
shlibpath_overrides_runpath=no
18100
# This implies no fast_install, which is unacceptable.
18101
# Some rework will be needed to allow for fast_install
18102
# before this can be enabled.
18103
hardcode_into_libs=yes
18105
# find out which ABI we are using
18107
case "$host_cpu" in
18108
x86_64*|s390x*|powerpc64*)
18109
echo '#line 18109 "configure"' > conftest.$ac_ext
18110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18111
(eval $ac_compile) 2>&5
18113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114
(exit $ac_status); }; then
18115
case `/usr/bin/file conftest.$ac_objext` in
18118
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18126
# Append ld.so.conf contents to the search path
18127
if test -f /etc/ld.so.conf; then
18128
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' ' '`
18129
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18132
# We used to test for /lib/ld.so.1 and disable shared libraries on
18133
# powerpc, because MkLinux only supported shared libraries with the
18134
# GNU dynamic linker. Since this was broken with cross compilers,
18135
# most powerpc-linux boxes support dynamic linking these days and
18136
# people can always --disable-shared, the test was removed, and we
18137
# assume the GNU/Linux dynamic linker is in use.
18138
dynamic_linker='GNU/Linux ld.so'
18145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18146
soname_spec='${libname}${release}${shared_ext}$major'
18147
shlibpath_var=LD_LIBRARY_PATH
18148
shlibpath_overrides_runpath=no
18149
hardcode_into_libs=yes
18150
dynamic_linker='GNU ld.so'
18157
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18159
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18160
dynamic_linker='NetBSD (a.out) ld.so'
18162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18163
soname_spec='${libname}${release}${shared_ext}$major'
18164
dynamic_linker='NetBSD ld.elf_so'
18166
shlibpath_var=LD_LIBRARY_PATH
18167
shlibpath_overrides_runpath=yes
18168
hardcode_into_libs=yes
18173
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174
shlibpath_var=LD_LIBRARY_PATH
18175
shlibpath_overrides_runpath=yes
18182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183
soname_spec='${libname}${release}${shared_ext}$major'
18184
shlibpath_var=LD_LIBRARY_PATH
18185
shlibpath_overrides_runpath=yes
18190
sys_lib_dlsearch_path_spec="/usr/lib"
18192
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18194
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18195
*) need_version=no ;;
18197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18198
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18199
shlibpath_var=LD_LIBRARY_PATH
18200
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18202
openbsd2.[89] | openbsd2.[89].*)
18203
shlibpath_overrides_runpath=no
18206
shlibpath_overrides_runpath=yes
18210
shlibpath_overrides_runpath=yes
18215
libname_spec='$name'
18218
library_names_spec='$libname${shared_ext} $libname.a'
18219
dynamic_linker='OS/2 ld.exe'
18220
shlibpath_var=LIBPATH
18223
osf3* | osf4* | osf5*)
18227
soname_spec='${libname}${release}${shared_ext}$major'
18228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229
shlibpath_var=LD_LIBRARY_PATH
18230
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18231
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239
soname_spec='${libname}${release}${shared_ext}$major'
18240
shlibpath_var=LD_LIBRARY_PATH
18241
shlibpath_overrides_runpath=yes
18242
hardcode_into_libs=yes
18243
# ldd complains unless libraries are executable
18244
postinstall_cmds='chmod +x $lib'
18249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18250
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18251
shlibpath_var=LD_LIBRARY_PATH
18252
shlibpath_overrides_runpath=yes
18253
if test "$with_gnu_ld" = yes; then
18261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262
soname_spec='${libname}${release}${shared_ext}$major'
18263
shlibpath_var=LD_LIBRARY_PATH
18264
case $host_vendor in
18266
shlibpath_overrides_runpath=no
18268
export_dynamic_flag_spec='${wl}-Blargedynsym'
18269
runpath_var=LD_RUN_PATH
18277
shlibpath_overrides_runpath=no
18278
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18284
if test -d /usr/nec ;then
18286
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18287
soname_spec='$libname${shared_ext}.$major'
18288
shlibpath_var=LD_LIBRARY_PATH
18292
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18293
version_type=freebsd-elf
18296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18297
soname_spec='${libname}${release}${shared_ext}$major'
18298
shlibpath_var=LD_LIBRARY_PATH
18299
hardcode_into_libs=yes
18300
if test "$with_gnu_ld" = yes; then
18301
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18302
shlibpath_overrides_runpath=no
18304
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18305
shlibpath_overrides_runpath=yes
18308
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18312
sys_lib_dlsearch_path_spec='/usr/lib'
18317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318
soname_spec='${libname}${release}${shared_ext}$major'
18319
shlibpath_var=LD_LIBRARY_PATH
18326
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18327
echo "${ECHO_T}$dynamic_linker" >&6; }
18328
test "$dynamic_linker" = no && can_build_shared=no
18330
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18331
if test "$GCC" = yes; then
18332
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18335
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18336
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18337
hardcode_action_GCJ=
18338
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18339
test -n "$runpath_var_GCJ" || \
18340
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18342
# We can hardcode non-existant directories.
18343
if test "$hardcode_direct_GCJ" != no &&
18344
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18345
# have to relink, otherwise we might link with an installed library
18346
# when we should be linking with a yet-to-be-installed one
18347
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18348
test "$hardcode_minus_L_GCJ" != no; then
18349
# Linking always hardcodes the temporary library directory.
18350
hardcode_action_GCJ=relink
18352
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18353
hardcode_action_GCJ=immediate
18356
# We cannot hardcode anything, or else we can only hardcode existing
18358
hardcode_action_GCJ=unsupported
18360
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18361
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18363
if test "$hardcode_action_GCJ" = relink; then
18364
# Fast installation is not supported
18365
enable_fast_install=no
18366
elif test "$shlibpath_overrides_runpath" = yes ||
18367
test "$enable_shared" = no; then
18368
# Fast installation is not necessary
18369
enable_fast_install=needless
18373
# The else clause should only fire when bootstrapping the
18374
# libtool distribution, otherwise you forgot to ship ltmain.sh
18375
# with your package, and you will get complaints that there are
18376
# no rules to generate ltmain.sh.
18377
if test -f "$ltmain"; then
18378
# See if we are running on zsh, and set the options which allow our commands through
18379
# without removal of \ escapes.
18380
if test -n "${ZSH_VERSION+set}" ; then
18381
setopt NO_GLOB_SUBST
18383
# Now quote all the things that may contain metacharacters while being
18384
# careful not to overquote the AC_SUBSTed values. We take copies of the
18385
# variables and quote the copies for generation of the libtool script.
18386
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18388
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18389
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18390
deplibs_check_method reload_flag reload_cmds need_locks \
18391
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18392
lt_cv_sys_global_symbol_to_c_name_address \
18393
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18394
old_postinstall_cmds old_postuninstall_cmds \
18398
lt_prog_compiler_wl_GCJ \
18399
lt_prog_compiler_pic_GCJ \
18400
lt_prog_compiler_static_GCJ \
18401
lt_prog_compiler_no_builtin_flag_GCJ \
18402
export_dynamic_flag_spec_GCJ \
18403
thread_safe_flag_spec_GCJ \
18404
whole_archive_flag_spec_GCJ \
18405
enable_shared_with_static_runtimes_GCJ \
18406
old_archive_cmds_GCJ \
18407
old_archive_from_new_cmds_GCJ \
18408
predep_objects_GCJ \
18409
postdep_objects_GCJ \
18412
compiler_lib_search_path_GCJ \
18414
archive_expsym_cmds_GCJ \
18415
postinstall_cmds_GCJ \
18416
postuninstall_cmds_GCJ \
18417
old_archive_from_expsyms_cmds_GCJ \
18418
allow_undefined_flag_GCJ \
18419
no_undefined_flag_GCJ \
18420
export_symbols_cmds_GCJ \
18421
hardcode_libdir_flag_spec_GCJ \
18422
hardcode_libdir_flag_spec_ld_GCJ \
18423
hardcode_libdir_separator_GCJ \
18424
hardcode_automatic_GCJ \
18426
module_expsym_cmds_GCJ \
18427
lt_cv_prog_compiler_c_o_GCJ \
18428
exclude_expsyms_GCJ \
18429
include_expsyms_GCJ; do
18432
old_archive_cmds_GCJ | \
18433
old_archive_from_new_cmds_GCJ | \
18434
archive_cmds_GCJ | \
18435
archive_expsym_cmds_GCJ | \
18436
module_cmds_GCJ | \
18437
module_expsym_cmds_GCJ | \
18438
old_archive_from_expsyms_cmds_GCJ | \
18439
export_symbols_cmds_GCJ | \
18440
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18441
postinstall_cmds | postuninstall_cmds | \
18442
old_postinstall_cmds | old_postuninstall_cmds | \
18443
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18444
# Double-quote double-evaled strings.
18445
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18448
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18454
*'\$0 --fallback-echo"')
18455
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18461
cat <<__EOF__ >> "$cfgfile"
18462
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18464
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18466
# Shell to use when invoking shell scripts.
18469
# Whether or not to build shared libraries.
18470
build_libtool_libs=$enable_shared
18472
# Whether or not to build static libraries.
18473
build_old_libs=$enable_static
18475
# Whether or not to add -lc for building shared libraries.
18476
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18478
# Whether or not to disallow shared libs when runtime libs are static
18479
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18481
# Whether or not to optimize for fast installation.
18482
fast_install=$enable_fast_install
18485
host_alias=$host_alias
18489
# The build system.
18490
build_alias=$build_alias
18494
# An echo program that does not interpret backslashes.
18499
AR_FLAGS=$lt_AR_FLAGS
18504
# LTCC compiler flags.
18505
LTCFLAGS=$lt_LTCFLAGS
18507
# A language-specific compiler.
18508
CC=$lt_compiler_GCJ
18510
# Is the compiler the GNU C compiler?
18516
# The linker used to build libraries.
18519
# Whether we need hard or soft links.
18522
# A BSD-compatible nm program.
18525
# A symbol stripping program
18528
# Used to examine libraries when file_magic_cmd begins "file"
18529
MAGIC_CMD=$MAGIC_CMD
18531
# Used on cygwin: DLL creation program.
18534
# Used on cygwin: object dumper.
18537
# Used on cygwin: assembler.
18540
# The name of the directory that contains temporary libtool files.
18543
# How to create reloadable object files.
18544
reload_flag=$lt_reload_flag
18545
reload_cmds=$lt_reload_cmds
18547
# How to pass a linker flag through the compiler.
18548
wl=$lt_lt_prog_compiler_wl_GCJ
18550
# Object file suffix (normally "o").
18551
objext="$ac_objext"
18553
# Old archive suffix (normally "a").
18556
# Shared library suffix (normally ".so").
18557
shrext_cmds='$shrext_cmds'
18559
# Executable file suffix (normally "").
18562
# Additional compiler flags for building library objects.
18563
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18566
# What is the maximum length of a command?
18567
max_cmd_len=$lt_cv_sys_max_cmd_len
18569
# Does compiler simultaneously support -c and -o options?
18570
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18572
# Must we lock files when doing compilation?
18573
need_locks=$lt_need_locks
18575
# Do we need the lib prefix for modules?
18576
need_lib_prefix=$need_lib_prefix
18578
# Do we need a version for libraries?
18579
need_version=$need_version
18581
# Whether dlopen is supported.
18582
dlopen_support=$enable_dlopen
18584
# Whether dlopen of programs is supported.
18585
dlopen_self=$enable_dlopen_self
18587
# Whether dlopen of statically linked programs is supported.
18588
dlopen_self_static=$enable_dlopen_self_static
18590
# Compiler flag to prevent dynamic linking.
18591
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18593
# Compiler flag to turn off builtin functions.
18594
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18596
# Compiler flag to allow reflexive dlopens.
18597
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18599
# Compiler flag to generate shared objects directly from archives.
18600
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18602
# Compiler flag to generate thread-safe objects.
18603
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18605
# Library versioning type.
18606
version_type=$version_type
18608
# Format of library name prefix.
18609
libname_spec=$lt_libname_spec
18611
# List of archive names. First name is the real one, the rest are links.
18612
# The last name is the one that the linker finds with -lNAME.
18613
library_names_spec=$lt_library_names_spec
18615
# The coded name of the library, if different from the real name.
18616
soname_spec=$lt_soname_spec
18618
# Commands used to build and install an old-style archive.
18620
old_archive_cmds=$lt_old_archive_cmds_GCJ
18621
old_postinstall_cmds=$lt_old_postinstall_cmds
18622
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18624
# Create an old-style archive from a shared archive.
18625
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18627
# Create a temporary old-style archive to link instead of a shared archive.
18628
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18630
# Commands used to build and install a shared archive.
18631
archive_cmds=$lt_archive_cmds_GCJ
18632
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18633
postinstall_cmds=$lt_postinstall_cmds
18634
postuninstall_cmds=$lt_postuninstall_cmds
18636
# Commands used to build a loadable module (assumed same as above if empty)
18637
module_cmds=$lt_module_cmds_GCJ
18638
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18640
# Commands to strip libraries.
18641
old_striplib=$lt_old_striplib
18642
striplib=$lt_striplib
18644
# Dependencies to place before the objects being linked to create a
18646
predep_objects=$lt_predep_objects_GCJ
18648
# Dependencies to place after the objects being linked to create a
18650
postdep_objects=$lt_postdep_objects_GCJ
18652
# Dependencies to place before the objects being linked to create a
18654
predeps=$lt_predeps_GCJ
18656
# Dependencies to place after the objects being linked to create a
18658
postdeps=$lt_postdeps_GCJ
18660
# The library search path used internally by the compiler when linking
18661
# a shared library.
18662
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18664
# Method to check whether dependent libraries are shared objects.
18665
deplibs_check_method=$lt_deplibs_check_method
18667
# Command to use when deplibs_check_method == file_magic.
18668
file_magic_cmd=$lt_file_magic_cmd
18670
# Flag that allows shared libraries with undefined symbols to be built.
18671
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18673
# Flag that forces no undefined symbols.
18674
no_undefined_flag=$lt_no_undefined_flag_GCJ
18676
# Commands used to finish a libtool library installation in a directory.
18677
finish_cmds=$lt_finish_cmds
18679
# Same as above, but a single script fragment to be evaled but not shown.
18680
finish_eval=$lt_finish_eval
18682
# Take the output of nm and produce a listing of raw symbols and C names.
18683
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18685
# Transform the output of nm in a proper C declaration
18686
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18688
# Transform the output of nm in a C name address pair
18689
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18691
# This is the shared library runtime path variable.
18692
runpath_var=$runpath_var
18694
# This is the shared library path variable.
18695
shlibpath_var=$shlibpath_var
18697
# Is shlibpath searched before the hard-coded library search path?
18698
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18700
# How to hardcode a shared library path into an executable.
18701
hardcode_action=$hardcode_action_GCJ
18703
# Whether we should hardcode library paths into libraries.
18704
hardcode_into_libs=$hardcode_into_libs
18706
# Flag to hardcode \$libdir into a binary during linking.
18707
# This must work even if \$libdir does not exist.
18708
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18710
# If ld is used when linking, flag to hardcode \$libdir into
18711
# a binary during linking. This must work even if \$libdir does
18713
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18715
# Whether we need a single -rpath flag with a separated argument.
18716
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18718
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18719
# resulting binary.
18720
hardcode_direct=$hardcode_direct_GCJ
18722
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18723
# resulting binary.
18724
hardcode_minus_L=$hardcode_minus_L_GCJ
18726
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18727
# the resulting binary.
18728
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18730
# Set to yes if building a shared library automatically hardcodes DIR into the library
18731
# and all subsequent libraries and executables linked against it.
18732
hardcode_automatic=$hardcode_automatic_GCJ
18734
# Variables whose values should be saved in libtool wrapper scripts and
18735
# restored at relink time.
18736
variables_saved_for_relink="$variables_saved_for_relink"
18738
# Whether libtool must link a program against all its dependency libraries.
18739
link_all_deplibs=$link_all_deplibs_GCJ
18741
# Compile-time system search path for libraries
18742
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18744
# Run-time system search path for libraries
18745
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18747
# Fix the shell variable \$srcfile for the compiler.
18748
fix_srcfile_path="$fix_srcfile_path_GCJ"
18750
# Set to yes if exported symbols are required.
18751
always_export_symbols=$always_export_symbols_GCJ
18753
# The commands to list exported symbols.
18754
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18756
# The commands to extract the exported symbol list from a shared archive.
18757
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18759
# Symbols that should not be listed in the preloaded symbols.
18760
exclude_expsyms=$lt_exclude_expsyms_GCJ
18762
# Symbols that must always be exported.
18763
include_expsyms=$lt_include_expsyms_GCJ
18765
# ### END LIBTOOL TAG CONFIG: $tagname
18771
# If there is no Makefile yet, we rely on a make rule to execute
18772
# `config.status --recheck' to rerun these tests and create the
18773
# libtool script then.
18774
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18775
if test -f "$ltmain_in"; then
18776
test -f Makefile && make "$ltmain"
18782
ac_cpp='$CPP $CPPFLAGS'
18783
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18797
# Source file extension for RC test sources.
18800
# Object file extension for compiled RC test sources.
18804
# Code to be used in simple compile tests
18805
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18807
# Code to be used in simple link tests
18808
lt_simple_link_test_code="$lt_simple_compile_test_code"
18810
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18812
# If no C compiler was specified, use CC.
18815
# If no C compiler flags were specified, use CFLAGS.
18816
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18818
# Allow CC to be a program name with arguments.
18822
# save warnings/boilerplate of simple test code
18823
ac_outfile=conftest.$ac_objext
18824
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18825
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18826
_lt_compiler_boilerplate=`cat conftest.err`
18829
ac_outfile=conftest.$ac_objext
18830
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18831
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18832
_lt_linker_boilerplate=`cat conftest.err`
18836
# Allow CC to be a program name with arguments.
18841
for cc_temp in $compiler""; do
18843
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18844
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18849
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18851
lt_cv_prog_compiler_c_o_RC=yes
18853
# The else clause should only fire when bootstrapping the
18854
# libtool distribution, otherwise you forgot to ship ltmain.sh
18855
# with your package, and you will get complaints that there are
18856
# no rules to generate ltmain.sh.
18857
if test -f "$ltmain"; then
18858
# See if we are running on zsh, and set the options which allow our commands through
18859
# without removal of \ escapes.
18860
if test -n "${ZSH_VERSION+set}" ; then
18861
setopt NO_GLOB_SUBST
18863
# Now quote all the things that may contain metacharacters while being
18864
# careful not to overquote the AC_SUBSTed values. We take copies of the
18865
# variables and quote the copies for generation of the libtool script.
18866
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18868
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18869
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18870
deplibs_check_method reload_flag reload_cmds need_locks \
18871
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18872
lt_cv_sys_global_symbol_to_c_name_address \
18873
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18874
old_postinstall_cmds old_postuninstall_cmds \
18878
lt_prog_compiler_wl_RC \
18879
lt_prog_compiler_pic_RC \
18880
lt_prog_compiler_static_RC \
18881
lt_prog_compiler_no_builtin_flag_RC \
18882
export_dynamic_flag_spec_RC \
18883
thread_safe_flag_spec_RC \
18884
whole_archive_flag_spec_RC \
18885
enable_shared_with_static_runtimes_RC \
18886
old_archive_cmds_RC \
18887
old_archive_from_new_cmds_RC \
18888
predep_objects_RC \
18889
postdep_objects_RC \
18892
compiler_lib_search_path_RC \
18894
archive_expsym_cmds_RC \
18895
postinstall_cmds_RC \
18896
postuninstall_cmds_RC \
18897
old_archive_from_expsyms_cmds_RC \
18898
allow_undefined_flag_RC \
18899
no_undefined_flag_RC \
18900
export_symbols_cmds_RC \
18901
hardcode_libdir_flag_spec_RC \
18902
hardcode_libdir_flag_spec_ld_RC \
18903
hardcode_libdir_separator_RC \
18904
hardcode_automatic_RC \
18906
module_expsym_cmds_RC \
18907
lt_cv_prog_compiler_c_o_RC \
18908
exclude_expsyms_RC \
18909
include_expsyms_RC; do
18912
old_archive_cmds_RC | \
18913
old_archive_from_new_cmds_RC | \
18914
archive_cmds_RC | \
18915
archive_expsym_cmds_RC | \
18917
module_expsym_cmds_RC | \
18918
old_archive_from_expsyms_cmds_RC | \
18919
export_symbols_cmds_RC | \
18920
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18921
postinstall_cmds | postuninstall_cmds | \
18922
old_postinstall_cmds | old_postuninstall_cmds | \
18923
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18924
# Double-quote double-evaled strings.
18925
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18928
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18934
*'\$0 --fallback-echo"')
18935
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18941
cat <<__EOF__ >> "$cfgfile"
18942
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18944
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18946
# Shell to use when invoking shell scripts.
18949
# Whether or not to build shared libraries.
18950
build_libtool_libs=$enable_shared
18952
# Whether or not to build static libraries.
18953
build_old_libs=$enable_static
18955
# Whether or not to add -lc for building shared libraries.
18956
build_libtool_need_lc=$archive_cmds_need_lc_RC
18958
# Whether or not to disallow shared libs when runtime libs are static
18959
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18961
# Whether or not to optimize for fast installation.
18962
fast_install=$enable_fast_install
18965
host_alias=$host_alias
18969
# The build system.
18970
build_alias=$build_alias
18974
# An echo program that does not interpret backslashes.
18979
AR_FLAGS=$lt_AR_FLAGS
18984
# LTCC compiler flags.
18985
LTCFLAGS=$lt_LTCFLAGS
18987
# A language-specific compiler.
18990
# Is the compiler the GNU C compiler?
18996
# The linker used to build libraries.
18999
# Whether we need hard or soft links.
19002
# A BSD-compatible nm program.
19005
# A symbol stripping program
19008
# Used to examine libraries when file_magic_cmd begins "file"
19009
MAGIC_CMD=$MAGIC_CMD
19011
# Used on cygwin: DLL creation program.
19014
# Used on cygwin: object dumper.
19017
# Used on cygwin: assembler.
19020
# The name of the directory that contains temporary libtool files.
19023
# How to create reloadable object files.
19024
reload_flag=$lt_reload_flag
19025
reload_cmds=$lt_reload_cmds
19027
# How to pass a linker flag through the compiler.
19028
wl=$lt_lt_prog_compiler_wl_RC
19030
# Object file suffix (normally "o").
19031
objext="$ac_objext"
19033
# Old archive suffix (normally "a").
19036
# Shared library suffix (normally ".so").
19037
shrext_cmds='$shrext_cmds'
19039
# Executable file suffix (normally "").
19042
# Additional compiler flags for building library objects.
19043
pic_flag=$lt_lt_prog_compiler_pic_RC
19046
# What is the maximum length of a command?
19047
max_cmd_len=$lt_cv_sys_max_cmd_len
19049
# Does compiler simultaneously support -c and -o options?
19050
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19052
# Must we lock files when doing compilation?
19053
need_locks=$lt_need_locks
19055
# Do we need the lib prefix for modules?
19056
need_lib_prefix=$need_lib_prefix
19058
# Do we need a version for libraries?
19059
need_version=$need_version
19061
# Whether dlopen is supported.
19062
dlopen_support=$enable_dlopen
19064
# Whether dlopen of programs is supported.
19065
dlopen_self=$enable_dlopen_self
19067
# Whether dlopen of statically linked programs is supported.
19068
dlopen_self_static=$enable_dlopen_self_static
19070
# Compiler flag to prevent dynamic linking.
19071
link_static_flag=$lt_lt_prog_compiler_static_RC
19073
# Compiler flag to turn off builtin functions.
19074
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19076
# Compiler flag to allow reflexive dlopens.
19077
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19079
# Compiler flag to generate shared objects directly from archives.
19080
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19082
# Compiler flag to generate thread-safe objects.
19083
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19085
# Library versioning type.
19086
version_type=$version_type
19088
# Format of library name prefix.
19089
libname_spec=$lt_libname_spec
19091
# List of archive names. First name is the real one, the rest are links.
19092
# The last name is the one that the linker finds with -lNAME.
19093
library_names_spec=$lt_library_names_spec
19095
# The coded name of the library, if different from the real name.
19096
soname_spec=$lt_soname_spec
19098
# Commands used to build and install an old-style archive.
19100
old_archive_cmds=$lt_old_archive_cmds_RC
19101
old_postinstall_cmds=$lt_old_postinstall_cmds
19102
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19104
# Create an old-style archive from a shared archive.
19105
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19107
# Create a temporary old-style archive to link instead of a shared archive.
19108
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19110
# Commands used to build and install a shared archive.
19111
archive_cmds=$lt_archive_cmds_RC
19112
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19113
postinstall_cmds=$lt_postinstall_cmds
19114
postuninstall_cmds=$lt_postuninstall_cmds
19116
# Commands used to build a loadable module (assumed same as above if empty)
19117
module_cmds=$lt_module_cmds_RC
19118
module_expsym_cmds=$lt_module_expsym_cmds_RC
19120
# Commands to strip libraries.
19121
old_striplib=$lt_old_striplib
19122
striplib=$lt_striplib
19124
# Dependencies to place before the objects being linked to create a
19126
predep_objects=$lt_predep_objects_RC
19128
# Dependencies to place after the objects being linked to create a
19130
postdep_objects=$lt_postdep_objects_RC
19132
# Dependencies to place before the objects being linked to create a
19134
predeps=$lt_predeps_RC
19136
# Dependencies to place after the objects being linked to create a
19138
postdeps=$lt_postdeps_RC
19140
# The library search path used internally by the compiler when linking
19141
# a shared library.
19142
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19144
# Method to check whether dependent libraries are shared objects.
19145
deplibs_check_method=$lt_deplibs_check_method
19147
# Command to use when deplibs_check_method == file_magic.
19148
file_magic_cmd=$lt_file_magic_cmd
19150
# Flag that allows shared libraries with undefined symbols to be built.
19151
allow_undefined_flag=$lt_allow_undefined_flag_RC
19153
# Flag that forces no undefined symbols.
19154
no_undefined_flag=$lt_no_undefined_flag_RC
19156
# Commands used to finish a libtool library installation in a directory.
19157
finish_cmds=$lt_finish_cmds
19159
# Same as above, but a single script fragment to be evaled but not shown.
19160
finish_eval=$lt_finish_eval
19162
# Take the output of nm and produce a listing of raw symbols and C names.
19163
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19165
# Transform the output of nm in a proper C declaration
19166
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19168
# Transform the output of nm in a C name address pair
19169
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19171
# This is the shared library runtime path variable.
19172
runpath_var=$runpath_var
19174
# This is the shared library path variable.
19175
shlibpath_var=$shlibpath_var
19177
# Is shlibpath searched before the hard-coded library search path?
19178
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180
# How to hardcode a shared library path into an executable.
19181
hardcode_action=$hardcode_action_RC
19183
# Whether we should hardcode library paths into libraries.
19184
hardcode_into_libs=$hardcode_into_libs
19186
# Flag to hardcode \$libdir into a binary during linking.
19187
# This must work even if \$libdir does not exist.
19188
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19190
# If ld is used when linking, flag to hardcode \$libdir into
19191
# a binary during linking. This must work even if \$libdir does
19193
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19195
# Whether we need a single -rpath flag with a separated argument.
19196
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19198
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19199
# resulting binary.
19200
hardcode_direct=$hardcode_direct_RC
19202
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19203
# resulting binary.
19204
hardcode_minus_L=$hardcode_minus_L_RC
19206
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19207
# the resulting binary.
19208
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19210
# Set to yes if building a shared library automatically hardcodes DIR into the library
19211
# and all subsequent libraries and executables linked against it.
19212
hardcode_automatic=$hardcode_automatic_RC
19214
# Variables whose values should be saved in libtool wrapper scripts and
19215
# restored at relink time.
19216
variables_saved_for_relink="$variables_saved_for_relink"
19218
# Whether libtool must link a program against all its dependency libraries.
19219
link_all_deplibs=$link_all_deplibs_RC
19221
# Compile-time system search path for libraries
19222
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19224
# Run-time system search path for libraries
19225
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227
# Fix the shell variable \$srcfile for the compiler.
19228
fix_srcfile_path="$fix_srcfile_path_RC"
19230
# Set to yes if exported symbols are required.
19231
always_export_symbols=$always_export_symbols_RC
19233
# The commands to list exported symbols.
19234
export_symbols_cmds=$lt_export_symbols_cmds_RC
19236
# The commands to extract the exported symbol list from a shared archive.
19237
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19239
# Symbols that should not be listed in the preloaded symbols.
19240
exclude_expsyms=$lt_exclude_expsyms_RC
19242
# Symbols that must always be exported.
19243
include_expsyms=$lt_include_expsyms_RC
19245
# ### END LIBTOOL TAG CONFIG: $tagname
19251
# If there is no Makefile yet, we rely on a make rule to execute
19252
# `config.status --recheck' to rerun these tests and create the
19253
# libtool script then.
19254
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19255
if test -f "$ltmain_in"; then
19256
test -f Makefile && make "$ltmain"
19262
ac_cpp='$CPP $CPPFLAGS'
19263
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19272
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19273
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19274
{ (exit 1); exit 1; }; }
19278
# Append the new tag name to the list of available tags.
19279
if test -n "$tagname" ; then
19280
available_tags="$available_tags $tagname"
19286
# Now substitute the updated list of available tags.
19287
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19288
mv "${ofile}T" "$ofile"
19292
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19293
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19294
{ (exit 1); exit 1; }; }
19300
# This can be used to rebuild libtool when needed
19301
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19303
# Always use our own libtool.
19304
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19306
# Prevent multiple expansion
11040
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11041
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11042
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11043
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11044
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11045
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11046
$as_echo "yes" >&6; }
11048
# FIXME - insert some real tests, host_os isn't really good enough
11051
if test -n "$STRIP" ; then
11052
striplib="$STRIP -x"
11053
old_striplib="$STRIP -S"
11054
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11055
$as_echo "yes" >&6; }
11057
{ $as_echo "$as_me:$LINENO: result: no" >&5
11058
$as_echo "no" >&6; }
11062
{ $as_echo "$as_me:$LINENO: result: no" >&5
11063
$as_echo "no" >&6; }
11079
# Report which library types will actually be built
11080
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11081
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11082
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11083
$as_echo "$can_build_shared" >&6; }
11085
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11086
$as_echo_n "checking whether to build shared libraries... " >&6; }
11087
test "$can_build_shared" = "no" && enable_shared=no
11089
# On AIX, shared libraries and static libraries use the same namespace, and
11090
# are all built from PIC.
11093
test "$enable_shared" = yes && enable_static=no
11094
if test -n "$RANLIB"; then
11095
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11096
postinstall_cmds='$RANLIB $lib'
11101
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11102
test "$enable_shared" = yes && enable_static=no
11106
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11107
$as_echo "$enable_shared" >&6; }
11109
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11110
$as_echo_n "checking whether to build static libraries... " >&6; }
11111
# Make sure either enable_shared or enable_static is yes.
11112
test "$enable_shared" = yes || enable_static=yes
11113
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11114
$as_echo "$enable_static" >&6; }
11121
ac_cpp='$CPP $CPPFLAGS'
11122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140
ac_config_commands="$ac_config_commands libtool"
11145
# Only expand once: