11299
# Report which library types will actually be built
11300
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11301
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11302
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11303
echo "${ECHO_T}$can_build_shared" >&6; }
11305
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11306
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11307
test "$can_build_shared" = "no" && enable_shared=no
11309
# On AIX, shared libraries and static libraries use the same namespace, and
11310
# are all built from PIC.
11313
test "$enable_shared" = yes && enable_static=no
11314
if test -n "$RANLIB"; then
11315
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11316
postinstall_cmds='$RANLIB $lib'
11321
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11322
test "$enable_shared" = yes && enable_static=no
11326
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11327
echo "${ECHO_T}$enable_shared" >&6; }
11329
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11330
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11331
# Make sure either enable_shared or enable_static is yes.
11332
test "$enable_shared" = yes || enable_static=yes
11333
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11334
echo "${ECHO_T}$enable_static" >&6; }
11336
# The else clause should only fire when bootstrapping the
11337
# libtool distribution, otherwise you forgot to ship ltmain.sh
11338
# with your package, and you will get complaints that there are
11339
# no rules to generate ltmain.sh.
11340
if test -f "$ltmain"; then
11341
# See if we are running on zsh, and set the options which allow our commands through
11342
# without removal of \ escapes.
11343
if test -n "${ZSH_VERSION+set}" ; then
11344
setopt NO_GLOB_SUBST
11346
# Now quote all the things that may contain metacharacters while being
11347
# careful not to overquote the AC_SUBSTed values. We take copies of the
11348
# variables and quote the copies for generation of the libtool script.
11349
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11351
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11352
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11353
deplibs_check_method reload_flag reload_cmds need_locks \
11354
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11355
lt_cv_sys_global_symbol_to_c_name_address \
11356
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11357
old_postinstall_cmds old_postuninstall_cmds \
11361
lt_prog_compiler_wl \
11362
lt_prog_compiler_pic \
11363
lt_prog_compiler_static \
11364
lt_prog_compiler_no_builtin_flag \
11365
export_dynamic_flag_spec \
11366
thread_safe_flag_spec \
11367
whole_archive_flag_spec \
11368
enable_shared_with_static_runtimes \
11370
old_archive_from_new_cmds \
11375
compiler_lib_search_path \
11376
compiler_lib_search_dirs \
11378
archive_expsym_cmds \
11380
postuninstall_cmds \
11381
old_archive_from_expsyms_cmds \
11382
allow_undefined_flag \
11383
no_undefined_flag \
11384
export_symbols_cmds \
11385
hardcode_libdir_flag_spec \
11386
hardcode_libdir_flag_spec_ld \
11387
hardcode_libdir_separator \
11388
hardcode_automatic \
11390
module_expsym_cmds \
11391
lt_cv_prog_compiler_c_o \
11394
include_expsyms; do
11397
old_archive_cmds | \
11398
old_archive_from_new_cmds | \
11400
archive_expsym_cmds | \
11402
module_expsym_cmds | \
11403
old_archive_from_expsyms_cmds | \
11404
export_symbols_cmds | \
11405
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11406
postinstall_cmds | postuninstall_cmds | \
11407
old_postinstall_cmds | old_postuninstall_cmds | \
11408
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11409
# Double-quote double-evaled strings.
11410
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11413
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11419
*'\$0 --fallback-echo"')
11420
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11424
cfgfile="${ofile}T"
11425
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11427
{ echo "$as_me:$LINENO: creating $ofile" >&5
11428
echo "$as_me: creating $ofile" >&6;}
11430
cat <<__EOF__ >> "$cfgfile"
11433
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11434
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11435
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11437
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11438
# Free Software Foundation, Inc.
11440
# This file is part of GNU Libtool:
11441
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11443
# This program is free software; you can redistribute it and/or modify
11444
# it under the terms of the GNU General Public License as published by
11445
# the Free Software Foundation; either version 2 of the License, or
11446
# (at your option) any later version.
11448
# This program is distributed in the hope that it will be useful, but
11449
# WITHOUT ANY WARRANTY; without even the implied warranty of
11450
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11451
# General Public License for more details.
11453
# You should have received a copy of the GNU General Public License
11454
# along with this program; if not, write to the Free Software
11455
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11457
# As a special exception to the GNU General Public License, if you
11458
# distribute this file as part of a program that contains a
11459
# configuration script generated by Autoconf, you may include it under
11460
# the same distribution terms that you use for the rest of that program.
11462
# A sed program that does not truncate output.
11465
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11466
Xsed="$SED -e 1s/^X//"
11468
# The HP-UX ksh and POSIX shell print the target directory to stdout
11469
# if CDPATH is set.
11470
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11472
# The names of the tagged configurations supported by this script.
11475
# ### BEGIN LIBTOOL CONFIG
11477
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11479
# Shell to use when invoking shell scripts.
11482
# Whether or not to build shared libraries.
11483
build_libtool_libs=$enable_shared
11485
# Whether or not to build static libraries.
11486
build_old_libs=$enable_static
11488
# Whether or not to add -lc for building shared libraries.
11489
build_libtool_need_lc=$archive_cmds_need_lc
11491
# Whether or not to disallow shared libs when runtime libs are static
11492
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11494
# Whether or not to optimize for fast installation.
11495
fast_install=$enable_fast_install
11498
host_alias=$host_alias
11502
# The build system.
11503
build_alias=$build_alias
11507
# An echo program that does not interpret backslashes.
11512
AR_FLAGS=$lt_AR_FLAGS
11517
# LTCC compiler flags.
11518
LTCFLAGS=$lt_LTCFLAGS
11520
# A language-specific compiler.
11523
# Is the compiler the GNU C compiler?
11529
# The linker used to build libraries.
11532
# Whether we need hard or soft links.
11535
# A BSD-compatible nm program.
11538
# A symbol stripping program
11541
# Used to examine libraries when file_magic_cmd begins "file"
11542
MAGIC_CMD=$MAGIC_CMD
11544
# Used on cygwin: DLL creation program.
11547
# Used on cygwin: object dumper.
11550
# Used on cygwin: assembler.
11553
# The name of the directory that contains temporary libtool files.
11556
# How to create reloadable object files.
11557
reload_flag=$lt_reload_flag
11558
reload_cmds=$lt_reload_cmds
11560
# How to pass a linker flag through the compiler.
11561
wl=$lt_lt_prog_compiler_wl
11563
# Object file suffix (normally "o").
11564
objext="$ac_objext"
11566
# Old archive suffix (normally "a").
11569
# Shared library suffix (normally ".so").
11570
shrext_cmds='$shrext_cmds'
11572
# Executable file suffix (normally "").
11575
# Additional compiler flags for building library objects.
11576
pic_flag=$lt_lt_prog_compiler_pic
11579
# What is the maximum length of a command?
11580
max_cmd_len=$lt_cv_sys_max_cmd_len
11582
# Does compiler simultaneously support -c and -o options?
11583
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11585
# Must we lock files when doing compilation?
11586
need_locks=$lt_need_locks
11588
# Do we need the lib prefix for modules?
11589
need_lib_prefix=$need_lib_prefix
11591
# Do we need a version for libraries?
11592
need_version=$need_version
11594
# Whether dlopen is supported.
11595
dlopen_support=$enable_dlopen
11597
# Whether dlopen of programs is supported.
11598
dlopen_self=$enable_dlopen_self
11600
# Whether dlopen of statically linked programs is supported.
11601
dlopen_self_static=$enable_dlopen_self_static
11603
# Compiler flag to prevent dynamic linking.
11604
link_static_flag=$lt_lt_prog_compiler_static
11606
# Compiler flag to turn off builtin functions.
11607
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11609
# Compiler flag to allow reflexive dlopens.
11610
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11612
# Compiler flag to generate shared objects directly from archives.
11613
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11615
# Compiler flag to generate thread-safe objects.
11616
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11618
# Library versioning type.
11619
version_type=$version_type
11621
# Format of library name prefix.
11622
libname_spec=$lt_libname_spec
11624
# List of archive names. First name is the real one, the rest are links.
11625
# The last name is the one that the linker finds with -lNAME.
11626
library_names_spec=$lt_library_names_spec
11628
# The coded name of the library, if different from the real name.
11629
soname_spec=$lt_soname_spec
11631
# Commands used to build and install an old-style archive.
11633
old_archive_cmds=$lt_old_archive_cmds
11634
old_postinstall_cmds=$lt_old_postinstall_cmds
11635
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11637
# Create an old-style archive from a shared archive.
11638
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11640
# Create a temporary old-style archive to link instead of a shared archive.
11641
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11643
# Commands used to build and install a shared archive.
11644
archive_cmds=$lt_archive_cmds
11645
archive_expsym_cmds=$lt_archive_expsym_cmds
11646
postinstall_cmds=$lt_postinstall_cmds
11647
postuninstall_cmds=$lt_postuninstall_cmds
11649
# Commands used to build a loadable module (assumed same as above if empty)
11650
module_cmds=$lt_module_cmds
11651
module_expsym_cmds=$lt_module_expsym_cmds
11653
# Commands to strip libraries.
11654
old_striplib=$lt_old_striplib
11655
striplib=$lt_striplib
11657
# Dependencies to place before the objects being linked to create a
11659
predep_objects=$lt_predep_objects
11661
# Dependencies to place after the objects being linked to create a
11663
postdep_objects=$lt_postdep_objects
11665
# Dependencies to place before the objects being linked to create a
11667
predeps=$lt_predeps
11669
# Dependencies to place after the objects being linked to create a
11671
postdeps=$lt_postdeps
11673
# The directories searched by this compiler when creating a shared
11675
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11677
# The library search path used internally by the compiler when linking
11678
# a shared library.
11679
compiler_lib_search_path=$lt_compiler_lib_search_path
11681
# Method to check whether dependent libraries are shared objects.
11682
deplibs_check_method=$lt_deplibs_check_method
11684
# Command to use when deplibs_check_method == file_magic.
11685
file_magic_cmd=$lt_file_magic_cmd
11687
# Flag that allows shared libraries with undefined symbols to be built.
11688
allow_undefined_flag=$lt_allow_undefined_flag
11690
# Flag that forces no undefined symbols.
11691
no_undefined_flag=$lt_no_undefined_flag
11693
# Commands used to finish a libtool library installation in a directory.
11694
finish_cmds=$lt_finish_cmds
11696
# Same as above, but a single script fragment to be evaled but not shown.
11697
finish_eval=$lt_finish_eval
11699
# Take the output of nm and produce a listing of raw symbols and C names.
11700
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11702
# Transform the output of nm in a proper C declaration
11703
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11705
# Transform the output of nm in a C name address pair
11706
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11708
# This is the shared library runtime path variable.
11709
runpath_var=$runpath_var
11711
# This is the shared library path variable.
11712
shlibpath_var=$shlibpath_var
11714
# Is shlibpath searched before the hard-coded library search path?
11715
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11717
# How to hardcode a shared library path into an executable.
11718
hardcode_action=$hardcode_action
11720
# Whether we should hardcode library paths into libraries.
11721
hardcode_into_libs=$hardcode_into_libs
11723
# Flag to hardcode \$libdir into a binary during linking.
11724
# This must work even if \$libdir does not exist.
11725
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11727
# If ld is used when linking, flag to hardcode \$libdir into
11728
# a binary during linking. This must work even if \$libdir does
11730
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11732
# Whether we need a single -rpath flag with a separated argument.
11733
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11735
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11736
# resulting binary.
11737
hardcode_direct=$hardcode_direct
11739
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11740
# resulting binary.
11741
hardcode_minus_L=$hardcode_minus_L
11743
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11744
# the resulting binary.
11745
hardcode_shlibpath_var=$hardcode_shlibpath_var
11747
# Set to yes if building a shared library automatically hardcodes DIR into the library
11748
# and all subsequent libraries and executables linked against it.
11749
hardcode_automatic=$hardcode_automatic
11751
# Variables whose values should be saved in libtool wrapper scripts and
11752
# restored at relink time.
11753
variables_saved_for_relink="$variables_saved_for_relink"
11755
# Whether libtool must link a program against all its dependency libraries.
11756
link_all_deplibs=$link_all_deplibs
11758
# Compile-time system search path for libraries
11759
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11761
# Run-time system search path for libraries
11762
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11764
# Fix the shell variable \$srcfile for the compiler.
11765
fix_srcfile_path=$lt_fix_srcfile_path
11767
# Set to yes if exported symbols are required.
11768
always_export_symbols=$always_export_symbols
11770
# The commands to list exported symbols.
11771
export_symbols_cmds=$lt_export_symbols_cmds
11773
# The commands to extract the exported symbol list from a shared archive.
11774
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11776
# Symbols that should not be listed in the preloaded symbols.
11777
exclude_expsyms=$lt_exclude_expsyms
11779
# Symbols that must always be exported.
11780
include_expsyms=$lt_include_expsyms
11782
# ### END LIBTOOL CONFIG
11789
cat <<\EOF >> "$cfgfile"
11791
# AIX sometimes has problems with the GCC collect2 program. For some
11792
# reason, if we set the COLLECT_NAMES environment variable, the problems
11793
# vanish in a puff of smoke.
11794
if test "X${COLLECT_NAMES+set}" != Xset; then
11796
export COLLECT_NAMES
11802
# We use sed instead of cat because bash on DJGPP gets confused if
11803
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11804
# text mode, it properly converts lines to CR/LF. This bash problem
11805
# is reportedly fixed, but why not run on old versions too?
11806
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11808
mv -f "$cfgfile" "$ofile" || \
11809
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11813
# If there is no Makefile yet, we rely on a make rule to execute
11814
# `config.status --recheck' to rerun these tests and create the
11815
# libtool script then.
11816
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11817
if test -f "$ltmain_in"; then
11818
test -f Makefile && make "$ltmain"
11824
ac_cpp='$CPP $CPPFLAGS'
11825
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11832
# Check whether --with-tags was given.
11833
if test "${with_tags+set}" = set; then
11834
withval=$with_tags; tagnames="$withval"
11838
if test -f "$ltmain" && test -n "$tagnames"; then
11839
if test ! -f "${ofile}"; then
11840
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11841
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11844
if test -z "$LTCC"; then
11845
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11846
if test -z "$LTCC"; then
11847
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11848
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11850
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11851
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11854
if test -z "$LTCFLAGS"; then
11855
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11858
# Extract list of available tagged configurations in $ofile.
11859
# Note that this assumes the entire list is on one line.
11860
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11862
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11863
for tagname in $tagnames; do
11865
# Check whether tagname contains only valid characters
11866
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11868
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11869
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11870
{ (exit 1); exit 1; }; }
11874
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11876
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11877
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11878
{ (exit 1); exit 1; }; }
11881
# Update the list of available tags.
11882
if test -n "$tagname"; then
11883
echo appending configuration tag \"$tagname\" to $ofile
11887
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11888
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11889
(test "X$CXX" != "Xg++"))) ; then
11891
ac_cpp='$CXXCPP $CPPFLAGS'
11892
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11899
archive_cmds_need_lc_CXX=no
11900
allow_undefined_flag_CXX=
11901
always_export_symbols_CXX=no
11902
archive_expsym_cmds_CXX=
11903
export_dynamic_flag_spec_CXX=
11904
hardcode_direct_CXX=no
11905
hardcode_libdir_flag_spec_CXX=
11906
hardcode_libdir_flag_spec_ld_CXX=
11907
hardcode_libdir_separator_CXX=
11908
hardcode_minus_L_CXX=no
11909
hardcode_shlibpath_var_CXX=unsupported
11910
hardcode_automatic_CXX=no
11912
module_expsym_cmds_CXX=
11913
link_all_deplibs_CXX=unknown
11914
old_archive_cmds_CXX=$old_archive_cmds
11915
no_undefined_flag_CXX=
11916
whole_archive_flag_spec_CXX=
11917
enable_shared_with_static_runtimes_CXX=no
11919
# Dependencies to place before and after the object being linked:
11920
predep_objects_CXX=
11921
postdep_objects_CXX=
11924
compiler_lib_search_path_CXX=
11925
compiler_lib_search_dirs_CXX=
11927
# Source file extension for C++ test sources.
11930
# Object file extension for compiled C++ test sources.
11934
# Code to be used in simple compile tests
11935
lt_simple_compile_test_code="int some_variable = 0;"
11937
# Code to be used in simple link tests
11938
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11940
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11942
# If no C compiler was specified, use CC.
11945
# If no C compiler flags were specified, use CFLAGS.
11946
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11948
# Allow CC to be a program name with arguments.
11952
# save warnings/boilerplate of simple test code
11953
ac_outfile=conftest.$ac_objext
11954
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11955
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11956
_lt_compiler_boilerplate=`cat conftest.err`
11959
ac_outfile=conftest.$ac_objext
11960
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11961
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11962
_lt_linker_boilerplate=`cat conftest.err`
11966
# Allow CC to be a program name with arguments.
11971
lt_save_with_gnu_ld=$with_gnu_ld
11972
lt_save_path_LD=$lt_cv_path_LD
11973
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11974
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11976
$as_unset lt_cv_prog_gnu_ld
11978
if test -n "${lt_cv_path_LDCXX+set}"; then
11979
lt_cv_path_LD=$lt_cv_path_LDCXX
11981
$as_unset lt_cv_path_LD
11983
test -z "${LDCXX+set}" || LD=$LDCXX
11987
for cc_temp in $compiler""; do
11989
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11990
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11995
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11998
# We don't want -fno-exception wen compiling C++ code, so set the
11999
# no_builtin_flag separately
12000
if test "$GXX" = yes; then
12001
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12003
lt_prog_compiler_no_builtin_flag_CXX=
12006
if test "$GXX" = yes; then
12007
# Set up default GNU C++ configuration
12010
# Check whether --with-gnu-ld was given.
12011
if test "${with_gnu_ld+set}" = set; then
12012
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12018
if test "$GCC" = yes; then
12019
# Check if gcc -print-prog-name=ld gives a path.
12020
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12021
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12024
# gcc leaves a trailing carriage return which upsets mingw
12025
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12027
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12030
# Accept absolute paths.
12032
re_direlt='/[^/][^/]*/\.\./'
12033
# Canonicalize the pathname of ld
12034
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12035
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12036
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12038
test -z "$LD" && LD="$ac_prog"
12041
# If it fails, then pretend we aren't using GCC.
12045
# If it is relative, then search for the first ld in PATH.
12046
with_gnu_ld=unknown
12049
elif test "$with_gnu_ld" = yes; then
12050
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
12051
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12053
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12054
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12056
if test "${lt_cv_path_LD+set}" = set; then
12057
echo $ECHO_N "(cached) $ECHO_C" >&6
12059
if test -z "$LD"; then
12060
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12061
for ac_dir in $PATH; do
12063
test -z "$ac_dir" && ac_dir=.
12064
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12065
lt_cv_path_LD="$ac_dir/$ac_prog"
12066
# Check to see if the program is GNU ld. I'd rather use --version,
12067
# but apparently some variants of GNU ld only accept -v.
12068
# Break only if it was the GNU/non-GNU ld that we prefer.
12069
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12070
*GNU* | *'with BFD'*)
12071
test "$with_gnu_ld" != no && break
12074
test "$with_gnu_ld" != yes && break
12081
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12085
LD="$lt_cv_path_LD"
12086
if test -n "$LD"; then
12087
{ echo "$as_me:$LINENO: result: $LD" >&5
12088
echo "${ECHO_T}$LD" >&6; }
12090
{ echo "$as_me:$LINENO: result: no" >&5
12091
echo "${ECHO_T}no" >&6; }
12093
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12094
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12095
{ (exit 1); exit 1; }; }
12096
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12097
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12098
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12099
echo $ECHO_N "(cached) $ECHO_C" >&6
12101
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12102
case `$LD -v 2>&1 </dev/null` in
12103
*GNU* | *'with BFD'*)
12104
lt_cv_prog_gnu_ld=yes
12107
lt_cv_prog_gnu_ld=no
12111
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12112
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12113
with_gnu_ld=$lt_cv_prog_gnu_ld
12117
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12118
# archiving commands below assume that GNU ld is being used.
12119
if test "$with_gnu_ld" = yes; then
12120
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121
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'
12123
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12124
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12126
# If archive_cmds runs LD, not CC, wlarc should be empty
12127
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12128
# investigate it a little bit more. (MM)
12131
# ancient GNU ld didn't support --whole-archive et. al.
12132
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12133
grep 'no-whole-archive' > /dev/null; then
12134
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12136
whole_archive_flag_spec_CXX=
12142
# A generic and very simple default shared library creation
12143
# command for GNU C++ for the case where it uses the native
12144
# linker, instead of GNU ld. If possible, this setting should
12145
# overridden to take advantage of the native linker features on
12146
# the platform it is being used on.
12147
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12150
# Commands to make compiler produce verbose output that lists
12151
# what "hidden" libraries, object files and flags are used when
12152
# linking a shared library.
12153
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12161
# PORTME: fill in a description of your system's C++ link characteristics
12162
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12163
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12167
# FIXME: insert proper C++ library support
12171
if test "$host_cpu" = ia64; then
12172
# On IA64, the linker does run time linking by default, so we don't
12173
# have to do anything special.
12174
aix_use_runtimelinking=no
12175
exp_sym_flag='-Bexport'
12178
aix_use_runtimelinking=no
12180
# Test if we are trying to use run time linking or normal
12181
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12182
# need to do runtime linking.
12183
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12184
for ld_flag in $LDFLAGS; do
12187
aix_use_runtimelinking=yes
12195
exp_sym_flag='-bexport'
12196
no_entry_flag='-bnoentry'
12199
# When large executables or shared objects are built, AIX ld can
12200
# have problems creating the table of contents. If linking a library
12201
# or program results in "error TOC overflow" add -mminimal-toc to
12202
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12203
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12205
archive_cmds_CXX=''
12206
hardcode_direct_CXX=yes
12207
hardcode_libdir_separator_CXX=':'
12208
link_all_deplibs_CXX=yes
12210
if test "$GXX" = yes; then
12211
case $host_os in aix4.[012]|aix4.[012].*)
12212
# We only want to do this on AIX 4.2 and lower, the check
12213
# below for broken collect2 doesn't work under 4.3+
12214
collect2name=`${CC} -print-prog-name=collect2`
12215
if test -f "$collect2name" && \
12216
strings "$collect2name" | grep resolve_lib_name >/dev/null
12218
# We have reworked collect2
12221
# We have old collect2
12222
hardcode_direct_CXX=unsupported
12223
# It fails to find uninstalled libraries when the uninstalled
12224
# path is not listed in the libpath. Setting hardcode_minus_L
12225
# to unsupported forces relinking
12226
hardcode_minus_L_CXX=yes
12227
hardcode_libdir_flag_spec_CXX='-L$libdir'
12228
hardcode_libdir_separator_CXX=
12232
shared_flag='-shared'
12233
if test "$aix_use_runtimelinking" = yes; then
12234
shared_flag="$shared_flag "'${wl}-G'
12238
if test "$host_cpu" = ia64; then
12239
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12240
# chokes on -Wl,-G. The following line is correct:
12243
if test "$aix_use_runtimelinking" = yes; then
12244
shared_flag='${wl}-G'
12246
shared_flag='${wl}-bM:SRE'
12251
# It seems that -bexpall does not export symbols beginning with
12252
# underscore (_), so it is better to generate a list of symbols to export.
12253
always_export_symbols_CXX=yes
12254
if test "$aix_use_runtimelinking" = yes; then
12255
# Warning - without using the other runtime loading flags (-brtl),
12256
# -berok will link without error, but may produce a broken library.
12257
allow_undefined_flag_CXX='-berok'
12258
# Determine the default libpath from the value encoded in an empty executable.
12259
cat >conftest.$ac_ext <<_ACEOF
12262
cat confdefs.h >>conftest.$ac_ext
12263
cat >>conftest.$ac_ext <<_ACEOF
12264
/* end confdefs.h. */
12274
rm -f conftest.$ac_objext conftest$ac_exeext
12275
if { (ac_try="$ac_link"
12276
case "(($ac_try" in
12277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278
*) ac_try_echo=$ac_try;;
12280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281
(eval "$ac_link") 2>conftest.er1
12283
grep -v '^ *+' conftest.er1 >conftest.err
12285
cat conftest.err >&5
12286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287
(exit $ac_status); } && {
12288
test -z "$ac_cxx_werror_flag" ||
12289
test ! -s conftest.err
12290
} && test -s conftest$ac_exeext &&
12291
$as_test_x conftest$ac_exeext; then
12293
lt_aix_libpath_sed='
12294
/Import File Strings/,/^$/ {
12300
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301
# Check for a 64-bit object if we didn't find anything.
12302
if test -z "$aix_libpath"; then
12303
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12306
echo "$as_me: failed program was:" >&5
12307
sed 's/^/| /' conftest.$ac_ext >&5
12312
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313
conftest$ac_exeext conftest.$ac_ext
12314
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12316
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12318
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"
12320
if test "$host_cpu" = ia64; then
12321
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12322
allow_undefined_flag_CXX="-z nodefs"
12323
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"
12325
# Determine the default libpath from the value encoded in an empty executable.
12326
cat >conftest.$ac_ext <<_ACEOF
12329
cat confdefs.h >>conftest.$ac_ext
12330
cat >>conftest.$ac_ext <<_ACEOF
12331
/* end confdefs.h. */
12341
rm -f conftest.$ac_objext conftest$ac_exeext
12342
if { (ac_try="$ac_link"
12343
case "(($ac_try" in
12344
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345
*) ac_try_echo=$ac_try;;
12347
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348
(eval "$ac_link") 2>conftest.er1
12350
grep -v '^ *+' conftest.er1 >conftest.err
12352
cat conftest.err >&5
12353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
(exit $ac_status); } && {
12355
test -z "$ac_cxx_werror_flag" ||
12356
test ! -s conftest.err
12357
} && test -s conftest$ac_exeext &&
12358
$as_test_x conftest$ac_exeext; then
12360
lt_aix_libpath_sed='
12361
/Import File Strings/,/^$/ {
12367
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368
# Check for a 64-bit object if we didn't find anything.
12369
if test -z "$aix_libpath"; then
12370
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373
echo "$as_me: failed program was:" >&5
12374
sed 's/^/| /' conftest.$ac_ext >&5
12379
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12380
conftest$ac_exeext conftest.$ac_ext
12381
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12383
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12384
# Warning - without using the other run time loading flags,
12385
# -berok will link without error, but may produce a broken library.
12386
no_undefined_flag_CXX=' ${wl}-bernotok'
12387
allow_undefined_flag_CXX=' ${wl}-berok'
12388
# Exported symbols can be pulled into shared objects from archives
12389
whole_archive_flag_spec_CXX='$convenience'
12390
archive_cmds_need_lc_CXX=yes
12391
# This is similar to how AIX traditionally builds its shared libraries.
12392
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'
12398
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12399
allow_undefined_flag_CXX=unsupported
12400
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12401
# support --undefined. This deserves some investigation. FIXME
12402
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12409
case $cc_basename in
12411
# FIXME: insert proper C++ library support
12417
cygwin* | mingw* | pw32*)
12418
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12419
# as there is no search path for DLLs.
12420
hardcode_libdir_flag_spec_CXX='-L$libdir'
12421
allow_undefined_flag_CXX=unsupported
12422
always_export_symbols_CXX=no
12423
enable_shared_with_static_runtimes_CXX=yes
12425
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12426
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'
12427
# If the export-symbols file already is a .def file (1st line
12428
# is EXPORTS), use it as is; otherwise, prepend...
12429
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12430
cp $export_symbols $output_objdir/$soname.def;
12432
echo EXPORTS > $output_objdir/$soname.def;
12433
cat $export_symbols >> $output_objdir/$soname.def;
12435
$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'
12440
darwin* | rhapsody*)
12441
archive_cmds_need_lc_CXX=no
12442
hardcode_direct_CXX=no
12443
hardcode_automatic_CXX=yes
12444
hardcode_shlibpath_var_CXX=unsupported
12445
whole_archive_flag_spec_CXX=''
12446
link_all_deplibs_CXX=yes
12447
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12448
if test "$GXX" = yes ; then
12449
output_verbose_link_cmd='echo'
12450
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12451
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12452
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12453
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12454
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12455
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12456
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12459
case $cc_basename in
12461
output_verbose_link_cmd='echo'
12462
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12463
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12464
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12465
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12466
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}'
12476
case $cc_basename in
12478
# FIXME: insert proper C++ library support
12482
# Green Hills C++ Compiler
12483
# FIXME: insert proper C++ library support
12487
# FIXME: insert proper C++ library support
12493
# C++ shared libraries reported to be fairly broken before switch to ELF
12497
archive_cmds_need_lc_CXX=no
12499
freebsd* | dragonfly*)
12500
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12507
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12508
hardcode_libdir_separator_CXX=:
12509
export_dynamic_flag_spec_CXX='${wl}-E'
12510
hardcode_direct_CXX=yes
12511
hardcode_minus_L_CXX=yes # Not in the search PATH,
12512
# but as the default
12513
# location of the library.
12515
case $cc_basename in
12517
# FIXME: insert proper C++ library support
12521
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'
12522
# Commands to make compiler produce verbose output that lists
12523
# what "hidden" libraries, object files and flags are used when
12524
# linking a shared library.
12526
# There doesn't appear to be a way to prevent this compiler from
12527
# explicitly linking system object files so we need to strip them
12528
# from the output so that they don't get included in the library
12530
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'
12533
if test "$GXX" = yes; then
12534
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'
12536
# FIXME: insert proper C++ library support
12543
if test $with_gnu_ld = no; then
12544
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12545
hardcode_libdir_separator_CXX=:
12550
export_dynamic_flag_spec_CXX='${wl}-E'
12556
hardcode_direct_CXX=no
12557
hardcode_shlibpath_var_CXX=no
12560
hardcode_direct_CXX=yes
12561
hardcode_minus_L_CXX=yes # Not in the search PATH,
12562
# but as the default
12563
# location of the library.
12567
case $cc_basename in
12569
# FIXME: insert proper C++ library support
12575
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12578
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12581
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584
# Commands to make compiler produce verbose output that lists
12585
# what "hidden" libraries, object files and flags are used when
12586
# linking a shared library.
12588
# There doesn't appear to be a way to prevent this compiler from
12589
# explicitly linking system object files so we need to strip them
12590
# from the output so that they don't get included in the library
12592
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'
12595
if test "$GXX" = yes; then
12596
if test $with_gnu_ld = no; then
12599
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12602
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12605
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'
12610
# FIXME: insert proper C++ library support
12617
hardcode_direct_CXX=no
12618
hardcode_shlibpath_var_CXX=no
12619
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12620
export_dynamic_flag_spec_CXX='${wl}-E'
12621
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12622
# Instead, shared libraries are loaded at an image base (0x10000000 by
12623
# default) and relocated if they conflict, which is a slow very memory
12624
# consuming and fragmenting process. To avoid this, we pick a random,
12625
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12626
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12627
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'
12628
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'
12631
case $cc_basename in
12634
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'
12636
# Archives containing C++ object files must be created using
12637
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12638
# necessary to make sure instantiated templates are included
12640
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12643
if test "$GXX" = yes; then
12644
if test "$with_gnu_ld" = no; then
12645
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'
12647
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'
12650
link_all_deplibs_CXX=yes
12653
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12654
hardcode_libdir_separator_CXX=:
12656
linux* | k*bsd*-gnu)
12657
case $cc_basename in
12659
# Kuck and Associates, Inc. (KAI) C++ Compiler
12661
# KCC will only create a shared library if the output file
12662
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12663
# to its proper name (with version) after linking.
12664
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'
12665
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'
12666
# Commands to make compiler produce verbose output that lists
12667
# what "hidden" libraries, object files and flags are used when
12668
# linking a shared library.
12670
# There doesn't appear to be a way to prevent this compiler from
12671
# explicitly linking system object files so we need to strip them
12672
# from the output so that they don't get included in the library
12674
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'
12676
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12677
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679
# Archives containing C++ object files must be created using
12680
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12681
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12686
# version 8.0 and above of icpc choke on multiply defined symbols
12687
# if we add $predep_objects and $postdep_objects, however 7.1 and
12688
# earlier do not add the objects themselves.
12689
case `$CC -V 2>&1` in
12691
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692
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'
12694
*) # Version 8.0 or newer
12697
ia64*) tmp_idyn=' -i_dynamic';;
12699
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12700
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'
12703
archive_cmds_need_lc_CXX=no
12704
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12705
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12706
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12709
# Portland Group C++ compiler
12710
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12711
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'
12713
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12714
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12715
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'
12719
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720
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'
12722
runpath_var=LD_RUN_PATH
12723
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12724
hardcode_libdir_separator_CXX=:
12726
# Commands to make compiler produce verbose output that lists
12727
# what "hidden" libraries, object files and flags are used when
12728
# linking a shared library.
12730
# There doesn't appear to be a way to prevent this compiler from
12731
# explicitly linking system object files so we need to strip them
12732
# from the output so that they don't get included in the library
12734
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'
12737
case `$CC -V 2>&1 | sed 5q` in
12740
no_undefined_flag_CXX=' -zdefs'
12741
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12742
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12743
hardcode_libdir_flag_spec_CXX='-R$libdir'
12744
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12746
# Not sure whether something based on
12747
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12749
output_verbose_link_cmd='echo'
12751
# Archives containing C++ object files must be created using
12752
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12753
# necessary to make sure instantiated templates are included
12755
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12762
# FIXME: insert proper C++ library support
12766
# FIXME: insert proper C++ library support
12770
case $cc_basename in
12772
# FIXME: insert proper C++ library support
12776
# FIXME: insert proper C++ library support
12781
netbsd* | netbsdelf*-gnu)
12782
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12783
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12785
hardcode_libdir_flag_spec_CXX='-R$libdir'
12786
hardcode_direct_CXX=yes
12787
hardcode_shlibpath_var_CXX=no
12789
# Workaround some broken pre-1.5 toolchains
12790
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12793
# C++ shared libraries are fairly broken
12797
if test -f /usr/libexec/ld.so; then
12798
hardcode_direct_CXX=yes
12799
hardcode_shlibpath_var_CXX=no
12800
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12801
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12802
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12803
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12804
export_dynamic_flag_spec_CXX='${wl}-E'
12805
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12807
output_verbose_link_cmd='echo'
12813
case $cc_basename in
12815
# Kuck and Associates, Inc. (KAI) C++ Compiler
12817
# KCC will only create a shared library if the output file
12818
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12819
# to its proper name (with version) after linking.
12820
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'
12822
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12823
hardcode_libdir_separator_CXX=:
12825
# Archives containing C++ object files must be created using
12826
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12827
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12831
# Rational C++ 2.4.1
12832
# FIXME: insert proper C++ library support
12836
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12837
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'
12839
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12840
hardcode_libdir_separator_CXX=:
12842
# Commands to make compiler produce verbose output that lists
12843
# what "hidden" libraries, object files and flags are used when
12844
# linking a shared library.
12846
# There doesn't appear to be a way to prevent this compiler from
12847
# explicitly linking system object files so we need to strip them
12848
# from the output so that they don't get included in the library
12850
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'
12853
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12855
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'
12857
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858
hardcode_libdir_separator_CXX=:
12860
# Commands to make compiler produce verbose output that lists
12861
# what "hidden" libraries, object files and flags are used when
12862
# linking a shared library.
12863
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12866
# FIXME: insert proper C++ library support
12873
case $cc_basename in
12875
# Kuck and Associates, Inc. (KAI) C++ Compiler
12877
# KCC will only create a shared library if the output file
12878
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12879
# to its proper name (with version) after linking.
12880
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'
12882
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12883
hardcode_libdir_separator_CXX=:
12885
# Archives containing C++ object files must be created using
12886
# the KAI C++ compiler.
12887
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12890
# Rational C++ 2.4.1
12891
# FIXME: insert proper C++ library support
12895
allow_undefined_flag_CXX=' -expect_unresolved \*'
12896
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'
12897
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12898
echo "-hidden">> $lib.exp~
12899
$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~
12902
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12903
hardcode_libdir_separator_CXX=:
12905
# Commands to make compiler produce verbose output that lists
12906
# what "hidden" libraries, object files and flags are used when
12907
# linking a shared library.
12909
# There doesn't appear to be a way to prevent this compiler from
12910
# explicitly linking system object files so we need to strip them
12911
# from the output so that they don't get included in the library
12913
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'
12916
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12917
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12918
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'
12920
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12921
hardcode_libdir_separator_CXX=:
12923
# Commands to make compiler produce verbose output that lists
12924
# what "hidden" libraries, object files and flags are used when
12925
# linking a shared library.
12926
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12929
# FIXME: insert proper C++ library support
12936
# FIXME: insert proper C++ library support
12940
case $cc_basename in
12943
# FIXME: insert proper C++ library support
12948
# FIXME: insert proper C++ library support
12952
# FIXME: insert proper C++ library support
12958
case $cc_basename in
12960
# Sun C++ 4.2, 5.x and Centerline C++
12961
archive_cmds_need_lc_CXX=yes
12962
no_undefined_flag_CXX=' -zdefs'
12963
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12964
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12965
$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'
12967
hardcode_libdir_flag_spec_CXX='-R$libdir'
12968
hardcode_shlibpath_var_CXX=no
12970
solaris2.[0-5] | solaris2.[0-5].*) ;;
12972
# The compiler driver will combine and reorder linker options,
12973
# but understands `-z linker_flag'.
12974
# Supported since Solaris 2.6 (maybe 2.5.1?)
12975
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12978
link_all_deplibs_CXX=yes
12980
output_verbose_link_cmd='echo'
12982
# Archives containing C++ object files must be created using
12983
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12984
# necessary to make sure instantiated templates are included
12986
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12989
# Green Hills C++ Compiler
12990
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12992
# The C++ compiler must be used to create the archive.
12993
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12996
# GNU C++ compiler with Solaris linker
12997
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12998
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12999
if $CC --version | grep -v '^2\.7' > /dev/null; then
13000
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13001
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13004
# Commands to make compiler produce verbose output that lists
13005
# what "hidden" libraries, object files and flags are used when
13006
# linking a shared library.
13007
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13009
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13011
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13012
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13013
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13015
# Commands to make compiler produce verbose output that lists
13016
# what "hidden" libraries, object files and flags are used when
13017
# linking a shared library.
13018
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13021
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13023
solaris2.[0-5] | solaris2.[0-5].*) ;;
13025
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13032
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13033
no_undefined_flag_CXX='${wl}-z,text'
13034
archive_cmds_need_lc_CXX=no
13035
hardcode_shlibpath_var_CXX=no
13036
runpath_var='LD_RUN_PATH'
13038
case $cc_basename in
13040
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049
sysv5* | sco3.2v5* | sco5v6*)
13050
# Note: We can NOT use -z defs as we might desire, because we do not
13051
# link with -lc, and that would cause any symbols used from libc to
13052
# always be unresolved, which means just about no library would
13053
# ever link correctly. If we're not using GNU ld we use -z text
13054
# though, which does catch some bad symbols but isn't as heavy-handed
13056
# For security reasons, it is highly recommended that you always
13057
# use absolute paths for naming shared libraries, and exclude the
13058
# DT_RUNPATH tag from executables and libraries. But doing so
13059
# requires that you compile everything twice, which is a pain.
13060
# So that behaviour is only enabled if SCOABSPATH is set to a
13061
# non-empty value in the environment. Most likely only useful for
13062
# creating official distributions of packages.
13063
# This is a hack until libtool officially supports absolute path
13064
# names for shared libraries.
13065
no_undefined_flag_CXX='${wl}-z,text'
13066
allow_undefined_flag_CXX='${wl}-z,nodefs'
13067
archive_cmds_need_lc_CXX=no
13068
hardcode_shlibpath_var_CXX=no
13069
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13070
hardcode_libdir_separator_CXX=':'
13071
link_all_deplibs_CXX=yes
13072
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13073
runpath_var='LD_RUN_PATH'
13075
case $cc_basename in
13077
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13078
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13081
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13082
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13087
case $cc_basename in
13089
# NonStop-UX NCC 3.20
13090
# FIXME: insert proper C++ library support
13094
# FIXME: insert proper C++ library support
13100
# FIXME: insert proper C++ library support
13104
# FIXME: insert proper C++ library support
13108
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13109
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13110
test "$ld_shlibs_CXX" = no && can_build_shared=no
13115
cat > conftest.$ac_ext <<EOF
13119
Foo (void) { a = 0; }
13125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126
(eval $ac_compile) 2>&5
13128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129
(exit $ac_status); }; then
13130
# Parse the compiler output and extract the necessary
13131
# objects, libraries and library flags.
13133
# Sentinel used to keep track of whether or not we are before
13134
# the conftest object file.
13135
pre_test_object_deps_done=no
13137
# The `*' in the case matches for architectures that use `case' in
13138
# $output_verbose_cmd can trigger glob expansion during the loop
13139
# eval without this substitution.
13140
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13142
for p in `eval $output_verbose_link_cmd`; do
13146
# Some compilers place space between "-{L,R}" and the path.
13147
# Remove the space.
13148
if test $p = "-L" \
13149
|| test $p = "-R"; then
13156
if test "$pre_test_object_deps_done" = no; then
13159
# Internal compiler library paths should come after those
13160
# provided the user. The postdeps already come after the
13161
# user supplied libs so there is no need to process them.
13162
if test -z "$compiler_lib_search_path_CXX"; then
13163
compiler_lib_search_path_CXX="${prev}${p}"
13165
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13168
# The "-l" case would never come before the object being
13169
# linked, so don't bother handling this case.
13172
if test -z "$postdeps_CXX"; then
13173
postdeps_CXX="${prev}${p}"
13175
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13181
# This assumes that the test object file only shows up
13182
# once in the compiler output.
13183
if test "$p" = "conftest.$objext"; then
13184
pre_test_object_deps_done=yes
13188
if test "$pre_test_object_deps_done" = no; then
13189
if test -z "$predep_objects_CXX"; then
13190
predep_objects_CXX="$p"
13192
predep_objects_CXX="$predep_objects_CXX $p"
13195
if test -z "$postdep_objects_CXX"; then
13196
postdep_objects_CXX="$p"
13198
postdep_objects_CXX="$postdep_objects_CXX $p"
13203
*) ;; # Ignore the rest.
13211
echo "libtool.m4: error: problem compiling CXX test program"
13214
$rm -f confest.$objext
13216
compiler_lib_search_dirs_CXX=
13217
if test -n "$compiler_lib_search_path_CXX"; then
13218
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13221
# PORTME: override above test on systems where it is broken
13224
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13225
# hack all around it, let's just trust "g++" to DTRT.
13226
predep_objects_CXX=
13227
postdep_objects_CXX=
13232
case `$CC -V 2>&1 | sed 5q` in
13236
# The more standards-conforming stlport4 library is
13237
# incompatible with the Cstd library. Avoid specifying
13238
# it if it's in CXXFLAGS. Ignore libCrun as
13239
# -library=stlport4 depends on it.
13240
case " $CXX $CXXFLAGS " in
13241
*" -library=stlport4 "*)
13242
solaris_use_stlport4=yes
13245
if test "$solaris_use_stlport4" != yes; then
13246
postdeps_CXX='-library=Cstd -library=Crun'
13253
case $cc_basename in
13255
# The more standards-conforming stlport4 library is
13256
# incompatible with the Cstd library. Avoid specifying
13257
# it if it's in CXXFLAGS. Ignore libCrun as
13258
# -library=stlport4 depends on it.
13259
case " $CXX $CXXFLAGS " in
13260
*" -library=stlport4 "*)
13261
solaris_use_stlport4=yes
13265
# Adding this requires a known-good setup of shared libraries for
13266
# Sun compiler versions before 5.6, else PIC objects from an old
13267
# archive will be linked into the output, leading to subtle bugs.
13268
if test "$solaris_use_stlport4" != yes; then
13269
postdeps_CXX='-library=Cstd -library=Crun'
13276
case " $postdeps_CXX " in
13277
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13280
lt_prog_compiler_wl_CXX=
13281
lt_prog_compiler_pic_CXX=
13282
lt_prog_compiler_static_CXX=
13284
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13285
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13287
# C++ specific cases for pic, static, wl, etc.
13288
if test "$GXX" = yes; then
13289
lt_prog_compiler_wl_CXX='-Wl,'
13290
lt_prog_compiler_static_CXX='-static'
13294
# All AIX code is PIC.
13295
if test "$host_cpu" = ia64; then
13296
# AIX 5 now supports IA64 processor
13297
lt_prog_compiler_static_CXX='-Bstatic'
13301
# FIXME: we need at least 68020 code to build shared libraries, but
13302
# adding the `-m68020' flag to GCC prevents building anything better,
13304
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13306
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13307
# PIC is the default for these OSes.
13309
mingw* | cygwin* | os2* | pw32*)
13310
# This hack is so that the source file can tell whether it is being
13311
# built for inclusion in a dll (and should export symbols for example).
13312
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13313
# (--disable-auto-import) libraries
13314
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13316
darwin* | rhapsody*)
13317
# PIC is the default on this platform
13318
# Common symbols not allowed in MH_DYLIB files
13319
lt_prog_compiler_pic_CXX='-fno-common'
13322
# DJGPP does not support shared libraries at all
13323
lt_prog_compiler_pic_CXX=
13326
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13327
# Instead, we relocate shared libraries at runtime.
13330
if test -d /usr/nec; then
13331
lt_prog_compiler_pic_CXX=-Kconform_pic
13335
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13336
# not for PA HP-UX.
13341
lt_prog_compiler_pic_CXX='-fPIC'
13346
lt_prog_compiler_pic_CXX='-fPIC'
13352
# All AIX code is PIC.
13353
if test "$host_cpu" = ia64; then
13354
# AIX 5 now supports IA64 processor
13355
lt_prog_compiler_static_CXX='-Bstatic'
13357
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13361
case $cc_basename in
13363
# Green Hills C++ Compiler
13364
# _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"
13369
# PIC is the default on this platform
13370
# Common symbols not allowed in MH_DYLIB files
13371
case $cc_basename in
13373
lt_prog_compiler_pic_CXX='-qnocommon'
13374
lt_prog_compiler_wl_CXX='-Wl,'
13379
case $cc_basename in
13381
lt_prog_compiler_pic_CXX='-KPIC'
13384
# Green Hills C++ Compiler
13385
lt_prog_compiler_pic_CXX='-pic'
13391
freebsd* | dragonfly*)
13392
# FreeBSD uses GNU C++
13394
hpux9* | hpux10* | hpux11*)
13395
case $cc_basename in
13397
lt_prog_compiler_wl_CXX='-Wl,'
13398
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13399
if test "$host_cpu" != ia64; then
13400
lt_prog_compiler_pic_CXX='+Z'
13404
lt_prog_compiler_wl_CXX='-Wl,'
13405
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13411
lt_prog_compiler_pic_CXX='+Z'
13420
# This is c89, which is MS Visual C++ (no shared libs)
13421
# Anyone wants to do a port?
13423
irix5* | irix6* | nonstopux*)
13424
case $cc_basename in
13426
lt_prog_compiler_wl_CXX='-Wl,'
13427
lt_prog_compiler_static_CXX='-non_shared'
13428
# CC pic flag -KPIC is the default.
13434
linux* | k*bsd*-gnu)
13435
case $cc_basename in
13438
lt_prog_compiler_wl_CXX='--backend -Wl,'
13439
lt_prog_compiler_pic_CXX='-fPIC'
13443
lt_prog_compiler_wl_CXX='-Wl,'
13444
lt_prog_compiler_pic_CXX='-KPIC'
13445
lt_prog_compiler_static_CXX='-static'
13448
# Portland Group C++ compiler.
13449
lt_prog_compiler_wl_CXX='-Wl,'
13450
lt_prog_compiler_pic_CXX='-fpic'
13451
lt_prog_compiler_static_CXX='-Bstatic'
13455
# Make sure the PIC flag is empty. It appears that all Alpha
13456
# Linux and Compaq Tru64 Unix objects are PIC.
13457
lt_prog_compiler_pic_CXX=
13458
lt_prog_compiler_static_CXX='-non_shared'
13461
case `$CC -V 2>&1 | sed 5q` in
13464
lt_prog_compiler_pic_CXX='-KPIC'
13465
lt_prog_compiler_static_CXX='-Bstatic'
13466
lt_prog_compiler_wl_CXX='-Qoption ld '
13477
case $cc_basename in
13479
lt_prog_compiler_pic_CXX='-W c,exportall'
13485
netbsd* | netbsdelf*-gnu)
13487
osf3* | osf4* | osf5*)
13488
case $cc_basename in
13490
lt_prog_compiler_wl_CXX='--backend -Wl,'
13493
# Rational C++ 2.4.1
13494
lt_prog_compiler_pic_CXX='-pic'
13497
# Digital/Compaq C++
13498
lt_prog_compiler_wl_CXX='-Wl,'
13499
# Make sure the PIC flag is empty. It appears that all Alpha
13500
# Linux and Compaq Tru64 Unix objects are PIC.
13501
lt_prog_compiler_pic_CXX=
13502
lt_prog_compiler_static_CXX='-non_shared'
13511
case $cc_basename in
13513
# Sun C++ 4.2, 5.x and Centerline C++
13514
lt_prog_compiler_pic_CXX='-KPIC'
13515
lt_prog_compiler_static_CXX='-Bstatic'
13516
lt_prog_compiler_wl_CXX='-Qoption ld '
13519
# Green Hills C++ Compiler
13520
lt_prog_compiler_pic_CXX='-PIC'
13527
case $cc_basename in
13530
lt_prog_compiler_pic_CXX='-pic'
13531
lt_prog_compiler_static_CXX='-Bstatic'
13535
lt_prog_compiler_pic_CXX='-pic'
13542
case $cc_basename in
13544
# NonStop-UX NCC 3.20
13545
lt_prog_compiler_pic_CXX='-KPIC'
13551
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13552
case $cc_basename in
13554
lt_prog_compiler_wl_CXX='-Wl,'
13555
lt_prog_compiler_pic_CXX='-KPIC'
13556
lt_prog_compiler_static_CXX='-Bstatic'
13563
lt_prog_compiler_can_build_shared_CXX=no
13568
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13569
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13572
# Check to make sure the PIC flag actually works.
13574
if test -n "$lt_prog_compiler_pic_CXX"; then
13576
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13577
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13578
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13579
echo $ECHO_N "(cached) $ECHO_C" >&6
13581
lt_cv_prog_compiler_pic_works_CXX=no
13582
ac_outfile=conftest.$ac_objext
13583
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13584
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13585
# Insert the option either (1) after the last *FLAGS variable, or
13586
# (2) before a word containing "conftest.", or (3) at the end.
13587
# Note that $ac_compile itself does not contain backslashes and begins
13588
# with a dollar sign (not a hyphen), so the echo should work correctly.
13589
# The option is referenced via a variable to avoid confusing sed.
13590
lt_compile=`echo "$ac_compile" | $SED \
13591
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13592
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13593
-e 's:$: $lt_compiler_flag:'`
13594
(eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13595
(eval "$lt_compile" 2>conftest.err)
13597
cat conftest.err >&5
13598
echo "$as_me:13598: \$? = $ac_status" >&5
13599
if (exit $ac_status) && test -s "$ac_outfile"; then
13600
# The compiler can only warn and ignore the option if not recognized
13601
# So say no if there are warnings other than the usual output.
13602
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13603
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13604
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13605
lt_cv_prog_compiler_pic_works_CXX=yes
13611
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13612
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13614
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13615
case $lt_prog_compiler_pic_CXX in
13617
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13620
lt_prog_compiler_pic_CXX=
13621
lt_prog_compiler_can_build_shared_CXX=no
13626
# For platforms which do not support PIC, -DPIC is meaningless:
13628
lt_prog_compiler_pic_CXX=
13631
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13636
# Check to make sure the static flag actually works.
13638
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13639
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13640
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13641
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13642
echo $ECHO_N "(cached) $ECHO_C" >&6
13644
lt_cv_prog_compiler_static_works_CXX=no
13645
save_LDFLAGS="$LDFLAGS"
13646
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13647
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13648
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13649
# The linker can only warn and ignore the option if not recognized
13650
# So say no if there are warnings
13651
if test -s conftest.err; then
13652
# Append any errors to the config.log.
13653
cat conftest.err 1>&5
13654
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13655
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13656
if diff conftest.exp conftest.er2 >/dev/null; then
13657
lt_cv_prog_compiler_static_works_CXX=yes
13660
lt_cv_prog_compiler_static_works_CXX=yes
13664
LDFLAGS="$save_LDFLAGS"
13667
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13668
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13670
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13673
lt_prog_compiler_static_CXX=
13677
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13678
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13679
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13680
echo $ECHO_N "(cached) $ECHO_C" >&6
13682
lt_cv_prog_compiler_c_o_CXX=no
13683
$rm -r conftest 2>/dev/null
13687
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13689
lt_compiler_flag="-o out/conftest2.$ac_objext"
13690
# Insert the option either (1) after the last *FLAGS variable, or
13691
# (2) before a word containing "conftest.", or (3) at the end.
13692
# Note that $ac_compile itself does not contain backslashes and begins
13693
# with a dollar sign (not a hyphen), so the echo should work correctly.
13694
lt_compile=`echo "$ac_compile" | $SED \
13695
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13696
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13697
-e 's:$: $lt_compiler_flag:'`
13698
(eval echo "\"\$as_me:13698: $lt_compile\"" >&5)
13699
(eval "$lt_compile" 2>out/conftest.err)
13701
cat out/conftest.err >&5
13702
echo "$as_me:13702: \$? = $ac_status" >&5
13703
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13705
# The compiler can only warn and ignore the option if not recognized
13706
# So say no if there are warnings
13707
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13708
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13709
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13710
lt_cv_prog_compiler_c_o_CXX=yes
13715
# SGI C++ compiler will create directory out/ii_files/ for
13716
# template instantiation
13717
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13718
$rm out/* && rmdir out
13724
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13725
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13728
hard_links="nottested"
13729
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13730
# do not overwrite the value of need_locks provided by the user
13731
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13732
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13735
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13737
ln conftest.a conftest.b 2>&5 || hard_links=no
13738
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13739
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13740
echo "${ECHO_T}$hard_links" >&6; }
13741
if test "$hard_links" = no; then
13742
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13743
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13750
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13751
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13753
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13756
# If we're using GNU nm, then we don't want the "-C" option.
13757
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13758
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13759
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'
13761
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'
13765
export_symbols_cmds_CXX="$ltdll_cmds"
13768
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'
13770
linux* | k*bsd*-gnu)
13771
link_all_deplibs_CXX=no
13774
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13777
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13779
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13780
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13781
test "$ld_shlibs_CXX" = no && can_build_shared=no
13784
# Do we need to explicitly link libc?
13786
case "x$archive_cmds_need_lc_CXX" in
13788
# Assume -lc should be added
13789
archive_cmds_need_lc_CXX=yes
13791
if test "$enable_shared" = yes && test "$GCC" = yes; then
13792
case $archive_cmds_CXX in
13794
# FIXME: we may have to deal with multi-command sequences.
13797
# Test whether the compiler implicitly links with -lc since on some
13798
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13799
# to ld, don't add -lc before -lgcc.
13800
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13801
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13803
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806
(eval $ac_compile) 2>&5
13808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809
(exit $ac_status); } 2>conftest.err; then
13812
libobjs=conftest.$ac_objext
13814
wl=$lt_prog_compiler_wl_CXX
13815
pic_flag=$lt_prog_compiler_pic_CXX
13821
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13822
allow_undefined_flag_CXX=
13823
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13824
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827
(exit $ac_status); }
13829
archive_cmds_need_lc_CXX=no
13831
archive_cmds_need_lc_CXX=yes
13833
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13835
cat conftest.err 1>&5
13838
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13839
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13846
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13847
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13848
library_names_spec=
13849
libname_spec='lib$name'
13853
postuninstall_cmds=
13857
shlibpath_overrides_runpath=unknown
13859
dynamic_linker="$host_os ld.so"
13860
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13862
need_lib_prefix=unknown
13863
hardcode_into_libs=no
13865
# when you set need_version to no, make sure it does not cause -set_version
13866
# flags to be left without arguments
13867
need_version=unknown
13872
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13873
shlibpath_var=LIBPATH
13875
# AIX 3 has no versioning support, so we append a major version to the name.
13876
soname_spec='${libname}${release}${shared_ext}$major'
13883
hardcode_into_libs=yes
13884
if test "$host_cpu" = ia64; then
13885
# AIX 5 supports IA64
13886
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13887
shlibpath_var=LD_LIBRARY_PATH
13889
# With GCC up to 2.95.x, collect2 would create an import file
13890
# for dependence libraries. The import file would start with
13891
# the line `#! .'. This would cause the generated library to
13892
# depend on `.', always an invalid library. This was fixed in
13893
# development snapshots of GCC prior to 3.0.
13895
aix4 | aix4.[01] | aix4.[01].*)
13896
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13898
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13901
can_build_shared=no
13905
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13906
# soname into executable. Probably we can add versioning support to
13907
# collect2, so additional links can be useful in future.
13908
if test "$aix_use_runtimelinking" = yes; then
13909
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13910
# instead of lib<name>.a to let people know that these are not
13911
# typical AIX shared libraries.
13912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13914
# We preserve .a as extension for shared libraries through AIX4.2
13915
# and later when we are not doing run time linking.
13916
library_names_spec='${libname}${release}.a $libname.a'
13917
soname_spec='${libname}${release}${shared_ext}$major'
13919
shlibpath_var=LIBPATH
13924
library_names_spec='$libname.ixlibrary $libname.a'
13925
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13926
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'
13930
library_names_spec='${libname}${shared_ext}'
13931
dynamic_linker="$host_os ld.so"
13932
shlibpath_var=LIBRARY_PATH
13938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13939
soname_spec='${libname}${release}${shared_ext}$major'
13940
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13941
shlibpath_var=LD_LIBRARY_PATH
13942
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13943
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13944
# the default ld.so.conf also contains /usr/contrib/lib and
13945
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13946
# libtool to hard-code these into programs
13949
cygwin* | mingw* | pw32*)
13950
version_type=windows
13955
case $GCC,$host_os in
13956
yes,cygwin* | yes,mingw* | yes,pw32*)
13957
library_names_spec='$libname.dll.a'
13958
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13959
postinstall_cmds='base_file=`basename \${file}`~
13960
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13961
dldir=$destdir/`dirname \$dlpath`~
13962
test -d \$dldir || mkdir -p \$dldir~
13963
$install_prog $dir/$dlname \$dldir/$dlname~
13964
chmod a+x \$dldir/$dlname'
13965
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13966
dlpath=$dir/\$dldll~
13968
shlibpath_overrides_runpath=yes
13972
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13973
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13974
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13977
# MinGW DLLs use traditional 'lib' prefix
13978
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13979
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13980
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13981
# It is most probably a Windows format PATH printed by
13982
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13983
# path with ; separators, and with drive letters. We can handle the
13984
# drive letters (cygwin fileutils understands them), so leave them,
13985
# especially as we might pass files found there to a mingw objdump,
13986
# which wouldn't understand a cygwinified path. Ahh.
13987
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13989
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13993
# pw32 DLLs use 'pw' prefix rather than 'lib'
13994
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14000
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14003
dynamic_linker='Win32 ld.exe'
14004
# FIXME: first we should search . and the directory the executable is in
14008
darwin* | rhapsody*)
14009
dynamic_linker="$host_os dyld"
14010
version_type=darwin
14013
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14014
soname_spec='${libname}${release}${major}$shared_ext'
14015
shlibpath_overrides_runpath=yes
14016
shlibpath_var=DYLD_LIBRARY_PATH
14017
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14019
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14027
soname_spec='${libname}${release}${shared_ext}$major'
14028
shlibpath_var=LD_LIBRARY_PATH
14035
freebsd* | dragonfly*)
14036
# DragonFly does not have aout. When/if they implement a new
14037
# versioning mechanism, adjust this.
14038
if test -x /usr/bin/objformat; then
14039
objformat=`/usr/bin/objformat`
14042
freebsd[123]*) objformat=aout ;;
14043
*) objformat=elf ;;
14046
version_type=freebsd-$objformat
14047
case $version_type in
14049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14054
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14058
shlibpath_var=LD_LIBRARY_PATH
14061
shlibpath_overrides_runpath=yes
14063
freebsd3.[01]* | freebsdelf3.[01]*)
14064
shlibpath_overrides_runpath=yes
14065
hardcode_into_libs=yes
14067
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14068
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14069
shlibpath_overrides_runpath=no
14070
hardcode_into_libs=yes
14072
*) # from 4.6 on, and DragonFly
14073
shlibpath_overrides_runpath=yes
14074
hardcode_into_libs=yes
14083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14084
soname_spec='${libname}${release}${shared_ext}$major'
14085
shlibpath_var=LD_LIBRARY_PATH
14086
hardcode_into_libs=yes
14089
hpux9* | hpux10* | hpux11*)
14090
# Give a soname corresponding to the major version so that dld.sl refuses to
14091
# link against other versions.
14098
hardcode_into_libs=yes
14099
dynamic_linker="$host_os dld.so"
14100
shlibpath_var=LD_LIBRARY_PATH
14101
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103
soname_spec='${libname}${release}${shared_ext}$major'
14104
if test "X$HPUX_IA64_MODE" = X32; then
14105
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14107
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14109
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14113
hardcode_into_libs=yes
14114
dynamic_linker="$host_os dld.sl"
14115
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14116
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118
soname_spec='${libname}${release}${shared_ext}$major'
14119
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14120
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14124
dynamic_linker="$host_os dld.sl"
14125
shlibpath_var=SHLIB_PATH
14126
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128
soname_spec='${libname}${release}${shared_ext}$major'
14131
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14132
postinstall_cmds='chmod 555 $lib'
14139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14140
soname_spec='${libname}${release}${shared_ext}$major'
14141
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14142
shlibpath_var=LD_LIBRARY_PATH
14143
shlibpath_overrides_runpath=no
14144
hardcode_into_libs=yes
14147
irix5* | irix6* | nonstopux*)
14149
nonstopux*) version_type=nonstopux ;;
14151
if test "$lt_cv_prog_gnu_ld" = yes; then
14159
soname_spec='${libname}${release}${shared_ext}$major'
14160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14162
irix5* | nonstopux*)
14163
libsuff= shlibsuff=
14166
case $LD in # libtool.m4 will add one of these switches to LD
14167
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14168
libsuff= shlibsuff= libmagic=32-bit;;
14169
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14170
libsuff=32 shlibsuff=N32 libmagic=N32;;
14171
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14172
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14173
*) libsuff= shlibsuff= libmagic=never-match;;
14177
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14178
shlibpath_overrides_runpath=no
14179
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14180
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14181
hardcode_into_libs=yes
14184
# No shared lib support for Linux oldld, aout, or coff.
14185
linux*oldld* | linux*aout* | linux*coff*)
14189
# This must be Linux ELF.
14190
linux* | k*bsd*-gnu)
14194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195
soname_spec='${libname}${release}${shared_ext}$major'
14196
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14197
shlibpath_var=LD_LIBRARY_PATH
14198
shlibpath_overrides_runpath=no
14199
# This implies no fast_install, which is unacceptable.
14200
# Some rework will be needed to allow for fast_install
14201
# before this can be enabled.
14202
hardcode_into_libs=yes
14204
# Append ld.so.conf contents to the search path
14205
if test -f /etc/ld.so.conf; then
14206
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14207
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14210
# We used to test for /lib/ld.so.1 and disable shared libraries on
14211
# powerpc, because MkLinux only supported shared libraries with the
14212
# GNU dynamic linker. Since this was broken with cross compilers,
14213
# most powerpc-linux boxes support dynamic linking these days and
14214
# people can always --disable-shared, the test was removed, and we
14215
# assume the GNU/Linux dynamic linker is in use.
14216
dynamic_linker='GNU/Linux ld.so'
14223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14224
soname_spec='${libname}${release}${shared_ext}$major'
14225
shlibpath_var=LD_LIBRARY_PATH
14226
shlibpath_overrides_runpath=no
14227
hardcode_into_libs=yes
14228
dynamic_linker='NetBSD ld.elf_so'
14235
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14237
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14238
dynamic_linker='NetBSD (a.out) ld.so'
14240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14241
soname_spec='${libname}${release}${shared_ext}$major'
14242
dynamic_linker='NetBSD ld.elf_so'
14244
shlibpath_var=LD_LIBRARY_PATH
14245
shlibpath_overrides_runpath=yes
14246
hardcode_into_libs=yes
14251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252
shlibpath_var=LD_LIBRARY_PATH
14253
shlibpath_overrides_runpath=yes
14260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261
soname_spec='${libname}${release}${shared_ext}$major'
14262
shlibpath_var=LD_LIBRARY_PATH
14263
shlibpath_overrides_runpath=yes
14268
sys_lib_dlsearch_path_spec="/usr/lib"
14270
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14272
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14273
*) need_version=no ;;
14275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14276
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14277
shlibpath_var=LD_LIBRARY_PATH
14278
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14280
openbsd2.[89] | openbsd2.[89].*)
14281
shlibpath_overrides_runpath=no
14284
shlibpath_overrides_runpath=yes
14288
shlibpath_overrides_runpath=yes
14293
libname_spec='$name'
14296
library_names_spec='$libname${shared_ext} $libname.a'
14297
dynamic_linker='OS/2 ld.exe'
14298
shlibpath_var=LIBPATH
14301
osf3* | osf4* | osf5*)
14305
soname_spec='${libname}${release}${shared_ext}$major'
14306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14307
shlibpath_var=LD_LIBRARY_PATH
14308
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14309
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14321
soname_spec='${libname}${release}${shared_ext}$major'
14322
shlibpath_var=LD_LIBRARY_PATH
14323
shlibpath_overrides_runpath=yes
14324
hardcode_into_libs=yes
14325
# ldd complains unless libraries are executable
14326
postinstall_cmds='chmod +x $lib'
14331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14332
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14333
shlibpath_var=LD_LIBRARY_PATH
14334
shlibpath_overrides_runpath=yes
14335
if test "$with_gnu_ld" = yes; then
14343
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344
soname_spec='${libname}${release}${shared_ext}$major'
14345
shlibpath_var=LD_LIBRARY_PATH
14346
case $host_vendor in
14348
shlibpath_overrides_runpath=no
14350
export_dynamic_flag_spec='${wl}-Blargedynsym'
14351
runpath_var=LD_RUN_PATH
14359
shlibpath_overrides_runpath=no
14360
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14366
if test -d /usr/nec ;then
14368
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14369
soname_spec='$libname${shared_ext}.$major'
14370
shlibpath_var=LD_LIBRARY_PATH
14374
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14375
version_type=freebsd-elf
14378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14379
soname_spec='${libname}${release}${shared_ext}$major'
14380
shlibpath_var=LD_LIBRARY_PATH
14381
hardcode_into_libs=yes
14382
if test "$with_gnu_ld" = yes; then
14383
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14384
shlibpath_overrides_runpath=no
14386
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14387
shlibpath_overrides_runpath=yes
14390
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14394
sys_lib_dlsearch_path_spec='/usr/lib'
14399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400
soname_spec='${libname}${release}${shared_ext}$major'
14401
shlibpath_var=LD_LIBRARY_PATH
14408
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14409
echo "${ECHO_T}$dynamic_linker" >&6; }
14410
test "$dynamic_linker" = no && can_build_shared=no
14412
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14413
echo $ECHO_N "(cached) $ECHO_C" >&6
14415
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14418
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14419
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14420
echo $ECHO_N "(cached) $ECHO_C" >&6
14422
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14425
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14427
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14428
if test "$GCC" = yes; then
14429
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14432
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14433
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14434
hardcode_action_CXX=
14435
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14436
test -n "$runpath_var_CXX" || \
14437
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14439
# We can hardcode non-existant directories.
14440
if test "$hardcode_direct_CXX" != no &&
14441
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14442
# have to relink, otherwise we might link with an installed library
14443
# when we should be linking with a yet-to-be-installed one
14444
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14445
test "$hardcode_minus_L_CXX" != no; then
14446
# Linking always hardcodes the temporary library directory.
14447
hardcode_action_CXX=relink
14449
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14450
hardcode_action_CXX=immediate
14453
# We cannot hardcode anything, or else we can only hardcode existing
14455
hardcode_action_CXX=unsupported
14457
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14458
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14460
if test "$hardcode_action_CXX" = relink; then
14461
# Fast installation is not supported
14462
enable_fast_install=no
14463
elif test "$shlibpath_overrides_runpath" = yes ||
14464
test "$enable_shared" = no; then
14465
# Fast installation is not necessary
14466
enable_fast_install=needless
14470
# The else clause should only fire when bootstrapping the
14471
# libtool distribution, otherwise you forgot to ship ltmain.sh
14472
# with your package, and you will get complaints that there are
14473
# no rules to generate ltmain.sh.
14474
if test -f "$ltmain"; then
14475
# See if we are running on zsh, and set the options which allow our commands through
14476
# without removal of \ escapes.
14477
if test -n "${ZSH_VERSION+set}" ; then
14478
setopt NO_GLOB_SUBST
14480
# Now quote all the things that may contain metacharacters while being
14481
# careful not to overquote the AC_SUBSTed values. We take copies of the
14482
# variables and quote the copies for generation of the libtool script.
14483
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14485
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14486
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14487
deplibs_check_method reload_flag reload_cmds need_locks \
14488
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14489
lt_cv_sys_global_symbol_to_c_name_address \
14490
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14491
old_postinstall_cmds old_postuninstall_cmds \
14495
lt_prog_compiler_wl_CXX \
14496
lt_prog_compiler_pic_CXX \
14497
lt_prog_compiler_static_CXX \
14498
lt_prog_compiler_no_builtin_flag_CXX \
14499
export_dynamic_flag_spec_CXX \
14500
thread_safe_flag_spec_CXX \
14501
whole_archive_flag_spec_CXX \
14502
enable_shared_with_static_runtimes_CXX \
14503
old_archive_cmds_CXX \
14504
old_archive_from_new_cmds_CXX \
14505
predep_objects_CXX \
14506
postdep_objects_CXX \
14509
compiler_lib_search_path_CXX \
14510
compiler_lib_search_dirs_CXX \
14512
archive_expsym_cmds_CXX \
14513
postinstall_cmds_CXX \
14514
postuninstall_cmds_CXX \
14515
old_archive_from_expsyms_cmds_CXX \
14516
allow_undefined_flag_CXX \
14517
no_undefined_flag_CXX \
14518
export_symbols_cmds_CXX \
14519
hardcode_libdir_flag_spec_CXX \
14520
hardcode_libdir_flag_spec_ld_CXX \
14521
hardcode_libdir_separator_CXX \
14522
hardcode_automatic_CXX \
14524
module_expsym_cmds_CXX \
14525
lt_cv_prog_compiler_c_o_CXX \
14526
fix_srcfile_path_CXX \
14527
exclude_expsyms_CXX \
14528
include_expsyms_CXX; do
14531
old_archive_cmds_CXX | \
14532
old_archive_from_new_cmds_CXX | \
14533
archive_cmds_CXX | \
14534
archive_expsym_cmds_CXX | \
14535
module_cmds_CXX | \
14536
module_expsym_cmds_CXX | \
14537
old_archive_from_expsyms_cmds_CXX | \
14538
export_symbols_cmds_CXX | \
14539
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14540
postinstall_cmds | postuninstall_cmds | \
14541
old_postinstall_cmds | old_postuninstall_cmds | \
14542
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14543
# Double-quote double-evaled strings.
14544
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14547
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14553
*'\$0 --fallback-echo"')
14554
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14560
cat <<__EOF__ >> "$cfgfile"
14561
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14563
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14565
# Shell to use when invoking shell scripts.
14568
# Whether or not to build shared libraries.
14569
build_libtool_libs=$enable_shared
14571
# Whether or not to build static libraries.
14572
build_old_libs=$enable_static
14574
# Whether or not to add -lc for building shared libraries.
14575
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14577
# Whether or not to disallow shared libs when runtime libs are static
14578
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14580
# Whether or not to optimize for fast installation.
14581
fast_install=$enable_fast_install
14584
host_alias=$host_alias
14588
# The build system.
14589
build_alias=$build_alias
14593
# An echo program that does not interpret backslashes.
14598
AR_FLAGS=$lt_AR_FLAGS
14603
# LTCC compiler flags.
14604
LTCFLAGS=$lt_LTCFLAGS
14606
# A language-specific compiler.
14607
CC=$lt_compiler_CXX
14609
# Is the compiler the GNU C compiler?
14615
# The linker used to build libraries.
14618
# Whether we need hard or soft links.
14621
# A BSD-compatible nm program.
14624
# A symbol stripping program
14627
# Used to examine libraries when file_magic_cmd begins "file"
14628
MAGIC_CMD=$MAGIC_CMD
14630
# Used on cygwin: DLL creation program.
14633
# Used on cygwin: object dumper.
14636
# Used on cygwin: assembler.
14639
# The name of the directory that contains temporary libtool files.
14642
# How to create reloadable object files.
14643
reload_flag=$lt_reload_flag
14644
reload_cmds=$lt_reload_cmds
14646
# How to pass a linker flag through the compiler.
14647
wl=$lt_lt_prog_compiler_wl_CXX
14649
# Object file suffix (normally "o").
14650
objext="$ac_objext"
14652
# Old archive suffix (normally "a").
14655
# Shared library suffix (normally ".so").
14656
shrext_cmds='$shrext_cmds'
14658
# Executable file suffix (normally "").
14661
# Additional compiler flags for building library objects.
14662
pic_flag=$lt_lt_prog_compiler_pic_CXX
14665
# What is the maximum length of a command?
14666
max_cmd_len=$lt_cv_sys_max_cmd_len
14668
# Does compiler simultaneously support -c and -o options?
14669
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14671
# Must we lock files when doing compilation?
14672
need_locks=$lt_need_locks
14674
# Do we need the lib prefix for modules?
14675
need_lib_prefix=$need_lib_prefix
14677
# Do we need a version for libraries?
14678
need_version=$need_version
14680
# Whether dlopen is supported.
14681
dlopen_support=$enable_dlopen
14683
# Whether dlopen of programs is supported.
14684
dlopen_self=$enable_dlopen_self
14686
# Whether dlopen of statically linked programs is supported.
14687
dlopen_self_static=$enable_dlopen_self_static
14689
# Compiler flag to prevent dynamic linking.
14690
link_static_flag=$lt_lt_prog_compiler_static_CXX
14692
# Compiler flag to turn off builtin functions.
14693
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14695
# Compiler flag to allow reflexive dlopens.
14696
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14698
# Compiler flag to generate shared objects directly from archives.
14699
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14701
# Compiler flag to generate thread-safe objects.
14702
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14704
# Library versioning type.
14705
version_type=$version_type
14707
# Format of library name prefix.
14708
libname_spec=$lt_libname_spec
14710
# List of archive names. First name is the real one, the rest are links.
14711
# The last name is the one that the linker finds with -lNAME.
14712
library_names_spec=$lt_library_names_spec
14714
# The coded name of the library, if different from the real name.
14715
soname_spec=$lt_soname_spec
14717
# Commands used to build and install an old-style archive.
14719
old_archive_cmds=$lt_old_archive_cmds_CXX
14720
old_postinstall_cmds=$lt_old_postinstall_cmds
14721
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14723
# Create an old-style archive from a shared archive.
14724
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14726
# Create a temporary old-style archive to link instead of a shared archive.
14727
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14729
# Commands used to build and install a shared archive.
14730
archive_cmds=$lt_archive_cmds_CXX
14731
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14732
postinstall_cmds=$lt_postinstall_cmds
14733
postuninstall_cmds=$lt_postuninstall_cmds
14735
# Commands used to build a loadable module (assumed same as above if empty)
14736
module_cmds=$lt_module_cmds_CXX
14737
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14739
# Commands to strip libraries.
14740
old_striplib=$lt_old_striplib
14741
striplib=$lt_striplib
14743
# Dependencies to place before the objects being linked to create a
14745
predep_objects=$lt_predep_objects_CXX
14747
# Dependencies to place after the objects being linked to create a
14749
postdep_objects=$lt_postdep_objects_CXX
14751
# Dependencies to place before the objects being linked to create a
14753
predeps=$lt_predeps_CXX
14755
# Dependencies to place after the objects being linked to create a
14757
postdeps=$lt_postdeps_CXX
14759
# The directories searched by this compiler when creating a shared
14761
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14763
# The library search path used internally by the compiler when linking
14764
# a shared library.
14765
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14767
# Method to check whether dependent libraries are shared objects.
14768
deplibs_check_method=$lt_deplibs_check_method
14770
# Command to use when deplibs_check_method == file_magic.
14771
file_magic_cmd=$lt_file_magic_cmd
14773
# Flag that allows shared libraries with undefined symbols to be built.
14774
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14776
# Flag that forces no undefined symbols.
14777
no_undefined_flag=$lt_no_undefined_flag_CXX
14779
# Commands used to finish a libtool library installation in a directory.
14780
finish_cmds=$lt_finish_cmds
14782
# Same as above, but a single script fragment to be evaled but not shown.
14783
finish_eval=$lt_finish_eval
14785
# Take the output of nm and produce a listing of raw symbols and C names.
14786
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14788
# Transform the output of nm in a proper C declaration
14789
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14791
# Transform the output of nm in a C name address pair
14792
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14794
# This is the shared library runtime path variable.
14795
runpath_var=$runpath_var
14797
# This is the shared library path variable.
14798
shlibpath_var=$shlibpath_var
14800
# Is shlibpath searched before the hard-coded library search path?
14801
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14803
# How to hardcode a shared library path into an executable.
14804
hardcode_action=$hardcode_action_CXX
14806
# Whether we should hardcode library paths into libraries.
14807
hardcode_into_libs=$hardcode_into_libs
14809
# Flag to hardcode \$libdir into a binary during linking.
14810
# This must work even if \$libdir does not exist.
14811
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14813
# If ld is used when linking, flag to hardcode \$libdir into
14814
# a binary during linking. This must work even if \$libdir does
14816
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14818
# Whether we need a single -rpath flag with a separated argument.
14819
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14821
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14822
# resulting binary.
14823
hardcode_direct=$hardcode_direct_CXX
14825
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14826
# resulting binary.
14827
hardcode_minus_L=$hardcode_minus_L_CXX
14829
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14830
# the resulting binary.
14831
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14833
# Set to yes if building a shared library automatically hardcodes DIR into the library
14834
# and all subsequent libraries and executables linked against it.
14835
hardcode_automatic=$hardcode_automatic_CXX
14837
# Variables whose values should be saved in libtool wrapper scripts and
14838
# restored at relink time.
14839
variables_saved_for_relink="$variables_saved_for_relink"
14841
# Whether libtool must link a program against all its dependency libraries.
14842
link_all_deplibs=$link_all_deplibs_CXX
14844
# Compile-time system search path for libraries
14845
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14847
# Run-time system search path for libraries
14848
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14850
# Fix the shell variable \$srcfile for the compiler.
14851
fix_srcfile_path=$lt_fix_srcfile_path
14853
# Set to yes if exported symbols are required.
14854
always_export_symbols=$always_export_symbols_CXX
14856
# The commands to list exported symbols.
14857
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14859
# The commands to extract the exported symbol list from a shared archive.
14860
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14862
# Symbols that should not be listed in the preloaded symbols.
14863
exclude_expsyms=$lt_exclude_expsyms_CXX
14865
# Symbols that must always be exported.
14866
include_expsyms=$lt_include_expsyms_CXX
14868
# ### END LIBTOOL TAG CONFIG: $tagname
14874
# If there is no Makefile yet, we rely on a make rule to execute
14875
# `config.status --recheck' to rerun these tests and create the
14876
# libtool script then.
14877
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14878
if test -f "$ltmain_in"; then
14879
test -f Makefile && make "$ltmain"
14885
ac_cpp='$CPP $CPPFLAGS'
14886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14894
with_gnu_ldcxx=$with_gnu_ld
14895
with_gnu_ld=$lt_save_with_gnu_ld
14896
lt_cv_path_LDCXX=$lt_cv_path_LD
14897
lt_cv_path_LD=$lt_save_path_LD
14898
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14899
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14907
if test -n "$F77" && test "X$F77" != "Xno"; then
14910
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14911
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14915
archive_cmds_need_lc_F77=no
14916
allow_undefined_flag_F77=
14917
always_export_symbols_F77=no
14918
archive_expsym_cmds_F77=
14919
export_dynamic_flag_spec_F77=
14920
hardcode_direct_F77=no
14921
hardcode_libdir_flag_spec_F77=
14922
hardcode_libdir_flag_spec_ld_F77=
14923
hardcode_libdir_separator_F77=
14924
hardcode_minus_L_F77=no
14925
hardcode_automatic_F77=no
14927
module_expsym_cmds_F77=
14928
link_all_deplibs_F77=unknown
14929
old_archive_cmds_F77=$old_archive_cmds
14930
no_undefined_flag_F77=
14931
whole_archive_flag_spec_F77=
14932
enable_shared_with_static_runtimes_F77=no
14934
# Source file extension for f77 test sources.
14937
# Object file extension for compiled f77 test sources.
14941
# Code to be used in simple compile tests
14942
lt_simple_compile_test_code="\
14948
# Code to be used in simple link tests
14949
lt_simple_link_test_code="\
14954
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14956
# If no C compiler was specified, use CC.
14959
# If no C compiler flags were specified, use CFLAGS.
14960
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14962
# Allow CC to be a program name with arguments.
14966
# save warnings/boilerplate of simple test code
14967
ac_outfile=conftest.$ac_objext
14968
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14969
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14970
_lt_compiler_boilerplate=`cat conftest.err`
14973
ac_outfile=conftest.$ac_objext
14974
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14975
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14976
_lt_linker_boilerplate=`cat conftest.err`
14980
# Allow CC to be a program name with arguments.
14985
for cc_temp in $compiler""; do
14987
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14988
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14993
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14996
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14997
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14998
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14999
echo "${ECHO_T}$can_build_shared" >&6; }
15001
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15002
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15003
test "$can_build_shared" = "no" && enable_shared=no
15005
# On AIX, shared libraries and static libraries use the same namespace, and
15006
# are all built from PIC.
15009
test "$enable_shared" = yes && enable_static=no
15010
if test -n "$RANLIB"; then
15011
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15012
postinstall_cmds='$RANLIB $lib'
15016
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15017
test "$enable_shared" = yes && enable_static=no
15021
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15022
echo "${ECHO_T}$enable_shared" >&6; }
15024
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15025
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15026
# Make sure either enable_shared or enable_static is yes.
15027
test "$enable_shared" = yes || enable_static=yes
15028
{ echo "$as_me:$LINENO: result: $enable_static" >&5
15029
echo "${ECHO_T}$enable_static" >&6; }
15034
lt_prog_compiler_wl_F77=
15035
lt_prog_compiler_pic_F77=
15036
lt_prog_compiler_static_F77=
15038
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15039
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15041
if test "$GCC" = yes; then
15042
lt_prog_compiler_wl_F77='-Wl,'
15043
lt_prog_compiler_static_F77='-static'
15047
# All AIX code is PIC.
15048
if test "$host_cpu" = ia64; then
15049
# AIX 5 now supports IA64 processor
15050
lt_prog_compiler_static_F77='-Bstatic'
15055
# FIXME: we need at least 68020 code to build shared libraries, but
15056
# adding the `-m68020' flag to GCC prevents building anything better,
15058
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15061
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15062
# PIC is the default for these OSes.
15065
mingw* | cygwin* | pw32* | os2*)
15066
# This hack is so that the source file can tell whether it is being
15067
# built for inclusion in a dll (and should export symbols for example).
15068
# Although the cygwin gcc ignores -fPIC, still need this for old-style
15069
# (--disable-auto-import) libraries
15070
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15073
darwin* | rhapsody*)
15074
# PIC is the default on this platform
15075
# Common symbols not allowed in MH_DYLIB files
15076
lt_prog_compiler_pic_F77='-fno-common'
15080
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15081
# Instead, we relocate shared libraries at runtime.
15085
# Just because we use GCC doesn't mean we suddenly get shared libraries
15086
# on systems that don't support them.
15087
lt_prog_compiler_can_build_shared_F77=no
15092
if test -d /usr/nec; then
15093
lt_prog_compiler_pic_F77=-Kconform_pic
15098
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15099
# not for PA HP-UX.
15105
lt_prog_compiler_pic_F77='-fPIC'
15111
lt_prog_compiler_pic_F77='-fPIC'
15115
# PORTME Check for flag to pass linker flags through the system compiler.
15118
lt_prog_compiler_wl_F77='-Wl,'
15119
if test "$host_cpu" = ia64; then
15120
# AIX 5 now supports IA64 processor
15121
lt_prog_compiler_static_F77='-Bstatic'
15123
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15127
# PIC is the default on this platform
15128
# Common symbols not allowed in MH_DYLIB files
15129
case $cc_basename in
15131
lt_prog_compiler_pic_F77='-qnocommon'
15132
lt_prog_compiler_wl_F77='-Wl,'
15137
mingw* | cygwin* | pw32* | os2*)
15138
# This hack is so that the source file can tell whether it is being
15139
# built for inclusion in a dll (and should export symbols for example).
15140
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15143
hpux9* | hpux10* | hpux11*)
15144
lt_prog_compiler_wl_F77='-Wl,'
15145
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15146
# not for PA HP-UX.
15152
lt_prog_compiler_pic_F77='+Z'
15155
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15156
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15159
irix5* | irix6* | nonstopux*)
15160
lt_prog_compiler_wl_F77='-Wl,'
15161
# PIC (with -KPIC) is the default.
15162
lt_prog_compiler_static_F77='-non_shared'
15166
lt_prog_compiler_pic_F77='-KPIC'
15167
lt_prog_compiler_static_F77='-Bstatic'
15170
linux* | k*bsd*-gnu)
15171
case $cc_basename in
15173
lt_prog_compiler_wl_F77='-Wl,'
15174
lt_prog_compiler_pic_F77='-KPIC'
15175
lt_prog_compiler_static_F77='-static'
15177
pgcc* | pgf77* | pgf90* | pgf95*)
15178
# Portland Group compilers (*not* the Pentium gcc compiler,
15179
# which looks to be a dead project)
15180
lt_prog_compiler_wl_F77='-Wl,'
15181
lt_prog_compiler_pic_F77='-fpic'
15182
lt_prog_compiler_static_F77='-Bstatic'
15185
lt_prog_compiler_wl_F77='-Wl,'
15186
# All Alpha code is PIC.
15187
lt_prog_compiler_static_F77='-non_shared'
15190
case `$CC -V 2>&1 | sed 5q` in
15193
lt_prog_compiler_pic_F77='-KPIC'
15194
lt_prog_compiler_static_F77='-Bstatic'
15195
lt_prog_compiler_wl_F77='-Wl,'
15198
# Sun Fortran 8.3 passes all unrecognized flags to the linker
15199
lt_prog_compiler_pic_F77='-KPIC'
15200
lt_prog_compiler_static_F77='-Bstatic'
15201
lt_prog_compiler_wl_F77=''
15208
osf3* | osf4* | osf5*)
15209
lt_prog_compiler_wl_F77='-Wl,'
15210
# All OSF/1 code is PIC.
15211
lt_prog_compiler_static_F77='-non_shared'
15215
lt_prog_compiler_static_F77='-non_shared'
15219
lt_prog_compiler_pic_F77='-KPIC'
15220
lt_prog_compiler_static_F77='-Bstatic'
15221
case $cc_basename in
15222
f77* | f90* | f95*)
15223
lt_prog_compiler_wl_F77='-Qoption ld ';;
15225
lt_prog_compiler_wl_F77='-Wl,';;
15230
lt_prog_compiler_wl_F77='-Qoption ld '
15231
lt_prog_compiler_pic_F77='-PIC'
15232
lt_prog_compiler_static_F77='-Bstatic'
15235
sysv4 | sysv4.2uw2* | sysv4.3*)
15236
lt_prog_compiler_wl_F77='-Wl,'
15237
lt_prog_compiler_pic_F77='-KPIC'
15238
lt_prog_compiler_static_F77='-Bstatic'
15242
if test -d /usr/nec ;then
15243
lt_prog_compiler_pic_F77='-Kconform_pic'
15244
lt_prog_compiler_static_F77='-Bstatic'
15248
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15249
lt_prog_compiler_wl_F77='-Wl,'
15250
lt_prog_compiler_pic_F77='-KPIC'
15251
lt_prog_compiler_static_F77='-Bstatic'
15255
lt_prog_compiler_wl_F77='-Wl,'
15256
lt_prog_compiler_can_build_shared_F77=no
15260
lt_prog_compiler_pic_F77='-pic'
15261
lt_prog_compiler_static_F77='-Bstatic'
15265
lt_prog_compiler_can_build_shared_F77=no
15270
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15271
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15274
# Check to make sure the PIC flag actually works.
15276
if test -n "$lt_prog_compiler_pic_F77"; then
15278
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15279
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15280
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15281
echo $ECHO_N "(cached) $ECHO_C" >&6
15283
lt_cv_prog_compiler_pic_works_F77=no
15284
ac_outfile=conftest.$ac_objext
15285
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15286
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15287
# Insert the option either (1) after the last *FLAGS variable, or
15288
# (2) before a word containing "conftest.", or (3) at the end.
15289
# Note that $ac_compile itself does not contain backslashes and begins
15290
# with a dollar sign (not a hyphen), so the echo should work correctly.
15291
# The option is referenced via a variable to avoid confusing sed.
15292
lt_compile=`echo "$ac_compile" | $SED \
15293
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15294
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15295
-e 's:$: $lt_compiler_flag:'`
15296
(eval echo "\"\$as_me:15296: $lt_compile\"" >&5)
15297
(eval "$lt_compile" 2>conftest.err)
15299
cat conftest.err >&5
15300
echo "$as_me:15300: \$? = $ac_status" >&5
15301
if (exit $ac_status) && test -s "$ac_outfile"; then
15302
# The compiler can only warn and ignore the option if not recognized
15303
# So say no if there are warnings other than the usual output.
15304
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15305
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15306
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15307
lt_cv_prog_compiler_pic_works_F77=yes
15313
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15314
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
15316
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15317
case $lt_prog_compiler_pic_F77 in
15319
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15322
lt_prog_compiler_pic_F77=
15323
lt_prog_compiler_can_build_shared_F77=no
15328
# For platforms which do not support PIC, -DPIC is meaningless:
15330
lt_prog_compiler_pic_F77=
15333
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15338
# Check to make sure the static flag actually works.
15340
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15341
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15342
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15343
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15344
echo $ECHO_N "(cached) $ECHO_C" >&6
15346
lt_cv_prog_compiler_static_works_F77=no
15347
save_LDFLAGS="$LDFLAGS"
15348
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15349
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15350
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15351
# The linker can only warn and ignore the option if not recognized
15352
# So say no if there are warnings
15353
if test -s conftest.err; then
15354
# Append any errors to the config.log.
15355
cat conftest.err 1>&5
15356
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15357
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15358
if diff conftest.exp conftest.er2 >/dev/null; then
15359
lt_cv_prog_compiler_static_works_F77=yes
15362
lt_cv_prog_compiler_static_works_F77=yes
15366
LDFLAGS="$save_LDFLAGS"
15369
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15370
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
15372
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15375
lt_prog_compiler_static_F77=
15379
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15380
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15381
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15382
echo $ECHO_N "(cached) $ECHO_C" >&6
15384
lt_cv_prog_compiler_c_o_F77=no
15385
$rm -r conftest 2>/dev/null
15389
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15391
lt_compiler_flag="-o out/conftest2.$ac_objext"
15392
# Insert the option either (1) after the last *FLAGS variable, or
15393
# (2) before a word containing "conftest.", or (3) at the end.
15394
# Note that $ac_compile itself does not contain backslashes and begins
15395
# with a dollar sign (not a hyphen), so the echo should work correctly.
15396
lt_compile=`echo "$ac_compile" | $SED \
15397
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399
-e 's:$: $lt_compiler_flag:'`
15400
(eval echo "\"\$as_me:15400: $lt_compile\"" >&5)
15401
(eval "$lt_compile" 2>out/conftest.err)
15403
cat out/conftest.err >&5
15404
echo "$as_me:15404: \$? = $ac_status" >&5
15405
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15407
# The compiler can only warn and ignore the option if not recognized
15408
# So say no if there are warnings
15409
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15410
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15411
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15412
lt_cv_prog_compiler_c_o_F77=yes
15417
# SGI C++ compiler will create directory out/ii_files/ for
15418
# template instantiation
15419
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15420
$rm out/* && rmdir out
15426
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15427
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15430
hard_links="nottested"
15431
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15432
# do not overwrite the value of need_locks provided by the user
15433
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15434
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15437
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15439
ln conftest.a conftest.b 2>&5 || hard_links=no
15440
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15441
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15442
echo "${ECHO_T}$hard_links" >&6; }
15443
if test "$hard_links" = no; then
15444
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15445
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15452
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15453
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15456
allow_undefined_flag_F77=
15457
enable_shared_with_static_runtimes_F77=no
15459
archive_expsym_cmds_F77=
15460
old_archive_From_new_cmds_F77=
15461
old_archive_from_expsyms_cmds_F77=
15462
export_dynamic_flag_spec_F77=
15463
whole_archive_flag_spec_F77=
15464
thread_safe_flag_spec_F77=
15465
hardcode_libdir_flag_spec_F77=
15466
hardcode_libdir_flag_spec_ld_F77=
15467
hardcode_libdir_separator_F77=
15468
hardcode_direct_F77=no
15469
hardcode_minus_L_F77=no
15470
hardcode_shlibpath_var_F77=unsupported
15471
link_all_deplibs_F77=unknown
15472
hardcode_automatic_F77=no
15474
module_expsym_cmds_F77=
15475
always_export_symbols_F77=no
15476
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15477
# include_expsyms should be a list of space-separated symbols to be *always*
15478
# included in the symbol list
15479
include_expsyms_F77=
15480
# exclude_expsyms can be an extended regexp of symbols to exclude
15481
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15482
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15483
# as well as any symbol that contains `d'.
15484
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15485
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15486
# platforms (ab)use it in PIC code, but their linkers get confused if
15487
# the symbol is explicitly referenced. Since portable code cannot
15488
# rely on this symbol name, it's probably fine to never include it in
15489
# preloaded symbol tables.
15490
# Exclude shared library initialization/finalization symbols.
15491
extract_expsyms_cmds=
15492
# Just being paranoid about ensuring that cc_basename is set.
15493
for cc_temp in $compiler""; do
15495
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15496
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15501
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15504
cygwin* | mingw* | pw32*)
15505
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15506
# When not using gcc, we currently assume that we are using
15507
# Microsoft Visual C++.
15508
if test "$GCC" != yes; then
15513
# we just hope/assume this is gcc and not c89 (= MSVC++)
15522
if test "$with_gnu_ld" = yes; then
15523
# If archive_cmds runs LD, not CC, wlarc should be empty
15526
# Set some defaults for GNU ld with shared library support. These
15527
# are reset later if shared libraries are not supported. Putting them
15528
# here allows them to be overridden if necessary.
15529
runpath_var=LD_RUN_PATH
15530
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15531
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15532
# ancient GNU ld didn't support --whole-archive et. al.
15533
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15534
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15536
whole_archive_flag_spec_F77=
15538
supports_anon_versioning=no
15539
case `$LD -v 2>/dev/null` in
15540
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15541
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15542
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15543
*\ 2.11.*) ;; # other 2.11 versions
15544
*) supports_anon_versioning=yes ;;
15547
# See if GNU ld supports shared libraries.
15550
# On AIX/PPC, the GNU linker is very broken
15551
if test "$host_cpu" != ia64; then
15555
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15556
*** to be unable to reliably create shared libraries on AIX.
15557
*** Therefore, libtool is disabling shared libraries support. If you
15558
*** really care for shared libraries, you may want to modify your PATH
15559
*** so that a non-GNU linker is found, and then restart.
15566
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)'
15567
hardcode_libdir_flag_spec_F77='-L$libdir'
15568
hardcode_minus_L_F77=yes
15570
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15571
# that the semantics of dynamic libraries on AmigaOS, at least up
15572
# to version 4, is to share data among multiple programs linked
15573
# with the same dynamic library. Since this doesn't match the
15574
# behavior of shared libraries on other platforms, we can't use
15580
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581
allow_undefined_flag_F77=unsupported
15582
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15583
# support --undefined. This deserves some investigation. FIXME
15584
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590
cygwin* | mingw* | pw32*)
15591
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15592
# as there is no search path for DLLs.
15593
hardcode_libdir_flag_spec_F77='-L$libdir'
15594
allow_undefined_flag_F77=unsupported
15595
always_export_symbols_F77=no
15596
enable_shared_with_static_runtimes_F77=yes
15597
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15599
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15600
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15601
# If the export-symbols file already is a .def file (1st line
15602
# is EXPORTS), use it as is; otherwise, prepend...
15603
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15604
cp $export_symbols $output_objdir/$soname.def;
15606
echo EXPORTS > $output_objdir/$soname.def;
15607
cat $export_symbols >> $output_objdir/$soname.def;
15609
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15616
hardcode_direct_F77=no
15617
hardcode_shlibpath_var_F77=no
15618
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15619
export_dynamic_flag_spec_F77='${wl}-E'
15620
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15621
# Instead, shared libraries are loaded at an image base (0x10000000 by
15622
# default) and relocated if they conflict, which is a slow very memory
15623
# consuming and fragmenting process. To avoid this, we pick a random,
15624
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15625
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15626
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'
15627
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'
15630
gnu* | linux* | k*bsd*-gnu)
15631
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15633
case $cc_basename,$host_cpu in
15634
pgcc*) # Portland Group C compiler
15635
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'
15636
tmp_addflag=' $pic_flag'
15638
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15639
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'
15640
tmp_addflag=' $pic_flag -Mnomain' ;;
15641
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15642
tmp_addflag=' -i_dynamic' ;;
15643
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15644
tmp_addflag=' -i_dynamic -nofor_main' ;;
15645
ifc* | ifort*) # Intel Fortran compiler
15646
tmp_addflag=' -nofor_main' ;;
15648
case `$CC -V 2>&1 | sed 5q` in
15649
*Sun\ C*) # Sun C 5.9
15650
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15651
tmp_sharedflag='-G' ;;
15652
*Sun\ F*) # Sun Fortran 8.3
15653
tmp_sharedflag='-G' ;;
15655
tmp_sharedflag='-shared' ;;
15657
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659
if test $supports_anon_versioning = yes; then
15660
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15661
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15662
$echo "local: *; };" >> $output_objdir/$libname.ver~
15663
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15665
link_all_deplibs_F77=no
15671
netbsd* | netbsdelf*-gnu)
15672
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15673
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15676
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15677
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15682
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15686
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15687
*** create shared libraries on Solaris systems. Therefore, libtool
15688
*** is disabling shared libraries support. We urge you to upgrade GNU
15689
*** binutils to release 2.9.1 or newer. Another option is to modify
15690
*** your PATH or compiler configuration so that the native linker is
15691
*** used, and then restart.
15694
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15695
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15696
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15702
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15703
case `$LD -v 2>&1` in
15704
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15708
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15709
*** reliably create shared libraries on SCO systems. Therefore, libtool
15710
*** is disabling shared libraries support. We urge you to upgrade GNU
15711
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15712
*** your PATH or compiler configuration so that the native linker is
15713
*** used, and then restart.
15718
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15719
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15720
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15721
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15730
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732
hardcode_direct_F77=yes
15733
hardcode_shlibpath_var_F77=no
15737
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15738
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15739
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15746
if test "$ld_shlibs_F77" = no; then
15748
hardcode_libdir_flag_spec_F77=
15749
export_dynamic_flag_spec_F77=
15750
whole_archive_flag_spec_F77=
15753
# PORTME fill in a description of your system's linker (not GNU ld)
15756
allow_undefined_flag_F77=unsupported
15757
always_export_symbols_F77=yes
15758
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'
15759
# Note: this linker hardcodes the directories in LIBPATH if there
15760
# are no directories specified by -L.
15761
hardcode_minus_L_F77=yes
15762
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15763
# Neither direct hardcoding nor static linking is supported with a
15765
hardcode_direct_F77=unsupported
15770
if test "$host_cpu" = ia64; then
15771
# On IA64, the linker does run time linking by default, so we don't
15772
# have to do anything special.
15773
aix_use_runtimelinking=no
15774
exp_sym_flag='-Bexport'
15777
# If we're using GNU nm, then we don't want the "-C" option.
15778
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15779
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15780
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'
15782
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'
15784
aix_use_runtimelinking=no
15786
# Test if we are trying to use run time linking or normal
15787
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15788
# need to do runtime linking.
15789
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15790
for ld_flag in $LDFLAGS; do
15791
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15792
aix_use_runtimelinking=yes
15799
exp_sym_flag='-bexport'
15800
no_entry_flag='-bnoentry'
15803
# When large executables or shared objects are built, AIX ld can
15804
# have problems creating the table of contents. If linking a library
15805
# or program results in "error TOC overflow" add -mminimal-toc to
15806
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15807
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15809
archive_cmds_F77=''
15810
hardcode_direct_F77=yes
15811
hardcode_libdir_separator_F77=':'
15812
link_all_deplibs_F77=yes
15814
if test "$GCC" = yes; then
15815
case $host_os in aix4.[012]|aix4.[012].*)
15816
# We only want to do this on AIX 4.2 and lower, the check
15817
# below for broken collect2 doesn't work under 4.3+
15818
collect2name=`${CC} -print-prog-name=collect2`
15819
if test -f "$collect2name" && \
15820
strings "$collect2name" | grep resolve_lib_name >/dev/null
15822
# We have reworked collect2
15825
# We have old collect2
15826
hardcode_direct_F77=unsupported
15827
# It fails to find uninstalled libraries when the uninstalled
15828
# path is not listed in the libpath. Setting hardcode_minus_L
15829
# to unsupported forces relinking
15830
hardcode_minus_L_F77=yes
15831
hardcode_libdir_flag_spec_F77='-L$libdir'
15832
hardcode_libdir_separator_F77=
15836
shared_flag='-shared'
15837
if test "$aix_use_runtimelinking" = yes; then
15838
shared_flag="$shared_flag "'${wl}-G'
15842
if test "$host_cpu" = ia64; then
15843
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15844
# chokes on -Wl,-G. The following line is correct:
15847
if test "$aix_use_runtimelinking" = yes; then
15848
shared_flag='${wl}-G'
15850
shared_flag='${wl}-bM:SRE'
15855
# It seems that -bexpall does not export symbols beginning with
15856
# underscore (_), so it is better to generate a list of symbols to export.
15857
always_export_symbols_F77=yes
15858
if test "$aix_use_runtimelinking" = yes; then
15859
# Warning - without using the other runtime loading flags (-brtl),
15860
# -berok will link without error, but may produce a broken library.
15861
allow_undefined_flag_F77='-berok'
15862
# Determine the default libpath from the value encoded in an empty executable.
15863
cat >conftest.$ac_ext <<_ACEOF
15868
rm -f conftest.$ac_objext conftest$ac_exeext
15869
if { (ac_try="$ac_link"
15870
case "(($ac_try" in
15871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872
*) ac_try_echo=$ac_try;;
15874
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875
(eval "$ac_link") 2>conftest.er1
15877
grep -v '^ *+' conftest.er1 >conftest.err
15879
cat conftest.err >&5
15880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881
(exit $ac_status); } && {
15882
test -z "$ac_f77_werror_flag" ||
15883
test ! -s conftest.err
15884
} && test -s conftest$ac_exeext &&
15885
$as_test_x conftest$ac_exeext; then
15887
lt_aix_libpath_sed='
15888
/Import File Strings/,/^$/ {
15894
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15895
# Check for a 64-bit object if we didn't find anything.
15896
if test -z "$aix_libpath"; then
15897
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15900
echo "$as_me: failed program was:" >&5
15901
sed 's/^/| /' conftest.$ac_ext >&5
15906
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15907
conftest$ac_exeext conftest.$ac_ext
15908
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15910
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15911
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"
15913
if test "$host_cpu" = ia64; then
15914
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15915
allow_undefined_flag_F77="-z nodefs"
15916
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"
15918
# Determine the default libpath from the value encoded in an empty executable.
15919
cat >conftest.$ac_ext <<_ACEOF
15924
rm -f conftest.$ac_objext conftest$ac_exeext
15925
if { (ac_try="$ac_link"
15926
case "(($ac_try" in
15927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928
*) ac_try_echo=$ac_try;;
15930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931
(eval "$ac_link") 2>conftest.er1
15933
grep -v '^ *+' conftest.er1 >conftest.err
15935
cat conftest.err >&5
15936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937
(exit $ac_status); } && {
15938
test -z "$ac_f77_werror_flag" ||
15939
test ! -s conftest.err
15940
} && test -s conftest$ac_exeext &&
15941
$as_test_x conftest$ac_exeext; then
15943
lt_aix_libpath_sed='
15944
/Import File Strings/,/^$/ {
15950
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15951
# Check for a 64-bit object if we didn't find anything.
15952
if test -z "$aix_libpath"; then
15953
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15956
echo "$as_me: failed program was:" >&5
15957
sed 's/^/| /' conftest.$ac_ext >&5
15962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15963
conftest$ac_exeext conftest.$ac_ext
15964
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15966
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15967
# Warning - without using the other run time loading flags,
15968
# -berok will link without error, but may produce a broken library.
15969
no_undefined_flag_F77=' ${wl}-bernotok'
15970
allow_undefined_flag_F77=' ${wl}-berok'
15971
# Exported symbols can be pulled into shared objects from archives
15972
whole_archive_flag_spec_F77='$convenience'
15973
archive_cmds_need_lc_F77=yes
15974
# This is similar to how AIX traditionally builds its shared libraries.
15975
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'
15981
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)'
15982
hardcode_libdir_flag_spec_F77='-L$libdir'
15983
hardcode_minus_L_F77=yes
15984
# see comment about different semantics on the GNU ld section
15989
export_dynamic_flag_spec_F77=-rdynamic
15992
cygwin* | mingw* | pw32*)
15993
# When not using gcc, we currently assume that we are using
15994
# Microsoft Visual C++.
15995
# hardcode_libdir_flag_spec is actually meaningless, as there is
15996
# no search path for DLLs.
15997
hardcode_libdir_flag_spec_F77=' '
15998
allow_undefined_flag_F77=unsupported
15999
# Tell ltmain to make .lib files, not .a files.
16001
# Tell ltmain to make .dll files, not .so files.
16003
# FIXME: Setting linknames here is a bad hack.
16004
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16005
# The linker will automatically build a .lib file if we build a DLL.
16006
old_archive_From_new_cmds_F77='true'
16007
# FIXME: Should let the user specify the lib program.
16008
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16009
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16010
enable_shared_with_static_runtimes_F77=yes
16013
darwin* | rhapsody*)
16015
rhapsody* | darwin1.[012])
16016
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16019
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16020
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16022
case ${MACOSX_DEPLOYMENT_TARGET} in
16024
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16027
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16033
archive_cmds_need_lc_F77=no
16034
hardcode_direct_F77=no
16035
hardcode_automatic_F77=yes
16036
hardcode_shlibpath_var_F77=unsupported
16037
whole_archive_flag_spec_F77=''
16038
link_all_deplibs_F77=yes
16039
if test "$GCC" = yes ; then
16040
output_verbose_link_cmd='echo'
16041
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16042
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16043
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16044
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16046
case $cc_basename in
16048
output_verbose_link_cmd='echo'
16049
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16050
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16051
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16052
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16053
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}'
16063
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064
hardcode_libdir_flag_spec_F77='-L$libdir'
16065
hardcode_shlibpath_var_F77=no
16072
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16073
# support. Future versions do this automatically, but an explicit c++rt0.o
16074
# does not break anything, and helps significantly (at the cost of a little
16077
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16078
hardcode_libdir_flag_spec_F77='-R$libdir'
16079
hardcode_direct_F77=yes
16080
hardcode_shlibpath_var_F77=no
16083
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16085
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16086
hardcode_direct_F77=yes
16087
hardcode_minus_L_F77=yes
16088
hardcode_shlibpath_var_F77=no
16091
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16092
freebsd* | dragonfly*)
16093
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16094
hardcode_libdir_flag_spec_F77='-R$libdir'
16095
hardcode_direct_F77=yes
16096
hardcode_shlibpath_var_F77=no
16100
if test "$GCC" = yes; then
16101
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'
16103
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'
16105
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16106
hardcode_libdir_separator_F77=:
16107
hardcode_direct_F77=yes
16109
# hardcode_minus_L: Not really in the search PATH,
16110
# but as the default location of the library.
16111
hardcode_minus_L_F77=yes
16112
export_dynamic_flag_spec_F77='${wl}-E'
16116
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16117
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16119
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16121
if test "$with_gnu_ld" = no; then
16122
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16123
hardcode_libdir_separator_F77=:
16125
hardcode_direct_F77=yes
16126
export_dynamic_flag_spec_F77='${wl}-E'
16128
# hardcode_minus_L: Not really in the search PATH,
16129
# but as the default location of the library.
16130
hardcode_minus_L_F77=yes
16135
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16138
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16144
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16150
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16153
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16156
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16160
if test "$with_gnu_ld" = no; then
16161
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16162
hardcode_libdir_separator_F77=:
16166
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16167
hardcode_direct_F77=no
16168
hardcode_shlibpath_var_F77=no
16171
hardcode_direct_F77=yes
16172
export_dynamic_flag_spec_F77='${wl}-E'
16174
# hardcode_minus_L: Not really in the search PATH,
16175
# but as the default location of the library.
16176
hardcode_minus_L_F77=yes
16182
irix5* | irix6* | nonstopux*)
16183
if test "$GCC" = yes; then
16184
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'
16186
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'
16187
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16189
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16190
hardcode_libdir_separator_F77=:
16191
link_all_deplibs_F77=yes
16194
netbsd* | netbsdelf*-gnu)
16195
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16196
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16198
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16200
hardcode_libdir_flag_spec_F77='-R$libdir'
16201
hardcode_direct_F77=yes
16202
hardcode_shlibpath_var_F77=no
16206
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207
hardcode_direct_F77=yes
16208
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16209
hardcode_libdir_separator_F77=:
16210
hardcode_shlibpath_var_F77=no
16214
if test -f /usr/libexec/ld.so; then
16215
hardcode_direct_F77=yes
16216
hardcode_shlibpath_var_F77=no
16217
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16218
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16219
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16220
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16221
export_dynamic_flag_spec_F77='${wl}-E'
16224
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16225
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16226
hardcode_libdir_flag_spec_F77='-R$libdir'
16229
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16230
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16240
hardcode_libdir_flag_spec_F77='-L$libdir'
16241
hardcode_minus_L_F77=yes
16242
allow_undefined_flag_F77=unsupported
16243
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'
16244
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16248
if test "$GCC" = yes; then
16249
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16250
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'
16252
allow_undefined_flag_F77=' -expect_unresolved \*'
16253
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'
16255
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16256
hardcode_libdir_separator_F77=:
16259
osf4* | osf5*) # as osf3* with the addition of -msym flag
16260
if test "$GCC" = yes; then
16261
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16262
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'
16263
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16265
allow_undefined_flag_F77=' -expect_unresolved \*'
16266
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'
16267
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~
16268
$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'
16270
# Both c and cxx compiler support -rpath directly
16271
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16273
hardcode_libdir_separator_F77=:
16277
no_undefined_flag_F77=' -z text'
16278
if test "$GCC" = yes; then
16280
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16281
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16282
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16285
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16286
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16287
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16289
hardcode_libdir_flag_spec_F77='-R$libdir'
16290
hardcode_shlibpath_var_F77=no
16292
solaris2.[0-5] | solaris2.[0-5].*) ;;
16294
# The compiler driver will combine and reorder linker options,
16295
# but understands `-z linker_flag'. GCC discards it without `$wl',
16296
# but is careful enough not to reorder.
16297
# Supported since Solaris 2.6 (maybe 2.5.1?)
16298
if test "$GCC" = yes; then
16299
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16301
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16305
link_all_deplibs_F77=yes
16309
if test "x$host_vendor" = xsequent; then
16310
# Use $CC to link under sequent, because it throws in some extra .o
16311
# files that make .init and .fini sections work.
16312
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16314
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16316
hardcode_libdir_flag_spec_F77='-L$libdir'
16317
hardcode_direct_F77=yes
16318
hardcode_minus_L_F77=yes
16319
hardcode_shlibpath_var_F77=no
16323
case $host_vendor in
16325
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16326
hardcode_direct_F77=yes # is this really true???
16329
## LD is ld it makes a PLAMLIB
16330
## CC just makes a GrossModule.
16331
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16332
reload_cmds_F77='$CC -r -o $output$reload_objs'
16333
hardcode_direct_F77=no
16336
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16340
runpath_var='LD_RUN_PATH'
16341
hardcode_shlibpath_var_F77=no
16345
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346
hardcode_shlibpath_var_F77=no
16347
export_dynamic_flag_spec_F77='-Bexport'
16351
if test -d /usr/nec; then
16352
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16353
hardcode_shlibpath_var_F77=no
16354
runpath_var=LD_RUN_PATH
16355
hardcode_runpath_var=yes
16360
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16361
no_undefined_flag_F77='${wl}-z,text'
16362
archive_cmds_need_lc_F77=no
16363
hardcode_shlibpath_var_F77=no
16364
runpath_var='LD_RUN_PATH'
16366
if test "$GCC" = yes; then
16367
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16368
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16370
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16371
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16375
sysv5* | sco3.2v5* | sco5v6*)
16376
# Note: We can NOT use -z defs as we might desire, because we do not
16377
# link with -lc, and that would cause any symbols used from libc to
16378
# always be unresolved, which means just about no library would
16379
# ever link correctly. If we're not using GNU ld we use -z text
16380
# though, which does catch some bad symbols but isn't as heavy-handed
16382
no_undefined_flag_F77='${wl}-z,text'
16383
allow_undefined_flag_F77='${wl}-z,nodefs'
16384
archive_cmds_need_lc_F77=no
16385
hardcode_shlibpath_var_F77=no
16386
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16387
hardcode_libdir_separator_F77=':'
16388
link_all_deplibs_F77=yes
16389
export_dynamic_flag_spec_F77='${wl}-Bexport'
16390
runpath_var='LD_RUN_PATH'
16392
if test "$GCC" = yes; then
16393
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16394
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16397
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16402
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16403
hardcode_libdir_flag_spec_F77='-L$libdir'
16404
hardcode_shlibpath_var_F77=no
16413
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16414
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16415
test "$ld_shlibs_F77" = no && can_build_shared=no
16418
# Do we need to explicitly link libc?
16420
case "x$archive_cmds_need_lc_F77" in
16422
# Assume -lc should be added
16423
archive_cmds_need_lc_F77=yes
16425
if test "$enable_shared" = yes && test "$GCC" = yes; then
16426
case $archive_cmds_F77 in
16428
# FIXME: we may have to deal with multi-command sequences.
16431
# Test whether the compiler implicitly links with -lc since on some
16432
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16433
# to ld, don't add -lc before -lgcc.
16434
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16435
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16437
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440
(eval $ac_compile) 2>&5
16442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443
(exit $ac_status); } 2>conftest.err; then
16446
libobjs=conftest.$ac_objext
16448
wl=$lt_prog_compiler_wl_F77
16449
pic_flag=$lt_prog_compiler_pic_F77
16455
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16456
allow_undefined_flag_F77=
16457
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16458
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461
(exit $ac_status); }
16463
archive_cmds_need_lc_F77=no
16465
archive_cmds_need_lc_F77=yes
16467
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16469
cat conftest.err 1>&5
16472
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16473
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16480
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16481
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16482
library_names_spec=
16483
libname_spec='lib$name'
16487
postuninstall_cmds=
16491
shlibpath_overrides_runpath=unknown
16493
dynamic_linker="$host_os ld.so"
16494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16496
need_lib_prefix=unknown
16497
hardcode_into_libs=no
16499
# when you set need_version to no, make sure it does not cause -set_version
16500
# flags to be left without arguments
16501
need_version=unknown
16506
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16507
shlibpath_var=LIBPATH
16509
# AIX 3 has no versioning support, so we append a major version to the name.
16510
soname_spec='${libname}${release}${shared_ext}$major'
16517
hardcode_into_libs=yes
16518
if test "$host_cpu" = ia64; then
16519
# AIX 5 supports IA64
16520
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16521
shlibpath_var=LD_LIBRARY_PATH
16523
# With GCC up to 2.95.x, collect2 would create an import file
16524
# for dependence libraries. The import file would start with
16525
# the line `#! .'. This would cause the generated library to
16526
# depend on `.', always an invalid library. This was fixed in
16527
# development snapshots of GCC prior to 3.0.
16529
aix4 | aix4.[01] | aix4.[01].*)
16530
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16532
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16535
can_build_shared=no
16539
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16540
# soname into executable. Probably we can add versioning support to
16541
# collect2, so additional links can be useful in future.
16542
if test "$aix_use_runtimelinking" = yes; then
16543
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16544
# instead of lib<name>.a to let people know that these are not
16545
# typical AIX shared libraries.
16546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548
# We preserve .a as extension for shared libraries through AIX4.2
16549
# and later when we are not doing run time linking.
16550
library_names_spec='${libname}${release}.a $libname.a'
16551
soname_spec='${libname}${release}${shared_ext}$major'
16553
shlibpath_var=LIBPATH
16558
library_names_spec='$libname.ixlibrary $libname.a'
16559
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16560
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'
16564
library_names_spec='${libname}${shared_ext}'
16565
dynamic_linker="$host_os ld.so"
16566
shlibpath_var=LIBRARY_PATH
16572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573
soname_spec='${libname}${release}${shared_ext}$major'
16574
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16575
shlibpath_var=LD_LIBRARY_PATH
16576
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16577
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16578
# the default ld.so.conf also contains /usr/contrib/lib and
16579
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16580
# libtool to hard-code these into programs
16583
cygwin* | mingw* | pw32*)
16584
version_type=windows
16589
case $GCC,$host_os in
16590
yes,cygwin* | yes,mingw* | yes,pw32*)
16591
library_names_spec='$libname.dll.a'
16592
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16593
postinstall_cmds='base_file=`basename \${file}`~
16594
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16595
dldir=$destdir/`dirname \$dlpath`~
16596
test -d \$dldir || mkdir -p \$dldir~
16597
$install_prog $dir/$dlname \$dldir/$dlname~
16598
chmod a+x \$dldir/$dlname'
16599
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16600
dlpath=$dir/\$dldll~
16602
shlibpath_overrides_runpath=yes
16606
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16607
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16611
# MinGW DLLs use traditional 'lib' prefix
16612
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16613
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16614
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16615
# It is most probably a Windows format PATH printed by
16616
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16617
# path with ; separators, and with drive letters. We can handle the
16618
# drive letters (cygwin fileutils understands them), so leave them,
16619
# especially as we might pass files found there to a mingw objdump,
16620
# which wouldn't understand a cygwinified path. Ahh.
16621
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16623
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16627
# pw32 DLLs use 'pw' prefix rather than 'lib'
16628
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16634
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16637
dynamic_linker='Win32 ld.exe'
16638
# FIXME: first we should search . and the directory the executable is in
16642
darwin* | rhapsody*)
16643
dynamic_linker="$host_os dyld"
16644
version_type=darwin
16647
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16648
soname_spec='${libname}${release}${major}$shared_ext'
16649
shlibpath_overrides_runpath=yes
16650
shlibpath_var=DYLD_LIBRARY_PATH
16651
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16653
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661
soname_spec='${libname}${release}${shared_ext}$major'
16662
shlibpath_var=LD_LIBRARY_PATH
16669
freebsd* | dragonfly*)
16670
# DragonFly does not have aout. When/if they implement a new
16671
# versioning mechanism, adjust this.
16672
if test -x /usr/bin/objformat; then
16673
objformat=`/usr/bin/objformat`
16676
freebsd[123]*) objformat=aout ;;
16677
*) objformat=elf ;;
16680
version_type=freebsd-$objformat
16681
case $version_type in
16683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16688
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16692
shlibpath_var=LD_LIBRARY_PATH
16695
shlibpath_overrides_runpath=yes
16697
freebsd3.[01]* | freebsdelf3.[01]*)
16698
shlibpath_overrides_runpath=yes
16699
hardcode_into_libs=yes
16701
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16702
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16703
shlibpath_overrides_runpath=no
16704
hardcode_into_libs=yes
16706
*) # from 4.6 on, and DragonFly
16707
shlibpath_overrides_runpath=yes
16708
hardcode_into_libs=yes
16717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16718
soname_spec='${libname}${release}${shared_ext}$major'
16719
shlibpath_var=LD_LIBRARY_PATH
16720
hardcode_into_libs=yes
16723
hpux9* | hpux10* | hpux11*)
16724
# Give a soname corresponding to the major version so that dld.sl refuses to
16725
# link against other versions.
16732
hardcode_into_libs=yes
16733
dynamic_linker="$host_os dld.so"
16734
shlibpath_var=LD_LIBRARY_PATH
16735
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737
soname_spec='${libname}${release}${shared_ext}$major'
16738
if test "X$HPUX_IA64_MODE" = X32; then
16739
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16741
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16743
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16747
hardcode_into_libs=yes
16748
dynamic_linker="$host_os dld.sl"
16749
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16750
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752
soname_spec='${libname}${release}${shared_ext}$major'
16753
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16754
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16758
dynamic_linker="$host_os dld.sl"
16759
shlibpath_var=SHLIB_PATH
16760
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762
soname_spec='${libname}${release}${shared_ext}$major'
16765
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16766
postinstall_cmds='chmod 555 $lib'
16773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16774
soname_spec='${libname}${release}${shared_ext}$major'
16775
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16776
shlibpath_var=LD_LIBRARY_PATH
16777
shlibpath_overrides_runpath=no
16778
hardcode_into_libs=yes
16781
irix5* | irix6* | nonstopux*)
16783
nonstopux*) version_type=nonstopux ;;
16785
if test "$lt_cv_prog_gnu_ld" = yes; then
16793
soname_spec='${libname}${release}${shared_ext}$major'
16794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16796
irix5* | nonstopux*)
16797
libsuff= shlibsuff=
16800
case $LD in # libtool.m4 will add one of these switches to LD
16801
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16802
libsuff= shlibsuff= libmagic=32-bit;;
16803
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16804
libsuff=32 shlibsuff=N32 libmagic=N32;;
16805
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16806
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16807
*) libsuff= shlibsuff= libmagic=never-match;;
16811
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16812
shlibpath_overrides_runpath=no
16813
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16814
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16815
hardcode_into_libs=yes
16818
# No shared lib support for Linux oldld, aout, or coff.
16819
linux*oldld* | linux*aout* | linux*coff*)
16823
# This must be Linux ELF.
16824
linux* | k*bsd*-gnu)
16828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829
soname_spec='${libname}${release}${shared_ext}$major'
16830
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16831
shlibpath_var=LD_LIBRARY_PATH
16832
shlibpath_overrides_runpath=no
16833
# This implies no fast_install, which is unacceptable.
16834
# Some rework will be needed to allow for fast_install
16835
# before this can be enabled.
16836
hardcode_into_libs=yes
16838
# Append ld.so.conf contents to the search path
16839
if test -f /etc/ld.so.conf; then
16840
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16841
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16844
# We used to test for /lib/ld.so.1 and disable shared libraries on
16845
# powerpc, because MkLinux only supported shared libraries with the
16846
# GNU dynamic linker. Since this was broken with cross compilers,
16847
# most powerpc-linux boxes support dynamic linking these days and
16848
# people can always --disable-shared, the test was removed, and we
16849
# assume the GNU/Linux dynamic linker is in use.
16850
dynamic_linker='GNU/Linux ld.so'
16857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16858
soname_spec='${libname}${release}${shared_ext}$major'
16859
shlibpath_var=LD_LIBRARY_PATH
16860
shlibpath_overrides_runpath=no
16861
hardcode_into_libs=yes
16862
dynamic_linker='NetBSD ld.elf_so'
16869
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16871
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16872
dynamic_linker='NetBSD (a.out) ld.so'
16874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16875
soname_spec='${libname}${release}${shared_ext}$major'
16876
dynamic_linker='NetBSD ld.elf_so'
16878
shlibpath_var=LD_LIBRARY_PATH
16879
shlibpath_overrides_runpath=yes
16880
hardcode_into_libs=yes
16885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886
shlibpath_var=LD_LIBRARY_PATH
16887
shlibpath_overrides_runpath=yes
16894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895
soname_spec='${libname}${release}${shared_ext}$major'
16896
shlibpath_var=LD_LIBRARY_PATH
16897
shlibpath_overrides_runpath=yes
16902
sys_lib_dlsearch_path_spec="/usr/lib"
16904
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16906
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16907
*) need_version=no ;;
16909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16910
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16911
shlibpath_var=LD_LIBRARY_PATH
16912
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16914
openbsd2.[89] | openbsd2.[89].*)
16915
shlibpath_overrides_runpath=no
16918
shlibpath_overrides_runpath=yes
16922
shlibpath_overrides_runpath=yes
16927
libname_spec='$name'
16930
library_names_spec='$libname${shared_ext} $libname.a'
16931
dynamic_linker='OS/2 ld.exe'
16932
shlibpath_var=LIBPATH
16935
osf3* | osf4* | osf5*)
16939
soname_spec='${libname}${release}${shared_ext}$major'
16940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941
shlibpath_var=LD_LIBRARY_PATH
16942
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16943
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16954
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955
soname_spec='${libname}${release}${shared_ext}$major'
16956
shlibpath_var=LD_LIBRARY_PATH
16957
shlibpath_overrides_runpath=yes
16958
hardcode_into_libs=yes
16959
# ldd complains unless libraries are executable
16960
postinstall_cmds='chmod +x $lib'
16965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16966
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16967
shlibpath_var=LD_LIBRARY_PATH
16968
shlibpath_overrides_runpath=yes
16969
if test "$with_gnu_ld" = yes; then
16977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978
soname_spec='${libname}${release}${shared_ext}$major'
16979
shlibpath_var=LD_LIBRARY_PATH
16980
case $host_vendor in
16982
shlibpath_overrides_runpath=no
16984
export_dynamic_flag_spec='${wl}-Blargedynsym'
16985
runpath_var=LD_RUN_PATH
16993
shlibpath_overrides_runpath=no
16994
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17000
if test -d /usr/nec ;then
17002
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17003
soname_spec='$libname${shared_ext}.$major'
17004
shlibpath_var=LD_LIBRARY_PATH
17008
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17009
version_type=freebsd-elf
17012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17013
soname_spec='${libname}${release}${shared_ext}$major'
17014
shlibpath_var=LD_LIBRARY_PATH
17015
hardcode_into_libs=yes
17016
if test "$with_gnu_ld" = yes; then
17017
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17018
shlibpath_overrides_runpath=no
17020
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17021
shlibpath_overrides_runpath=yes
17024
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17028
sys_lib_dlsearch_path_spec='/usr/lib'
17033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034
soname_spec='${libname}${release}${shared_ext}$major'
17035
shlibpath_var=LD_LIBRARY_PATH
17042
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17043
echo "${ECHO_T}$dynamic_linker" >&6; }
17044
test "$dynamic_linker" = no && can_build_shared=no
17046
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17047
echo $ECHO_N "(cached) $ECHO_C" >&6
17049
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17052
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17053
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17054
echo $ECHO_N "(cached) $ECHO_C" >&6
17056
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17059
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17061
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17062
if test "$GCC" = yes; then
17063
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17066
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17067
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17068
hardcode_action_F77=
17069
if test -n "$hardcode_libdir_flag_spec_F77" || \
17070
test -n "$runpath_var_F77" || \
17071
test "X$hardcode_automatic_F77" = "Xyes" ; then
17073
# We can hardcode non-existant directories.
17074
if test "$hardcode_direct_F77" != no &&
17075
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17076
# have to relink, otherwise we might link with an installed library
17077
# when we should be linking with a yet-to-be-installed one
17078
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17079
test "$hardcode_minus_L_F77" != no; then
17080
# Linking always hardcodes the temporary library directory.
17081
hardcode_action_F77=relink
17083
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17084
hardcode_action_F77=immediate
17087
# We cannot hardcode anything, or else we can only hardcode existing
17089
hardcode_action_F77=unsupported
17091
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17092
echo "${ECHO_T}$hardcode_action_F77" >&6; }
17094
if test "$hardcode_action_F77" = relink; then
17095
# Fast installation is not supported
17096
enable_fast_install=no
17097
elif test "$shlibpath_overrides_runpath" = yes ||
17098
test "$enable_shared" = no; then
17099
# Fast installation is not necessary
17100
enable_fast_install=needless
17104
# The else clause should only fire when bootstrapping the
17105
# libtool distribution, otherwise you forgot to ship ltmain.sh
17106
# with your package, and you will get complaints that there are
17107
# no rules to generate ltmain.sh.
17108
if test -f "$ltmain"; then
17109
# See if we are running on zsh, and set the options which allow our commands through
17110
# without removal of \ escapes.
17111
if test -n "${ZSH_VERSION+set}" ; then
17112
setopt NO_GLOB_SUBST
17114
# Now quote all the things that may contain metacharacters while being
17115
# careful not to overquote the AC_SUBSTed values. We take copies of the
17116
# variables and quote the copies for generation of the libtool script.
17117
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17119
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17120
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17121
deplibs_check_method reload_flag reload_cmds need_locks \
17122
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17123
lt_cv_sys_global_symbol_to_c_name_address \
17124
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17125
old_postinstall_cmds old_postuninstall_cmds \
17129
lt_prog_compiler_wl_F77 \
17130
lt_prog_compiler_pic_F77 \
17131
lt_prog_compiler_static_F77 \
17132
lt_prog_compiler_no_builtin_flag_F77 \
17133
export_dynamic_flag_spec_F77 \
17134
thread_safe_flag_spec_F77 \
17135
whole_archive_flag_spec_F77 \
17136
enable_shared_with_static_runtimes_F77 \
17137
old_archive_cmds_F77 \
17138
old_archive_from_new_cmds_F77 \
17139
predep_objects_F77 \
17140
postdep_objects_F77 \
17143
compiler_lib_search_path_F77 \
17144
compiler_lib_search_dirs_F77 \
17146
archive_expsym_cmds_F77 \
17147
postinstall_cmds_F77 \
17148
postuninstall_cmds_F77 \
17149
old_archive_from_expsyms_cmds_F77 \
17150
allow_undefined_flag_F77 \
17151
no_undefined_flag_F77 \
17152
export_symbols_cmds_F77 \
17153
hardcode_libdir_flag_spec_F77 \
17154
hardcode_libdir_flag_spec_ld_F77 \
17155
hardcode_libdir_separator_F77 \
17156
hardcode_automatic_F77 \
17158
module_expsym_cmds_F77 \
17159
lt_cv_prog_compiler_c_o_F77 \
17160
fix_srcfile_path_F77 \
17161
exclude_expsyms_F77 \
17162
include_expsyms_F77; do
17165
old_archive_cmds_F77 | \
17166
old_archive_from_new_cmds_F77 | \
17167
archive_cmds_F77 | \
17168
archive_expsym_cmds_F77 | \
17169
module_cmds_F77 | \
17170
module_expsym_cmds_F77 | \
17171
old_archive_from_expsyms_cmds_F77 | \
17172
export_symbols_cmds_F77 | \
17173
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17174
postinstall_cmds | postuninstall_cmds | \
17175
old_postinstall_cmds | old_postuninstall_cmds | \
17176
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17177
# Double-quote double-evaled strings.
17178
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17181
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17187
*'\$0 --fallback-echo"')
17188
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17194
cat <<__EOF__ >> "$cfgfile"
17195
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17197
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17199
# Shell to use when invoking shell scripts.
17202
# Whether or not to build shared libraries.
17203
build_libtool_libs=$enable_shared
17205
# Whether or not to build static libraries.
17206
build_old_libs=$enable_static
17208
# Whether or not to add -lc for building shared libraries.
17209
build_libtool_need_lc=$archive_cmds_need_lc_F77
17211
# Whether or not to disallow shared libs when runtime libs are static
17212
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17214
# Whether or not to optimize for fast installation.
17215
fast_install=$enable_fast_install
17218
host_alias=$host_alias
17222
# The build system.
17223
build_alias=$build_alias
17227
# An echo program that does not interpret backslashes.
17232
AR_FLAGS=$lt_AR_FLAGS
17237
# LTCC compiler flags.
17238
LTCFLAGS=$lt_LTCFLAGS
17240
# A language-specific compiler.
17241
CC=$lt_compiler_F77
17243
# Is the compiler the GNU C compiler?
17249
# The linker used to build libraries.
17252
# Whether we need hard or soft links.
17255
# A BSD-compatible nm program.
17258
# A symbol stripping program
17261
# Used to examine libraries when file_magic_cmd begins "file"
17262
MAGIC_CMD=$MAGIC_CMD
17264
# Used on cygwin: DLL creation program.
17267
# Used on cygwin: object dumper.
17270
# Used on cygwin: assembler.
17273
# The name of the directory that contains temporary libtool files.
17276
# How to create reloadable object files.
17277
reload_flag=$lt_reload_flag
17278
reload_cmds=$lt_reload_cmds
17280
# How to pass a linker flag through the compiler.
17281
wl=$lt_lt_prog_compiler_wl_F77
17283
# Object file suffix (normally "o").
17284
objext="$ac_objext"
17286
# Old archive suffix (normally "a").
17289
# Shared library suffix (normally ".so").
17290
shrext_cmds='$shrext_cmds'
17292
# Executable file suffix (normally "").
17295
# Additional compiler flags for building library objects.
17296
pic_flag=$lt_lt_prog_compiler_pic_F77
17299
# What is the maximum length of a command?
17300
max_cmd_len=$lt_cv_sys_max_cmd_len
17302
# Does compiler simultaneously support -c and -o options?
17303
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17305
# Must we lock files when doing compilation?
17306
need_locks=$lt_need_locks
17308
# Do we need the lib prefix for modules?
17309
need_lib_prefix=$need_lib_prefix
17311
# Do we need a version for libraries?
17312
need_version=$need_version
17314
# Whether dlopen is supported.
17315
dlopen_support=$enable_dlopen
17317
# Whether dlopen of programs is supported.
17318
dlopen_self=$enable_dlopen_self
17320
# Whether dlopen of statically linked programs is supported.
17321
dlopen_self_static=$enable_dlopen_self_static
17323
# Compiler flag to prevent dynamic linking.
17324
link_static_flag=$lt_lt_prog_compiler_static_F77
17326
# Compiler flag to turn off builtin functions.
17327
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17329
# Compiler flag to allow reflexive dlopens.
17330
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17332
# Compiler flag to generate shared objects directly from archives.
17333
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17335
# Compiler flag to generate thread-safe objects.
17336
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17338
# Library versioning type.
17339
version_type=$version_type
17341
# Format of library name prefix.
17342
libname_spec=$lt_libname_spec
17344
# List of archive names. First name is the real one, the rest are links.
17345
# The last name is the one that the linker finds with -lNAME.
17346
library_names_spec=$lt_library_names_spec
17348
# The coded name of the library, if different from the real name.
17349
soname_spec=$lt_soname_spec
17351
# Commands used to build and install an old-style archive.
17353
old_archive_cmds=$lt_old_archive_cmds_F77
17354
old_postinstall_cmds=$lt_old_postinstall_cmds
17355
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17357
# Create an old-style archive from a shared archive.
17358
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17360
# Create a temporary old-style archive to link instead of a shared archive.
17361
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17363
# Commands used to build and install a shared archive.
17364
archive_cmds=$lt_archive_cmds_F77
17365
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17366
postinstall_cmds=$lt_postinstall_cmds
17367
postuninstall_cmds=$lt_postuninstall_cmds
17369
# Commands used to build a loadable module (assumed same as above if empty)
17370
module_cmds=$lt_module_cmds_F77
17371
module_expsym_cmds=$lt_module_expsym_cmds_F77
17373
# Commands to strip libraries.
17374
old_striplib=$lt_old_striplib
17375
striplib=$lt_striplib
17377
# Dependencies to place before the objects being linked to create a
17379
predep_objects=$lt_predep_objects_F77
17381
# Dependencies to place after the objects being linked to create a
17383
postdep_objects=$lt_postdep_objects_F77
17385
# Dependencies to place before the objects being linked to create a
17387
predeps=$lt_predeps_F77
17389
# Dependencies to place after the objects being linked to create a
17391
postdeps=$lt_postdeps_F77
17393
# The directories searched by this compiler when creating a shared
17395
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17397
# The library search path used internally by the compiler when linking
17398
# a shared library.
17399
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17401
# Method to check whether dependent libraries are shared objects.
17402
deplibs_check_method=$lt_deplibs_check_method
17404
# Command to use when deplibs_check_method == file_magic.
17405
file_magic_cmd=$lt_file_magic_cmd
17407
# Flag that allows shared libraries with undefined symbols to be built.
17408
allow_undefined_flag=$lt_allow_undefined_flag_F77
17410
# Flag that forces no undefined symbols.
17411
no_undefined_flag=$lt_no_undefined_flag_F77
17413
# Commands used to finish a libtool library installation in a directory.
17414
finish_cmds=$lt_finish_cmds
17416
# Same as above, but a single script fragment to be evaled but not shown.
17417
finish_eval=$lt_finish_eval
17419
# Take the output of nm and produce a listing of raw symbols and C names.
17420
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17422
# Transform the output of nm in a proper C declaration
17423
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17425
# Transform the output of nm in a C name address pair
17426
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17428
# This is the shared library runtime path variable.
17429
runpath_var=$runpath_var
17431
# This is the shared library path variable.
17432
shlibpath_var=$shlibpath_var
17434
# Is shlibpath searched before the hard-coded library search path?
17435
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17437
# How to hardcode a shared library path into an executable.
17438
hardcode_action=$hardcode_action_F77
17440
# Whether we should hardcode library paths into libraries.
17441
hardcode_into_libs=$hardcode_into_libs
17443
# Flag to hardcode \$libdir into a binary during linking.
17444
# This must work even if \$libdir does not exist.
17445
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17447
# If ld is used when linking, flag to hardcode \$libdir into
17448
# a binary during linking. This must work even if \$libdir does
17450
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17452
# Whether we need a single -rpath flag with a separated argument.
17453
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17455
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17456
# resulting binary.
17457
hardcode_direct=$hardcode_direct_F77
17459
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17460
# resulting binary.
17461
hardcode_minus_L=$hardcode_minus_L_F77
17463
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17464
# the resulting binary.
17465
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17467
# Set to yes if building a shared library automatically hardcodes DIR into the library
17468
# and all subsequent libraries and executables linked against it.
17469
hardcode_automatic=$hardcode_automatic_F77
17471
# Variables whose values should be saved in libtool wrapper scripts and
17472
# restored at relink time.
17473
variables_saved_for_relink="$variables_saved_for_relink"
17475
# Whether libtool must link a program against all its dependency libraries.
17476
link_all_deplibs=$link_all_deplibs_F77
17478
# Compile-time system search path for libraries
17479
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17481
# Run-time system search path for libraries
17482
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17484
# Fix the shell variable \$srcfile for the compiler.
17485
fix_srcfile_path=$lt_fix_srcfile_path
17487
# Set to yes if exported symbols are required.
17488
always_export_symbols=$always_export_symbols_F77
17490
# The commands to list exported symbols.
17491
export_symbols_cmds=$lt_export_symbols_cmds_F77
17493
# The commands to extract the exported symbol list from a shared archive.
17494
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17496
# Symbols that should not be listed in the preloaded symbols.
17497
exclude_expsyms=$lt_exclude_expsyms_F77
17499
# Symbols that must always be exported.
17500
include_expsyms=$lt_include_expsyms_F77
17502
# ### END LIBTOOL TAG CONFIG: $tagname
17508
# If there is no Makefile yet, we rely on a make rule to execute
17509
# `config.status --recheck' to rerun these tests and create the
17510
# libtool script then.
17511
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17512
if test -f "$ltmain_in"; then
17513
test -f Makefile && make "$ltmain"
17519
ac_cpp='$CPP $CPPFLAGS'
17520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17532
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17535
# Source file extension for Java test sources.
17538
# Object file extension for compiled Java test sources.
17542
# Code to be used in simple compile tests
17543
lt_simple_compile_test_code="class foo {}"
17545
# Code to be used in simple link tests
17546
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17548
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17550
# If no C compiler was specified, use CC.
17553
# If no C compiler flags were specified, use CFLAGS.
17554
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17556
# Allow CC to be a program name with arguments.
17560
# save warnings/boilerplate of simple test code
17561
ac_outfile=conftest.$ac_objext
17562
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17563
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17564
_lt_compiler_boilerplate=`cat conftest.err`
17567
ac_outfile=conftest.$ac_objext
17568
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17569
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17570
_lt_linker_boilerplate=`cat conftest.err`
17574
# Allow CC to be a program name with arguments.
17579
for cc_temp in $compiler""; do
17581
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17582
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17587
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17590
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17591
archive_cmds_need_lc_GCJ=no
17593
old_archive_cmds_GCJ=$old_archive_cmds
17596
lt_prog_compiler_no_builtin_flag_GCJ=
17598
if test "$GCC" = yes; then
17599
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17602
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17603
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17604
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17605
echo $ECHO_N "(cached) $ECHO_C" >&6
17607
lt_cv_prog_compiler_rtti_exceptions=no
17608
ac_outfile=conftest.$ac_objext
17609
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17610
lt_compiler_flag="-fno-rtti -fno-exceptions"
17611
# Insert the option either (1) after the last *FLAGS variable, or
17612
# (2) before a word containing "conftest.", or (3) at the end.
17613
# Note that $ac_compile itself does not contain backslashes and begins
17614
# with a dollar sign (not a hyphen), so the echo should work correctly.
17615
# The option is referenced via a variable to avoid confusing sed.
17616
lt_compile=`echo "$ac_compile" | $SED \
17617
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17618
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17619
-e 's:$: $lt_compiler_flag:'`
17620
(eval echo "\"\$as_me:17620: $lt_compile\"" >&5)
17621
(eval "$lt_compile" 2>conftest.err)
17623
cat conftest.err >&5
17624
echo "$as_me:17624: \$? = $ac_status" >&5
17625
if (exit $ac_status) && test -s "$ac_outfile"; then
17626
# The compiler can only warn and ignore the option if not recognized
17627
# So say no if there are warnings other than the usual output.
17628
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17629
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17630
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17631
lt_cv_prog_compiler_rtti_exceptions=yes
17637
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17638
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17640
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17641
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17648
lt_prog_compiler_wl_GCJ=
17649
lt_prog_compiler_pic_GCJ=
17650
lt_prog_compiler_static_GCJ=
17652
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17653
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17655
if test "$GCC" = yes; then
17656
lt_prog_compiler_wl_GCJ='-Wl,'
17657
lt_prog_compiler_static_GCJ='-static'
17661
# All AIX code is PIC.
17662
if test "$host_cpu" = ia64; then
17663
# AIX 5 now supports IA64 processor
17664
lt_prog_compiler_static_GCJ='-Bstatic'
17669
# FIXME: we need at least 68020 code to build shared libraries, but
17670
# adding the `-m68020' flag to GCC prevents building anything better,
17672
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17675
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17676
# PIC is the default for these OSes.
17679
mingw* | cygwin* | pw32* | os2*)
17680
# This hack is so that the source file can tell whether it is being
17681
# built for inclusion in a dll (and should export symbols for example).
17682
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17683
# (--disable-auto-import) libraries
17687
darwin* | rhapsody*)
17688
# PIC is the default on this platform
17689
# Common symbols not allowed in MH_DYLIB files
17690
lt_prog_compiler_pic_GCJ='-fno-common'
17694
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17695
# Instead, we relocate shared libraries at runtime.
17699
# Just because we use GCC doesn't mean we suddenly get shared libraries
17700
# on systems that don't support them.
17701
lt_prog_compiler_can_build_shared_GCJ=no
17706
if test -d /usr/nec; then
17707
lt_prog_compiler_pic_GCJ=-Kconform_pic
17712
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17713
# not for PA HP-UX.
17719
lt_prog_compiler_pic_GCJ='-fPIC'
17725
lt_prog_compiler_pic_GCJ='-fPIC'
17729
# PORTME Check for flag to pass linker flags through the system compiler.
17732
lt_prog_compiler_wl_GCJ='-Wl,'
17733
if test "$host_cpu" = ia64; then
17734
# AIX 5 now supports IA64 processor
17735
lt_prog_compiler_static_GCJ='-Bstatic'
17737
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17741
# PIC is the default on this platform
17742
# Common symbols not allowed in MH_DYLIB files
17743
case $cc_basename in
17745
lt_prog_compiler_pic_GCJ='-qnocommon'
17746
lt_prog_compiler_wl_GCJ='-Wl,'
17751
mingw* | cygwin* | pw32* | os2*)
17752
# This hack is so that the source file can tell whether it is being
17753
# built for inclusion in a dll (and should export symbols for example).
17757
hpux9* | hpux10* | hpux11*)
17758
lt_prog_compiler_wl_GCJ='-Wl,'
17759
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17760
# not for PA HP-UX.
17766
lt_prog_compiler_pic_GCJ='+Z'
17769
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17770
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17773
irix5* | irix6* | nonstopux*)
17774
lt_prog_compiler_wl_GCJ='-Wl,'
17775
# PIC (with -KPIC) is the default.
17776
lt_prog_compiler_static_GCJ='-non_shared'
17780
lt_prog_compiler_pic_GCJ='-KPIC'
17781
lt_prog_compiler_static_GCJ='-Bstatic'
17784
linux* | k*bsd*-gnu)
17785
case $cc_basename in
17787
lt_prog_compiler_wl_GCJ='-Wl,'
17788
lt_prog_compiler_pic_GCJ='-KPIC'
17789
lt_prog_compiler_static_GCJ='-static'
17791
pgcc* | pgf77* | pgf90* | pgf95*)
17792
# Portland Group compilers (*not* the Pentium gcc compiler,
17793
# which looks to be a dead project)
17794
lt_prog_compiler_wl_GCJ='-Wl,'
17795
lt_prog_compiler_pic_GCJ='-fpic'
17796
lt_prog_compiler_static_GCJ='-Bstatic'
17799
lt_prog_compiler_wl_GCJ='-Wl,'
17800
# All Alpha code is PIC.
17801
lt_prog_compiler_static_GCJ='-non_shared'
17804
case `$CC -V 2>&1 | sed 5q` in
17807
lt_prog_compiler_pic_GCJ='-KPIC'
17808
lt_prog_compiler_static_GCJ='-Bstatic'
17809
lt_prog_compiler_wl_GCJ='-Wl,'
17812
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17813
lt_prog_compiler_pic_GCJ='-KPIC'
17814
lt_prog_compiler_static_GCJ='-Bstatic'
17815
lt_prog_compiler_wl_GCJ=''
17822
osf3* | osf4* | osf5*)
17823
lt_prog_compiler_wl_GCJ='-Wl,'
17824
# All OSF/1 code is PIC.
17825
lt_prog_compiler_static_GCJ='-non_shared'
17829
lt_prog_compiler_static_GCJ='-non_shared'
17833
lt_prog_compiler_pic_GCJ='-KPIC'
17834
lt_prog_compiler_static_GCJ='-Bstatic'
17835
case $cc_basename in
17836
f77* | f90* | f95*)
17837
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17839
lt_prog_compiler_wl_GCJ='-Wl,';;
17844
lt_prog_compiler_wl_GCJ='-Qoption ld '
17845
lt_prog_compiler_pic_GCJ='-PIC'
17846
lt_prog_compiler_static_GCJ='-Bstatic'
17849
sysv4 | sysv4.2uw2* | sysv4.3*)
17850
lt_prog_compiler_wl_GCJ='-Wl,'
17851
lt_prog_compiler_pic_GCJ='-KPIC'
17852
lt_prog_compiler_static_GCJ='-Bstatic'
17856
if test -d /usr/nec ;then
17857
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17858
lt_prog_compiler_static_GCJ='-Bstatic'
17862
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17863
lt_prog_compiler_wl_GCJ='-Wl,'
17864
lt_prog_compiler_pic_GCJ='-KPIC'
17865
lt_prog_compiler_static_GCJ='-Bstatic'
17869
lt_prog_compiler_wl_GCJ='-Wl,'
17870
lt_prog_compiler_can_build_shared_GCJ=no
17874
lt_prog_compiler_pic_GCJ='-pic'
17875
lt_prog_compiler_static_GCJ='-Bstatic'
17879
lt_prog_compiler_can_build_shared_GCJ=no
17884
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17885
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17888
# Check to make sure the PIC flag actually works.
17890
if test -n "$lt_prog_compiler_pic_GCJ"; then
17892
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17893
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17894
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17895
echo $ECHO_N "(cached) $ECHO_C" >&6
17897
lt_cv_prog_compiler_pic_works_GCJ=no
17898
ac_outfile=conftest.$ac_objext
17899
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17900
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17901
# Insert the option either (1) after the last *FLAGS variable, or
17902
# (2) before a word containing "conftest.", or (3) at the end.
17903
# Note that $ac_compile itself does not contain backslashes and begins
17904
# with a dollar sign (not a hyphen), so the echo should work correctly.
17905
# The option is referenced via a variable to avoid confusing sed.
17906
lt_compile=`echo "$ac_compile" | $SED \
17907
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17908
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17909
-e 's:$: $lt_compiler_flag:'`
17910
(eval echo "\"\$as_me:17910: $lt_compile\"" >&5)
17911
(eval "$lt_compile" 2>conftest.err)
17913
cat conftest.err >&5
17914
echo "$as_me:17914: \$? = $ac_status" >&5
17915
if (exit $ac_status) && test -s "$ac_outfile"; then
17916
# The compiler can only warn and ignore the option if not recognized
17917
# So say no if there are warnings other than the usual output.
17918
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17919
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17920
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17921
lt_cv_prog_compiler_pic_works_GCJ=yes
17927
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17928
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17930
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17931
case $lt_prog_compiler_pic_GCJ in
17933
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17936
lt_prog_compiler_pic_GCJ=
17937
lt_prog_compiler_can_build_shared_GCJ=no
17942
# For platforms which do not support PIC, -DPIC is meaningless:
17944
lt_prog_compiler_pic_GCJ=
17947
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17952
# Check to make sure the static flag actually works.
17954
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17955
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17956
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17957
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17958
echo $ECHO_N "(cached) $ECHO_C" >&6
17960
lt_cv_prog_compiler_static_works_GCJ=no
17961
save_LDFLAGS="$LDFLAGS"
17962
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17963
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17964
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17965
# The linker can only warn and ignore the option if not recognized
17966
# So say no if there are warnings
17967
if test -s conftest.err; then
17968
# Append any errors to the config.log.
17969
cat conftest.err 1>&5
17970
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17971
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17972
if diff conftest.exp conftest.er2 >/dev/null; then
17973
lt_cv_prog_compiler_static_works_GCJ=yes
17976
lt_cv_prog_compiler_static_works_GCJ=yes
17980
LDFLAGS="$save_LDFLAGS"
17983
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17984
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17986
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17989
lt_prog_compiler_static_GCJ=
17993
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17994
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17995
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17996
echo $ECHO_N "(cached) $ECHO_C" >&6
17998
lt_cv_prog_compiler_c_o_GCJ=no
17999
$rm -r conftest 2>/dev/null
18003
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18005
lt_compiler_flag="-o out/conftest2.$ac_objext"
18006
# Insert the option either (1) after the last *FLAGS variable, or
18007
# (2) before a word containing "conftest.", or (3) at the end.
18008
# Note that $ac_compile itself does not contain backslashes and begins
18009
# with a dollar sign (not a hyphen), so the echo should work correctly.
18010
lt_compile=`echo "$ac_compile" | $SED \
18011
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18012
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18013
-e 's:$: $lt_compiler_flag:'`
18014
(eval echo "\"\$as_me:18014: $lt_compile\"" >&5)
18015
(eval "$lt_compile" 2>out/conftest.err)
18017
cat out/conftest.err >&5
18018
echo "$as_me:18018: \$? = $ac_status" >&5
18019
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18021
# The compiler can only warn and ignore the option if not recognized
18022
# So say no if there are warnings
18023
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18024
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18025
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18026
lt_cv_prog_compiler_c_o_GCJ=yes
18031
# SGI C++ compiler will create directory out/ii_files/ for
18032
# template instantiation
18033
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18034
$rm out/* && rmdir out
18040
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18041
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18044
hard_links="nottested"
18045
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18046
# do not overwrite the value of need_locks provided by the user
18047
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18048
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18051
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18053
ln conftest.a conftest.b 2>&5 || hard_links=no
18054
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18055
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18056
echo "${ECHO_T}$hard_links" >&6; }
18057
if test "$hard_links" = no; then
18058
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18059
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18066
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18067
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18070
allow_undefined_flag_GCJ=
18071
enable_shared_with_static_runtimes_GCJ=no
18073
archive_expsym_cmds_GCJ=
18074
old_archive_From_new_cmds_GCJ=
18075
old_archive_from_expsyms_cmds_GCJ=
18076
export_dynamic_flag_spec_GCJ=
18077
whole_archive_flag_spec_GCJ=
18078
thread_safe_flag_spec_GCJ=
18079
hardcode_libdir_flag_spec_GCJ=
18080
hardcode_libdir_flag_spec_ld_GCJ=
18081
hardcode_libdir_separator_GCJ=
18082
hardcode_direct_GCJ=no
18083
hardcode_minus_L_GCJ=no
18084
hardcode_shlibpath_var_GCJ=unsupported
18085
link_all_deplibs_GCJ=unknown
18086
hardcode_automatic_GCJ=no
18088
module_expsym_cmds_GCJ=
18089
always_export_symbols_GCJ=no
18090
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18091
# include_expsyms should be a list of space-separated symbols to be *always*
18092
# included in the symbol list
18093
include_expsyms_GCJ=
18094
# exclude_expsyms can be an extended regexp of symbols to exclude
18095
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18096
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18097
# as well as any symbol that contains `d'.
18098
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18099
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18100
# platforms (ab)use it in PIC code, but their linkers get confused if
18101
# the symbol is explicitly referenced. Since portable code cannot
18102
# rely on this symbol name, it's probably fine to never include it in
18103
# preloaded symbol tables.
18104
# Exclude shared library initialization/finalization symbols.
18105
extract_expsyms_cmds=
18106
# Just being paranoid about ensuring that cc_basename is set.
18107
for cc_temp in $compiler""; do
18109
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18110
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18115
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18118
cygwin* | mingw* | pw32*)
18119
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18120
# When not using gcc, we currently assume that we are using
18121
# Microsoft Visual C++.
18122
if test "$GCC" != yes; then
18127
# we just hope/assume this is gcc and not c89 (= MSVC++)
18136
if test "$with_gnu_ld" = yes; then
18137
# If archive_cmds runs LD, not CC, wlarc should be empty
18140
# Set some defaults for GNU ld with shared library support. These
18141
# are reset later if shared libraries are not supported. Putting them
18142
# here allows them to be overridden if necessary.
18143
runpath_var=LD_RUN_PATH
18144
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18145
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18146
# ancient GNU ld didn't support --whole-archive et. al.
18147
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18148
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18150
whole_archive_flag_spec_GCJ=
18152
supports_anon_versioning=no
18153
case `$LD -v 2>/dev/null` in
18154
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18155
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18156
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18157
*\ 2.11.*) ;; # other 2.11 versions
18158
*) supports_anon_versioning=yes ;;
18161
# See if GNU ld supports shared libraries.
18164
# On AIX/PPC, the GNU linker is very broken
18165
if test "$host_cpu" != ia64; then
18169
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18170
*** to be unable to reliably create shared libraries on AIX.
18171
*** Therefore, libtool is disabling shared libraries support. If you
18172
*** really care for shared libraries, you may want to modify your PATH
18173
*** so that a non-GNU linker is found, and then restart.
18180
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)'
18181
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18182
hardcode_minus_L_GCJ=yes
18184
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18185
# that the semantics of dynamic libraries on AmigaOS, at least up
18186
# to version 4, is to share data among multiple programs linked
18187
# with the same dynamic library. Since this doesn't match the
18188
# behavior of shared libraries on other platforms, we can't use
18194
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18195
allow_undefined_flag_GCJ=unsupported
18196
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18197
# support --undefined. This deserves some investigation. FIXME
18198
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18204
cygwin* | mingw* | pw32*)
18205
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18206
# as there is no search path for DLLs.
18207
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18208
allow_undefined_flag_GCJ=unsupported
18209
always_export_symbols_GCJ=no
18210
enable_shared_with_static_runtimes_GCJ=yes
18211
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18213
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18214
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18215
# If the export-symbols file already is a .def file (1st line
18216
# is EXPORTS), use it as is; otherwise, prepend...
18217
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18218
cp $export_symbols $output_objdir/$soname.def;
18220
echo EXPORTS > $output_objdir/$soname.def;
18221
cat $export_symbols >> $output_objdir/$soname.def;
18223
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18230
hardcode_direct_GCJ=no
18231
hardcode_shlibpath_var_GCJ=no
18232
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18233
export_dynamic_flag_spec_GCJ='${wl}-E'
18234
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18235
# Instead, shared libraries are loaded at an image base (0x10000000 by
18236
# default) and relocated if they conflict, which is a slow very memory
18237
# consuming and fragmenting process. To avoid this, we pick a random,
18238
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18239
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18240
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'
18241
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'
18244
gnu* | linux* | k*bsd*-gnu)
18245
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18247
case $cc_basename,$host_cpu in
18248
pgcc*) # Portland Group C compiler
18249
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'
18250
tmp_addflag=' $pic_flag'
18252
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18253
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'
18254
tmp_addflag=' $pic_flag -Mnomain' ;;
18255
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18256
tmp_addflag=' -i_dynamic' ;;
18257
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18258
tmp_addflag=' -i_dynamic -nofor_main' ;;
18259
ifc* | ifort*) # Intel Fortran compiler
18260
tmp_addflag=' -nofor_main' ;;
18262
case `$CC -V 2>&1 | sed 5q` in
18263
*Sun\ C*) # Sun C 5.9
18264
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18265
tmp_sharedflag='-G' ;;
18266
*Sun\ F*) # Sun Fortran 8.3
18267
tmp_sharedflag='-G' ;;
18269
tmp_sharedflag='-shared' ;;
18271
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18273
if test $supports_anon_versioning = yes; then
18274
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18275
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18276
$echo "local: *; };" >> $output_objdir/$libname.ver~
18277
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18279
link_all_deplibs_GCJ=no
18285
netbsd* | netbsdelf*-gnu)
18286
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18287
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18290
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18291
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18296
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18300
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18301
*** create shared libraries on Solaris systems. Therefore, libtool
18302
*** is disabling shared libraries support. We urge you to upgrade GNU
18303
*** binutils to release 2.9.1 or newer. Another option is to modify
18304
*** your PATH or compiler configuration so that the native linker is
18305
*** used, and then restart.
18308
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18309
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18310
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18316
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18317
case `$LD -v 2>&1` in
18318
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18322
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18323
*** reliably create shared libraries on SCO systems. Therefore, libtool
18324
*** is disabling shared libraries support. We urge you to upgrade GNU
18325
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18326
*** your PATH or compiler configuration so that the native linker is
18327
*** used, and then restart.
18332
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18333
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18334
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18335
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18344
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18346
hardcode_direct_GCJ=yes
18347
hardcode_shlibpath_var_GCJ=no
18351
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18352
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18360
if test "$ld_shlibs_GCJ" = no; then
18362
hardcode_libdir_flag_spec_GCJ=
18363
export_dynamic_flag_spec_GCJ=
18364
whole_archive_flag_spec_GCJ=
18367
# PORTME fill in a description of your system's linker (not GNU ld)
18370
allow_undefined_flag_GCJ=unsupported
18371
always_export_symbols_GCJ=yes
18372
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'
18373
# Note: this linker hardcodes the directories in LIBPATH if there
18374
# are no directories specified by -L.
18375
hardcode_minus_L_GCJ=yes
18376
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18377
# Neither direct hardcoding nor static linking is supported with a
18379
hardcode_direct_GCJ=unsupported
18384
if test "$host_cpu" = ia64; then
18385
# On IA64, the linker does run time linking by default, so we don't
18386
# have to do anything special.
18387
aix_use_runtimelinking=no
18388
exp_sym_flag='-Bexport'
18391
# If we're using GNU nm, then we don't want the "-C" option.
18392
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18393
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18394
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'
18396
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'
18398
aix_use_runtimelinking=no
18400
# Test if we are trying to use run time linking or normal
18401
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18402
# need to do runtime linking.
18403
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18404
for ld_flag in $LDFLAGS; do
18405
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18406
aix_use_runtimelinking=yes
18413
exp_sym_flag='-bexport'
18414
no_entry_flag='-bnoentry'
18417
# When large executables or shared objects are built, AIX ld can
18418
# have problems creating the table of contents. If linking a library
18419
# or program results in "error TOC overflow" add -mminimal-toc to
18420
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18421
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18423
archive_cmds_GCJ=''
18424
hardcode_direct_GCJ=yes
18425
hardcode_libdir_separator_GCJ=':'
18426
link_all_deplibs_GCJ=yes
18428
if test "$GCC" = yes; then
18429
case $host_os in aix4.[012]|aix4.[012].*)
18430
# We only want to do this on AIX 4.2 and lower, the check
18431
# below for broken collect2 doesn't work under 4.3+
18432
collect2name=`${CC} -print-prog-name=collect2`
18433
if test -f "$collect2name" && \
18434
strings "$collect2name" | grep resolve_lib_name >/dev/null
18436
# We have reworked collect2
18439
# We have old collect2
18440
hardcode_direct_GCJ=unsupported
18441
# It fails to find uninstalled libraries when the uninstalled
18442
# path is not listed in the libpath. Setting hardcode_minus_L
18443
# to unsupported forces relinking
18444
hardcode_minus_L_GCJ=yes
18445
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18446
hardcode_libdir_separator_GCJ=
18450
shared_flag='-shared'
18451
if test "$aix_use_runtimelinking" = yes; then
18452
shared_flag="$shared_flag "'${wl}-G'
18456
if test "$host_cpu" = ia64; then
18457
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18458
# chokes on -Wl,-G. The following line is correct:
18461
if test "$aix_use_runtimelinking" = yes; then
18462
shared_flag='${wl}-G'
18464
shared_flag='${wl}-bM:SRE'
18469
# It seems that -bexpall does not export symbols beginning with
18470
# underscore (_), so it is better to generate a list of symbols to export.
18471
always_export_symbols_GCJ=yes
18472
if test "$aix_use_runtimelinking" = yes; then
18473
# Warning - without using the other runtime loading flags (-brtl),
18474
# -berok will link without error, but may produce a broken library.
18475
allow_undefined_flag_GCJ='-berok'
18476
# Determine the default libpath from the value encoded in an empty executable.
18477
cat >conftest.$ac_ext <<_ACEOF
18480
cat confdefs.h >>conftest.$ac_ext
18481
cat >>conftest.$ac_ext <<_ACEOF
18482
/* end confdefs.h. */
18492
rm -f conftest.$ac_objext conftest$ac_exeext
18493
if { (ac_try="$ac_link"
18494
case "(($ac_try" in
18495
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496
*) ac_try_echo=$ac_try;;
18498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499
(eval "$ac_link") 2>conftest.er1
18501
grep -v '^ *+' conftest.er1 >conftest.err
18503
cat conftest.err >&5
18504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505
(exit $ac_status); } && {
18506
test -z "$ac_c_werror_flag" ||
18507
test ! -s conftest.err
18508
} && test -s conftest$ac_exeext &&
18509
$as_test_x conftest$ac_exeext; then
18511
lt_aix_libpath_sed='
18512
/Import File Strings/,/^$/ {
18518
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18519
# Check for a 64-bit object if we didn't find anything.
18520
if test -z "$aix_libpath"; then
18521
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18524
echo "$as_me: failed program was:" >&5
18525
sed 's/^/| /' conftest.$ac_ext >&5
18530
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18531
conftest$ac_exeext conftest.$ac_ext
18532
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18534
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18535
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"
18537
if test "$host_cpu" = ia64; then
18538
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18539
allow_undefined_flag_GCJ="-z nodefs"
18540
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"
18542
# Determine the default libpath from the value encoded in an empty executable.
18543
cat >conftest.$ac_ext <<_ACEOF
18546
cat confdefs.h >>conftest.$ac_ext
18547
cat >>conftest.$ac_ext <<_ACEOF
18548
/* end confdefs.h. */
18558
rm -f conftest.$ac_objext conftest$ac_exeext
18559
if { (ac_try="$ac_link"
18560
case "(($ac_try" in
18561
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562
*) ac_try_echo=$ac_try;;
18564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565
(eval "$ac_link") 2>conftest.er1
18567
grep -v '^ *+' conftest.er1 >conftest.err
18569
cat conftest.err >&5
18570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571
(exit $ac_status); } && {
18572
test -z "$ac_c_werror_flag" ||
18573
test ! -s conftest.err
18574
} && test -s conftest$ac_exeext &&
18575
$as_test_x conftest$ac_exeext; then
18577
lt_aix_libpath_sed='
18578
/Import File Strings/,/^$/ {
18584
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18585
# Check for a 64-bit object if we didn't find anything.
18586
if test -z "$aix_libpath"; then
18587
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18590
echo "$as_me: failed program was:" >&5
18591
sed 's/^/| /' conftest.$ac_ext >&5
18596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18597
conftest$ac_exeext conftest.$ac_ext
18598
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18600
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18601
# Warning - without using the other run time loading flags,
18602
# -berok will link without error, but may produce a broken library.
18603
no_undefined_flag_GCJ=' ${wl}-bernotok'
18604
allow_undefined_flag_GCJ=' ${wl}-berok'
18605
# Exported symbols can be pulled into shared objects from archives
18606
whole_archive_flag_spec_GCJ='$convenience'
18607
archive_cmds_need_lc_GCJ=yes
18608
# This is similar to how AIX traditionally builds its shared libraries.
18609
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'
18615
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)'
18616
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18617
hardcode_minus_L_GCJ=yes
18618
# see comment about different semantics on the GNU ld section
18623
export_dynamic_flag_spec_GCJ=-rdynamic
18626
cygwin* | mingw* | pw32*)
18627
# When not using gcc, we currently assume that we are using
18628
# Microsoft Visual C++.
18629
# hardcode_libdir_flag_spec is actually meaningless, as there is
18630
# no search path for DLLs.
18631
hardcode_libdir_flag_spec_GCJ=' '
18632
allow_undefined_flag_GCJ=unsupported
18633
# Tell ltmain to make .lib files, not .a files.
18635
# Tell ltmain to make .dll files, not .so files.
18637
# FIXME: Setting linknames here is a bad hack.
18638
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18639
# The linker will automatically build a .lib file if we build a DLL.
18640
old_archive_From_new_cmds_GCJ='true'
18641
# FIXME: Should let the user specify the lib program.
18642
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18643
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18644
enable_shared_with_static_runtimes_GCJ=yes
18647
darwin* | rhapsody*)
18649
rhapsody* | darwin1.[012])
18650
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18653
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18654
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18656
case ${MACOSX_DEPLOYMENT_TARGET} in
18658
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18661
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18667
archive_cmds_need_lc_GCJ=no
18668
hardcode_direct_GCJ=no
18669
hardcode_automatic_GCJ=yes
18670
hardcode_shlibpath_var_GCJ=unsupported
18671
whole_archive_flag_spec_GCJ=''
18672
link_all_deplibs_GCJ=yes
18673
if test "$GCC" = yes ; then
18674
output_verbose_link_cmd='echo'
18675
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18676
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18677
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18678
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18680
case $cc_basename in
18682
output_verbose_link_cmd='echo'
18683
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18684
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18685
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18686
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18687
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}'
18697
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18698
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18699
hardcode_shlibpath_var_GCJ=no
18706
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18707
# support. Future versions do this automatically, but an explicit c++rt0.o
18708
# does not break anything, and helps significantly (at the cost of a little
18711
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18712
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18713
hardcode_direct_GCJ=yes
18714
hardcode_shlibpath_var_GCJ=no
18717
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18719
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18720
hardcode_direct_GCJ=yes
18721
hardcode_minus_L_GCJ=yes
18722
hardcode_shlibpath_var_GCJ=no
18725
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18726
freebsd* | dragonfly*)
18727
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18728
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18729
hardcode_direct_GCJ=yes
18730
hardcode_shlibpath_var_GCJ=no
18734
if test "$GCC" = yes; then
18735
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'
18737
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'
18739
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18740
hardcode_libdir_separator_GCJ=:
18741
hardcode_direct_GCJ=yes
18743
# hardcode_minus_L: Not really in the search PATH,
18744
# but as the default location of the library.
18745
hardcode_minus_L_GCJ=yes
18746
export_dynamic_flag_spec_GCJ='${wl}-E'
18750
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18751
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18753
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18755
if test "$with_gnu_ld" = no; then
18756
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18757
hardcode_libdir_separator_GCJ=:
18759
hardcode_direct_GCJ=yes
18760
export_dynamic_flag_spec_GCJ='${wl}-E'
18762
# hardcode_minus_L: Not really in the search PATH,
18763
# but as the default location of the library.
18764
hardcode_minus_L_GCJ=yes
18769
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18772
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18775
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18778
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18784
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18787
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18790
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18794
if test "$with_gnu_ld" = no; then
18795
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18796
hardcode_libdir_separator_GCJ=:
18800
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18801
hardcode_direct_GCJ=no
18802
hardcode_shlibpath_var_GCJ=no
18805
hardcode_direct_GCJ=yes
18806
export_dynamic_flag_spec_GCJ='${wl}-E'
18808
# hardcode_minus_L: Not really in the search PATH,
18809
# but as the default location of the library.
18810
hardcode_minus_L_GCJ=yes
18816
irix5* | irix6* | nonstopux*)
18817
if test "$GCC" = yes; then
18818
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'
18820
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'
18821
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18823
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18824
hardcode_libdir_separator_GCJ=:
18825
link_all_deplibs_GCJ=yes
18828
netbsd* | netbsdelf*-gnu)
18829
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18830
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18832
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18834
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18835
hardcode_direct_GCJ=yes
18836
hardcode_shlibpath_var_GCJ=no
18840
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841
hardcode_direct_GCJ=yes
18842
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18843
hardcode_libdir_separator_GCJ=:
18844
hardcode_shlibpath_var_GCJ=no
18848
if test -f /usr/libexec/ld.so; then
18849
hardcode_direct_GCJ=yes
18850
hardcode_shlibpath_var_GCJ=no
18851
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18852
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18853
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18854
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18855
export_dynamic_flag_spec_GCJ='${wl}-E'
18858
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18859
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18860
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18863
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18864
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18874
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18875
hardcode_minus_L_GCJ=yes
18876
allow_undefined_flag_GCJ=unsupported
18877
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'
18878
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18882
if test "$GCC" = yes; then
18883
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18884
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'
18886
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18887
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'
18889
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18890
hardcode_libdir_separator_GCJ=:
18893
osf4* | osf5*) # as osf3* with the addition of -msym flag
18894
if test "$GCC" = yes; then
18895
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18896
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'
18897
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18899
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18900
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'
18901
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~
18902
$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'
18904
# Both c and cxx compiler support -rpath directly
18905
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18907
hardcode_libdir_separator_GCJ=:
18911
no_undefined_flag_GCJ=' -z text'
18912
if test "$GCC" = yes; then
18914
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18915
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18916
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18919
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18920
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18921
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18923
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18924
hardcode_shlibpath_var_GCJ=no
18926
solaris2.[0-5] | solaris2.[0-5].*) ;;
18928
# The compiler driver will combine and reorder linker options,
18929
# but understands `-z linker_flag'. GCC discards it without `$wl',
18930
# but is careful enough not to reorder.
18931
# Supported since Solaris 2.6 (maybe 2.5.1?)
18932
if test "$GCC" = yes; then
18933
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18935
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18939
link_all_deplibs_GCJ=yes
18943
if test "x$host_vendor" = xsequent; then
18944
# Use $CC to link under sequent, because it throws in some extra .o
18945
# files that make .init and .fini sections work.
18946
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18948
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18950
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18951
hardcode_direct_GCJ=yes
18952
hardcode_minus_L_GCJ=yes
18953
hardcode_shlibpath_var_GCJ=no
18957
case $host_vendor in
18959
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18960
hardcode_direct_GCJ=yes # is this really true???
18963
## LD is ld it makes a PLAMLIB
18964
## CC just makes a GrossModule.
18965
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18966
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18967
hardcode_direct_GCJ=no
18970
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18971
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18974
runpath_var='LD_RUN_PATH'
18975
hardcode_shlibpath_var_GCJ=no
18979
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18980
hardcode_shlibpath_var_GCJ=no
18981
export_dynamic_flag_spec_GCJ='-Bexport'
18985
if test -d /usr/nec; then
18986
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18987
hardcode_shlibpath_var_GCJ=no
18988
runpath_var=LD_RUN_PATH
18989
hardcode_runpath_var=yes
18994
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18995
no_undefined_flag_GCJ='${wl}-z,text'
18996
archive_cmds_need_lc_GCJ=no
18997
hardcode_shlibpath_var_GCJ=no
18998
runpath_var='LD_RUN_PATH'
19000
if test "$GCC" = yes; then
19001
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19002
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19004
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19005
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19009
sysv5* | sco3.2v5* | sco5v6*)
19010
# Note: We can NOT use -z defs as we might desire, because we do not
19011
# link with -lc, and that would cause any symbols used from libc to
19012
# always be unresolved, which means just about no library would
19013
# ever link correctly. If we're not using GNU ld we use -z text
19014
# though, which does catch some bad symbols but isn't as heavy-handed
19016
no_undefined_flag_GCJ='${wl}-z,text'
19017
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19018
archive_cmds_need_lc_GCJ=no
19019
hardcode_shlibpath_var_GCJ=no
19020
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19021
hardcode_libdir_separator_GCJ=':'
19022
link_all_deplibs_GCJ=yes
19023
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19024
runpath_var='LD_RUN_PATH'
19026
if test "$GCC" = yes; then
19027
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19028
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19036
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19037
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19038
hardcode_shlibpath_var_GCJ=no
19047
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19048
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19049
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19052
# Do we need to explicitly link libc?
19054
case "x$archive_cmds_need_lc_GCJ" in
19056
# Assume -lc should be added
19057
archive_cmds_need_lc_GCJ=yes
19059
if test "$enable_shared" = yes && test "$GCC" = yes; then
19060
case $archive_cmds_GCJ in
19062
# FIXME: we may have to deal with multi-command sequences.
19065
# Test whether the compiler implicitly links with -lc since on some
19066
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19067
# to ld, don't add -lc before -lgcc.
19068
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19069
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19071
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19073
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19074
(eval $ac_compile) 2>&5
19076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077
(exit $ac_status); } 2>conftest.err; then
19080
libobjs=conftest.$ac_objext
19082
wl=$lt_prog_compiler_wl_GCJ
19083
pic_flag=$lt_prog_compiler_pic_GCJ
19089
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19090
allow_undefined_flag_GCJ=
19091
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19092
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095
(exit $ac_status); }
19097
archive_cmds_need_lc_GCJ=no
19099
archive_cmds_need_lc_GCJ=yes
19101
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19103
cat conftest.err 1>&5
19106
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19107
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19114
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19115
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19116
library_names_spec=
19117
libname_spec='lib$name'
19121
postuninstall_cmds=
19125
shlibpath_overrides_runpath=unknown
19127
dynamic_linker="$host_os ld.so"
19128
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19130
need_lib_prefix=unknown
19131
hardcode_into_libs=no
19133
# when you set need_version to no, make sure it does not cause -set_version
19134
# flags to be left without arguments
19135
need_version=unknown
19140
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19141
shlibpath_var=LIBPATH
19143
# AIX 3 has no versioning support, so we append a major version to the name.
19144
soname_spec='${libname}${release}${shared_ext}$major'
19151
hardcode_into_libs=yes
19152
if test "$host_cpu" = ia64; then
19153
# AIX 5 supports IA64
19154
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19155
shlibpath_var=LD_LIBRARY_PATH
19157
# With GCC up to 2.95.x, collect2 would create an import file
19158
# for dependence libraries. The import file would start with
19159
# the line `#! .'. This would cause the generated library to
19160
# depend on `.', always an invalid library. This was fixed in
19161
# development snapshots of GCC prior to 3.0.
19163
aix4 | aix4.[01] | aix4.[01].*)
19164
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19166
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19169
can_build_shared=no
19173
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19174
# soname into executable. Probably we can add versioning support to
19175
# collect2, so additional links can be useful in future.
19176
if test "$aix_use_runtimelinking" = yes; then
19177
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19178
# instead of lib<name>.a to let people know that these are not
19179
# typical AIX shared libraries.
19180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19182
# We preserve .a as extension for shared libraries through AIX4.2
19183
# and later when we are not doing run time linking.
19184
library_names_spec='${libname}${release}.a $libname.a'
19185
soname_spec='${libname}${release}${shared_ext}$major'
19187
shlibpath_var=LIBPATH
19192
library_names_spec='$libname.ixlibrary $libname.a'
19193
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19194
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'
19198
library_names_spec='${libname}${shared_ext}'
19199
dynamic_linker="$host_os ld.so"
19200
shlibpath_var=LIBRARY_PATH
19206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19207
soname_spec='${libname}${release}${shared_ext}$major'
19208
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19209
shlibpath_var=LD_LIBRARY_PATH
19210
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19211
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19212
# the default ld.so.conf also contains /usr/contrib/lib and
19213
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19214
# libtool to hard-code these into programs
19217
cygwin* | mingw* | pw32*)
19218
version_type=windows
19223
case $GCC,$host_os in
19224
yes,cygwin* | yes,mingw* | yes,pw32*)
19225
library_names_spec='$libname.dll.a'
19226
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19227
postinstall_cmds='base_file=`basename \${file}`~
19228
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19229
dldir=$destdir/`dirname \$dlpath`~
19230
test -d \$dldir || mkdir -p \$dldir~
19231
$install_prog $dir/$dlname \$dldir/$dlname~
19232
chmod a+x \$dldir/$dlname'
19233
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19234
dlpath=$dir/\$dldll~
19236
shlibpath_overrides_runpath=yes
19240
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19241
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19242
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19245
# MinGW DLLs use traditional 'lib' prefix
19246
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19247
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19248
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19249
# It is most probably a Windows format PATH printed by
19250
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19251
# path with ; separators, and with drive letters. We can handle the
19252
# drive letters (cygwin fileutils understands them), so leave them,
19253
# especially as we might pass files found there to a mingw objdump,
19254
# which wouldn't understand a cygwinified path. Ahh.
19255
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19257
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19261
# pw32 DLLs use 'pw' prefix rather than 'lib'
19262
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19268
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19271
dynamic_linker='Win32 ld.exe'
19272
# FIXME: first we should search . and the directory the executable is in
19276
darwin* | rhapsody*)
19277
dynamic_linker="$host_os dyld"
19278
version_type=darwin
19281
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19282
soname_spec='${libname}${release}${major}$shared_ext'
19283
shlibpath_overrides_runpath=yes
19284
shlibpath_var=DYLD_LIBRARY_PATH
19285
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19287
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19295
soname_spec='${libname}${release}${shared_ext}$major'
19296
shlibpath_var=LD_LIBRARY_PATH
19303
freebsd* | dragonfly*)
19304
# DragonFly does not have aout. When/if they implement a new
19305
# versioning mechanism, adjust this.
19306
if test -x /usr/bin/objformat; then
19307
objformat=`/usr/bin/objformat`
19310
freebsd[123]*) objformat=aout ;;
19311
*) objformat=elf ;;
19314
version_type=freebsd-$objformat
19315
case $version_type in
19317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19322
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19326
shlibpath_var=LD_LIBRARY_PATH
19329
shlibpath_overrides_runpath=yes
19331
freebsd3.[01]* | freebsdelf3.[01]*)
19332
shlibpath_overrides_runpath=yes
19333
hardcode_into_libs=yes
19335
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19336
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19337
shlibpath_overrides_runpath=no
19338
hardcode_into_libs=yes
19340
*) # from 4.6 on, and DragonFly
19341
shlibpath_overrides_runpath=yes
19342
hardcode_into_libs=yes
19351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19352
soname_spec='${libname}${release}${shared_ext}$major'
19353
shlibpath_var=LD_LIBRARY_PATH
19354
hardcode_into_libs=yes
19357
hpux9* | hpux10* | hpux11*)
19358
# Give a soname corresponding to the major version so that dld.sl refuses to
19359
# link against other versions.
19366
hardcode_into_libs=yes
19367
dynamic_linker="$host_os dld.so"
19368
shlibpath_var=LD_LIBRARY_PATH
19369
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19371
soname_spec='${libname}${release}${shared_ext}$major'
19372
if test "X$HPUX_IA64_MODE" = X32; then
19373
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19375
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19377
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19381
hardcode_into_libs=yes
19382
dynamic_linker="$host_os dld.sl"
19383
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19384
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19386
soname_spec='${libname}${release}${shared_ext}$major'
19387
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19388
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19392
dynamic_linker="$host_os dld.sl"
19393
shlibpath_var=SHLIB_PATH
19394
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19396
soname_spec='${libname}${release}${shared_ext}$major'
19399
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19400
postinstall_cmds='chmod 555 $lib'
19407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19408
soname_spec='${libname}${release}${shared_ext}$major'
19409
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19410
shlibpath_var=LD_LIBRARY_PATH
19411
shlibpath_overrides_runpath=no
19412
hardcode_into_libs=yes
19415
irix5* | irix6* | nonstopux*)
19417
nonstopux*) version_type=nonstopux ;;
19419
if test "$lt_cv_prog_gnu_ld" = yes; then
19427
soname_spec='${libname}${release}${shared_ext}$major'
19428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19430
irix5* | nonstopux*)
19431
libsuff= shlibsuff=
19434
case $LD in # libtool.m4 will add one of these switches to LD
19435
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19436
libsuff= shlibsuff= libmagic=32-bit;;
19437
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19438
libsuff=32 shlibsuff=N32 libmagic=N32;;
19439
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19440
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19441
*) libsuff= shlibsuff= libmagic=never-match;;
19445
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19446
shlibpath_overrides_runpath=no
19447
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19448
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19449
hardcode_into_libs=yes
19452
# No shared lib support for Linux oldld, aout, or coff.
19453
linux*oldld* | linux*aout* | linux*coff*)
19457
# This must be Linux ELF.
19458
linux* | k*bsd*-gnu)
19462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19463
soname_spec='${libname}${release}${shared_ext}$major'
19464
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19465
shlibpath_var=LD_LIBRARY_PATH
19466
shlibpath_overrides_runpath=no
19467
# This implies no fast_install, which is unacceptable.
19468
# Some rework will be needed to allow for fast_install
19469
# before this can be enabled.
19470
hardcode_into_libs=yes
19472
# Append ld.so.conf contents to the search path
19473
if test -f /etc/ld.so.conf; then
19474
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19475
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19478
# We used to test for /lib/ld.so.1 and disable shared libraries on
19479
# powerpc, because MkLinux only supported shared libraries with the
19480
# GNU dynamic linker. Since this was broken with cross compilers,
19481
# most powerpc-linux boxes support dynamic linking these days and
19482
# people can always --disable-shared, the test was removed, and we
19483
# assume the GNU/Linux dynamic linker is in use.
19484
dynamic_linker='GNU/Linux ld.so'
19491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19492
soname_spec='${libname}${release}${shared_ext}$major'
19493
shlibpath_var=LD_LIBRARY_PATH
19494
shlibpath_overrides_runpath=no
19495
hardcode_into_libs=yes
19496
dynamic_linker='NetBSD ld.elf_so'
19503
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19505
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19506
dynamic_linker='NetBSD (a.out) ld.so'
19508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19509
soname_spec='${libname}${release}${shared_ext}$major'
19510
dynamic_linker='NetBSD ld.elf_so'
19512
shlibpath_var=LD_LIBRARY_PATH
19513
shlibpath_overrides_runpath=yes
19514
hardcode_into_libs=yes
19519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520
shlibpath_var=LD_LIBRARY_PATH
19521
shlibpath_overrides_runpath=yes
19528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19529
soname_spec='${libname}${release}${shared_ext}$major'
19530
shlibpath_var=LD_LIBRARY_PATH
19531
shlibpath_overrides_runpath=yes
19536
sys_lib_dlsearch_path_spec="/usr/lib"
19538
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19540
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19541
*) need_version=no ;;
19543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19544
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19545
shlibpath_var=LD_LIBRARY_PATH
19546
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19548
openbsd2.[89] | openbsd2.[89].*)
19549
shlibpath_overrides_runpath=no
19552
shlibpath_overrides_runpath=yes
19556
shlibpath_overrides_runpath=yes
19561
libname_spec='$name'
19564
library_names_spec='$libname${shared_ext} $libname.a'
19565
dynamic_linker='OS/2 ld.exe'
19566
shlibpath_var=LIBPATH
19569
osf3* | osf4* | osf5*)
19573
soname_spec='${libname}${release}${shared_ext}$major'
19574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19575
shlibpath_var=LD_LIBRARY_PATH
19576
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19577
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589
soname_spec='${libname}${release}${shared_ext}$major'
19590
shlibpath_var=LD_LIBRARY_PATH
19591
shlibpath_overrides_runpath=yes
19592
hardcode_into_libs=yes
19593
# ldd complains unless libraries are executable
19594
postinstall_cmds='chmod +x $lib'
19599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19600
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19601
shlibpath_var=LD_LIBRARY_PATH
19602
shlibpath_overrides_runpath=yes
19603
if test "$with_gnu_ld" = yes; then
19611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19612
soname_spec='${libname}${release}${shared_ext}$major'
19613
shlibpath_var=LD_LIBRARY_PATH
19614
case $host_vendor in
19616
shlibpath_overrides_runpath=no
19618
export_dynamic_flag_spec='${wl}-Blargedynsym'
19619
runpath_var=LD_RUN_PATH
19627
shlibpath_overrides_runpath=no
19628
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19634
if test -d /usr/nec ;then
19636
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19637
soname_spec='$libname${shared_ext}.$major'
19638
shlibpath_var=LD_LIBRARY_PATH
19642
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19643
version_type=freebsd-elf
19646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19647
soname_spec='${libname}${release}${shared_ext}$major'
19648
shlibpath_var=LD_LIBRARY_PATH
19649
hardcode_into_libs=yes
19650
if test "$with_gnu_ld" = yes; then
19651
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19652
shlibpath_overrides_runpath=no
19654
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19655
shlibpath_overrides_runpath=yes
19658
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19662
sys_lib_dlsearch_path_spec='/usr/lib'
19667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19668
soname_spec='${libname}${release}${shared_ext}$major'
19669
shlibpath_var=LD_LIBRARY_PATH
19676
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19677
echo "${ECHO_T}$dynamic_linker" >&6; }
19678
test "$dynamic_linker" = no && can_build_shared=no
19680
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19681
echo $ECHO_N "(cached) $ECHO_C" >&6
19683
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19686
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19687
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19688
echo $ECHO_N "(cached) $ECHO_C" >&6
19690
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19693
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19695
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19696
if test "$GCC" = yes; then
19697
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19700
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19701
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19702
hardcode_action_GCJ=
19703
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19704
test -n "$runpath_var_GCJ" || \
19705
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19707
# We can hardcode non-existant directories.
19708
if test "$hardcode_direct_GCJ" != no &&
19709
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19710
# have to relink, otherwise we might link with an installed library
19711
# when we should be linking with a yet-to-be-installed one
19712
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19713
test "$hardcode_minus_L_GCJ" != no; then
19714
# Linking always hardcodes the temporary library directory.
19715
hardcode_action_GCJ=relink
19717
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19718
hardcode_action_GCJ=immediate
19721
# We cannot hardcode anything, or else we can only hardcode existing
19723
hardcode_action_GCJ=unsupported
19725
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19726
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19728
if test "$hardcode_action_GCJ" = relink; then
19729
# Fast installation is not supported
19730
enable_fast_install=no
19731
elif test "$shlibpath_overrides_runpath" = yes ||
19732
test "$enable_shared" = no; then
19733
# Fast installation is not necessary
19734
enable_fast_install=needless
19738
# The else clause should only fire when bootstrapping the
19739
# libtool distribution, otherwise you forgot to ship ltmain.sh
19740
# with your package, and you will get complaints that there are
19741
# no rules to generate ltmain.sh.
19742
if test -f "$ltmain"; then
19743
# See if we are running on zsh, and set the options which allow our commands through
19744
# without removal of \ escapes.
19745
if test -n "${ZSH_VERSION+set}" ; then
19746
setopt NO_GLOB_SUBST
19748
# Now quote all the things that may contain metacharacters while being
19749
# careful not to overquote the AC_SUBSTed values. We take copies of the
19750
# variables and quote the copies for generation of the libtool script.
19751
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19753
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19754
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19755
deplibs_check_method reload_flag reload_cmds need_locks \
19756
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19757
lt_cv_sys_global_symbol_to_c_name_address \
19758
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19759
old_postinstall_cmds old_postuninstall_cmds \
19763
lt_prog_compiler_wl_GCJ \
19764
lt_prog_compiler_pic_GCJ \
19765
lt_prog_compiler_static_GCJ \
19766
lt_prog_compiler_no_builtin_flag_GCJ \
19767
export_dynamic_flag_spec_GCJ \
19768
thread_safe_flag_spec_GCJ \
19769
whole_archive_flag_spec_GCJ \
19770
enable_shared_with_static_runtimes_GCJ \
19771
old_archive_cmds_GCJ \
19772
old_archive_from_new_cmds_GCJ \
19773
predep_objects_GCJ \
19774
postdep_objects_GCJ \
19777
compiler_lib_search_path_GCJ \
19778
compiler_lib_search_dirs_GCJ \
19780
archive_expsym_cmds_GCJ \
19781
postinstall_cmds_GCJ \
19782
postuninstall_cmds_GCJ \
19783
old_archive_from_expsyms_cmds_GCJ \
19784
allow_undefined_flag_GCJ \
19785
no_undefined_flag_GCJ \
19786
export_symbols_cmds_GCJ \
19787
hardcode_libdir_flag_spec_GCJ \
19788
hardcode_libdir_flag_spec_ld_GCJ \
19789
hardcode_libdir_separator_GCJ \
19790
hardcode_automatic_GCJ \
19792
module_expsym_cmds_GCJ \
19793
lt_cv_prog_compiler_c_o_GCJ \
19794
fix_srcfile_path_GCJ \
19795
exclude_expsyms_GCJ \
19796
include_expsyms_GCJ; do
19799
old_archive_cmds_GCJ | \
19800
old_archive_from_new_cmds_GCJ | \
19801
archive_cmds_GCJ | \
19802
archive_expsym_cmds_GCJ | \
19803
module_cmds_GCJ | \
19804
module_expsym_cmds_GCJ | \
19805
old_archive_from_expsyms_cmds_GCJ | \
19806
export_symbols_cmds_GCJ | \
19807
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19808
postinstall_cmds | postuninstall_cmds | \
19809
old_postinstall_cmds | old_postuninstall_cmds | \
19810
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19811
# Double-quote double-evaled strings.
19812
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19815
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19821
*'\$0 --fallback-echo"')
19822
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19828
cat <<__EOF__ >> "$cfgfile"
19829
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19831
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19833
# Shell to use when invoking shell scripts.
19836
# Whether or not to build shared libraries.
19837
build_libtool_libs=$enable_shared
19839
# Whether or not to build static libraries.
19840
build_old_libs=$enable_static
19842
# Whether or not to add -lc for building shared libraries.
19843
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19845
# Whether or not to disallow shared libs when runtime libs are static
19846
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19848
# Whether or not to optimize for fast installation.
19849
fast_install=$enable_fast_install
19852
host_alias=$host_alias
19856
# The build system.
19857
build_alias=$build_alias
19861
# An echo program that does not interpret backslashes.
19866
AR_FLAGS=$lt_AR_FLAGS
19871
# LTCC compiler flags.
19872
LTCFLAGS=$lt_LTCFLAGS
19874
# A language-specific compiler.
19875
CC=$lt_compiler_GCJ
19877
# Is the compiler the GNU C compiler?
19883
# The linker used to build libraries.
19886
# Whether we need hard or soft links.
19889
# A BSD-compatible nm program.
19892
# A symbol stripping program
19895
# Used to examine libraries when file_magic_cmd begins "file"
19896
MAGIC_CMD=$MAGIC_CMD
19898
# Used on cygwin: DLL creation program.
19901
# Used on cygwin: object dumper.
19904
# Used on cygwin: assembler.
19907
# The name of the directory that contains temporary libtool files.
19910
# How to create reloadable object files.
19911
reload_flag=$lt_reload_flag
19912
reload_cmds=$lt_reload_cmds
19914
# How to pass a linker flag through the compiler.
19915
wl=$lt_lt_prog_compiler_wl_GCJ
19917
# Object file suffix (normally "o").
19918
objext="$ac_objext"
19920
# Old archive suffix (normally "a").
19923
# Shared library suffix (normally ".so").
19924
shrext_cmds='$shrext_cmds'
19926
# Executable file suffix (normally "").
19929
# Additional compiler flags for building library objects.
19930
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19933
# What is the maximum length of a command?
19934
max_cmd_len=$lt_cv_sys_max_cmd_len
19936
# Does compiler simultaneously support -c and -o options?
19937
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19939
# Must we lock files when doing compilation?
19940
need_locks=$lt_need_locks
19942
# Do we need the lib prefix for modules?
19943
need_lib_prefix=$need_lib_prefix
19945
# Do we need a version for libraries?
19946
need_version=$need_version
19948
# Whether dlopen is supported.
19949
dlopen_support=$enable_dlopen
19951
# Whether dlopen of programs is supported.
19952
dlopen_self=$enable_dlopen_self
19954
# Whether dlopen of statically linked programs is supported.
19955
dlopen_self_static=$enable_dlopen_self_static
19957
# Compiler flag to prevent dynamic linking.
19958
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19960
# Compiler flag to turn off builtin functions.
19961
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19963
# Compiler flag to allow reflexive dlopens.
19964
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19966
# Compiler flag to generate shared objects directly from archives.
19967
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19969
# Compiler flag to generate thread-safe objects.
19970
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19972
# Library versioning type.
19973
version_type=$version_type
19975
# Format of library name prefix.
19976
libname_spec=$lt_libname_spec
19978
# List of archive names. First name is the real one, the rest are links.
19979
# The last name is the one that the linker finds with -lNAME.
19980
library_names_spec=$lt_library_names_spec
19982
# The coded name of the library, if different from the real name.
19983
soname_spec=$lt_soname_spec
19985
# Commands used to build and install an old-style archive.
19987
old_archive_cmds=$lt_old_archive_cmds_GCJ
19988
old_postinstall_cmds=$lt_old_postinstall_cmds
19989
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19991
# Create an old-style archive from a shared archive.
19992
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19994
# Create a temporary old-style archive to link instead of a shared archive.
19995
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19997
# Commands used to build and install a shared archive.
19998
archive_cmds=$lt_archive_cmds_GCJ
19999
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20000
postinstall_cmds=$lt_postinstall_cmds
20001
postuninstall_cmds=$lt_postuninstall_cmds
20003
# Commands used to build a loadable module (assumed same as above if empty)
20004
module_cmds=$lt_module_cmds_GCJ
20005
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20007
# Commands to strip libraries.
20008
old_striplib=$lt_old_striplib
20009
striplib=$lt_striplib
20011
# Dependencies to place before the objects being linked to create a
20013
predep_objects=$lt_predep_objects_GCJ
20015
# Dependencies to place after the objects being linked to create a
20017
postdep_objects=$lt_postdep_objects_GCJ
20019
# Dependencies to place before the objects being linked to create a
20021
predeps=$lt_predeps_GCJ
20023
# Dependencies to place after the objects being linked to create a
20025
postdeps=$lt_postdeps_GCJ
20027
# The directories searched by this compiler when creating a shared
20029
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20031
# The library search path used internally by the compiler when linking
20032
# a shared library.
20033
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20035
# Method to check whether dependent libraries are shared objects.
20036
deplibs_check_method=$lt_deplibs_check_method
20038
# Command to use when deplibs_check_method == file_magic.
20039
file_magic_cmd=$lt_file_magic_cmd
20041
# Flag that allows shared libraries with undefined symbols to be built.
20042
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20044
# Flag that forces no undefined symbols.
20045
no_undefined_flag=$lt_no_undefined_flag_GCJ
20047
# Commands used to finish a libtool library installation in a directory.
20048
finish_cmds=$lt_finish_cmds
20050
# Same as above, but a single script fragment to be evaled but not shown.
20051
finish_eval=$lt_finish_eval
20053
# Take the output of nm and produce a listing of raw symbols and C names.
20054
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20056
# Transform the output of nm in a proper C declaration
20057
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20059
# Transform the output of nm in a C name address pair
20060
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20062
# This is the shared library runtime path variable.
20063
runpath_var=$runpath_var
20065
# This is the shared library path variable.
20066
shlibpath_var=$shlibpath_var
20068
# Is shlibpath searched before the hard-coded library search path?
20069
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20071
# How to hardcode a shared library path into an executable.
20072
hardcode_action=$hardcode_action_GCJ
20074
# Whether we should hardcode library paths into libraries.
20075
hardcode_into_libs=$hardcode_into_libs
20077
# Flag to hardcode \$libdir into a binary during linking.
20078
# This must work even if \$libdir does not exist.
20079
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20081
# If ld is used when linking, flag to hardcode \$libdir into
20082
# a binary during linking. This must work even if \$libdir does
20084
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20086
# Whether we need a single -rpath flag with a separated argument.
20087
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20089
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20090
# resulting binary.
20091
hardcode_direct=$hardcode_direct_GCJ
20093
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20094
# resulting binary.
20095
hardcode_minus_L=$hardcode_minus_L_GCJ
20097
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20098
# the resulting binary.
20099
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20101
# Set to yes if building a shared library automatically hardcodes DIR into the library
20102
# and all subsequent libraries and executables linked against it.
20103
hardcode_automatic=$hardcode_automatic_GCJ
20105
# Variables whose values should be saved in libtool wrapper scripts and
20106
# restored at relink time.
20107
variables_saved_for_relink="$variables_saved_for_relink"
20109
# Whether libtool must link a program against all its dependency libraries.
20110
link_all_deplibs=$link_all_deplibs_GCJ
20112
# Compile-time system search path for libraries
20113
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20115
# Run-time system search path for libraries
20116
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20118
# Fix the shell variable \$srcfile for the compiler.
20119
fix_srcfile_path=$lt_fix_srcfile_path
20121
# Set to yes if exported symbols are required.
20122
always_export_symbols=$always_export_symbols_GCJ
20124
# The commands to list exported symbols.
20125
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20127
# The commands to extract the exported symbol list from a shared archive.
20128
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20130
# Symbols that should not be listed in the preloaded symbols.
20131
exclude_expsyms=$lt_exclude_expsyms_GCJ
20133
# Symbols that must always be exported.
20134
include_expsyms=$lt_include_expsyms_GCJ
20136
# ### END LIBTOOL TAG CONFIG: $tagname
20142
# If there is no Makefile yet, we rely on a make rule to execute
20143
# `config.status --recheck' to rerun these tests and create the
20144
# libtool script then.
20145
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20146
if test -f "$ltmain_in"; then
20147
test -f Makefile && make "$ltmain"
20153
ac_cpp='$CPP $CPPFLAGS'
20154
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20168
# Source file extension for RC test sources.
20171
# Object file extension for compiled RC test sources.
20175
# Code to be used in simple compile tests
20176
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20178
# Code to be used in simple link tests
20179
lt_simple_link_test_code="$lt_simple_compile_test_code"
20181
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20183
# If no C compiler was specified, use CC.
20186
# If no C compiler flags were specified, use CFLAGS.
20187
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20189
# Allow CC to be a program name with arguments.
20193
# save warnings/boilerplate of simple test code
20194
ac_outfile=conftest.$ac_objext
20195
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20196
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20197
_lt_compiler_boilerplate=`cat conftest.err`
20200
ac_outfile=conftest.$ac_objext
20201
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20202
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20203
_lt_linker_boilerplate=`cat conftest.err`
20207
# Allow CC to be a program name with arguments.
20212
for cc_temp in $compiler""; do
20214
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20215
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20220
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20222
lt_cv_prog_compiler_c_o_RC=yes
20224
# The else clause should only fire when bootstrapping the
20225
# libtool distribution, otherwise you forgot to ship ltmain.sh
20226
# with your package, and you will get complaints that there are
20227
# no rules to generate ltmain.sh.
20228
if test -f "$ltmain"; then
20229
# See if we are running on zsh, and set the options which allow our commands through
20230
# without removal of \ escapes.
20231
if test -n "${ZSH_VERSION+set}" ; then
20232
setopt NO_GLOB_SUBST
20234
# Now quote all the things that may contain metacharacters while being
20235
# careful not to overquote the AC_SUBSTed values. We take copies of the
20236
# variables and quote the copies for generation of the libtool script.
20237
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20239
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20240
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20241
deplibs_check_method reload_flag reload_cmds need_locks \
20242
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20243
lt_cv_sys_global_symbol_to_c_name_address \
20244
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20245
old_postinstall_cmds old_postuninstall_cmds \
20249
lt_prog_compiler_wl_RC \
20250
lt_prog_compiler_pic_RC \
20251
lt_prog_compiler_static_RC \
20252
lt_prog_compiler_no_builtin_flag_RC \
20253
export_dynamic_flag_spec_RC \
20254
thread_safe_flag_spec_RC \
20255
whole_archive_flag_spec_RC \
20256
enable_shared_with_static_runtimes_RC \
20257
old_archive_cmds_RC \
20258
old_archive_from_new_cmds_RC \
20259
predep_objects_RC \
20260
postdep_objects_RC \
20263
compiler_lib_search_path_RC \
20264
compiler_lib_search_dirs_RC \
20266
archive_expsym_cmds_RC \
20267
postinstall_cmds_RC \
20268
postuninstall_cmds_RC \
20269
old_archive_from_expsyms_cmds_RC \
20270
allow_undefined_flag_RC \
20271
no_undefined_flag_RC \
20272
export_symbols_cmds_RC \
20273
hardcode_libdir_flag_spec_RC \
20274
hardcode_libdir_flag_spec_ld_RC \
20275
hardcode_libdir_separator_RC \
20276
hardcode_automatic_RC \
20278
module_expsym_cmds_RC \
20279
lt_cv_prog_compiler_c_o_RC \
20280
fix_srcfile_path_RC \
20281
exclude_expsyms_RC \
20282
include_expsyms_RC; do
20285
old_archive_cmds_RC | \
20286
old_archive_from_new_cmds_RC | \
20287
archive_cmds_RC | \
20288
archive_expsym_cmds_RC | \
20290
module_expsym_cmds_RC | \
20291
old_archive_from_expsyms_cmds_RC | \
20292
export_symbols_cmds_RC | \
20293
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20294
postinstall_cmds | postuninstall_cmds | \
20295
old_postinstall_cmds | old_postuninstall_cmds | \
20296
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20297
# Double-quote double-evaled strings.
20298
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20301
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20307
*'\$0 --fallback-echo"')
20308
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20314
cat <<__EOF__ >> "$cfgfile"
20315
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20317
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20319
# Shell to use when invoking shell scripts.
20322
# Whether or not to build shared libraries.
20323
build_libtool_libs=$enable_shared
20325
# Whether or not to build static libraries.
20326
build_old_libs=$enable_static
20328
# Whether or not to add -lc for building shared libraries.
20329
build_libtool_need_lc=$archive_cmds_need_lc_RC
20331
# Whether or not to disallow shared libs when runtime libs are static
20332
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20334
# Whether or not to optimize for fast installation.
20335
fast_install=$enable_fast_install
20338
host_alias=$host_alias
20342
# The build system.
20343
build_alias=$build_alias
20347
# An echo program that does not interpret backslashes.
20352
AR_FLAGS=$lt_AR_FLAGS
20357
# LTCC compiler flags.
20358
LTCFLAGS=$lt_LTCFLAGS
20360
# A language-specific compiler.
20363
# Is the compiler the GNU C compiler?
20369
# The linker used to build libraries.
20372
# Whether we need hard or soft links.
20375
# A BSD-compatible nm program.
20378
# A symbol stripping program
20381
# Used to examine libraries when file_magic_cmd begins "file"
20382
MAGIC_CMD=$MAGIC_CMD
20384
# Used on cygwin: DLL creation program.
20387
# Used on cygwin: object dumper.
20390
# Used on cygwin: assembler.
20393
# The name of the directory that contains temporary libtool files.
20396
# How to create reloadable object files.
20397
reload_flag=$lt_reload_flag
20398
reload_cmds=$lt_reload_cmds
20400
# How to pass a linker flag through the compiler.
20401
wl=$lt_lt_prog_compiler_wl_RC
20403
# Object file suffix (normally "o").
20404
objext="$ac_objext"
20406
# Old archive suffix (normally "a").
20409
# Shared library suffix (normally ".so").
20410
shrext_cmds='$shrext_cmds'
20412
# Executable file suffix (normally "").
20415
# Additional compiler flags for building library objects.
20416
pic_flag=$lt_lt_prog_compiler_pic_RC
20419
# What is the maximum length of a command?
20420
max_cmd_len=$lt_cv_sys_max_cmd_len
20422
# Does compiler simultaneously support -c and -o options?
20423
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20425
# Must we lock files when doing compilation?
20426
need_locks=$lt_need_locks
20428
# Do we need the lib prefix for modules?
20429
need_lib_prefix=$need_lib_prefix
20431
# Do we need a version for libraries?
20432
need_version=$need_version
20434
# Whether dlopen is supported.
20435
dlopen_support=$enable_dlopen
20437
# Whether dlopen of programs is supported.
20438
dlopen_self=$enable_dlopen_self
20440
# Whether dlopen of statically linked programs is supported.
20441
dlopen_self_static=$enable_dlopen_self_static
20443
# Compiler flag to prevent dynamic linking.
20444
link_static_flag=$lt_lt_prog_compiler_static_RC
20446
# Compiler flag to turn off builtin functions.
20447
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20449
# Compiler flag to allow reflexive dlopens.
20450
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20452
# Compiler flag to generate shared objects directly from archives.
20453
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20455
# Compiler flag to generate thread-safe objects.
20456
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20458
# Library versioning type.
20459
version_type=$version_type
20461
# Format of library name prefix.
20462
libname_spec=$lt_libname_spec
20464
# List of archive names. First name is the real one, the rest are links.
20465
# The last name is the one that the linker finds with -lNAME.
20466
library_names_spec=$lt_library_names_spec
20468
# The coded name of the library, if different from the real name.
20469
soname_spec=$lt_soname_spec
20471
# Commands used to build and install an old-style archive.
20473
old_archive_cmds=$lt_old_archive_cmds_RC
20474
old_postinstall_cmds=$lt_old_postinstall_cmds
20475
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20477
# Create an old-style archive from a shared archive.
20478
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20480
# Create a temporary old-style archive to link instead of a shared archive.
20481
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20483
# Commands used to build and install a shared archive.
20484
archive_cmds=$lt_archive_cmds_RC
20485
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20486
postinstall_cmds=$lt_postinstall_cmds
20487
postuninstall_cmds=$lt_postuninstall_cmds
20489
# Commands used to build a loadable module (assumed same as above if empty)
20490
module_cmds=$lt_module_cmds_RC
20491
module_expsym_cmds=$lt_module_expsym_cmds_RC
20493
# Commands to strip libraries.
20494
old_striplib=$lt_old_striplib
20495
striplib=$lt_striplib
20497
# Dependencies to place before the objects being linked to create a
20499
predep_objects=$lt_predep_objects_RC
20501
# Dependencies to place after the objects being linked to create a
20503
postdep_objects=$lt_postdep_objects_RC
20505
# Dependencies to place before the objects being linked to create a
20507
predeps=$lt_predeps_RC
20509
# Dependencies to place after the objects being linked to create a
20511
postdeps=$lt_postdeps_RC
20513
# The directories searched by this compiler when creating a shared
20515
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20517
# The library search path used internally by the compiler when linking
20518
# a shared library.
20519
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20521
# Method to check whether dependent libraries are shared objects.
20522
deplibs_check_method=$lt_deplibs_check_method
20524
# Command to use when deplibs_check_method == file_magic.
20525
file_magic_cmd=$lt_file_magic_cmd
20527
# Flag that allows shared libraries with undefined symbols to be built.
20528
allow_undefined_flag=$lt_allow_undefined_flag_RC
20530
# Flag that forces no undefined symbols.
20531
no_undefined_flag=$lt_no_undefined_flag_RC
20533
# Commands used to finish a libtool library installation in a directory.
20534
finish_cmds=$lt_finish_cmds
20536
# Same as above, but a single script fragment to be evaled but not shown.
20537
finish_eval=$lt_finish_eval
20539
# Take the output of nm and produce a listing of raw symbols and C names.
20540
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20542
# Transform the output of nm in a proper C declaration
20543
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20545
# Transform the output of nm in a C name address pair
20546
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20548
# This is the shared library runtime path variable.
20549
runpath_var=$runpath_var
20551
# This is the shared library path variable.
20552
shlibpath_var=$shlibpath_var
20554
# Is shlibpath searched before the hard-coded library search path?
20555
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20557
# How to hardcode a shared library path into an executable.
20558
hardcode_action=$hardcode_action_RC
20560
# Whether we should hardcode library paths into libraries.
20561
hardcode_into_libs=$hardcode_into_libs
20563
# Flag to hardcode \$libdir into a binary during linking.
20564
# This must work even if \$libdir does not exist.
20565
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20567
# If ld is used when linking, flag to hardcode \$libdir into
20568
# a binary during linking. This must work even if \$libdir does
20570
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20572
# Whether we need a single -rpath flag with a separated argument.
20573
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20575
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20576
# resulting binary.
20577
hardcode_direct=$hardcode_direct_RC
20579
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20580
# resulting binary.
20581
hardcode_minus_L=$hardcode_minus_L_RC
20583
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20584
# the resulting binary.
20585
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20587
# Set to yes if building a shared library automatically hardcodes DIR into the library
20588
# and all subsequent libraries and executables linked against it.
20589
hardcode_automatic=$hardcode_automatic_RC
20591
# Variables whose values should be saved in libtool wrapper scripts and
20592
# restored at relink time.
20593
variables_saved_for_relink="$variables_saved_for_relink"
20595
# Whether libtool must link a program against all its dependency libraries.
20596
link_all_deplibs=$link_all_deplibs_RC
20598
# Compile-time system search path for libraries
20599
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20601
# Run-time system search path for libraries
20602
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20604
# Fix the shell variable \$srcfile for the compiler.
20605
fix_srcfile_path=$lt_fix_srcfile_path
20607
# Set to yes if exported symbols are required.
20608
always_export_symbols=$always_export_symbols_RC
20610
# The commands to list exported symbols.
20611
export_symbols_cmds=$lt_export_symbols_cmds_RC
20613
# The commands to extract the exported symbol list from a shared archive.
20614
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20616
# Symbols that should not be listed in the preloaded symbols.
20617
exclude_expsyms=$lt_exclude_expsyms_RC
20619
# Symbols that must always be exported.
20620
include_expsyms=$lt_include_expsyms_RC
20622
# ### END LIBTOOL TAG CONFIG: $tagname
20628
# If there is no Makefile yet, we rely on a make rule to execute
20629
# `config.status --recheck' to rerun these tests and create the
20630
# libtool script then.
20631
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20632
if test -f "$ltmain_in"; then
20633
test -f Makefile && make "$ltmain"
20639
ac_cpp='$CPP $CPPFLAGS'
20640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20650
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20651
{ (exit 1); exit 1; }; }
20655
# Append the new tag name to the list of available tags.
20656
if test -n "$tagname" ; then
20657
available_tags="$available_tags $tagname"
20663
# Now substitute the updated list of available tags.
20664
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20665
mv "${ofile}T" "$ofile"
20669
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20670
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20671
{ (exit 1); exit 1; }; }
20677
# This can be used to rebuild libtool when needed
20678
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20680
# Always use our own libtool.
20681
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20683
# Prevent multiple expansion
11880
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11881
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11882
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11883
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11884
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11885
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11886
$as_echo "yes" >&6; }
11888
# FIXME - insert some real tests, host_os isn't really good enough
11891
if test -n "$STRIP" ; then
11892
striplib="$STRIP -x"
11893
old_striplib="$STRIP -S"
11894
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11895
$as_echo "yes" >&6; }
11897
{ $as_echo "$as_me:$LINENO: result: no" >&5
11898
$as_echo "no" >&6; }
11902
{ $as_echo "$as_me:$LINENO: result: no" >&5
11903
$as_echo "no" >&6; }
11919
# Report which library types will actually be built
11920
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11921
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11922
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11923
$as_echo "$can_build_shared" >&6; }
11925
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11926
$as_echo_n "checking whether to build shared libraries... " >&6; }
11927
test "$can_build_shared" = "no" && enable_shared=no
11929
# On AIX, shared libraries and static libraries use the same namespace, and
11930
# are all built from PIC.
11933
test "$enable_shared" = yes && enable_static=no
11934
if test -n "$RANLIB"; then
11935
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11936
postinstall_cmds='$RANLIB $lib'
11941
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11942
test "$enable_shared" = yes && enable_static=no
11946
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11947
$as_echo "$enable_shared" >&6; }
11949
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11950
$as_echo_n "checking whether to build static libraries... " >&6; }
11951
# Make sure either enable_shared or enable_static is yes.
11952
test "$enable_shared" = yes || enable_static=yes
11953
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11954
$as_echo "$enable_static" >&6; }
11961
ac_cpp='$CPP $CPPFLAGS'
11962
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11963
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11964
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11980
ac_config_commands="$ac_config_commands libtool"
11985
# Only expand once:
11990
{ $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11991
$as_echo_n "checking whether NLS is requested... " >&6; }
11992
# Check whether --enable-nls was given.
11993
if test "${enable_nls+set}" = set; then
11994
enableval=$enable_nls; USE_NLS=$enableval
11999
{ $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
12000
$as_echo "$USE_NLS" >&6; }
20706
12005
case "$am__api_version" in
20708
{ { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
20709
echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
12007
{ { $as_echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
12008
$as_echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
20710
12009
{ (exit 1); exit 1; }; }