12732
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12733
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12734
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12735
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12736
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12737
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12738
$as_echo "yes" >&6; }
12740
# FIXME - insert some real tests, host_os isn't really good enough
12743
if test -n "$STRIP" ; then
12744
striplib="$STRIP -x"
12745
old_striplib="$STRIP -S"
12746
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12747
$as_echo "yes" >&6; }
12749
{ $as_echo "$as_me:$LINENO: result: no" >&5
12750
$as_echo "no" >&6; }
12754
{ $as_echo "$as_me:$LINENO: result: no" >&5
12755
$as_echo "no" >&6; }
12771
# Report which library types will actually be built
12772
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12773
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12774
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12775
$as_echo "$can_build_shared" >&6; }
12777
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12778
$as_echo_n "checking whether to build shared libraries... " >&6; }
12779
test "$can_build_shared" = "no" && enable_shared=no
12781
# On AIX, shared libraries and static libraries use the same namespace, and
12782
# are all built from PIC.
12785
test "$enable_shared" = yes && enable_static=no
12786
if test -n "$RANLIB"; then
12787
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12788
postinstall_cmds='$RANLIB $lib'
12793
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12794
test "$enable_shared" = yes && enable_static=no
12798
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12799
$as_echo "$enable_shared" >&6; }
12801
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12802
$as_echo_n "checking whether to build static libraries... " >&6; }
12803
# Make sure either enable_shared or enable_static is yes.
12804
test "$enable_shared" = yes || enable_static=yes
12805
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12806
$as_echo "$enable_static" >&6; }
12813
ac_cpp='$CPP $CPPFLAGS'
12814
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12832
ac_config_commands="$ac_config_commands libtool"
12837
# Only expand once:
12270
# Report which library types will actually be built
12271
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12272
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12273
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12274
$as_echo "$can_build_shared" >&6; }
12276
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12277
$as_echo_n "checking whether to build shared libraries... " >&6; }
12278
test "$can_build_shared" = "no" && enable_shared=no
12280
# On AIX, shared libraries and static libraries use the same namespace, and
12281
# are all built from PIC.
12284
test "$enable_shared" = yes && enable_static=no
12285
if test -n "$RANLIB"; then
12286
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12287
postinstall_cmds='$RANLIB $lib'
12292
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12293
test "$enable_shared" = yes && enable_static=no
12297
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12298
$as_echo "$enable_shared" >&6; }
12300
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12301
$as_echo_n "checking whether to build static libraries... " >&6; }
12302
# Make sure either enable_shared or enable_static is yes.
12303
test "$enable_shared" = yes || enable_static=yes
12304
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12305
$as_echo "$enable_static" >&6; }
12307
# The else clause should only fire when bootstrapping the
12308
# libtool distribution, otherwise you forgot to ship ltmain.sh
12309
# with your package, and you will get complaints that there are
12310
# no rules to generate ltmain.sh.
12311
if test -f "$ltmain"; then
12312
# See if we are running on zsh, and set the options which allow our commands through
12313
# without removal of \ escapes.
12314
if test -n "${ZSH_VERSION+set}" ; then
12315
setopt NO_GLOB_SUBST
12317
# Now quote all the things that may contain metacharacters while being
12318
# careful not to overquote the AC_SUBSTed values. We take copies of the
12319
# variables and quote the copies for generation of the libtool script.
12320
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12322
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12323
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12324
deplibs_check_method reload_flag reload_cmds need_locks \
12325
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12326
lt_cv_sys_global_symbol_to_c_name_address \
12327
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12328
old_postinstall_cmds old_postuninstall_cmds \
12332
lt_prog_compiler_wl \
12333
lt_prog_compiler_pic \
12334
lt_prog_compiler_static \
12335
lt_prog_compiler_no_builtin_flag \
12336
export_dynamic_flag_spec \
12337
thread_safe_flag_spec \
12338
whole_archive_flag_spec \
12339
enable_shared_with_static_runtimes \
12341
old_archive_from_new_cmds \
12346
compiler_lib_search_path \
12347
compiler_lib_search_dirs \
12349
archive_expsym_cmds \
12351
postuninstall_cmds \
12352
old_archive_from_expsyms_cmds \
12353
allow_undefined_flag \
12354
no_undefined_flag \
12355
export_symbols_cmds \
12356
hardcode_libdir_flag_spec \
12357
hardcode_libdir_flag_spec_ld \
12358
hardcode_libdir_separator \
12359
hardcode_automatic \
12361
module_expsym_cmds \
12362
lt_cv_prog_compiler_c_o \
12365
include_expsyms; do
12368
old_archive_cmds | \
12369
old_archive_from_new_cmds | \
12371
archive_expsym_cmds | \
12373
module_expsym_cmds | \
12374
old_archive_from_expsyms_cmds | \
12375
export_symbols_cmds | \
12376
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12377
postinstall_cmds | postuninstall_cmds | \
12378
old_postinstall_cmds | old_postuninstall_cmds | \
12379
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12380
# Double-quote double-evaled strings.
12381
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12384
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12390
*'\$0 --fallback-echo"')
12391
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12395
cfgfile="${ofile}T"
12396
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12398
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
12399
$as_echo "$as_me: creating $ofile" >&6;}
12401
cat <<__EOF__ >> "$cfgfile"
12404
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12405
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12406
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12408
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12409
# Free Software Foundation, Inc.
12411
# This file is part of GNU Libtool:
12412
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12414
# This program is free software; you can redistribute it and/or modify
12415
# it under the terms of the GNU General Public License as published by
12416
# the Free Software Foundation; either version 2 of the License, or
12417
# (at your option) any later version.
12419
# This program is distributed in the hope that it will be useful, but
12420
# WITHOUT ANY WARRANTY; without even the implied warranty of
12421
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12422
# General Public License for more details.
12424
# You should have received a copy of the GNU General Public License
12425
# along with this program; if not, write to the Free Software
12426
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12428
# As a special exception to the GNU General Public License, if you
12429
# distribute this file as part of a program that contains a
12430
# configuration script generated by Autoconf, you may include it under
12431
# the same distribution terms that you use for the rest of that program.
12433
# A sed program that does not truncate output.
12436
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12437
Xsed="$SED -e 1s/^X//"
12439
# The HP-UX ksh and POSIX shell print the target directory to stdout
12440
# if CDPATH is set.
12441
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12443
# The names of the tagged configurations supported by this script.
12446
# ### BEGIN LIBTOOL CONFIG
12448
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12450
# Shell to use when invoking shell scripts.
12453
# Whether or not to build shared libraries.
12454
build_libtool_libs=$enable_shared
12456
# Whether or not to build static libraries.
12457
build_old_libs=$enable_static
12459
# Whether or not to add -lc for building shared libraries.
12460
build_libtool_need_lc=$archive_cmds_need_lc
12462
# Whether or not to disallow shared libs when runtime libs are static
12463
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12465
# Whether or not to optimize for fast installation.
12466
fast_install=$enable_fast_install
12469
host_alias=$host_alias
12473
# The build system.
12474
build_alias=$build_alias
12478
# An echo program that does not interpret backslashes.
12483
AR_FLAGS=$lt_AR_FLAGS
12488
# LTCC compiler flags.
12489
LTCFLAGS=$lt_LTCFLAGS
12491
# A language-specific compiler.
12494
# Is the compiler the GNU C compiler?
12500
# The linker used to build libraries.
12503
# Whether we need hard or soft links.
12506
# A BSD-compatible nm program.
12509
# A symbol stripping program
12512
# Used to examine libraries when file_magic_cmd begins "file"
12513
MAGIC_CMD=$MAGIC_CMD
12515
# Used on cygwin: DLL creation program.
12518
# Used on cygwin: object dumper.
12521
# Used on cygwin: assembler.
12524
# The name of the directory that contains temporary libtool files.
12527
# How to create reloadable object files.
12528
reload_flag=$lt_reload_flag
12529
reload_cmds=$lt_reload_cmds
12531
# How to pass a linker flag through the compiler.
12532
wl=$lt_lt_prog_compiler_wl
12534
# Object file suffix (normally "o").
12535
objext="$ac_objext"
12537
# Old archive suffix (normally "a").
12540
# Shared library suffix (normally ".so").
12541
shrext_cmds='$shrext_cmds'
12543
# Executable file suffix (normally "").
12546
# Additional compiler flags for building library objects.
12547
pic_flag=$lt_lt_prog_compiler_pic
12550
# What is the maximum length of a command?
12551
max_cmd_len=$lt_cv_sys_max_cmd_len
12553
# Does compiler simultaneously support -c and -o options?
12554
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12556
# Must we lock files when doing compilation?
12557
need_locks=$lt_need_locks
12559
# Do we need the lib prefix for modules?
12560
need_lib_prefix=$need_lib_prefix
12562
# Do we need a version for libraries?
12563
need_version=$need_version
12565
# Whether dlopen is supported.
12566
dlopen_support=$enable_dlopen
12568
# Whether dlopen of programs is supported.
12569
dlopen_self=$enable_dlopen_self
12571
# Whether dlopen of statically linked programs is supported.
12572
dlopen_self_static=$enable_dlopen_self_static
12574
# Compiler flag to prevent dynamic linking.
12575
link_static_flag=$lt_lt_prog_compiler_static
12577
# Compiler flag to turn off builtin functions.
12578
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12580
# Compiler flag to allow reflexive dlopens.
12581
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12583
# Compiler flag to generate shared objects directly from archives.
12584
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12586
# Compiler flag to generate thread-safe objects.
12587
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12589
# Library versioning type.
12590
version_type=$version_type
12592
# Format of library name prefix.
12593
libname_spec=$lt_libname_spec
12595
# List of archive names. First name is the real one, the rest are links.
12596
# The last name is the one that the linker finds with -lNAME.
12597
library_names_spec=$lt_library_names_spec
12599
# The coded name of the library, if different from the real name.
12600
soname_spec=$lt_soname_spec
12602
# Commands used to build and install an old-style archive.
12604
old_archive_cmds=$lt_old_archive_cmds
12605
old_postinstall_cmds=$lt_old_postinstall_cmds
12606
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12608
# Create an old-style archive from a shared archive.
12609
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12611
# Create a temporary old-style archive to link instead of a shared archive.
12612
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12614
# Commands used to build and install a shared archive.
12615
archive_cmds=$lt_archive_cmds
12616
archive_expsym_cmds=$lt_archive_expsym_cmds
12617
postinstall_cmds=$lt_postinstall_cmds
12618
postuninstall_cmds=$lt_postuninstall_cmds
12620
# Commands used to build a loadable module (assumed same as above if empty)
12621
module_cmds=$lt_module_cmds
12622
module_expsym_cmds=$lt_module_expsym_cmds
12624
# Commands to strip libraries.
12625
old_striplib=$lt_old_striplib
12626
striplib=$lt_striplib
12628
# Dependencies to place before the objects being linked to create a
12630
predep_objects=$lt_predep_objects
12632
# Dependencies to place after the objects being linked to create a
12634
postdep_objects=$lt_postdep_objects
12636
# Dependencies to place before the objects being linked to create a
12638
predeps=$lt_predeps
12640
# Dependencies to place after the objects being linked to create a
12642
postdeps=$lt_postdeps
12644
# The directories searched by this compiler when creating a shared
12646
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12648
# The library search path used internally by the compiler when linking
12649
# a shared library.
12650
compiler_lib_search_path=$lt_compiler_lib_search_path
12652
# Method to check whether dependent libraries are shared objects.
12653
deplibs_check_method=$lt_deplibs_check_method
12655
# Command to use when deplibs_check_method == file_magic.
12656
file_magic_cmd=$lt_file_magic_cmd
12658
# Flag that allows shared libraries with undefined symbols to be built.
12659
allow_undefined_flag=$lt_allow_undefined_flag
12661
# Flag that forces no undefined symbols.
12662
no_undefined_flag=$lt_no_undefined_flag
12664
# Commands used to finish a libtool library installation in a directory.
12665
finish_cmds=$lt_finish_cmds
12667
# Same as above, but a single script fragment to be evaled but not shown.
12668
finish_eval=$lt_finish_eval
12670
# Take the output of nm and produce a listing of raw symbols and C names.
12671
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12673
# Transform the output of nm in a proper C declaration
12674
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12676
# Transform the output of nm in a C name address pair
12677
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12679
# This is the shared library runtime path variable.
12680
runpath_var=$runpath_var
12682
# This is the shared library path variable.
12683
shlibpath_var=$shlibpath_var
12685
# Is shlibpath searched before the hard-coded library search path?
12686
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12688
# How to hardcode a shared library path into an executable.
12689
hardcode_action=$hardcode_action
12691
# Whether we should hardcode library paths into libraries.
12692
hardcode_into_libs=$hardcode_into_libs
12694
# Flag to hardcode \$libdir into a binary during linking.
12695
# This must work even if \$libdir does not exist.
12696
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12698
# If ld is used when linking, flag to hardcode \$libdir into
12699
# a binary during linking. This must work even if \$libdir does
12701
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12703
# Whether we need a single -rpath flag with a separated argument.
12704
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12706
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12707
# resulting binary.
12708
hardcode_direct=$hardcode_direct
12710
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12711
# resulting binary.
12712
hardcode_minus_L=$hardcode_minus_L
12714
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12715
# the resulting binary.
12716
hardcode_shlibpath_var=$hardcode_shlibpath_var
12718
# Set to yes if building a shared library automatically hardcodes DIR into the library
12719
# and all subsequent libraries and executables linked against it.
12720
hardcode_automatic=$hardcode_automatic
12722
# Variables whose values should be saved in libtool wrapper scripts and
12723
# restored at relink time.
12724
variables_saved_for_relink="$variables_saved_for_relink"
12726
# Whether libtool must link a program against all its dependency libraries.
12727
link_all_deplibs=$link_all_deplibs
12729
# Compile-time system search path for libraries
12730
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12732
# Run-time system search path for libraries
12733
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12735
# Fix the shell variable \$srcfile for the compiler.
12736
fix_srcfile_path=$lt_fix_srcfile_path
12738
# Set to yes if exported symbols are required.
12739
always_export_symbols=$always_export_symbols
12741
# The commands to list exported symbols.
12742
export_symbols_cmds=$lt_export_symbols_cmds
12744
# The commands to extract the exported symbol list from a shared archive.
12745
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12747
# Symbols that should not be listed in the preloaded symbols.
12748
exclude_expsyms=$lt_exclude_expsyms
12750
# Symbols that must always be exported.
12751
include_expsyms=$lt_include_expsyms
12753
# ### END LIBTOOL CONFIG
12760
cat <<\EOF >> "$cfgfile"
12762
# AIX sometimes has problems with the GCC collect2 program. For some
12763
# reason, if we set the COLLECT_NAMES environment variable, the problems
12764
# vanish in a puff of smoke.
12765
if test "X${COLLECT_NAMES+set}" != Xset; then
12767
export COLLECT_NAMES
12773
# We use sed instead of cat because bash on DJGPP gets confused if
12774
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12775
# text mode, it properly converts lines to CR/LF. This bash problem
12776
# is reportedly fixed, but why not run on old versions too?
12777
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12779
mv -f "$cfgfile" "$ofile" || \
12780
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12784
# If there is no Makefile yet, we rely on a make rule to execute
12785
# `config.status --recheck' to rerun these tests and create the
12786
# libtool script then.
12787
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12788
if test -f "$ltmain_in"; then
12789
test -f Makefile && make "$ltmain"
12795
ac_cpp='$CPP $CPPFLAGS'
12796
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12803
# Check whether --with-tags was given.
12804
if test "${with_tags+set}" = set; then
12805
withval=$with_tags; tagnames="$withval"
12809
if test -f "$ltmain" && test -n "$tagnames"; then
12810
if test ! -f "${ofile}"; then
12811
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12812
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12815
if test -z "$LTCC"; then
12816
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12817
if test -z "$LTCC"; then
12818
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12819
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12821
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12822
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12825
if test -z "$LTCFLAGS"; then
12826
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12829
# Extract list of available tagged configurations in $ofile.
12830
# Note that this assumes the entire list is on one line.
12831
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12833
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12834
for tagname in $tagnames; do
12836
# Check whether tagname contains only valid characters
12837
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12839
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12840
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12841
{ (exit 1); exit 1; }; }
12845
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12847
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12848
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12849
{ (exit 1); exit 1; }; }
12852
# Update the list of available tags.
12853
if test -n "$tagname"; then
12854
echo appending configuration tag \"$tagname\" to $ofile
12858
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12859
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12860
(test "X$CXX" != "Xg++"))) ; then
12862
ac_cpp='$CXXCPP $CPPFLAGS'
12863
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12870
archive_cmds_need_lc_CXX=no
12871
allow_undefined_flag_CXX=
12872
always_export_symbols_CXX=no
12873
archive_expsym_cmds_CXX=
12874
export_dynamic_flag_spec_CXX=
12875
hardcode_direct_CXX=no
12876
hardcode_libdir_flag_spec_CXX=
12877
hardcode_libdir_flag_spec_ld_CXX=
12878
hardcode_libdir_separator_CXX=
12879
hardcode_minus_L_CXX=no
12880
hardcode_shlibpath_var_CXX=unsupported
12881
hardcode_automatic_CXX=no
12883
module_expsym_cmds_CXX=
12884
link_all_deplibs_CXX=unknown
12885
old_archive_cmds_CXX=$old_archive_cmds
12886
no_undefined_flag_CXX=
12887
whole_archive_flag_spec_CXX=
12888
enable_shared_with_static_runtimes_CXX=no
12890
# Dependencies to place before and after the object being linked:
12891
predep_objects_CXX=
12892
postdep_objects_CXX=
12895
compiler_lib_search_path_CXX=
12896
compiler_lib_search_dirs_CXX=
12898
# Source file extension for C++ test sources.
12901
# Object file extension for compiled C++ test sources.
12905
# Code to be used in simple compile tests
12906
lt_simple_compile_test_code="int some_variable = 0;"
12908
# Code to be used in simple link tests
12909
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12911
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12913
# If no C compiler was specified, use CC.
12916
# If no C compiler flags were specified, use CFLAGS.
12917
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12919
# Allow CC to be a program name with arguments.
12923
# save warnings/boilerplate of simple test code
12924
ac_outfile=conftest.$ac_objext
12925
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12926
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12927
_lt_compiler_boilerplate=`cat conftest.err`
12930
ac_outfile=conftest.$ac_objext
12931
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12932
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12933
_lt_linker_boilerplate=`cat conftest.err`
12937
# Allow CC to be a program name with arguments.
12942
lt_save_with_gnu_ld=$with_gnu_ld
12943
lt_save_path_LD=$lt_cv_path_LD
12944
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12945
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12947
$as_unset lt_cv_prog_gnu_ld
12949
if test -n "${lt_cv_path_LDCXX+set}"; then
12950
lt_cv_path_LD=$lt_cv_path_LDCXX
12952
$as_unset lt_cv_path_LD
12954
test -z "${LDCXX+set}" || LD=$LDCXX
12958
for cc_temp in $compiler""; do
12960
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12961
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12966
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12969
# We don't want -fno-exception wen compiling C++ code, so set the
12970
# no_builtin_flag separately
12971
if test "$GXX" = yes; then
12972
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12974
lt_prog_compiler_no_builtin_flag_CXX=
12977
if test "$GXX" = yes; then
12978
# Set up default GNU C++ configuration
12981
# Check whether --with-gnu-ld was given.
12982
if test "${with_gnu_ld+set}" = set; then
12983
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12989
if test "$GCC" = yes; then
12990
# Check if gcc -print-prog-name=ld gives a path.
12991
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12992
$as_echo_n "checking for ld used by $CC... " >&6; }
12995
# gcc leaves a trailing carriage return which upsets mingw
12996
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12998
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13001
# Accept absolute paths.
13003
re_direlt='/[^/][^/]*/\.\./'
13004
# Canonicalize the pathname of ld
13005
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13006
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13007
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13009
test -z "$LD" && LD="$ac_prog"
13012
# If it fails, then pretend we aren't using GCC.
13016
# If it is relative, then search for the first ld in PATH.
13017
with_gnu_ld=unknown
13020
elif test "$with_gnu_ld" = yes; then
13021
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13022
$as_echo_n "checking for GNU ld... " >&6; }
13024
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13025
$as_echo_n "checking for non-GNU ld... " >&6; }
13027
if test "${lt_cv_path_LD+set}" = set; then
13028
$as_echo_n "(cached) " >&6
13030
if test -z "$LD"; then
13031
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13032
for ac_dir in $PATH; do
13034
test -z "$ac_dir" && ac_dir=.
13035
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13036
lt_cv_path_LD="$ac_dir/$ac_prog"
13037
# Check to see if the program is GNU ld. I'd rather use --version,
13038
# but apparently some variants of GNU ld only accept -v.
13039
# Break only if it was the GNU/non-GNU ld that we prefer.
13040
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13041
*GNU* | *'with BFD'*)
13042
test "$with_gnu_ld" != no && break
13045
test "$with_gnu_ld" != yes && break
13052
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13056
LD="$lt_cv_path_LD"
13057
if test -n "$LD"; then
13058
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
13059
$as_echo "$LD" >&6; }
13061
{ $as_echo "$as_me:$LINENO: result: no" >&5
13062
$as_echo "no" >&6; }
13064
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13065
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13066
{ (exit 1); exit 1; }; }
13067
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13068
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13069
if test "${lt_cv_prog_gnu_ld+set}" = set; then
13070
$as_echo_n "(cached) " >&6
13072
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13073
case `$LD -v 2>&1 </dev/null` in
13074
*GNU* | *'with BFD'*)
13075
lt_cv_prog_gnu_ld=yes
13078
lt_cv_prog_gnu_ld=no
13082
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13083
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13084
with_gnu_ld=$lt_cv_prog_gnu_ld
13088
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13089
# archiving commands below assume that GNU ld is being used.
13090
if test "$with_gnu_ld" = yes; then
13091
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092
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'
13094
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13095
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13097
# If archive_cmds runs LD, not CC, wlarc should be empty
13098
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13099
# investigate it a little bit more. (MM)
13102
# ancient GNU ld didn't support --whole-archive et. al.
13103
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13104
grep 'no-whole-archive' > /dev/null; then
13105
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13107
whole_archive_flag_spec_CXX=
13113
# A generic and very simple default shared library creation
13114
# command for GNU C++ for the case where it uses the native
13115
# linker, instead of GNU ld. If possible, this setting should
13116
# overridden to take advantage of the native linker features on
13117
# the platform it is being used on.
13118
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13121
# Commands to make compiler produce verbose output that lists
13122
# what "hidden" libraries, object files and flags are used when
13123
# linking a shared library.
13124
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13132
# PORTME: fill in a description of your system's C++ link characteristics
13133
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13134
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13138
# FIXME: insert proper C++ library support
13142
if test "$host_cpu" = ia64; then
13143
# On IA64, the linker does run time linking by default, so we don't
13144
# have to do anything special.
13145
aix_use_runtimelinking=no
13146
exp_sym_flag='-Bexport'
13149
aix_use_runtimelinking=no
13151
# Test if we are trying to use run time linking or normal
13152
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13153
# need to do runtime linking.
13154
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13155
for ld_flag in $LDFLAGS; do
13158
aix_use_runtimelinking=yes
13166
exp_sym_flag='-bexport'
13167
no_entry_flag='-bnoentry'
13170
# When large executables or shared objects are built, AIX ld can
13171
# have problems creating the table of contents. If linking a library
13172
# or program results in "error TOC overflow" add -mminimal-toc to
13173
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13174
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13176
archive_cmds_CXX=''
13177
hardcode_direct_CXX=yes
13178
hardcode_libdir_separator_CXX=':'
13179
link_all_deplibs_CXX=yes
13181
if test "$GXX" = yes; then
13182
case $host_os in aix4.[012]|aix4.[012].*)
13183
# We only want to do this on AIX 4.2 and lower, the check
13184
# below for broken collect2 doesn't work under 4.3+
13185
collect2name=`${CC} -print-prog-name=collect2`
13186
if test -f "$collect2name" && \
13187
strings "$collect2name" | grep resolve_lib_name >/dev/null
13189
# We have reworked collect2
13192
# We have old collect2
13193
hardcode_direct_CXX=unsupported
13194
# It fails to find uninstalled libraries when the uninstalled
13195
# path is not listed in the libpath. Setting hardcode_minus_L
13196
# to unsupported forces relinking
13197
hardcode_minus_L_CXX=yes
13198
hardcode_libdir_flag_spec_CXX='-L$libdir'
13199
hardcode_libdir_separator_CXX=
13203
shared_flag='-shared'
13204
if test "$aix_use_runtimelinking" = yes; then
13205
shared_flag="$shared_flag "'${wl}-G'
13209
if test "$host_cpu" = ia64; then
13210
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13211
# chokes on -Wl,-G. The following line is correct:
13214
if test "$aix_use_runtimelinking" = yes; then
13215
shared_flag='${wl}-G'
13217
shared_flag='${wl}-bM:SRE'
13222
# It seems that -bexpall does not export symbols beginning with
13223
# underscore (_), so it is better to generate a list of symbols to export.
13224
always_export_symbols_CXX=yes
13225
if test "$aix_use_runtimelinking" = yes; then
13226
# Warning - without using the other runtime loading flags (-brtl),
13227
# -berok will link without error, but may produce a broken library.
13228
allow_undefined_flag_CXX='-berok'
13229
# Determine the default libpath from the value encoded in an empty executable.
13230
cat >conftest.$ac_ext <<_ACEOF
13233
cat confdefs.h >>conftest.$ac_ext
13234
cat >>conftest.$ac_ext <<_ACEOF
13235
/* end confdefs.h. */
13245
rm -f conftest.$ac_objext conftest$ac_exeext
13246
if { (ac_try="$ac_link"
13247
case "(($ac_try" in
13248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249
*) ac_try_echo=$ac_try;;
13251
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13252
$as_echo "$ac_try_echo") >&5
13253
(eval "$ac_link") 2>conftest.er1
13255
grep -v '^ *+' conftest.er1 >conftest.err
13257
cat conftest.err >&5
13258
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259
(exit $ac_status); } && {
13260
test -z "$ac_cxx_werror_flag" ||
13261
test ! -s conftest.err
13262
} && test -s conftest$ac_exeext && {
13263
test "$cross_compiling" = yes ||
13264
$as_test_x conftest$ac_exeext
13267
lt_aix_libpath_sed='
13268
/Import File Strings/,/^$/ {
13274
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275
# Check for a 64-bit object if we didn't find anything.
13276
if test -z "$aix_libpath"; then
13277
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13280
$as_echo "$as_me: failed program was:" >&5
13281
sed 's/^/| /' conftest.$ac_ext >&5
13286
rm -rf conftest.dSYM
13287
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288
conftest$ac_exeext conftest.$ac_ext
13289
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13291
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13293
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"
13295
if test "$host_cpu" = ia64; then
13296
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13297
allow_undefined_flag_CXX="-z nodefs"
13298
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"
13300
# Determine the default libpath from the value encoded in an empty executable.
13301
cat >conftest.$ac_ext <<_ACEOF
13304
cat confdefs.h >>conftest.$ac_ext
13305
cat >>conftest.$ac_ext <<_ACEOF
13306
/* end confdefs.h. */
13316
rm -f conftest.$ac_objext conftest$ac_exeext
13317
if { (ac_try="$ac_link"
13318
case "(($ac_try" in
13319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320
*) ac_try_echo=$ac_try;;
13322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13323
$as_echo "$ac_try_echo") >&5
13324
(eval "$ac_link") 2>conftest.er1
13326
grep -v '^ *+' conftest.er1 >conftest.err
13328
cat conftest.err >&5
13329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330
(exit $ac_status); } && {
13331
test -z "$ac_cxx_werror_flag" ||
13332
test ! -s conftest.err
13333
} && test -s conftest$ac_exeext && {
13334
test "$cross_compiling" = yes ||
13335
$as_test_x conftest$ac_exeext
13338
lt_aix_libpath_sed='
13339
/Import File Strings/,/^$/ {
13345
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13346
# Check for a 64-bit object if we didn't find anything.
13347
if test -z "$aix_libpath"; then
13348
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351
$as_echo "$as_me: failed program was:" >&5
13352
sed 's/^/| /' conftest.$ac_ext >&5
13357
rm -rf conftest.dSYM
13358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13359
conftest$ac_exeext conftest.$ac_ext
13360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13362
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13363
# Warning - without using the other run time loading flags,
13364
# -berok will link without error, but may produce a broken library.
13365
no_undefined_flag_CXX=' ${wl}-bernotok'
13366
allow_undefined_flag_CXX=' ${wl}-berok'
13367
# Exported symbols can be pulled into shared objects from archives
13368
whole_archive_flag_spec_CXX='$convenience'
13369
archive_cmds_need_lc_CXX=yes
13370
# This is similar to how AIX traditionally builds its shared libraries.
13371
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'
13377
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13378
allow_undefined_flag_CXX=unsupported
13379
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13380
# support --undefined. This deserves some investigation. FIXME
13381
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388
case $cc_basename in
13390
# FIXME: insert proper C++ library support
13396
cygwin* | mingw* | pw32*)
13397
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13398
# as there is no search path for DLLs.
13399
hardcode_libdir_flag_spec_CXX='-L$libdir'
13400
allow_undefined_flag_CXX=unsupported
13401
always_export_symbols_CXX=no
13402
enable_shared_with_static_runtimes_CXX=yes
13404
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13405
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'
13406
# If the export-symbols file already is a .def file (1st line
13407
# is EXPORTS), use it as is; otherwise, prepend...
13408
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13409
cp $export_symbols $output_objdir/$soname.def;
13411
echo EXPORTS > $output_objdir/$soname.def;
13412
cat $export_symbols >> $output_objdir/$soname.def;
13414
$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'
13419
darwin* | rhapsody*)
13420
archive_cmds_need_lc_CXX=no
13421
hardcode_direct_CXX=no
13422
hardcode_automatic_CXX=yes
13423
hardcode_shlibpath_var_CXX=unsupported
13424
whole_archive_flag_spec_CXX=''
13425
link_all_deplibs_CXX=yes
13426
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13427
if test "$GXX" = yes ; then
13428
output_verbose_link_cmd='echo'
13429
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}"
13430
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13431
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}"
13432
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}"
13433
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13434
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}"
13435
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}"
13438
case $cc_basename in
13440
output_verbose_link_cmd='echo'
13441
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'
13442
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13443
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13444
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}'
13445
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}'
13455
case $cc_basename in
13457
# FIXME: insert proper C++ library support
13461
# Green Hills C++ Compiler
13462
# FIXME: insert proper C++ library support
13466
# FIXME: insert proper C++ library support
13472
# C++ shared libraries reported to be fairly broken before switch to ELF
13476
archive_cmds_need_lc_CXX=no
13478
freebsd* | dragonfly*)
13479
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13486
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13487
hardcode_libdir_separator_CXX=:
13488
export_dynamic_flag_spec_CXX='${wl}-E'
13489
hardcode_direct_CXX=yes
13490
hardcode_minus_L_CXX=yes # Not in the search PATH,
13491
# but as the default
13492
# location of the library.
13494
case $cc_basename in
13496
# FIXME: insert proper C++ library support
13500
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'
13501
# Commands to make compiler produce verbose output that lists
13502
# what "hidden" libraries, object files and flags are used when
13503
# linking a shared library.
13505
# There doesn't appear to be a way to prevent this compiler from
13506
# explicitly linking system object files so we need to strip them
13507
# from the output so that they don't get included in the library
13509
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'
13512
if test "$GXX" = yes; then
13513
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'
13515
# FIXME: insert proper C++ library support
13522
if test $with_gnu_ld = no; then
13523
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13524
hardcode_libdir_separator_CXX=:
13529
export_dynamic_flag_spec_CXX='${wl}-E'
13535
hardcode_direct_CXX=no
13536
hardcode_shlibpath_var_CXX=no
13539
hardcode_direct_CXX=yes
13540
hardcode_minus_L_CXX=yes # Not in the search PATH,
13541
# but as the default
13542
# location of the library.
13546
case $cc_basename in
13548
# FIXME: insert proper C++ library support
13554
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13557
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13560
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13563
# Commands to make compiler produce verbose output that lists
13564
# what "hidden" libraries, object files and flags are used when
13565
# linking a shared library.
13567
# There doesn't appear to be a way to prevent this compiler from
13568
# explicitly linking system object files so we need to strip them
13569
# from the output so that they don't get included in the library
13571
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'
13574
if test "$GXX" = yes; then
13575
if test $with_gnu_ld = no; then
13578
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13581
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13584
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'
13589
# FIXME: insert proper C++ library support
13596
hardcode_direct_CXX=no
13597
hardcode_shlibpath_var_CXX=no
13598
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599
export_dynamic_flag_spec_CXX='${wl}-E'
13600
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13601
# Instead, shared libraries are loaded at an image base (0x10000000 by
13602
# default) and relocated if they conflict, which is a slow very memory
13603
# consuming and fragmenting process. To avoid this, we pick a random,
13604
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13605
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13606
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'
13607
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'
13610
case $cc_basename in
13613
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'
13615
# Archives containing C++ object files must be created using
13616
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13617
# necessary to make sure instantiated templates are included
13619
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13622
if test "$GXX" = yes; then
13623
if test "$with_gnu_ld" = no; then
13624
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'
13626
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'
13629
link_all_deplibs_CXX=yes
13632
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633
hardcode_libdir_separator_CXX=:
13635
linux* | k*bsd*-gnu)
13636
case $cc_basename in
13638
# Kuck and Associates, Inc. (KAI) C++ Compiler
13640
# KCC will only create a shared library if the output file
13641
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13642
# to its proper name (with version) after linking.
13643
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'
13644
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'
13645
# Commands to make compiler produce verbose output that lists
13646
# what "hidden" libraries, object files and flags are used when
13647
# linking a shared library.
13649
# There doesn't appear to be a way to prevent this compiler from
13650
# explicitly linking system object files so we need to strip them
13651
# from the output so that they don't get included in the library
13653
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'
13655
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13656
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658
# Archives containing C++ object files must be created using
13659
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13660
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13665
# version 8.0 and above of icpc choke on multiply defined symbols
13666
# if we add $predep_objects and $postdep_objects, however 7.1 and
13667
# earlier do not add the objects themselves.
13668
case `$CC -V 2>&1` in
13670
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13671
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'
13673
*) # Version 8.0 or newer
13676
ia64*) tmp_idyn=' -i_dynamic';;
13678
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13679
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'
13682
archive_cmds_need_lc_CXX=no
13683
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13684
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13685
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13688
# Portland Group C++ compiler
13689
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13690
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'
13692
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13693
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13694
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'
13698
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699
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'
13701
runpath_var=LD_RUN_PATH
13702
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13703
hardcode_libdir_separator_CXX=:
13705
# Commands to make compiler produce verbose output that lists
13706
# what "hidden" libraries, object files and flags are used when
13707
# linking a shared library.
13709
# There doesn't appear to be a way to prevent this compiler from
13710
# explicitly linking system object files so we need to strip them
13711
# from the output so that they don't get included in the library
13713
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'
13716
case `$CC -V 2>&1 | sed 5q` in
13719
no_undefined_flag_CXX=' -zdefs'
13720
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721
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'
13722
hardcode_libdir_flag_spec_CXX='-R$libdir'
13723
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'
13725
# Not sure whether something based on
13726
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13728
output_verbose_link_cmd='echo'
13730
# Archives containing C++ object files must be created using
13731
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13732
# necessary to make sure instantiated templates are included
13734
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13741
# FIXME: insert proper C++ library support
13745
# FIXME: insert proper C++ library support
13749
case $cc_basename in
13751
# FIXME: insert proper C++ library support
13755
# FIXME: insert proper C++ library support
13761
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13762
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13764
hardcode_libdir_flag_spec_CXX='-R$libdir'
13765
hardcode_direct_CXX=yes
13766
hardcode_shlibpath_var_CXX=no
13768
# Workaround some broken pre-1.5 toolchains
13769
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13772
# C++ shared libraries are fairly broken
13776
if test -f /usr/libexec/ld.so; then
13777
hardcode_direct_CXX=yes
13778
hardcode_shlibpath_var_CXX=no
13779
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13780
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13781
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13782
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13783
export_dynamic_flag_spec_CXX='${wl}-E'
13784
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13786
output_verbose_link_cmd='echo'
13792
case $cc_basename in
13794
# Kuck and Associates, Inc. (KAI) C++ Compiler
13796
# KCC will only create a shared library if the output file
13797
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13798
# to its proper name (with version) after linking.
13799
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'
13801
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802
hardcode_libdir_separator_CXX=:
13804
# Archives containing C++ object files must be created using
13805
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13806
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13810
# Rational C++ 2.4.1
13811
# FIXME: insert proper C++ library support
13815
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13816
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'
13818
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13819
hardcode_libdir_separator_CXX=:
13821
# Commands to make compiler produce verbose output that lists
13822
# what "hidden" libraries, object files and flags are used when
13823
# linking a shared library.
13825
# There doesn't appear to be a way to prevent this compiler from
13826
# explicitly linking system object files so we need to strip them
13827
# from the output so that they don't get included in the library
13829
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'
13832
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13833
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13834
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'
13836
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13837
hardcode_libdir_separator_CXX=:
13839
# Commands to make compiler produce verbose output that lists
13840
# what "hidden" libraries, object files and flags are used when
13841
# linking a shared library.
13842
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13845
# FIXME: insert proper C++ library support
13852
case $cc_basename in
13854
# Kuck and Associates, Inc. (KAI) C++ Compiler
13856
# KCC will only create a shared library if the output file
13857
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13858
# to its proper name (with version) after linking.
13859
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'
13861
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13862
hardcode_libdir_separator_CXX=:
13864
# Archives containing C++ object files must be created using
13865
# the KAI C++ compiler.
13866
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13869
# Rational C++ 2.4.1
13870
# FIXME: insert proper C++ library support
13874
allow_undefined_flag_CXX=' -expect_unresolved \*'
13875
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'
13876
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13877
echo "-hidden">> $lib.exp~
13878
$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~
13881
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13882
hardcode_libdir_separator_CXX=:
13884
# Commands to make compiler produce verbose output that lists
13885
# what "hidden" libraries, object files and flags are used when
13886
# linking a shared library.
13888
# There doesn't appear to be a way to prevent this compiler from
13889
# explicitly linking system object files so we need to strip them
13890
# from the output so that they don't get included in the library
13892
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'
13895
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13897
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'
13899
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13900
hardcode_libdir_separator_CXX=:
13902
# Commands to make compiler produce verbose output that lists
13903
# what "hidden" libraries, object files and flags are used when
13904
# linking a shared library.
13905
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13908
# FIXME: insert proper C++ library support
13915
# FIXME: insert proper C++ library support
13919
case $cc_basename in
13922
# FIXME: insert proper C++ library support
13927
# FIXME: insert proper C++ library support
13931
# FIXME: insert proper C++ library support
13937
case $cc_basename in
13939
# Sun C++ 4.2, 5.x and Centerline C++
13940
archive_cmds_need_lc_CXX=yes
13941
no_undefined_flag_CXX=' -zdefs'
13942
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13943
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13944
$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'
13946
hardcode_libdir_flag_spec_CXX='-R$libdir'
13947
hardcode_shlibpath_var_CXX=no
13949
solaris2.[0-5] | solaris2.[0-5].*) ;;
13951
# The compiler driver will combine and reorder linker options,
13952
# but understands `-z linker_flag'.
13953
# Supported since Solaris 2.6 (maybe 2.5.1?)
13954
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13957
link_all_deplibs_CXX=yes
13959
output_verbose_link_cmd='echo'
13961
# Archives containing C++ object files must be created using
13962
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13963
# necessary to make sure instantiated templates are included
13965
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13968
# Green Hills C++ Compiler
13969
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13971
# The C++ compiler must be used to create the archive.
13972
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13975
# GNU C++ compiler with Solaris linker
13976
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13977
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13978
if $CC --version | grep -v '^2\.7' > /dev/null; then
13979
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13980
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13981
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13983
# Commands to make compiler produce verbose output that lists
13984
# what "hidden" libraries, object files and flags are used when
13985
# linking a shared library.
13986
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13988
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13990
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13991
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13992
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13994
# Commands to make compiler produce verbose output that lists
13995
# what "hidden" libraries, object files and flags are used when
13996
# linking a shared library.
13997
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14000
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14002
solaris2.[0-5] | solaris2.[0-5].*) ;;
14004
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14011
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14012
no_undefined_flag_CXX='${wl}-z,text'
14013
archive_cmds_need_lc_CXX=no
14014
hardcode_shlibpath_var_CXX=no
14015
runpath_var='LD_RUN_PATH'
14017
case $cc_basename in
14019
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14020
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14023
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14024
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14028
sysv5* | sco3.2v5* | sco5v6*)
14029
# Note: We can NOT use -z defs as we might desire, because we do not
14030
# link with -lc, and that would cause any symbols used from libc to
14031
# always be unresolved, which means just about no library would
14032
# ever link correctly. If we're not using GNU ld we use -z text
14033
# though, which does catch some bad symbols but isn't as heavy-handed
14035
# For security reasons, it is highly recommended that you always
14036
# use absolute paths for naming shared libraries, and exclude the
14037
# DT_RUNPATH tag from executables and libraries. But doing so
14038
# requires that you compile everything twice, which is a pain.
14039
# So that behaviour is only enabled if SCOABSPATH is set to a
14040
# non-empty value in the environment. Most likely only useful for
14041
# creating official distributions of packages.
14042
# This is a hack until libtool officially supports absolute path
14043
# names for shared libraries.
14044
no_undefined_flag_CXX='${wl}-z,text'
14045
allow_undefined_flag_CXX='${wl}-z,nodefs'
14046
archive_cmds_need_lc_CXX=no
14047
hardcode_shlibpath_var_CXX=no
14048
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14049
hardcode_libdir_separator_CXX=':'
14050
link_all_deplibs_CXX=yes
14051
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14052
runpath_var='LD_RUN_PATH'
14054
case $cc_basename in
14056
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14057
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14061
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14066
case $cc_basename in
14068
# NonStop-UX NCC 3.20
14069
# FIXME: insert proper C++ library support
14073
# FIXME: insert proper C++ library support
14079
# FIXME: insert proper C++ library support
14083
# FIXME: insert proper C++ library support
14087
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14088
$as_echo "$ld_shlibs_CXX" >&6; }
14089
test "$ld_shlibs_CXX" = no && can_build_shared=no
14094
cat > conftest.$ac_ext <<EOF
14098
Foo (void) { a = 0; }
14104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14105
(eval $ac_compile) 2>&5
14107
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108
(exit $ac_status); }; then
14109
# Parse the compiler output and extract the necessary
14110
# objects, libraries and library flags.
14112
# Sentinel used to keep track of whether or not we are before
14113
# the conftest object file.
14114
pre_test_object_deps_done=no
14116
# The `*' in the case matches for architectures that use `case' in
14117
# $output_verbose_cmd can trigger glob expansion during the loop
14118
# eval without this substitution.
14119
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14121
for p in `eval $output_verbose_link_cmd`; do
14125
# Some compilers place space between "-{L,R}" and the path.
14126
# Remove the space.
14127
if test $p = "-L" \
14128
|| test $p = "-R"; then
14135
if test "$pre_test_object_deps_done" = no; then
14138
# Internal compiler library paths should come after those
14139
# provided the user. The postdeps already come after the
14140
# user supplied libs so there is no need to process them.
14141
if test -z "$compiler_lib_search_path_CXX"; then
14142
compiler_lib_search_path_CXX="${prev}${p}"
14144
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14147
# The "-l" case would never come before the object being
14148
# linked, so don't bother handling this case.
14151
if test -z "$postdeps_CXX"; then
14152
postdeps_CXX="${prev}${p}"
14154
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14160
# This assumes that the test object file only shows up
14161
# once in the compiler output.
14162
if test "$p" = "conftest.$objext"; then
14163
pre_test_object_deps_done=yes
14167
if test "$pre_test_object_deps_done" = no; then
14168
if test -z "$predep_objects_CXX"; then
14169
predep_objects_CXX="$p"
14171
predep_objects_CXX="$predep_objects_CXX $p"
14174
if test -z "$postdep_objects_CXX"; then
14175
postdep_objects_CXX="$p"
14177
postdep_objects_CXX="$postdep_objects_CXX $p"
14182
*) ;; # Ignore the rest.
14190
echo "libtool.m4: error: problem compiling CXX test program"
14193
$rm -f confest.$objext
14195
compiler_lib_search_dirs_CXX=
14196
if test -n "$compiler_lib_search_path_CXX"; then
14197
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14200
# PORTME: override above test on systems where it is broken
14203
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14204
# hack all around it, let's just trust "g++" to DTRT.
14205
predep_objects_CXX=
14206
postdep_objects_CXX=
14211
case `$CC -V 2>&1 | sed 5q` in
14215
# The more standards-conforming stlport4 library is
14216
# incompatible with the Cstd library. Avoid specifying
14217
# it if it's in CXXFLAGS. Ignore libCrun as
14218
# -library=stlport4 depends on it.
14219
case " $CXX $CXXFLAGS " in
14220
*" -library=stlport4 "*)
14221
solaris_use_stlport4=yes
14224
if test "$solaris_use_stlport4" != yes; then
14225
postdeps_CXX='-library=Cstd -library=Crun'
14232
case $cc_basename in
14234
# The more standards-conforming stlport4 library is
14235
# incompatible with the Cstd library. Avoid specifying
14236
# it if it's in CXXFLAGS. Ignore libCrun as
14237
# -library=stlport4 depends on it.
14238
case " $CXX $CXXFLAGS " in
14239
*" -library=stlport4 "*)
14240
solaris_use_stlport4=yes
14244
# Adding this requires a known-good setup of shared libraries for
14245
# Sun compiler versions before 5.6, else PIC objects from an old
14246
# archive will be linked into the output, leading to subtle bugs.
14247
if test "$solaris_use_stlport4" != yes; then
14248
postdeps_CXX='-library=Cstd -library=Crun'
14255
case " $postdeps_CXX " in
14256
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14259
lt_prog_compiler_wl_CXX=
14260
lt_prog_compiler_pic_CXX=
14261
lt_prog_compiler_static_CXX=
14263
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14266
# C++ specific cases for pic, static, wl, etc.
14267
if test "$GXX" = yes; then
14268
lt_prog_compiler_wl_CXX='-Wl,'
14269
lt_prog_compiler_static_CXX='-static'
14273
# All AIX code is PIC.
14274
if test "$host_cpu" = ia64; then
14275
# AIX 5 now supports IA64 processor
14276
lt_prog_compiler_static_CXX='-Bstatic'
14280
# FIXME: we need at least 68020 code to build shared libraries, but
14281
# adding the `-m68020' flag to GCC prevents building anything better,
14283
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14285
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14286
# PIC is the default for these OSes.
14288
mingw* | cygwin* | os2* | pw32*)
14289
# This hack is so that the source file can tell whether it is being
14290
# built for inclusion in a dll (and should export symbols for example).
14291
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14292
# (--disable-auto-import) libraries
14293
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14295
darwin* | rhapsody*)
14296
# PIC is the default on this platform
14297
# Common symbols not allowed in MH_DYLIB files
14298
lt_prog_compiler_pic_CXX='-fno-common'
14301
# DJGPP does not support shared libraries at all
14302
lt_prog_compiler_pic_CXX=
14305
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14306
# Instead, we relocate shared libraries at runtime.
14309
if test -d /usr/nec; then
14310
lt_prog_compiler_pic_CXX=-Kconform_pic
14314
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14315
# not for PA HP-UX.
14320
lt_prog_compiler_pic_CXX='-fPIC'
14325
lt_prog_compiler_pic_CXX='-fPIC'
14331
# All AIX code is PIC.
14332
if test "$host_cpu" = ia64; then
14333
# AIX 5 now supports IA64 processor
14334
lt_prog_compiler_static_CXX='-Bstatic'
14336
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14340
case $cc_basename in
14342
# Green Hills C++ Compiler
14343
# _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"
14348
# PIC is the default on this platform
14349
# Common symbols not allowed in MH_DYLIB files
14350
case $cc_basename in
14352
lt_prog_compiler_pic_CXX='-qnocommon'
14353
lt_prog_compiler_wl_CXX='-Wl,'
14358
case $cc_basename in
14360
lt_prog_compiler_pic_CXX='-KPIC'
14363
# Green Hills C++ Compiler
14364
lt_prog_compiler_pic_CXX='-pic'
14370
freebsd* | dragonfly*)
14371
# FreeBSD uses GNU C++
14373
hpux9* | hpux10* | hpux11*)
14374
case $cc_basename in
14376
lt_prog_compiler_wl_CXX='-Wl,'
14377
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14378
if test "$host_cpu" != ia64; then
14379
lt_prog_compiler_pic_CXX='+Z'
14383
lt_prog_compiler_wl_CXX='-Wl,'
14384
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14390
lt_prog_compiler_pic_CXX='+Z'
14399
# This is c89, which is MS Visual C++ (no shared libs)
14400
# Anyone wants to do a port?
14402
irix5* | irix6* | nonstopux*)
14403
case $cc_basename in
14405
lt_prog_compiler_wl_CXX='-Wl,'
14406
lt_prog_compiler_static_CXX='-non_shared'
14407
# CC pic flag -KPIC is the default.
14413
linux* | k*bsd*-gnu)
14414
case $cc_basename in
14417
lt_prog_compiler_wl_CXX='--backend -Wl,'
14418
lt_prog_compiler_pic_CXX='-fPIC'
14422
lt_prog_compiler_wl_CXX='-Wl,'
14423
lt_prog_compiler_pic_CXX='-KPIC'
14424
lt_prog_compiler_static_CXX='-static'
14427
# Portland Group C++ compiler.
14428
lt_prog_compiler_wl_CXX='-Wl,'
14429
lt_prog_compiler_pic_CXX='-fpic'
14430
lt_prog_compiler_static_CXX='-Bstatic'
14434
# Make sure the PIC flag is empty. It appears that all Alpha
14435
# Linux and Compaq Tru64 Unix objects are PIC.
14436
lt_prog_compiler_pic_CXX=
14437
lt_prog_compiler_static_CXX='-non_shared'
14440
case `$CC -V 2>&1 | sed 5q` in
14443
lt_prog_compiler_pic_CXX='-KPIC'
14444
lt_prog_compiler_static_CXX='-Bstatic'
14445
lt_prog_compiler_wl_CXX='-Qoption ld '
14456
case $cc_basename in
14458
lt_prog_compiler_pic_CXX='-W c,exportall'
14466
osf3* | osf4* | osf5*)
14467
case $cc_basename in
14469
lt_prog_compiler_wl_CXX='--backend -Wl,'
14472
# Rational C++ 2.4.1
14473
lt_prog_compiler_pic_CXX='-pic'
14476
# Digital/Compaq C++
14477
lt_prog_compiler_wl_CXX='-Wl,'
14478
# Make sure the PIC flag is empty. It appears that all Alpha
14479
# Linux and Compaq Tru64 Unix objects are PIC.
14480
lt_prog_compiler_pic_CXX=
14481
lt_prog_compiler_static_CXX='-non_shared'
14490
case $cc_basename in
14492
# Sun C++ 4.2, 5.x and Centerline C++
14493
lt_prog_compiler_pic_CXX='-KPIC'
14494
lt_prog_compiler_static_CXX='-Bstatic'
14495
lt_prog_compiler_wl_CXX='-Qoption ld '
14498
# Green Hills C++ Compiler
14499
lt_prog_compiler_pic_CXX='-PIC'
14506
case $cc_basename in
14509
lt_prog_compiler_pic_CXX='-pic'
14510
lt_prog_compiler_static_CXX='-Bstatic'
14514
lt_prog_compiler_pic_CXX='-pic'
14521
case $cc_basename in
14523
# NonStop-UX NCC 3.20
14524
lt_prog_compiler_pic_CXX='-KPIC'
14530
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14531
case $cc_basename in
14533
lt_prog_compiler_wl_CXX='-Wl,'
14534
lt_prog_compiler_pic_CXX='-KPIC'
14535
lt_prog_compiler_static_CXX='-Bstatic'
14542
lt_prog_compiler_can_build_shared_CXX=no
14547
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14548
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14551
# Check to make sure the PIC flag actually works.
14553
if test -n "$lt_prog_compiler_pic_CXX"; then
14555
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14556
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14557
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14558
$as_echo_n "(cached) " >&6
14560
lt_cv_prog_compiler_pic_works_CXX=no
14561
ac_outfile=conftest.$ac_objext
14562
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14563
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14564
# Insert the option either (1) after the last *FLAGS variable, or
14565
# (2) before a word containing "conftest.", or (3) at the end.
14566
# Note that $ac_compile itself does not contain backslashes and begins
14567
# with a dollar sign (not a hyphen), so the echo should work correctly.
14568
# The option is referenced via a variable to avoid confusing sed.
14569
lt_compile=`echo "$ac_compile" | $SED \
14570
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14571
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14572
-e 's:$: $lt_compiler_flag:'`
14573
(eval echo "\"\$as_me:14573: $lt_compile\"" >&5)
14574
(eval "$lt_compile" 2>conftest.err)
14576
cat conftest.err >&5
14577
echo "$as_me:14577: \$? = $ac_status" >&5
14578
if (exit $ac_status) && test -s "$ac_outfile"; then
14579
# The compiler can only warn and ignore the option if not recognized
14580
# So say no if there are warnings other than the usual output.
14581
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14582
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14583
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14584
lt_cv_prog_compiler_pic_works_CXX=yes
14590
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14591
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14593
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14594
case $lt_prog_compiler_pic_CXX in
14596
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14599
lt_prog_compiler_pic_CXX=
14600
lt_prog_compiler_can_build_shared_CXX=no
14605
# For platforms which do not support PIC, -DPIC is meaningless:
14607
lt_prog_compiler_pic_CXX=
14610
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14615
# Check to make sure the static flag actually works.
14617
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14618
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14619
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14620
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14621
$as_echo_n "(cached) " >&6
14623
lt_cv_prog_compiler_static_works_CXX=no
14624
save_LDFLAGS="$LDFLAGS"
14625
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14626
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14627
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14628
# The linker can only warn and ignore the option if not recognized
14629
# So say no if there are warnings
14630
if test -s conftest.err; then
14631
# Append any errors to the config.log.
14632
cat conftest.err 1>&5
14633
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14634
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635
if diff conftest.exp conftest.er2 >/dev/null; then
14636
lt_cv_prog_compiler_static_works_CXX=yes
14639
lt_cv_prog_compiler_static_works_CXX=yes
14643
LDFLAGS="$save_LDFLAGS"
14646
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14647
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14649
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14652
lt_prog_compiler_static_CXX=
14656
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14657
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14658
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14659
$as_echo_n "(cached) " >&6
14661
lt_cv_prog_compiler_c_o_CXX=no
14662
$rm -r conftest 2>/dev/null
14666
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14668
lt_compiler_flag="-o out/conftest2.$ac_objext"
14669
# Insert the option either (1) after the last *FLAGS variable, or
14670
# (2) before a word containing "conftest.", or (3) at the end.
14671
# Note that $ac_compile itself does not contain backslashes and begins
14672
# with a dollar sign (not a hyphen), so the echo should work correctly.
14673
lt_compile=`echo "$ac_compile" | $SED \
14674
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14675
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676
-e 's:$: $lt_compiler_flag:'`
14677
(eval echo "\"\$as_me:14677: $lt_compile\"" >&5)
14678
(eval "$lt_compile" 2>out/conftest.err)
14680
cat out/conftest.err >&5
14681
echo "$as_me:14681: \$? = $ac_status" >&5
14682
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14684
# The compiler can only warn and ignore the option if not recognized
14685
# So say no if there are warnings
14686
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14687
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14688
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14689
lt_cv_prog_compiler_c_o_CXX=yes
14694
# SGI C++ compiler will create directory out/ii_files/ for
14695
# template instantiation
14696
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14697
$rm out/* && rmdir out
14703
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14704
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14707
hard_links="nottested"
14708
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14709
# do not overwrite the value of need_locks provided by the user
14710
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14711
$as_echo_n "checking if we can lock with hard links... " >&6; }
14714
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716
ln conftest.a conftest.b 2>&5 || hard_links=no
14717
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14718
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14719
$as_echo "$hard_links" >&6; }
14720
if test "$hard_links" = no; then
14721
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14722
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14729
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14730
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14732
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14735
# If we're using GNU nm, then we don't want the "-C" option.
14736
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14737
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14738
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'
14740
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'
14744
export_symbols_cmds_CXX="$ltdll_cmds"
14747
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'
14750
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14753
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14755
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14756
$as_echo "$ld_shlibs_CXX" >&6; }
14757
test "$ld_shlibs_CXX" = no && can_build_shared=no
14760
# Do we need to explicitly link libc?
14762
case "x$archive_cmds_need_lc_CXX" in
14764
# Assume -lc should be added
14765
archive_cmds_need_lc_CXX=yes
14767
if test "$enable_shared" = yes && test "$GCC" = yes; then
14768
case $archive_cmds_CXX in
14770
# FIXME: we may have to deal with multi-command sequences.
14773
# Test whether the compiler implicitly links with -lc since on some
14774
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14775
# to ld, don't add -lc before -lgcc.
14776
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14777
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14779
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14781
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782
(eval $ac_compile) 2>&5
14784
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785
(exit $ac_status); } 2>conftest.err; then
14788
libobjs=conftest.$ac_objext
14790
wl=$lt_prog_compiler_wl_CXX
14791
pic_flag=$lt_prog_compiler_pic_CXX
14797
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14798
allow_undefined_flag_CXX=
14799
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14800
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14802
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803
(exit $ac_status); }
14805
archive_cmds_need_lc_CXX=no
14807
archive_cmds_need_lc_CXX=yes
14809
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14811
cat conftest.err 1>&5
14814
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14815
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14822
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14823
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14824
library_names_spec=
14825
libname_spec='lib$name'
14829
postuninstall_cmds=
14833
shlibpath_overrides_runpath=unknown
14835
dynamic_linker="$host_os ld.so"
14836
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14838
need_lib_prefix=unknown
14839
hardcode_into_libs=no
14841
# when you set need_version to no, make sure it does not cause -set_version
14842
# flags to be left without arguments
14843
need_version=unknown
14848
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14849
shlibpath_var=LIBPATH
14851
# AIX 3 has no versioning support, so we append a major version to the name.
14852
soname_spec='${libname}${release}${shared_ext}$major'
14859
hardcode_into_libs=yes
14860
if test "$host_cpu" = ia64; then
14861
# AIX 5 supports IA64
14862
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14863
shlibpath_var=LD_LIBRARY_PATH
14865
# With GCC up to 2.95.x, collect2 would create an import file
14866
# for dependence libraries. The import file would start with
14867
# the line `#! .'. This would cause the generated library to
14868
# depend on `.', always an invalid library. This was fixed in
14869
# development snapshots of GCC prior to 3.0.
14871
aix4 | aix4.[01] | aix4.[01].*)
14872
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14874
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14877
can_build_shared=no
14881
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14882
# soname into executable. Probably we can add versioning support to
14883
# collect2, so additional links can be useful in future.
14884
if test "$aix_use_runtimelinking" = yes; then
14885
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14886
# instead of lib<name>.a to let people know that these are not
14887
# typical AIX shared libraries.
14888
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890
# We preserve .a as extension for shared libraries through AIX4.2
14891
# and later when we are not doing run time linking.
14892
library_names_spec='${libname}${release}.a $libname.a'
14893
soname_spec='${libname}${release}${shared_ext}$major'
14895
shlibpath_var=LIBPATH
14900
library_names_spec='$libname.ixlibrary $libname.a'
14901
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14902
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'
14906
library_names_spec='${libname}${shared_ext}'
14907
dynamic_linker="$host_os ld.so"
14908
shlibpath_var=LIBRARY_PATH
14914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915
soname_spec='${libname}${release}${shared_ext}$major'
14916
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14917
shlibpath_var=LD_LIBRARY_PATH
14918
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14919
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14920
# the default ld.so.conf also contains /usr/contrib/lib and
14921
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14922
# libtool to hard-code these into programs
14925
cygwin* | mingw* | pw32*)
14926
version_type=windows
14931
case $GCC,$host_os in
14932
yes,cygwin* | yes,mingw* | yes,pw32*)
14933
library_names_spec='$libname.dll.a'
14934
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14935
postinstall_cmds='base_file=`basename \${file}`~
14936
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14937
dldir=$destdir/`dirname \$dlpath`~
14938
test -d \$dldir || mkdir -p \$dldir~
14939
$install_prog $dir/$dlname \$dldir/$dlname~
14940
chmod a+x \$dldir/$dlname'
14941
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14942
dlpath=$dir/\$dldll~
14944
shlibpath_overrides_runpath=yes
14948
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14949
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14950
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14953
# MinGW DLLs use traditional 'lib' prefix
14954
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14955
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14956
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14957
# It is most probably a Windows format PATH printed by
14958
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14959
# path with ; separators, and with drive letters. We can handle the
14960
# drive letters (cygwin fileutils understands them), so leave them,
14961
# especially as we might pass files found there to a mingw objdump,
14962
# which wouldn't understand a cygwinified path. Ahh.
14963
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14965
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14969
# pw32 DLLs use 'pw' prefix rather than 'lib'
14970
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14976
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14979
dynamic_linker='Win32 ld.exe'
14980
# FIXME: first we should search . and the directory the executable is in
14984
darwin* | rhapsody*)
14985
dynamic_linker="$host_os dyld"
14986
version_type=darwin
14989
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14990
soname_spec='${libname}${release}${major}$shared_ext'
14991
shlibpath_overrides_runpath=yes
14992
shlibpath_var=DYLD_LIBRARY_PATH
14993
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14995
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15003
soname_spec='${libname}${release}${shared_ext}$major'
15004
shlibpath_var=LD_LIBRARY_PATH
15011
freebsd* | dragonfly*)
15012
# DragonFly does not have aout. When/if they implement a new
15013
# versioning mechanism, adjust this.
15014
if test -x /usr/bin/objformat; then
15015
objformat=`/usr/bin/objformat`
15018
freebsd[123]*) objformat=aout ;;
15019
*) objformat=elf ;;
15022
version_type=freebsd-$objformat
15023
case $version_type in
15025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15030
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15034
shlibpath_var=LD_LIBRARY_PATH
15037
shlibpath_overrides_runpath=yes
15039
freebsd3.[01]* | freebsdelf3.[01]*)
15040
shlibpath_overrides_runpath=yes
15041
hardcode_into_libs=yes
15043
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15044
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15045
shlibpath_overrides_runpath=no
15046
hardcode_into_libs=yes
15048
*) # from 4.6 on, and DragonFly
15049
shlibpath_overrides_runpath=yes
15050
hardcode_into_libs=yes
15059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15060
soname_spec='${libname}${release}${shared_ext}$major'
15061
shlibpath_var=LD_LIBRARY_PATH
15062
hardcode_into_libs=yes
15065
hpux9* | hpux10* | hpux11*)
15066
# Give a soname corresponding to the major version so that dld.sl refuses to
15067
# link against other versions.
15074
hardcode_into_libs=yes
15075
dynamic_linker="$host_os dld.so"
15076
shlibpath_var=LD_LIBRARY_PATH
15077
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079
soname_spec='${libname}${release}${shared_ext}$major'
15080
if test "X$HPUX_IA64_MODE" = X32; then
15081
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15083
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15085
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15089
hardcode_into_libs=yes
15090
dynamic_linker="$host_os dld.sl"
15091
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15092
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094
soname_spec='${libname}${release}${shared_ext}$major'
15095
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15096
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15100
dynamic_linker="$host_os dld.sl"
15101
shlibpath_var=SHLIB_PATH
15102
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104
soname_spec='${libname}${release}${shared_ext}$major'
15107
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15108
postinstall_cmds='chmod 555 $lib'
15115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116
soname_spec='${libname}${release}${shared_ext}$major'
15117
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15118
shlibpath_var=LD_LIBRARY_PATH
15119
shlibpath_overrides_runpath=no
15120
hardcode_into_libs=yes
15123
irix5* | irix6* | nonstopux*)
15125
nonstopux*) version_type=nonstopux ;;
15127
if test "$lt_cv_prog_gnu_ld" = yes; then
15135
soname_spec='${libname}${release}${shared_ext}$major'
15136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15138
irix5* | nonstopux*)
15139
libsuff= shlibsuff=
15142
case $LD in # libtool.m4 will add one of these switches to LD
15143
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15144
libsuff= shlibsuff= libmagic=32-bit;;
15145
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15146
libsuff=32 shlibsuff=N32 libmagic=N32;;
15147
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15148
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15149
*) libsuff= shlibsuff= libmagic=never-match;;
15153
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15154
shlibpath_overrides_runpath=no
15155
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15156
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15157
hardcode_into_libs=yes
15160
# No shared lib support for Linux oldld, aout, or coff.
15161
linux*oldld* | linux*aout* | linux*coff*)
15165
# This must be Linux ELF.
15166
linux* | k*bsd*-gnu)
15170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171
soname_spec='${libname}${release}${shared_ext}$major'
15172
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15173
shlibpath_var=LD_LIBRARY_PATH
15174
shlibpath_overrides_runpath=no
15175
# This implies no fast_install, which is unacceptable.
15176
# Some rework will be needed to allow for fast_install
15177
# before this can be enabled.
15178
hardcode_into_libs=yes
15179
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15180
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15182
# Append ld.so.conf contents to the search path
15183
if test -f /etc/ld.so.conf; then
15184
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' ' '`
15185
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15188
# We used to test for /lib/ld.so.1 and disable shared libraries on
15189
# powerpc, because MkLinux only supported shared libraries with the
15190
# GNU dynamic linker. Since this was broken with cross compilers,
15191
# most powerpc-linux boxes support dynamic linking these days and
15192
# people can always --disable-shared, the test was removed, and we
15193
# assume the GNU/Linux dynamic linker is in use.
15194
dynamic_linker='GNU/Linux ld.so'
15201
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204
dynamic_linker='NetBSD (a.out) ld.so'
15206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207
soname_spec='${libname}${release}${shared_ext}$major'
15208
dynamic_linker='NetBSD ld.elf_so'
15210
shlibpath_var=LD_LIBRARY_PATH
15211
shlibpath_overrides_runpath=yes
15212
hardcode_into_libs=yes
15217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218
shlibpath_var=LD_LIBRARY_PATH
15219
shlibpath_overrides_runpath=yes
15226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227
soname_spec='${libname}${release}${shared_ext}$major'
15228
shlibpath_var=LD_LIBRARY_PATH
15229
shlibpath_overrides_runpath=yes
15234
sys_lib_dlsearch_path_spec="/usr/lib"
15236
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15238
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15239
*) need_version=no ;;
15241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15242
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15243
shlibpath_var=LD_LIBRARY_PATH
15244
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15246
openbsd2.[89] | openbsd2.[89].*)
15247
shlibpath_overrides_runpath=no
15250
shlibpath_overrides_runpath=yes
15254
shlibpath_overrides_runpath=yes
15259
libname_spec='$name'
15262
library_names_spec='$libname${shared_ext} $libname.a'
15263
dynamic_linker='OS/2 ld.exe'
15264
shlibpath_var=LIBPATH
15267
osf3* | osf4* | osf5*)
15271
soname_spec='${libname}${release}${shared_ext}$major'
15272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273
shlibpath_var=LD_LIBRARY_PATH
15274
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15275
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287
soname_spec='${libname}${release}${shared_ext}$major'
15288
shlibpath_var=LD_LIBRARY_PATH
15289
shlibpath_overrides_runpath=yes
15290
hardcode_into_libs=yes
15291
# ldd complains unless libraries are executable
15292
postinstall_cmds='chmod +x $lib'
15297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15298
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15299
shlibpath_var=LD_LIBRARY_PATH
15300
shlibpath_overrides_runpath=yes
15301
if test "$with_gnu_ld" = yes; then
15309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310
soname_spec='${libname}${release}${shared_ext}$major'
15311
shlibpath_var=LD_LIBRARY_PATH
15312
case $host_vendor in
15314
shlibpath_overrides_runpath=no
15316
export_dynamic_flag_spec='${wl}-Blargedynsym'
15317
runpath_var=LD_RUN_PATH
15325
shlibpath_overrides_runpath=no
15326
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15332
if test -d /usr/nec ;then
15334
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15335
soname_spec='$libname${shared_ext}.$major'
15336
shlibpath_var=LD_LIBRARY_PATH
15340
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15341
version_type=freebsd-elf
15344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345
soname_spec='${libname}${release}${shared_ext}$major'
15346
shlibpath_var=LD_LIBRARY_PATH
15347
hardcode_into_libs=yes
15348
if test "$with_gnu_ld" = yes; then
15349
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15350
shlibpath_overrides_runpath=no
15352
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15353
shlibpath_overrides_runpath=yes
15356
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15360
sys_lib_dlsearch_path_spec='/usr/lib'
15365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366
soname_spec='${libname}${release}${shared_ext}$major'
15367
shlibpath_var=LD_LIBRARY_PATH
15374
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15375
$as_echo "$dynamic_linker" >&6; }
15376
test "$dynamic_linker" = no && can_build_shared=no
15378
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15379
$as_echo_n "(cached) " >&6
15381
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15384
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15385
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15386
$as_echo_n "(cached) " >&6
15388
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15391
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15393
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15394
if test "$GCC" = yes; then
15395
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15398
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15399
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15400
hardcode_action_CXX=
15401
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15402
test -n "$runpath_var_CXX" || \
15403
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15405
# We can hardcode non-existant directories.
15406
if test "$hardcode_direct_CXX" != no &&
15407
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15408
# have to relink, otherwise we might link with an installed library
15409
# when we should be linking with a yet-to-be-installed one
15410
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15411
test "$hardcode_minus_L_CXX" != no; then
15412
# Linking always hardcodes the temporary library directory.
15413
hardcode_action_CXX=relink
15415
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15416
hardcode_action_CXX=immediate
15419
# We cannot hardcode anything, or else we can only hardcode existing
15421
hardcode_action_CXX=unsupported
15423
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15424
$as_echo "$hardcode_action_CXX" >&6; }
15426
if test "$hardcode_action_CXX" = relink; then
15427
# Fast installation is not supported
15428
enable_fast_install=no
15429
elif test "$shlibpath_overrides_runpath" = yes ||
15430
test "$enable_shared" = no; then
15431
# Fast installation is not necessary
15432
enable_fast_install=needless
15436
# The else clause should only fire when bootstrapping the
15437
# libtool distribution, otherwise you forgot to ship ltmain.sh
15438
# with your package, and you will get complaints that there are
15439
# no rules to generate ltmain.sh.
15440
if test -f "$ltmain"; then
15441
# See if we are running on zsh, and set the options which allow our commands through
15442
# without removal of \ escapes.
15443
if test -n "${ZSH_VERSION+set}" ; then
15444
setopt NO_GLOB_SUBST
15446
# Now quote all the things that may contain metacharacters while being
15447
# careful not to overquote the AC_SUBSTed values. We take copies of the
15448
# variables and quote the copies for generation of the libtool script.
15449
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15451
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15452
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15453
deplibs_check_method reload_flag reload_cmds need_locks \
15454
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15455
lt_cv_sys_global_symbol_to_c_name_address \
15456
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15457
old_postinstall_cmds old_postuninstall_cmds \
15461
lt_prog_compiler_wl_CXX \
15462
lt_prog_compiler_pic_CXX \
15463
lt_prog_compiler_static_CXX \
15464
lt_prog_compiler_no_builtin_flag_CXX \
15465
export_dynamic_flag_spec_CXX \
15466
thread_safe_flag_spec_CXX \
15467
whole_archive_flag_spec_CXX \
15468
enable_shared_with_static_runtimes_CXX \
15469
old_archive_cmds_CXX \
15470
old_archive_from_new_cmds_CXX \
15471
predep_objects_CXX \
15472
postdep_objects_CXX \
15475
compiler_lib_search_path_CXX \
15476
compiler_lib_search_dirs_CXX \
15478
archive_expsym_cmds_CXX \
15479
postinstall_cmds_CXX \
15480
postuninstall_cmds_CXX \
15481
old_archive_from_expsyms_cmds_CXX \
15482
allow_undefined_flag_CXX \
15483
no_undefined_flag_CXX \
15484
export_symbols_cmds_CXX \
15485
hardcode_libdir_flag_spec_CXX \
15486
hardcode_libdir_flag_spec_ld_CXX \
15487
hardcode_libdir_separator_CXX \
15488
hardcode_automatic_CXX \
15490
module_expsym_cmds_CXX \
15491
lt_cv_prog_compiler_c_o_CXX \
15492
fix_srcfile_path_CXX \
15493
exclude_expsyms_CXX \
15494
include_expsyms_CXX; do
15497
old_archive_cmds_CXX | \
15498
old_archive_from_new_cmds_CXX | \
15499
archive_cmds_CXX | \
15500
archive_expsym_cmds_CXX | \
15501
module_cmds_CXX | \
15502
module_expsym_cmds_CXX | \
15503
old_archive_from_expsyms_cmds_CXX | \
15504
export_symbols_cmds_CXX | \
15505
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15506
postinstall_cmds | postuninstall_cmds | \
15507
old_postinstall_cmds | old_postuninstall_cmds | \
15508
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15509
# Double-quote double-evaled strings.
15510
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15513
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15519
*'\$0 --fallback-echo"')
15520
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15526
cat <<__EOF__ >> "$cfgfile"
15527
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15529
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15531
# Shell to use when invoking shell scripts.
15534
# Whether or not to build shared libraries.
15535
build_libtool_libs=$enable_shared
15537
# Whether or not to build static libraries.
15538
build_old_libs=$enable_static
15540
# Whether or not to add -lc for building shared libraries.
15541
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15543
# Whether or not to disallow shared libs when runtime libs are static
15544
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15546
# Whether or not to optimize for fast installation.
15547
fast_install=$enable_fast_install
15550
host_alias=$host_alias
15554
# The build system.
15555
build_alias=$build_alias
15559
# An echo program that does not interpret backslashes.
15564
AR_FLAGS=$lt_AR_FLAGS
15569
# LTCC compiler flags.
15570
LTCFLAGS=$lt_LTCFLAGS
15572
# A language-specific compiler.
15573
CC=$lt_compiler_CXX
15575
# Is the compiler the GNU C compiler?
15581
# The linker used to build libraries.
15584
# Whether we need hard or soft links.
15587
# A BSD-compatible nm program.
15590
# A symbol stripping program
15593
# Used to examine libraries when file_magic_cmd begins "file"
15594
MAGIC_CMD=$MAGIC_CMD
15596
# Used on cygwin: DLL creation program.
15599
# Used on cygwin: object dumper.
15602
# Used on cygwin: assembler.
15605
# The name of the directory that contains temporary libtool files.
15608
# How to create reloadable object files.
15609
reload_flag=$lt_reload_flag
15610
reload_cmds=$lt_reload_cmds
15612
# How to pass a linker flag through the compiler.
15613
wl=$lt_lt_prog_compiler_wl_CXX
15615
# Object file suffix (normally "o").
15616
objext="$ac_objext"
15618
# Old archive suffix (normally "a").
15621
# Shared library suffix (normally ".so").
15622
shrext_cmds='$shrext_cmds'
15624
# Executable file suffix (normally "").
15627
# Additional compiler flags for building library objects.
15628
pic_flag=$lt_lt_prog_compiler_pic_CXX
15631
# What is the maximum length of a command?
15632
max_cmd_len=$lt_cv_sys_max_cmd_len
15634
# Does compiler simultaneously support -c and -o options?
15635
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15637
# Must we lock files when doing compilation?
15638
need_locks=$lt_need_locks
15640
# Do we need the lib prefix for modules?
15641
need_lib_prefix=$need_lib_prefix
15643
# Do we need a version for libraries?
15644
need_version=$need_version
15646
# Whether dlopen is supported.
15647
dlopen_support=$enable_dlopen
15649
# Whether dlopen of programs is supported.
15650
dlopen_self=$enable_dlopen_self
15652
# Whether dlopen of statically linked programs is supported.
15653
dlopen_self_static=$enable_dlopen_self_static
15655
# Compiler flag to prevent dynamic linking.
15656
link_static_flag=$lt_lt_prog_compiler_static_CXX
15658
# Compiler flag to turn off builtin functions.
15659
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15661
# Compiler flag to allow reflexive dlopens.
15662
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15664
# Compiler flag to generate shared objects directly from archives.
15665
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15667
# Compiler flag to generate thread-safe objects.
15668
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15670
# Library versioning type.
15671
version_type=$version_type
15673
# Format of library name prefix.
15674
libname_spec=$lt_libname_spec
15676
# List of archive names. First name is the real one, the rest are links.
15677
# The last name is the one that the linker finds with -lNAME.
15678
library_names_spec=$lt_library_names_spec
15680
# The coded name of the library, if different from the real name.
15681
soname_spec=$lt_soname_spec
15683
# Commands used to build and install an old-style archive.
15685
old_archive_cmds=$lt_old_archive_cmds_CXX
15686
old_postinstall_cmds=$lt_old_postinstall_cmds
15687
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15689
# Create an old-style archive from a shared archive.
15690
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15692
# Create a temporary old-style archive to link instead of a shared archive.
15693
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15695
# Commands used to build and install a shared archive.
15696
archive_cmds=$lt_archive_cmds_CXX
15697
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15698
postinstall_cmds=$lt_postinstall_cmds
15699
postuninstall_cmds=$lt_postuninstall_cmds
15701
# Commands used to build a loadable module (assumed same as above if empty)
15702
module_cmds=$lt_module_cmds_CXX
15703
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15705
# Commands to strip libraries.
15706
old_striplib=$lt_old_striplib
15707
striplib=$lt_striplib
15709
# Dependencies to place before the objects being linked to create a
15711
predep_objects=$lt_predep_objects_CXX
15713
# Dependencies to place after the objects being linked to create a
15715
postdep_objects=$lt_postdep_objects_CXX
15717
# Dependencies to place before the objects being linked to create a
15719
predeps=$lt_predeps_CXX
15721
# Dependencies to place after the objects being linked to create a
15723
postdeps=$lt_postdeps_CXX
15725
# The directories searched by this compiler when creating a shared
15727
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15729
# The library search path used internally by the compiler when linking
15730
# a shared library.
15731
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15733
# Method to check whether dependent libraries are shared objects.
15734
deplibs_check_method=$lt_deplibs_check_method
15736
# Command to use when deplibs_check_method == file_magic.
15737
file_magic_cmd=$lt_file_magic_cmd
15739
# Flag that allows shared libraries with undefined symbols to be built.
15740
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15742
# Flag that forces no undefined symbols.
15743
no_undefined_flag=$lt_no_undefined_flag_CXX
15745
# Commands used to finish a libtool library installation in a directory.
15746
finish_cmds=$lt_finish_cmds
15748
# Same as above, but a single script fragment to be evaled but not shown.
15749
finish_eval=$lt_finish_eval
15751
# Take the output of nm and produce a listing of raw symbols and C names.
15752
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15754
# Transform the output of nm in a proper C declaration
15755
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15757
# Transform the output of nm in a C name address pair
15758
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15760
# This is the shared library runtime path variable.
15761
runpath_var=$runpath_var
15763
# This is the shared library path variable.
15764
shlibpath_var=$shlibpath_var
15766
# Is shlibpath searched before the hard-coded library search path?
15767
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15769
# How to hardcode a shared library path into an executable.
15770
hardcode_action=$hardcode_action_CXX
15772
# Whether we should hardcode library paths into libraries.
15773
hardcode_into_libs=$hardcode_into_libs
15775
# Flag to hardcode \$libdir into a binary during linking.
15776
# This must work even if \$libdir does not exist.
15777
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15779
# If ld is used when linking, flag to hardcode \$libdir into
15780
# a binary during linking. This must work even if \$libdir does
15782
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15784
# Whether we need a single -rpath flag with a separated argument.
15785
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15787
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15788
# resulting binary.
15789
hardcode_direct=$hardcode_direct_CXX
15791
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15792
# resulting binary.
15793
hardcode_minus_L=$hardcode_minus_L_CXX
15795
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15796
# the resulting binary.
15797
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15799
# Set to yes if building a shared library automatically hardcodes DIR into the library
15800
# and all subsequent libraries and executables linked against it.
15801
hardcode_automatic=$hardcode_automatic_CXX
15803
# Variables whose values should be saved in libtool wrapper scripts and
15804
# restored at relink time.
15805
variables_saved_for_relink="$variables_saved_for_relink"
15807
# Whether libtool must link a program against all its dependency libraries.
15808
link_all_deplibs=$link_all_deplibs_CXX
15810
# Compile-time system search path for libraries
15811
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15813
# Run-time system search path for libraries
15814
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15816
# Fix the shell variable \$srcfile for the compiler.
15817
fix_srcfile_path=$lt_fix_srcfile_path
15819
# Set to yes if exported symbols are required.
15820
always_export_symbols=$always_export_symbols_CXX
15822
# The commands to list exported symbols.
15823
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15825
# The commands to extract the exported symbol list from a shared archive.
15826
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15828
# Symbols that should not be listed in the preloaded symbols.
15829
exclude_expsyms=$lt_exclude_expsyms_CXX
15831
# Symbols that must always be exported.
15832
include_expsyms=$lt_include_expsyms_CXX
15834
# ### END LIBTOOL TAG CONFIG: $tagname
15840
# If there is no Makefile yet, we rely on a make rule to execute
15841
# `config.status --recheck' to rerun these tests and create the
15842
# libtool script then.
15843
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15844
if test -f "$ltmain_in"; then
15845
test -f Makefile && make "$ltmain"
15851
ac_cpp='$CPP $CPPFLAGS'
15852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15860
with_gnu_ldcxx=$with_gnu_ld
15861
with_gnu_ld=$lt_save_with_gnu_ld
15862
lt_cv_path_LDCXX=$lt_cv_path_LD
15863
lt_cv_path_LD=$lt_save_path_LD
15864
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15865
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15873
if test -n "$F77" && test "X$F77" != "Xno"; then
15876
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15877
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15881
archive_cmds_need_lc_F77=no
15882
allow_undefined_flag_F77=
15883
always_export_symbols_F77=no
15884
archive_expsym_cmds_F77=
15885
export_dynamic_flag_spec_F77=
15886
hardcode_direct_F77=no
15887
hardcode_libdir_flag_spec_F77=
15888
hardcode_libdir_flag_spec_ld_F77=
15889
hardcode_libdir_separator_F77=
15890
hardcode_minus_L_F77=no
15891
hardcode_automatic_F77=no
15893
module_expsym_cmds_F77=
15894
link_all_deplibs_F77=unknown
15895
old_archive_cmds_F77=$old_archive_cmds
15896
no_undefined_flag_F77=
15897
whole_archive_flag_spec_F77=
15898
enable_shared_with_static_runtimes_F77=no
15900
# Source file extension for f77 test sources.
15903
# Object file extension for compiled f77 test sources.
15907
# Code to be used in simple compile tests
15908
lt_simple_compile_test_code="\
15914
# Code to be used in simple link tests
15915
lt_simple_link_test_code="\
15920
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15922
# If no C compiler was specified, use CC.
15925
# If no C compiler flags were specified, use CFLAGS.
15926
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15928
# Allow CC to be a program name with arguments.
15932
# save warnings/boilerplate of simple test code
15933
ac_outfile=conftest.$ac_objext
15934
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15935
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15936
_lt_compiler_boilerplate=`cat conftest.err`
15939
ac_outfile=conftest.$ac_objext
15940
echo "$lt_simple_link_test_code" >conftest.$ac_ext
15941
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15942
_lt_linker_boilerplate=`cat conftest.err`
15946
# Allow CC to be a program name with arguments.
15951
for cc_temp in $compiler""; do
15953
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15954
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15959
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15962
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15963
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15964
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15965
$as_echo "$can_build_shared" >&6; }
15967
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15968
$as_echo_n "checking whether to build shared libraries... " >&6; }
15969
test "$can_build_shared" = "no" && enable_shared=no
15971
# On AIX, shared libraries and static libraries use the same namespace, and
15972
# are all built from PIC.
15975
test "$enable_shared" = yes && enable_static=no
15976
if test -n "$RANLIB"; then
15977
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15978
postinstall_cmds='$RANLIB $lib'
15982
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15983
test "$enable_shared" = yes && enable_static=no
15987
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15988
$as_echo "$enable_shared" >&6; }
15990
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15991
$as_echo_n "checking whether to build static libraries... " >&6; }
15992
# Make sure either enable_shared or enable_static is yes.
15993
test "$enable_shared" = yes || enable_static=yes
15994
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15995
$as_echo "$enable_static" >&6; }
16000
lt_prog_compiler_wl_F77=
16001
lt_prog_compiler_pic_F77=
16002
lt_prog_compiler_static_F77=
16004
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16005
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16007
if test "$GCC" = yes; then
16008
lt_prog_compiler_wl_F77='-Wl,'
16009
lt_prog_compiler_static_F77='-static'
16013
# All AIX code is PIC.
16014
if test "$host_cpu" = ia64; then
16015
# AIX 5 now supports IA64 processor
16016
lt_prog_compiler_static_F77='-Bstatic'
16021
# FIXME: we need at least 68020 code to build shared libraries, but
16022
# adding the `-m68020' flag to GCC prevents building anything better,
16024
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16027
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16028
# PIC is the default for these OSes.
16031
mingw* | cygwin* | pw32* | os2*)
16032
# This hack is so that the source file can tell whether it is being
16033
# built for inclusion in a dll (and should export symbols for example).
16034
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16035
# (--disable-auto-import) libraries
16036
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16039
darwin* | rhapsody*)
16040
# PIC is the default on this platform
16041
# Common symbols not allowed in MH_DYLIB files
16042
lt_prog_compiler_pic_F77='-fno-common'
16046
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16047
# Instead, we relocate shared libraries at runtime.
16051
# Just because we use GCC doesn't mean we suddenly get shared libraries
16052
# on systems that don't support them.
16053
lt_prog_compiler_can_build_shared_F77=no
16058
if test -d /usr/nec; then
16059
lt_prog_compiler_pic_F77=-Kconform_pic
16064
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16065
# not for PA HP-UX.
16071
lt_prog_compiler_pic_F77='-fPIC'
16077
lt_prog_compiler_pic_F77='-fPIC'
16081
# PORTME Check for flag to pass linker flags through the system compiler.
16084
lt_prog_compiler_wl_F77='-Wl,'
16085
if test "$host_cpu" = ia64; then
16086
# AIX 5 now supports IA64 processor
16087
lt_prog_compiler_static_F77='-Bstatic'
16089
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16093
# PIC is the default on this platform
16094
# Common symbols not allowed in MH_DYLIB files
16095
case $cc_basename in
16097
lt_prog_compiler_pic_F77='-qnocommon'
16098
lt_prog_compiler_wl_F77='-Wl,'
16103
mingw* | cygwin* | pw32* | os2*)
16104
# This hack is so that the source file can tell whether it is being
16105
# built for inclusion in a dll (and should export symbols for example).
16106
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16109
hpux9* | hpux10* | hpux11*)
16110
lt_prog_compiler_wl_F77='-Wl,'
16111
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16112
# not for PA HP-UX.
16118
lt_prog_compiler_pic_F77='+Z'
16121
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16122
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16125
irix5* | irix6* | nonstopux*)
16126
lt_prog_compiler_wl_F77='-Wl,'
16127
# PIC (with -KPIC) is the default.
16128
lt_prog_compiler_static_F77='-non_shared'
16132
lt_prog_compiler_pic_F77='-KPIC'
16133
lt_prog_compiler_static_F77='-Bstatic'
16136
linux* | k*bsd*-gnu)
16137
case $cc_basename in
16139
lt_prog_compiler_wl_F77='-Wl,'
16140
lt_prog_compiler_pic_F77='-KPIC'
16141
lt_prog_compiler_static_F77='-static'
16143
pgcc* | pgf77* | pgf90* | pgf95*)
16144
# Portland Group compilers (*not* the Pentium gcc compiler,
16145
# which looks to be a dead project)
16146
lt_prog_compiler_wl_F77='-Wl,'
16147
lt_prog_compiler_pic_F77='-fpic'
16148
lt_prog_compiler_static_F77='-Bstatic'
16151
lt_prog_compiler_wl_F77='-Wl,'
16152
# All Alpha code is PIC.
16153
lt_prog_compiler_static_F77='-non_shared'
16156
case `$CC -V 2>&1 | sed 5q` in
16159
lt_prog_compiler_pic_F77='-KPIC'
16160
lt_prog_compiler_static_F77='-Bstatic'
16161
lt_prog_compiler_wl_F77='-Wl,'
16164
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16165
lt_prog_compiler_pic_F77='-KPIC'
16166
lt_prog_compiler_static_F77='-Bstatic'
16167
lt_prog_compiler_wl_F77=''
16174
osf3* | osf4* | osf5*)
16175
lt_prog_compiler_wl_F77='-Wl,'
16176
# All OSF/1 code is PIC.
16177
lt_prog_compiler_static_F77='-non_shared'
16181
lt_prog_compiler_static_F77='-non_shared'
16185
lt_prog_compiler_pic_F77='-KPIC'
16186
lt_prog_compiler_static_F77='-Bstatic'
16187
case $cc_basename in
16188
f77* | f90* | f95*)
16189
lt_prog_compiler_wl_F77='-Qoption ld ';;
16191
lt_prog_compiler_wl_F77='-Wl,';;
16196
lt_prog_compiler_wl_F77='-Qoption ld '
16197
lt_prog_compiler_pic_F77='-PIC'
16198
lt_prog_compiler_static_F77='-Bstatic'
16201
sysv4 | sysv4.2uw2* | sysv4.3*)
16202
lt_prog_compiler_wl_F77='-Wl,'
16203
lt_prog_compiler_pic_F77='-KPIC'
16204
lt_prog_compiler_static_F77='-Bstatic'
16208
if test -d /usr/nec ;then
16209
lt_prog_compiler_pic_F77='-Kconform_pic'
16210
lt_prog_compiler_static_F77='-Bstatic'
16214
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16215
lt_prog_compiler_wl_F77='-Wl,'
16216
lt_prog_compiler_pic_F77='-KPIC'
16217
lt_prog_compiler_static_F77='-Bstatic'
16221
lt_prog_compiler_wl_F77='-Wl,'
16222
lt_prog_compiler_can_build_shared_F77=no
16226
lt_prog_compiler_pic_F77='-pic'
16227
lt_prog_compiler_static_F77='-Bstatic'
16231
lt_prog_compiler_can_build_shared_F77=no
16236
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16237
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
16240
# Check to make sure the PIC flag actually works.
16242
if test -n "$lt_prog_compiler_pic_F77"; then
16244
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16245
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16246
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16247
$as_echo_n "(cached) " >&6
16249
lt_cv_prog_compiler_pic_works_F77=no
16250
ac_outfile=conftest.$ac_objext
16251
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16252
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16253
# Insert the option either (1) after the last *FLAGS variable, or
16254
# (2) before a word containing "conftest.", or (3) at the end.
16255
# Note that $ac_compile itself does not contain backslashes and begins
16256
# with a dollar sign (not a hyphen), so the echo should work correctly.
16257
# The option is referenced via a variable to avoid confusing sed.
16258
lt_compile=`echo "$ac_compile" | $SED \
16259
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16260
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16261
-e 's:$: $lt_compiler_flag:'`
16262
(eval echo "\"\$as_me:16262: $lt_compile\"" >&5)
16263
(eval "$lt_compile" 2>conftest.err)
16265
cat conftest.err >&5
16266
echo "$as_me:16266: \$? = $ac_status" >&5
16267
if (exit $ac_status) && test -s "$ac_outfile"; then
16268
# The compiler can only warn and ignore the option if not recognized
16269
# So say no if there are warnings other than the usual output.
16270
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16271
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16272
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16273
lt_cv_prog_compiler_pic_works_F77=yes
16279
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16280
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16282
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16283
case $lt_prog_compiler_pic_F77 in
16285
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16288
lt_prog_compiler_pic_F77=
16289
lt_prog_compiler_can_build_shared_F77=no
16294
# For platforms which do not support PIC, -DPIC is meaningless:
16296
lt_prog_compiler_pic_F77=
16299
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16304
# Check to make sure the static flag actually works.
16306
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16307
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16308
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16309
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16310
$as_echo_n "(cached) " >&6
16312
lt_cv_prog_compiler_static_works_F77=no
16313
save_LDFLAGS="$LDFLAGS"
16314
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16315
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16316
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16317
# The linker can only warn and ignore the option if not recognized
16318
# So say no if there are warnings
16319
if test -s conftest.err; then
16320
# Append any errors to the config.log.
16321
cat conftest.err 1>&5
16322
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16323
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16324
if diff conftest.exp conftest.er2 >/dev/null; then
16325
lt_cv_prog_compiler_static_works_F77=yes
16328
lt_cv_prog_compiler_static_works_F77=yes
16332
LDFLAGS="$save_LDFLAGS"
16335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16336
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16338
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16341
lt_prog_compiler_static_F77=
16345
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16346
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16347
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16348
$as_echo_n "(cached) " >&6
16350
lt_cv_prog_compiler_c_o_F77=no
16351
$rm -r conftest 2>/dev/null
16355
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357
lt_compiler_flag="-o out/conftest2.$ac_objext"
16358
# Insert the option either (1) after the last *FLAGS variable, or
16359
# (2) before a word containing "conftest.", or (3) at the end.
16360
# Note that $ac_compile itself does not contain backslashes and begins
16361
# with a dollar sign (not a hyphen), so the echo should work correctly.
16362
lt_compile=`echo "$ac_compile" | $SED \
16363
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16364
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16365
-e 's:$: $lt_compiler_flag:'`
16366
(eval echo "\"\$as_me:16366: $lt_compile\"" >&5)
16367
(eval "$lt_compile" 2>out/conftest.err)
16369
cat out/conftest.err >&5
16370
echo "$as_me:16370: \$? = $ac_status" >&5
16371
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16373
# The compiler can only warn and ignore the option if not recognized
16374
# So say no if there are warnings
16375
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16376
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16377
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16378
lt_cv_prog_compiler_c_o_F77=yes
16383
# SGI C++ compiler will create directory out/ii_files/ for
16384
# template instantiation
16385
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16386
$rm out/* && rmdir out
16392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16393
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16396
hard_links="nottested"
16397
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16398
# do not overwrite the value of need_locks provided by the user
16399
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16400
$as_echo_n "checking if we can lock with hard links... " >&6; }
16403
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16405
ln conftest.a conftest.b 2>&5 || hard_links=no
16406
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16407
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16408
$as_echo "$hard_links" >&6; }
16409
if test "$hard_links" = no; then
16410
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16411
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16418
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16419
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16422
allow_undefined_flag_F77=
16423
enable_shared_with_static_runtimes_F77=no
16425
archive_expsym_cmds_F77=
16426
old_archive_From_new_cmds_F77=
16427
old_archive_from_expsyms_cmds_F77=
16428
export_dynamic_flag_spec_F77=
16429
whole_archive_flag_spec_F77=
16430
thread_safe_flag_spec_F77=
16431
hardcode_libdir_flag_spec_F77=
16432
hardcode_libdir_flag_spec_ld_F77=
16433
hardcode_libdir_separator_F77=
16434
hardcode_direct_F77=no
16435
hardcode_minus_L_F77=no
16436
hardcode_shlibpath_var_F77=unsupported
16437
link_all_deplibs_F77=unknown
16438
hardcode_automatic_F77=no
16440
module_expsym_cmds_F77=
16441
always_export_symbols_F77=no
16442
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16443
# include_expsyms should be a list of space-separated symbols to be *always*
16444
# included in the symbol list
16445
include_expsyms_F77=
16446
# exclude_expsyms can be an extended regexp of symbols to exclude
16447
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16448
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16449
# as well as any symbol that contains `d'.
16450
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16451
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16452
# platforms (ab)use it in PIC code, but their linkers get confused if
16453
# the symbol is explicitly referenced. Since portable code cannot
16454
# rely on this symbol name, it's probably fine to never include it in
16455
# preloaded symbol tables.
16456
# Exclude shared library initialization/finalization symbols.
16457
extract_expsyms_cmds=
16458
# Just being paranoid about ensuring that cc_basename is set.
16459
for cc_temp in $compiler""; do
16461
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16462
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16467
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16470
cygwin* | mingw* | pw32*)
16471
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16472
# When not using gcc, we currently assume that we are using
16473
# Microsoft Visual C++.
16474
if test "$GCC" != yes; then
16479
# we just hope/assume this is gcc and not c89 (= MSVC++)
16488
if test "$with_gnu_ld" = yes; then
16489
# If archive_cmds runs LD, not CC, wlarc should be empty
16492
# Set some defaults for GNU ld with shared library support. These
16493
# are reset later if shared libraries are not supported. Putting them
16494
# here allows them to be overridden if necessary.
16495
runpath_var=LD_RUN_PATH
16496
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16497
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16498
# ancient GNU ld didn't support --whole-archive et. al.
16499
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16500
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16502
whole_archive_flag_spec_F77=
16504
supports_anon_versioning=no
16505
case `$LD -v 2>/dev/null` in
16506
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16507
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16508
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16509
*\ 2.11.*) ;; # other 2.11 versions
16510
*) supports_anon_versioning=yes ;;
16513
# See if GNU ld supports shared libraries.
16516
# On AIX/PPC, the GNU linker is very broken
16517
if test "$host_cpu" != ia64; then
16521
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16522
*** to be unable to reliably create shared libraries on AIX.
16523
*** Therefore, libtool is disabling shared libraries support. If you
16524
*** really care for shared libraries, you may want to modify your PATH
16525
*** so that a non-GNU linker is found, and then restart.
16532
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)'
16533
hardcode_libdir_flag_spec_F77='-L$libdir'
16534
hardcode_minus_L_F77=yes
16536
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16537
# that the semantics of dynamic libraries on AmigaOS, at least up
16538
# to version 4, is to share data among multiple programs linked
16539
# with the same dynamic library. Since this doesn't match the
16540
# behavior of shared libraries on other platforms, we can't use
16546
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16547
allow_undefined_flag_F77=unsupported
16548
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16549
# support --undefined. This deserves some investigation. FIXME
16550
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16556
cygwin* | mingw* | pw32*)
16557
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16558
# as there is no search path for DLLs.
16559
hardcode_libdir_flag_spec_F77='-L$libdir'
16560
allow_undefined_flag_F77=unsupported
16561
always_export_symbols_F77=no
16562
enable_shared_with_static_runtimes_F77=yes
16563
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16565
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16566
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16567
# If the export-symbols file already is a .def file (1st line
16568
# is EXPORTS), use it as is; otherwise, prepend...
16569
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16570
cp $export_symbols $output_objdir/$soname.def;
16572
echo EXPORTS > $output_objdir/$soname.def;
16573
cat $export_symbols >> $output_objdir/$soname.def;
16575
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16582
hardcode_direct_F77=no
16583
hardcode_shlibpath_var_F77=no
16584
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16585
export_dynamic_flag_spec_F77='${wl}-E'
16586
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16587
# Instead, shared libraries are loaded at an image base (0x10000000 by
16588
# default) and relocated if they conflict, which is a slow very memory
16589
# consuming and fragmenting process. To avoid this, we pick a random,
16590
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16591
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16592
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'
16593
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'
16596
gnu* | linux* | k*bsd*-gnu)
16597
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16599
case $cc_basename,$host_cpu in
16600
pgcc*) # Portland Group C compiler
16601
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'
16602
tmp_addflag=' $pic_flag'
16604
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16605
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'
16606
tmp_addflag=' $pic_flag -Mnomain' ;;
16607
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16608
tmp_addflag=' -i_dynamic' ;;
16609
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16610
tmp_addflag=' -i_dynamic -nofor_main' ;;
16611
ifc* | ifort*) # Intel Fortran compiler
16612
tmp_addflag=' -nofor_main' ;;
16614
case `$CC -V 2>&1 | sed 5q` in
16615
*Sun\ C*) # Sun C 5.9
16616
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'
16617
tmp_sharedflag='-G' ;;
16618
*Sun\ F*) # Sun Fortran 8.3
16619
tmp_sharedflag='-G' ;;
16621
tmp_sharedflag='-shared' ;;
16623
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16625
if test $supports_anon_versioning = yes; then
16626
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16627
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16628
$echo "local: *; };" >> $output_objdir/$libname.ver~
16629
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16637
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16638
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16641
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16642
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16647
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16651
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16652
*** create shared libraries on Solaris systems. Therefore, libtool
16653
*** is disabling shared libraries support. We urge you to upgrade GNU
16654
*** binutils to release 2.9.1 or newer. Another option is to modify
16655
*** your PATH or compiler configuration so that the native linker is
16656
*** used, and then restart.
16659
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16660
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16661
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16667
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16668
case `$LD -v 2>&1` in
16669
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16673
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16674
*** reliably create shared libraries on SCO systems. Therefore, libtool
16675
*** is disabling shared libraries support. We urge you to upgrade GNU
16676
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16677
*** your PATH or compiler configuration so that the native linker is
16678
*** used, and then restart.
16683
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16684
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16685
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16686
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16695
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16697
hardcode_direct_F77=yes
16698
hardcode_shlibpath_var_F77=no
16702
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16703
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16704
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16711
if test "$ld_shlibs_F77" = no; then
16713
hardcode_libdir_flag_spec_F77=
16714
export_dynamic_flag_spec_F77=
16715
whole_archive_flag_spec_F77=
16718
# PORTME fill in a description of your system's linker (not GNU ld)
16721
allow_undefined_flag_F77=unsupported
16722
always_export_symbols_F77=yes
16723
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'
16724
# Note: this linker hardcodes the directories in LIBPATH if there
16725
# are no directories specified by -L.
16726
hardcode_minus_L_F77=yes
16727
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16728
# Neither direct hardcoding nor static linking is supported with a
16730
hardcode_direct_F77=unsupported
16735
if test "$host_cpu" = ia64; then
16736
# On IA64, the linker does run time linking by default, so we don't
16737
# have to do anything special.
16738
aix_use_runtimelinking=no
16739
exp_sym_flag='-Bexport'
16742
# If we're using GNU nm, then we don't want the "-C" option.
16743
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16744
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16745
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'
16747
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'
16749
aix_use_runtimelinking=no
16751
# Test if we are trying to use run time linking or normal
16752
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16753
# need to do runtime linking.
16754
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16755
for ld_flag in $LDFLAGS; do
16756
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16757
aix_use_runtimelinking=yes
16764
exp_sym_flag='-bexport'
16765
no_entry_flag='-bnoentry'
16768
# When large executables or shared objects are built, AIX ld can
16769
# have problems creating the table of contents. If linking a library
16770
# or program results in "error TOC overflow" add -mminimal-toc to
16771
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16772
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16774
archive_cmds_F77=''
16775
hardcode_direct_F77=yes
16776
hardcode_libdir_separator_F77=':'
16777
link_all_deplibs_F77=yes
16779
if test "$GCC" = yes; then
16780
case $host_os in aix4.[012]|aix4.[012].*)
16781
# We only want to do this on AIX 4.2 and lower, the check
16782
# below for broken collect2 doesn't work under 4.3+
16783
collect2name=`${CC} -print-prog-name=collect2`
16784
if test -f "$collect2name" && \
16785
strings "$collect2name" | grep resolve_lib_name >/dev/null
16787
# We have reworked collect2
16790
# We have old collect2
16791
hardcode_direct_F77=unsupported
16792
# It fails to find uninstalled libraries when the uninstalled
16793
# path is not listed in the libpath. Setting hardcode_minus_L
16794
# to unsupported forces relinking
16795
hardcode_minus_L_F77=yes
16796
hardcode_libdir_flag_spec_F77='-L$libdir'
16797
hardcode_libdir_separator_F77=
16801
shared_flag='-shared'
16802
if test "$aix_use_runtimelinking" = yes; then
16803
shared_flag="$shared_flag "'${wl}-G'
16807
if test "$host_cpu" = ia64; then
16808
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16809
# chokes on -Wl,-G. The following line is correct:
16812
if test "$aix_use_runtimelinking" = yes; then
16813
shared_flag='${wl}-G'
16815
shared_flag='${wl}-bM:SRE'
16820
# It seems that -bexpall does not export symbols beginning with
16821
# underscore (_), so it is better to generate a list of symbols to export.
16822
always_export_symbols_F77=yes
16823
if test "$aix_use_runtimelinking" = yes; then
16824
# Warning - without using the other runtime loading flags (-brtl),
16825
# -berok will link without error, but may produce a broken library.
16826
allow_undefined_flag_F77='-berok'
16827
# Determine the default libpath from the value encoded in an empty executable.
16828
cat >conftest.$ac_ext <<_ACEOF
16833
rm -f conftest.$ac_objext conftest$ac_exeext
16834
if { (ac_try="$ac_link"
16835
case "(($ac_try" in
16836
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837
*) ac_try_echo=$ac_try;;
16839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16840
$as_echo "$ac_try_echo") >&5
16841
(eval "$ac_link") 2>conftest.er1
16843
grep -v '^ *+' conftest.er1 >conftest.err
16845
cat conftest.err >&5
16846
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847
(exit $ac_status); } && {
16848
test -z "$ac_f77_werror_flag" ||
16849
test ! -s conftest.err
16850
} && test -s conftest$ac_exeext && {
16851
test "$cross_compiling" = yes ||
16852
$as_test_x conftest$ac_exeext
16855
lt_aix_libpath_sed='
16856
/Import File Strings/,/^$/ {
16862
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16863
# Check for a 64-bit object if we didn't find anything.
16864
if test -z "$aix_libpath"; then
16865
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16868
$as_echo "$as_me: failed program was:" >&5
16869
sed 's/^/| /' conftest.$ac_ext >&5
16874
rm -rf conftest.dSYM
16875
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16876
conftest$ac_exeext conftest.$ac_ext
16877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16879
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16880
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"
16882
if test "$host_cpu" = ia64; then
16883
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16884
allow_undefined_flag_F77="-z nodefs"
16885
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"
16887
# Determine the default libpath from the value encoded in an empty executable.
16888
cat >conftest.$ac_ext <<_ACEOF
16893
rm -f conftest.$ac_objext conftest$ac_exeext
16894
if { (ac_try="$ac_link"
16895
case "(($ac_try" in
16896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897
*) ac_try_echo=$ac_try;;
16899
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900
$as_echo "$ac_try_echo") >&5
16901
(eval "$ac_link") 2>conftest.er1
16903
grep -v '^ *+' conftest.er1 >conftest.err
16905
cat conftest.err >&5
16906
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907
(exit $ac_status); } && {
16908
test -z "$ac_f77_werror_flag" ||
16909
test ! -s conftest.err
16910
} && test -s conftest$ac_exeext && {
16911
test "$cross_compiling" = yes ||
16912
$as_test_x conftest$ac_exeext
16915
lt_aix_libpath_sed='
16916
/Import File Strings/,/^$/ {
16922
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16923
# Check for a 64-bit object if we didn't find anything.
16924
if test -z "$aix_libpath"; then
16925
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16928
$as_echo "$as_me: failed program was:" >&5
16929
sed 's/^/| /' conftest.$ac_ext >&5
16934
rm -rf conftest.dSYM
16935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16936
conftest$ac_exeext conftest.$ac_ext
16937
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16939
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16940
# Warning - without using the other run time loading flags,
16941
# -berok will link without error, but may produce a broken library.
16942
no_undefined_flag_F77=' ${wl}-bernotok'
16943
allow_undefined_flag_F77=' ${wl}-berok'
16944
# Exported symbols can be pulled into shared objects from archives
16945
whole_archive_flag_spec_F77='$convenience'
16946
archive_cmds_need_lc_F77=yes
16947
# This is similar to how AIX traditionally builds its shared libraries.
16948
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'
16954
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)'
16955
hardcode_libdir_flag_spec_F77='-L$libdir'
16956
hardcode_minus_L_F77=yes
16957
# see comment about different semantics on the GNU ld section
16962
export_dynamic_flag_spec_F77=-rdynamic
16965
cygwin* | mingw* | pw32*)
16966
# When not using gcc, we currently assume that we are using
16967
# Microsoft Visual C++.
16968
# hardcode_libdir_flag_spec is actually meaningless, as there is
16969
# no search path for DLLs.
16970
hardcode_libdir_flag_spec_F77=' '
16971
allow_undefined_flag_F77=unsupported
16972
# Tell ltmain to make .lib files, not .a files.
16974
# Tell ltmain to make .dll files, not .so files.
16976
# FIXME: Setting linknames here is a bad hack.
16977
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16978
# The linker will automatically build a .lib file if we build a DLL.
16979
old_archive_From_new_cmds_F77='true'
16980
# FIXME: Should let the user specify the lib program.
16981
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16982
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16983
enable_shared_with_static_runtimes_F77=yes
16986
darwin* | rhapsody*)
16988
rhapsody* | darwin1.[012])
16989
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16992
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16993
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16995
case ${MACOSX_DEPLOYMENT_TARGET} in
16997
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17000
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17006
archive_cmds_need_lc_F77=no
17007
hardcode_direct_F77=no
17008
hardcode_automatic_F77=yes
17009
hardcode_shlibpath_var_F77=unsupported
17010
whole_archive_flag_spec_F77=''
17011
link_all_deplibs_F77=yes
17012
if test "$GCC" = yes ; then
17013
output_verbose_link_cmd='echo'
17014
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}"
17015
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17016
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}"
17017
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}"
17019
case $cc_basename in
17021
output_verbose_link_cmd='echo'
17022
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17023
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17024
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17025
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}'
17026
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}'
17036
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17037
hardcode_libdir_flag_spec_F77='-L$libdir'
17038
hardcode_shlibpath_var_F77=no
17045
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17046
# support. Future versions do this automatically, but an explicit c++rt0.o
17047
# does not break anything, and helps significantly (at the cost of a little
17050
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17051
hardcode_libdir_flag_spec_F77='-R$libdir'
17052
hardcode_direct_F77=yes
17053
hardcode_shlibpath_var_F77=no
17056
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17058
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17059
hardcode_direct_F77=yes
17060
hardcode_minus_L_F77=yes
17061
hardcode_shlibpath_var_F77=no
17064
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17065
freebsd* | dragonfly*)
17066
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17067
hardcode_libdir_flag_spec_F77='-R$libdir'
17068
hardcode_direct_F77=yes
17069
hardcode_shlibpath_var_F77=no
17073
if test "$GCC" = yes; then
17074
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'
17076
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'
17078
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17079
hardcode_libdir_separator_F77=:
17080
hardcode_direct_F77=yes
17082
# hardcode_minus_L: Not really in the search PATH,
17083
# but as the default location of the library.
17084
hardcode_minus_L_F77=yes
17085
export_dynamic_flag_spec_F77='${wl}-E'
17089
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17090
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17092
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17094
if test "$with_gnu_ld" = no; then
17095
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17096
hardcode_libdir_separator_F77=:
17098
hardcode_direct_F77=yes
17099
export_dynamic_flag_spec_F77='${wl}-E'
17101
# hardcode_minus_L: Not really in the search PATH,
17102
# but as the default location of the library.
17103
hardcode_minus_L_F77=yes
17108
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17111
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17114
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17117
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17123
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17126
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17129
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17133
if test "$with_gnu_ld" = no; then
17134
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17135
hardcode_libdir_separator_F77=:
17139
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17140
hardcode_direct_F77=no
17141
hardcode_shlibpath_var_F77=no
17144
hardcode_direct_F77=yes
17145
export_dynamic_flag_spec_F77='${wl}-E'
17147
# hardcode_minus_L: Not really in the search PATH,
17148
# but as the default location of the library.
17149
hardcode_minus_L_F77=yes
17155
irix5* | irix6* | nonstopux*)
17156
if test "$GCC" = yes; then
17157
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'
17159
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'
17160
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17162
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17163
hardcode_libdir_separator_F77=:
17164
link_all_deplibs_F77=yes
17168
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17169
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17171
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17173
hardcode_libdir_flag_spec_F77='-R$libdir'
17174
hardcode_direct_F77=yes
17175
hardcode_shlibpath_var_F77=no
17179
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17180
hardcode_direct_F77=yes
17181
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17182
hardcode_libdir_separator_F77=:
17183
hardcode_shlibpath_var_F77=no
17187
if test -f /usr/libexec/ld.so; then
17188
hardcode_direct_F77=yes
17189
hardcode_shlibpath_var_F77=no
17190
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17191
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17192
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17193
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17194
export_dynamic_flag_spec_F77='${wl}-E'
17197
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17198
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17199
hardcode_libdir_flag_spec_F77='-R$libdir'
17202
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17203
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17213
hardcode_libdir_flag_spec_F77='-L$libdir'
17214
hardcode_minus_L_F77=yes
17215
allow_undefined_flag_F77=unsupported
17216
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'
17217
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17221
if test "$GCC" = yes; then
17222
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17223
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'
17225
allow_undefined_flag_F77=' -expect_unresolved \*'
17226
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'
17228
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17229
hardcode_libdir_separator_F77=:
17232
osf4* | osf5*) # as osf3* with the addition of -msym flag
17233
if test "$GCC" = yes; then
17234
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17235
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'
17236
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17238
allow_undefined_flag_F77=' -expect_unresolved \*'
17239
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'
17240
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~
17241
$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'
17243
# Both c and cxx compiler support -rpath directly
17244
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17246
hardcode_libdir_separator_F77=:
17250
no_undefined_flag_F77=' -z text'
17251
if test "$GCC" = yes; then
17253
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17254
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17255
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17258
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17260
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17262
hardcode_libdir_flag_spec_F77='-R$libdir'
17263
hardcode_shlibpath_var_F77=no
17265
solaris2.[0-5] | solaris2.[0-5].*) ;;
17267
# The compiler driver will combine and reorder linker options,
17268
# but understands `-z linker_flag'. GCC discards it without `$wl',
17269
# but is careful enough not to reorder.
17270
# Supported since Solaris 2.6 (maybe 2.5.1?)
17271
if test "$GCC" = yes; then
17272
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17274
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17278
link_all_deplibs_F77=yes
17282
if test "x$host_vendor" = xsequent; then
17283
# Use $CC to link under sequent, because it throws in some extra .o
17284
# files that make .init and .fini sections work.
17285
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17287
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17289
hardcode_libdir_flag_spec_F77='-L$libdir'
17290
hardcode_direct_F77=yes
17291
hardcode_minus_L_F77=yes
17292
hardcode_shlibpath_var_F77=no
17296
case $host_vendor in
17298
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299
hardcode_direct_F77=yes # is this really true???
17302
## LD is ld it makes a PLAMLIB
17303
## CC just makes a GrossModule.
17304
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17305
reload_cmds_F77='$CC -r -o $output$reload_objs'
17306
hardcode_direct_F77=no
17309
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17310
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17313
runpath_var='LD_RUN_PATH'
17314
hardcode_shlibpath_var_F77=no
17318
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319
hardcode_shlibpath_var_F77=no
17320
export_dynamic_flag_spec_F77='-Bexport'
17324
if test -d /usr/nec; then
17325
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17326
hardcode_shlibpath_var_F77=no
17327
runpath_var=LD_RUN_PATH
17328
hardcode_runpath_var=yes
17333
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17334
no_undefined_flag_F77='${wl}-z,text'
17335
archive_cmds_need_lc_F77=no
17336
hardcode_shlibpath_var_F77=no
17337
runpath_var='LD_RUN_PATH'
17339
if test "$GCC" = yes; then
17340
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17341
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348
sysv5* | sco3.2v5* | sco5v6*)
17349
# Note: We can NOT use -z defs as we might desire, because we do not
17350
# link with -lc, and that would cause any symbols used from libc to
17351
# always be unresolved, which means just about no library would
17352
# ever link correctly. If we're not using GNU ld we use -z text
17353
# though, which does catch some bad symbols but isn't as heavy-handed
17355
no_undefined_flag_F77='${wl}-z,text'
17356
allow_undefined_flag_F77='${wl}-z,nodefs'
17357
archive_cmds_need_lc_F77=no
17358
hardcode_shlibpath_var_F77=no
17359
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17360
hardcode_libdir_separator_F77=':'
17361
link_all_deplibs_F77=yes
17362
export_dynamic_flag_spec_F77='${wl}-Bexport'
17363
runpath_var='LD_RUN_PATH'
17365
if test "$GCC" = yes; then
17366
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17367
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17369
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17370
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17375
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376
hardcode_libdir_flag_spec_F77='-L$libdir'
17377
hardcode_shlibpath_var_F77=no
17386
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17387
$as_echo "$ld_shlibs_F77" >&6; }
17388
test "$ld_shlibs_F77" = no && can_build_shared=no
17391
# Do we need to explicitly link libc?
17393
case "x$archive_cmds_need_lc_F77" in
17395
# Assume -lc should be added
17396
archive_cmds_need_lc_F77=yes
17398
if test "$enable_shared" = yes && test "$GCC" = yes; then
17399
case $archive_cmds_F77 in
17401
# FIXME: we may have to deal with multi-command sequences.
17404
# Test whether the compiler implicitly links with -lc since on some
17405
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17406
# to ld, don't add -lc before -lgcc.
17407
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17408
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17410
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413
(eval $ac_compile) 2>&5
17415
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416
(exit $ac_status); } 2>conftest.err; then
17419
libobjs=conftest.$ac_objext
17421
wl=$lt_prog_compiler_wl_F77
17422
pic_flag=$lt_prog_compiler_pic_F77
17428
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17429
allow_undefined_flag_F77=
17430
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17431
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17433
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434
(exit $ac_status); }
17436
archive_cmds_need_lc_F77=no
17438
archive_cmds_need_lc_F77=yes
17440
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17442
cat conftest.err 1>&5
17445
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17446
$as_echo "$archive_cmds_need_lc_F77" >&6; }
17453
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17454
$as_echo_n "checking dynamic linker characteristics... " >&6; }
17455
library_names_spec=
17456
libname_spec='lib$name'
17460
postuninstall_cmds=
17464
shlibpath_overrides_runpath=unknown
17466
dynamic_linker="$host_os ld.so"
17467
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17469
need_lib_prefix=unknown
17470
hardcode_into_libs=no
17472
# when you set need_version to no, make sure it does not cause -set_version
17473
# flags to be left without arguments
17474
need_version=unknown
17479
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17480
shlibpath_var=LIBPATH
17482
# AIX 3 has no versioning support, so we append a major version to the name.
17483
soname_spec='${libname}${release}${shared_ext}$major'
17490
hardcode_into_libs=yes
17491
if test "$host_cpu" = ia64; then
17492
# AIX 5 supports IA64
17493
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17494
shlibpath_var=LD_LIBRARY_PATH
17496
# With GCC up to 2.95.x, collect2 would create an import file
17497
# for dependence libraries. The import file would start with
17498
# the line `#! .'. This would cause the generated library to
17499
# depend on `.', always an invalid library. This was fixed in
17500
# development snapshots of GCC prior to 3.0.
17502
aix4 | aix4.[01] | aix4.[01].*)
17503
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17505
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17508
can_build_shared=no
17512
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17513
# soname into executable. Probably we can add versioning support to
17514
# collect2, so additional links can be useful in future.
17515
if test "$aix_use_runtimelinking" = yes; then
17516
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17517
# instead of lib<name>.a to let people know that these are not
17518
# typical AIX shared libraries.
17519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521
# We preserve .a as extension for shared libraries through AIX4.2
17522
# and later when we are not doing run time linking.
17523
library_names_spec='${libname}${release}.a $libname.a'
17524
soname_spec='${libname}${release}${shared_ext}$major'
17526
shlibpath_var=LIBPATH
17531
library_names_spec='$libname.ixlibrary $libname.a'
17532
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17533
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'
17537
library_names_spec='${libname}${shared_ext}'
17538
dynamic_linker="$host_os ld.so"
17539
shlibpath_var=LIBRARY_PATH
17545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546
soname_spec='${libname}${release}${shared_ext}$major'
17547
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17548
shlibpath_var=LD_LIBRARY_PATH
17549
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17550
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17551
# the default ld.so.conf also contains /usr/contrib/lib and
17552
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17553
# libtool to hard-code these into programs
17556
cygwin* | mingw* | pw32*)
17557
version_type=windows
17562
case $GCC,$host_os in
17563
yes,cygwin* | yes,mingw* | yes,pw32*)
17564
library_names_spec='$libname.dll.a'
17565
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17566
postinstall_cmds='base_file=`basename \${file}`~
17567
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17568
dldir=$destdir/`dirname \$dlpath`~
17569
test -d \$dldir || mkdir -p \$dldir~
17570
$install_prog $dir/$dlname \$dldir/$dlname~
17571
chmod a+x \$dldir/$dlname'
17572
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17573
dlpath=$dir/\$dldll~
17575
shlibpath_overrides_runpath=yes
17579
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17580
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17581
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17584
# MinGW DLLs use traditional 'lib' prefix
17585
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17586
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17587
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17588
# It is most probably a Windows format PATH printed by
17589
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17590
# path with ; separators, and with drive letters. We can handle the
17591
# drive letters (cygwin fileutils understands them), so leave them,
17592
# especially as we might pass files found there to a mingw objdump,
17593
# which wouldn't understand a cygwinified path. Ahh.
17594
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17596
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17600
# pw32 DLLs use 'pw' prefix rather than 'lib'
17601
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17610
dynamic_linker='Win32 ld.exe'
17611
# FIXME: first we should search . and the directory the executable is in
17615
darwin* | rhapsody*)
17616
dynamic_linker="$host_os dyld"
17617
version_type=darwin
17620
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17621
soname_spec='${libname}${release}${major}$shared_ext'
17622
shlibpath_overrides_runpath=yes
17623
shlibpath_var=DYLD_LIBRARY_PATH
17624
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17626
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17634
soname_spec='${libname}${release}${shared_ext}$major'
17635
shlibpath_var=LD_LIBRARY_PATH
17642
freebsd* | dragonfly*)
17643
# DragonFly does not have aout. When/if they implement a new
17644
# versioning mechanism, adjust this.
17645
if test -x /usr/bin/objformat; then
17646
objformat=`/usr/bin/objformat`
17649
freebsd[123]*) objformat=aout ;;
17650
*) objformat=elf ;;
17653
version_type=freebsd-$objformat
17654
case $version_type in
17656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17661
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17665
shlibpath_var=LD_LIBRARY_PATH
17668
shlibpath_overrides_runpath=yes
17670
freebsd3.[01]* | freebsdelf3.[01]*)
17671
shlibpath_overrides_runpath=yes
17672
hardcode_into_libs=yes
17674
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17675
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17676
shlibpath_overrides_runpath=no
17677
hardcode_into_libs=yes
17679
*) # from 4.6 on, and DragonFly
17680
shlibpath_overrides_runpath=yes
17681
hardcode_into_libs=yes
17690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17691
soname_spec='${libname}${release}${shared_ext}$major'
17692
shlibpath_var=LD_LIBRARY_PATH
17693
hardcode_into_libs=yes
17696
hpux9* | hpux10* | hpux11*)
17697
# Give a soname corresponding to the major version so that dld.sl refuses to
17698
# link against other versions.
17705
hardcode_into_libs=yes
17706
dynamic_linker="$host_os dld.so"
17707
shlibpath_var=LD_LIBRARY_PATH
17708
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710
soname_spec='${libname}${release}${shared_ext}$major'
17711
if test "X$HPUX_IA64_MODE" = X32; then
17712
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17714
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17716
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17720
hardcode_into_libs=yes
17721
dynamic_linker="$host_os dld.sl"
17722
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17723
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17725
soname_spec='${libname}${release}${shared_ext}$major'
17726
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17727
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17731
dynamic_linker="$host_os dld.sl"
17732
shlibpath_var=SHLIB_PATH
17733
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735
soname_spec='${libname}${release}${shared_ext}$major'
17738
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17739
postinstall_cmds='chmod 555 $lib'
17746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17747
soname_spec='${libname}${release}${shared_ext}$major'
17748
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17749
shlibpath_var=LD_LIBRARY_PATH
17750
shlibpath_overrides_runpath=no
17751
hardcode_into_libs=yes
17754
irix5* | irix6* | nonstopux*)
17756
nonstopux*) version_type=nonstopux ;;
17758
if test "$lt_cv_prog_gnu_ld" = yes; then
17766
soname_spec='${libname}${release}${shared_ext}$major'
17767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17769
irix5* | nonstopux*)
17770
libsuff= shlibsuff=
17773
case $LD in # libtool.m4 will add one of these switches to LD
17774
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17775
libsuff= shlibsuff= libmagic=32-bit;;
17776
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17777
libsuff=32 shlibsuff=N32 libmagic=N32;;
17778
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17779
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17780
*) libsuff= shlibsuff= libmagic=never-match;;
17784
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17785
shlibpath_overrides_runpath=no
17786
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17787
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17788
hardcode_into_libs=yes
17791
# No shared lib support for Linux oldld, aout, or coff.
17792
linux*oldld* | linux*aout* | linux*coff*)
17796
# This must be Linux ELF.
17797
linux* | k*bsd*-gnu)
17801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802
soname_spec='${libname}${release}${shared_ext}$major'
17803
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17804
shlibpath_var=LD_LIBRARY_PATH
17805
shlibpath_overrides_runpath=no
17806
# This implies no fast_install, which is unacceptable.
17807
# Some rework will be needed to allow for fast_install
17808
# before this can be enabled.
17809
hardcode_into_libs=yes
17810
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17811
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17813
# Append ld.so.conf contents to the search path
17814
if test -f /etc/ld.so.conf; then
17815
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' ' '`
17816
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17819
# We used to test for /lib/ld.so.1 and disable shared libraries on
17820
# powerpc, because MkLinux only supported shared libraries with the
17821
# GNU dynamic linker. Since this was broken with cross compilers,
17822
# most powerpc-linux boxes support dynamic linking these days and
17823
# people can always --disable-shared, the test was removed, and we
17824
# assume the GNU/Linux dynamic linker is in use.
17825
dynamic_linker='GNU/Linux ld.so'
17832
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17834
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17835
dynamic_linker='NetBSD (a.out) ld.so'
17837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17838
soname_spec='${libname}${release}${shared_ext}$major'
17839
dynamic_linker='NetBSD ld.elf_so'
17841
shlibpath_var=LD_LIBRARY_PATH
17842
shlibpath_overrides_runpath=yes
17843
hardcode_into_libs=yes
17848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849
shlibpath_var=LD_LIBRARY_PATH
17850
shlibpath_overrides_runpath=yes
17857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858
soname_spec='${libname}${release}${shared_ext}$major'
17859
shlibpath_var=LD_LIBRARY_PATH
17860
shlibpath_overrides_runpath=yes
17865
sys_lib_dlsearch_path_spec="/usr/lib"
17867
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17869
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17870
*) need_version=no ;;
17872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17873
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17874
shlibpath_var=LD_LIBRARY_PATH
17875
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17877
openbsd2.[89] | openbsd2.[89].*)
17878
shlibpath_overrides_runpath=no
17881
shlibpath_overrides_runpath=yes
17885
shlibpath_overrides_runpath=yes
17890
libname_spec='$name'
17893
library_names_spec='$libname${shared_ext} $libname.a'
17894
dynamic_linker='OS/2 ld.exe'
17895
shlibpath_var=LIBPATH
17898
osf3* | osf4* | osf5*)
17902
soname_spec='${libname}${release}${shared_ext}$major'
17903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17904
shlibpath_var=LD_LIBRARY_PATH
17905
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17906
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918
soname_spec='${libname}${release}${shared_ext}$major'
17919
shlibpath_var=LD_LIBRARY_PATH
17920
shlibpath_overrides_runpath=yes
17921
hardcode_into_libs=yes
17922
# ldd complains unless libraries are executable
17923
postinstall_cmds='chmod +x $lib'
17928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17929
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17930
shlibpath_var=LD_LIBRARY_PATH
17931
shlibpath_overrides_runpath=yes
17932
if test "$with_gnu_ld" = yes; then
17940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941
soname_spec='${libname}${release}${shared_ext}$major'
17942
shlibpath_var=LD_LIBRARY_PATH
17943
case $host_vendor in
17945
shlibpath_overrides_runpath=no
17947
export_dynamic_flag_spec='${wl}-Blargedynsym'
17948
runpath_var=LD_RUN_PATH
17956
shlibpath_overrides_runpath=no
17957
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17963
if test -d /usr/nec ;then
17965
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17966
soname_spec='$libname${shared_ext}.$major'
17967
shlibpath_var=LD_LIBRARY_PATH
17971
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17972
version_type=freebsd-elf
17975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17976
soname_spec='${libname}${release}${shared_ext}$major'
17977
shlibpath_var=LD_LIBRARY_PATH
17978
hardcode_into_libs=yes
17979
if test "$with_gnu_ld" = yes; then
17980
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17981
shlibpath_overrides_runpath=no
17983
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17984
shlibpath_overrides_runpath=yes
17987
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17991
sys_lib_dlsearch_path_spec='/usr/lib'
17996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17997
soname_spec='${libname}${release}${shared_ext}$major'
17998
shlibpath_var=LD_LIBRARY_PATH
18005
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18006
$as_echo "$dynamic_linker" >&6; }
18007
test "$dynamic_linker" = no && can_build_shared=no
18009
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18010
$as_echo_n "(cached) " >&6
18012
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18015
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18016
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18017
$as_echo_n "(cached) " >&6
18019
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18022
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18024
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18025
if test "$GCC" = yes; then
18026
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18029
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18030
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18031
hardcode_action_F77=
18032
if test -n "$hardcode_libdir_flag_spec_F77" || \
18033
test -n "$runpath_var_F77" || \
18034
test "X$hardcode_automatic_F77" = "Xyes" ; then
18036
# We can hardcode non-existant directories.
18037
if test "$hardcode_direct_F77" != no &&
18038
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18039
# have to relink, otherwise we might link with an installed library
18040
# when we should be linking with a yet-to-be-installed one
18041
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18042
test "$hardcode_minus_L_F77" != no; then
18043
# Linking always hardcodes the temporary library directory.
18044
hardcode_action_F77=relink
18046
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18047
hardcode_action_F77=immediate
18050
# We cannot hardcode anything, or else we can only hardcode existing
18052
hardcode_action_F77=unsupported
18054
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18055
$as_echo "$hardcode_action_F77" >&6; }
18057
if test "$hardcode_action_F77" = relink; then
18058
# Fast installation is not supported
18059
enable_fast_install=no
18060
elif test "$shlibpath_overrides_runpath" = yes ||
18061
test "$enable_shared" = no; then
18062
# Fast installation is not necessary
18063
enable_fast_install=needless
18067
# The else clause should only fire when bootstrapping the
18068
# libtool distribution, otherwise you forgot to ship ltmain.sh
18069
# with your package, and you will get complaints that there are
18070
# no rules to generate ltmain.sh.
18071
if test -f "$ltmain"; then
18072
# See if we are running on zsh, and set the options which allow our commands through
18073
# without removal of \ escapes.
18074
if test -n "${ZSH_VERSION+set}" ; then
18075
setopt NO_GLOB_SUBST
18077
# Now quote all the things that may contain metacharacters while being
18078
# careful not to overquote the AC_SUBSTed values. We take copies of the
18079
# variables and quote the copies for generation of the libtool script.
18080
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18082
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18083
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18084
deplibs_check_method reload_flag reload_cmds need_locks \
18085
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18086
lt_cv_sys_global_symbol_to_c_name_address \
18087
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18088
old_postinstall_cmds old_postuninstall_cmds \
18092
lt_prog_compiler_wl_F77 \
18093
lt_prog_compiler_pic_F77 \
18094
lt_prog_compiler_static_F77 \
18095
lt_prog_compiler_no_builtin_flag_F77 \
18096
export_dynamic_flag_spec_F77 \
18097
thread_safe_flag_spec_F77 \
18098
whole_archive_flag_spec_F77 \
18099
enable_shared_with_static_runtimes_F77 \
18100
old_archive_cmds_F77 \
18101
old_archive_from_new_cmds_F77 \
18102
predep_objects_F77 \
18103
postdep_objects_F77 \
18106
compiler_lib_search_path_F77 \
18107
compiler_lib_search_dirs_F77 \
18109
archive_expsym_cmds_F77 \
18110
postinstall_cmds_F77 \
18111
postuninstall_cmds_F77 \
18112
old_archive_from_expsyms_cmds_F77 \
18113
allow_undefined_flag_F77 \
18114
no_undefined_flag_F77 \
18115
export_symbols_cmds_F77 \
18116
hardcode_libdir_flag_spec_F77 \
18117
hardcode_libdir_flag_spec_ld_F77 \
18118
hardcode_libdir_separator_F77 \
18119
hardcode_automatic_F77 \
18121
module_expsym_cmds_F77 \
18122
lt_cv_prog_compiler_c_o_F77 \
18123
fix_srcfile_path_F77 \
18124
exclude_expsyms_F77 \
18125
include_expsyms_F77; do
18128
old_archive_cmds_F77 | \
18129
old_archive_from_new_cmds_F77 | \
18130
archive_cmds_F77 | \
18131
archive_expsym_cmds_F77 | \
18132
module_cmds_F77 | \
18133
module_expsym_cmds_F77 | \
18134
old_archive_from_expsyms_cmds_F77 | \
18135
export_symbols_cmds_F77 | \
18136
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18137
postinstall_cmds | postuninstall_cmds | \
18138
old_postinstall_cmds | old_postuninstall_cmds | \
18139
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18140
# Double-quote double-evaled strings.
18141
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18144
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18150
*'\$0 --fallback-echo"')
18151
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18157
cat <<__EOF__ >> "$cfgfile"
18158
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18160
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18162
# Shell to use when invoking shell scripts.
18165
# Whether or not to build shared libraries.
18166
build_libtool_libs=$enable_shared
18168
# Whether or not to build static libraries.
18169
build_old_libs=$enable_static
18171
# Whether or not to add -lc for building shared libraries.
18172
build_libtool_need_lc=$archive_cmds_need_lc_F77
18174
# Whether or not to disallow shared libs when runtime libs are static
18175
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18177
# Whether or not to optimize for fast installation.
18178
fast_install=$enable_fast_install
18181
host_alias=$host_alias
18185
# The build system.
18186
build_alias=$build_alias
18190
# An echo program that does not interpret backslashes.
18195
AR_FLAGS=$lt_AR_FLAGS
18200
# LTCC compiler flags.
18201
LTCFLAGS=$lt_LTCFLAGS
18203
# A language-specific compiler.
18204
CC=$lt_compiler_F77
18206
# Is the compiler the GNU C compiler?
18212
# The linker used to build libraries.
18215
# Whether we need hard or soft links.
18218
# A BSD-compatible nm program.
18221
# A symbol stripping program
18224
# Used to examine libraries when file_magic_cmd begins "file"
18225
MAGIC_CMD=$MAGIC_CMD
18227
# Used on cygwin: DLL creation program.
18230
# Used on cygwin: object dumper.
18233
# Used on cygwin: assembler.
18236
# The name of the directory that contains temporary libtool files.
18239
# How to create reloadable object files.
18240
reload_flag=$lt_reload_flag
18241
reload_cmds=$lt_reload_cmds
18243
# How to pass a linker flag through the compiler.
18244
wl=$lt_lt_prog_compiler_wl_F77
18246
# Object file suffix (normally "o").
18247
objext="$ac_objext"
18249
# Old archive suffix (normally "a").
18252
# Shared library suffix (normally ".so").
18253
shrext_cmds='$shrext_cmds'
18255
# Executable file suffix (normally "").
18258
# Additional compiler flags for building library objects.
18259
pic_flag=$lt_lt_prog_compiler_pic_F77
18262
# What is the maximum length of a command?
18263
max_cmd_len=$lt_cv_sys_max_cmd_len
18265
# Does compiler simultaneously support -c and -o options?
18266
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18268
# Must we lock files when doing compilation?
18269
need_locks=$lt_need_locks
18271
# Do we need the lib prefix for modules?
18272
need_lib_prefix=$need_lib_prefix
18274
# Do we need a version for libraries?
18275
need_version=$need_version
18277
# Whether dlopen is supported.
18278
dlopen_support=$enable_dlopen
18280
# Whether dlopen of programs is supported.
18281
dlopen_self=$enable_dlopen_self
18283
# Whether dlopen of statically linked programs is supported.
18284
dlopen_self_static=$enable_dlopen_self_static
18286
# Compiler flag to prevent dynamic linking.
18287
link_static_flag=$lt_lt_prog_compiler_static_F77
18289
# Compiler flag to turn off builtin functions.
18290
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18292
# Compiler flag to allow reflexive dlopens.
18293
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18295
# Compiler flag to generate shared objects directly from archives.
18296
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18298
# Compiler flag to generate thread-safe objects.
18299
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18301
# Library versioning type.
18302
version_type=$version_type
18304
# Format of library name prefix.
18305
libname_spec=$lt_libname_spec
18307
# List of archive names. First name is the real one, the rest are links.
18308
# The last name is the one that the linker finds with -lNAME.
18309
library_names_spec=$lt_library_names_spec
18311
# The coded name of the library, if different from the real name.
18312
soname_spec=$lt_soname_spec
18314
# Commands used to build and install an old-style archive.
18316
old_archive_cmds=$lt_old_archive_cmds_F77
18317
old_postinstall_cmds=$lt_old_postinstall_cmds
18318
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18320
# Create an old-style archive from a shared archive.
18321
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18323
# Create a temporary old-style archive to link instead of a shared archive.
18324
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18326
# Commands used to build and install a shared archive.
18327
archive_cmds=$lt_archive_cmds_F77
18328
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18329
postinstall_cmds=$lt_postinstall_cmds
18330
postuninstall_cmds=$lt_postuninstall_cmds
18332
# Commands used to build a loadable module (assumed same as above if empty)
18333
module_cmds=$lt_module_cmds_F77
18334
module_expsym_cmds=$lt_module_expsym_cmds_F77
18336
# Commands to strip libraries.
18337
old_striplib=$lt_old_striplib
18338
striplib=$lt_striplib
18340
# Dependencies to place before the objects being linked to create a
18342
predep_objects=$lt_predep_objects_F77
18344
# Dependencies to place after the objects being linked to create a
18346
postdep_objects=$lt_postdep_objects_F77
18348
# Dependencies to place before the objects being linked to create a
18350
predeps=$lt_predeps_F77
18352
# Dependencies to place after the objects being linked to create a
18354
postdeps=$lt_postdeps_F77
18356
# The directories searched by this compiler when creating a shared
18358
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18360
# The library search path used internally by the compiler when linking
18361
# a shared library.
18362
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18364
# Method to check whether dependent libraries are shared objects.
18365
deplibs_check_method=$lt_deplibs_check_method
18367
# Command to use when deplibs_check_method == file_magic.
18368
file_magic_cmd=$lt_file_magic_cmd
18370
# Flag that allows shared libraries with undefined symbols to be built.
18371
allow_undefined_flag=$lt_allow_undefined_flag_F77
18373
# Flag that forces no undefined symbols.
18374
no_undefined_flag=$lt_no_undefined_flag_F77
18376
# Commands used to finish a libtool library installation in a directory.
18377
finish_cmds=$lt_finish_cmds
18379
# Same as above, but a single script fragment to be evaled but not shown.
18380
finish_eval=$lt_finish_eval
18382
# Take the output of nm and produce a listing of raw symbols and C names.
18383
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18385
# Transform the output of nm in a proper C declaration
18386
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18388
# Transform the output of nm in a C name address pair
18389
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18391
# This is the shared library runtime path variable.
18392
runpath_var=$runpath_var
18394
# This is the shared library path variable.
18395
shlibpath_var=$shlibpath_var
18397
# Is shlibpath searched before the hard-coded library search path?
18398
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18400
# How to hardcode a shared library path into an executable.
18401
hardcode_action=$hardcode_action_F77
18403
# Whether we should hardcode library paths into libraries.
18404
hardcode_into_libs=$hardcode_into_libs
18406
# Flag to hardcode \$libdir into a binary during linking.
18407
# This must work even if \$libdir does not exist.
18408
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18410
# If ld is used when linking, flag to hardcode \$libdir into
18411
# a binary during linking. This must work even if \$libdir does
18413
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18415
# Whether we need a single -rpath flag with a separated argument.
18416
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18418
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18419
# resulting binary.
18420
hardcode_direct=$hardcode_direct_F77
18422
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18423
# resulting binary.
18424
hardcode_minus_L=$hardcode_minus_L_F77
18426
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18427
# the resulting binary.
18428
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18430
# Set to yes if building a shared library automatically hardcodes DIR into the library
18431
# and all subsequent libraries and executables linked against it.
18432
hardcode_automatic=$hardcode_automatic_F77
18434
# Variables whose values should be saved in libtool wrapper scripts and
18435
# restored at relink time.
18436
variables_saved_for_relink="$variables_saved_for_relink"
18438
# Whether libtool must link a program against all its dependency libraries.
18439
link_all_deplibs=$link_all_deplibs_F77
18441
# Compile-time system search path for libraries
18442
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18444
# Run-time system search path for libraries
18445
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18447
# Fix the shell variable \$srcfile for the compiler.
18448
fix_srcfile_path=$lt_fix_srcfile_path
18450
# Set to yes if exported symbols are required.
18451
always_export_symbols=$always_export_symbols_F77
18453
# The commands to list exported symbols.
18454
export_symbols_cmds=$lt_export_symbols_cmds_F77
18456
# The commands to extract the exported symbol list from a shared archive.
18457
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18459
# Symbols that should not be listed in the preloaded symbols.
18460
exclude_expsyms=$lt_exclude_expsyms_F77
18462
# Symbols that must always be exported.
18463
include_expsyms=$lt_include_expsyms_F77
18465
# ### END LIBTOOL TAG CONFIG: $tagname
18471
# If there is no Makefile yet, we rely on a make rule to execute
18472
# `config.status --recheck' to rerun these tests and create the
18473
# libtool script then.
18474
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18475
if test -f "$ltmain_in"; then
18476
test -f Makefile && make "$ltmain"
18482
ac_cpp='$CPP $CPPFLAGS'
18483
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18498
# Source file extension for Java test sources.
18501
# Object file extension for compiled Java test sources.
18505
# Code to be used in simple compile tests
18506
lt_simple_compile_test_code="class foo {}"
18508
# Code to be used in simple link tests
18509
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18511
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18513
# If no C compiler was specified, use CC.
18516
# If no C compiler flags were specified, use CFLAGS.
18517
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18519
# Allow CC to be a program name with arguments.
18523
# save warnings/boilerplate of simple test code
18524
ac_outfile=conftest.$ac_objext
18525
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18526
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18527
_lt_compiler_boilerplate=`cat conftest.err`
18530
ac_outfile=conftest.$ac_objext
18531
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18532
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18533
_lt_linker_boilerplate=`cat conftest.err`
18537
# Allow CC to be a program name with arguments.
18542
for cc_temp in $compiler""; do
18544
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18545
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18550
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18553
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18554
archive_cmds_need_lc_GCJ=no
18556
old_archive_cmds_GCJ=$old_archive_cmds
18559
lt_prog_compiler_no_builtin_flag_GCJ=
18561
if test "$GCC" = yes; then
18562
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18565
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18566
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18567
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18568
$as_echo_n "(cached) " >&6
18570
lt_cv_prog_compiler_rtti_exceptions=no
18571
ac_outfile=conftest.$ac_objext
18572
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18573
lt_compiler_flag="-fno-rtti -fno-exceptions"
18574
# Insert the option either (1) after the last *FLAGS variable, or
18575
# (2) before a word containing "conftest.", or (3) at the end.
18576
# Note that $ac_compile itself does not contain backslashes and begins
18577
# with a dollar sign (not a hyphen), so the echo should work correctly.
18578
# The option is referenced via a variable to avoid confusing sed.
18579
lt_compile=`echo "$ac_compile" | $SED \
18580
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18581
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18582
-e 's:$: $lt_compiler_flag:'`
18583
(eval echo "\"\$as_me:18583: $lt_compile\"" >&5)
18584
(eval "$lt_compile" 2>conftest.err)
18586
cat conftest.err >&5
18587
echo "$as_me:18587: \$? = $ac_status" >&5
18588
if (exit $ac_status) && test -s "$ac_outfile"; then
18589
# The compiler can only warn and ignore the option if not recognized
18590
# So say no if there are warnings other than the usual output.
18591
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18592
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18593
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18594
lt_cv_prog_compiler_rtti_exceptions=yes
18600
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18601
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18603
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18604
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18611
lt_prog_compiler_wl_GCJ=
18612
lt_prog_compiler_pic_GCJ=
18613
lt_prog_compiler_static_GCJ=
18615
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18616
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18618
if test "$GCC" = yes; then
18619
lt_prog_compiler_wl_GCJ='-Wl,'
18620
lt_prog_compiler_static_GCJ='-static'
18624
# All AIX code is PIC.
18625
if test "$host_cpu" = ia64; then
18626
# AIX 5 now supports IA64 processor
18627
lt_prog_compiler_static_GCJ='-Bstatic'
18632
# FIXME: we need at least 68020 code to build shared libraries, but
18633
# adding the `-m68020' flag to GCC prevents building anything better,
18635
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18638
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18639
# PIC is the default for these OSes.
18642
mingw* | cygwin* | pw32* | os2*)
18643
# This hack is so that the source file can tell whether it is being
18644
# built for inclusion in a dll (and should export symbols for example).
18645
# Although the cygwin gcc ignores -fPIC, still need this for old-style
18646
# (--disable-auto-import) libraries
18650
darwin* | rhapsody*)
18651
# PIC is the default on this platform
18652
# Common symbols not allowed in MH_DYLIB files
18653
lt_prog_compiler_pic_GCJ='-fno-common'
18657
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
18658
# Instead, we relocate shared libraries at runtime.
18662
# Just because we use GCC doesn't mean we suddenly get shared libraries
18663
# on systems that don't support them.
18664
lt_prog_compiler_can_build_shared_GCJ=no
18669
if test -d /usr/nec; then
18670
lt_prog_compiler_pic_GCJ=-Kconform_pic
18675
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18676
# not for PA HP-UX.
18682
lt_prog_compiler_pic_GCJ='-fPIC'
18688
lt_prog_compiler_pic_GCJ='-fPIC'
18692
# PORTME Check for flag to pass linker flags through the system compiler.
18695
lt_prog_compiler_wl_GCJ='-Wl,'
18696
if test "$host_cpu" = ia64; then
18697
# AIX 5 now supports IA64 processor
18698
lt_prog_compiler_static_GCJ='-Bstatic'
18700
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18704
# PIC is the default on this platform
18705
# Common symbols not allowed in MH_DYLIB files
18706
case $cc_basename in
18708
lt_prog_compiler_pic_GCJ='-qnocommon'
18709
lt_prog_compiler_wl_GCJ='-Wl,'
18714
mingw* | cygwin* | pw32* | os2*)
18715
# This hack is so that the source file can tell whether it is being
18716
# built for inclusion in a dll (and should export symbols for example).
18720
hpux9* | hpux10* | hpux11*)
18721
lt_prog_compiler_wl_GCJ='-Wl,'
18722
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18723
# not for PA HP-UX.
18729
lt_prog_compiler_pic_GCJ='+Z'
18732
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18733
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18736
irix5* | irix6* | nonstopux*)
18737
lt_prog_compiler_wl_GCJ='-Wl,'
18738
# PIC (with -KPIC) is the default.
18739
lt_prog_compiler_static_GCJ='-non_shared'
18743
lt_prog_compiler_pic_GCJ='-KPIC'
18744
lt_prog_compiler_static_GCJ='-Bstatic'
18747
linux* | k*bsd*-gnu)
18748
case $cc_basename in
18750
lt_prog_compiler_wl_GCJ='-Wl,'
18751
lt_prog_compiler_pic_GCJ='-KPIC'
18752
lt_prog_compiler_static_GCJ='-static'
18754
pgcc* | pgf77* | pgf90* | pgf95*)
18755
# Portland Group compilers (*not* the Pentium gcc compiler,
18756
# which looks to be a dead project)
18757
lt_prog_compiler_wl_GCJ='-Wl,'
18758
lt_prog_compiler_pic_GCJ='-fpic'
18759
lt_prog_compiler_static_GCJ='-Bstatic'
18762
lt_prog_compiler_wl_GCJ='-Wl,'
18763
# All Alpha code is PIC.
18764
lt_prog_compiler_static_GCJ='-non_shared'
18767
case `$CC -V 2>&1 | sed 5q` in
18770
lt_prog_compiler_pic_GCJ='-KPIC'
18771
lt_prog_compiler_static_GCJ='-Bstatic'
18772
lt_prog_compiler_wl_GCJ='-Wl,'
18775
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18776
lt_prog_compiler_pic_GCJ='-KPIC'
18777
lt_prog_compiler_static_GCJ='-Bstatic'
18778
lt_prog_compiler_wl_GCJ=''
18785
osf3* | osf4* | osf5*)
18786
lt_prog_compiler_wl_GCJ='-Wl,'
18787
# All OSF/1 code is PIC.
18788
lt_prog_compiler_static_GCJ='-non_shared'
18792
lt_prog_compiler_static_GCJ='-non_shared'
18796
lt_prog_compiler_pic_GCJ='-KPIC'
18797
lt_prog_compiler_static_GCJ='-Bstatic'
18798
case $cc_basename in
18799
f77* | f90* | f95*)
18800
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18802
lt_prog_compiler_wl_GCJ='-Wl,';;
18807
lt_prog_compiler_wl_GCJ='-Qoption ld '
18808
lt_prog_compiler_pic_GCJ='-PIC'
18809
lt_prog_compiler_static_GCJ='-Bstatic'
18812
sysv4 | sysv4.2uw2* | sysv4.3*)
18813
lt_prog_compiler_wl_GCJ='-Wl,'
18814
lt_prog_compiler_pic_GCJ='-KPIC'
18815
lt_prog_compiler_static_GCJ='-Bstatic'
18819
if test -d /usr/nec ;then
18820
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18821
lt_prog_compiler_static_GCJ='-Bstatic'
18825
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18826
lt_prog_compiler_wl_GCJ='-Wl,'
18827
lt_prog_compiler_pic_GCJ='-KPIC'
18828
lt_prog_compiler_static_GCJ='-Bstatic'
18832
lt_prog_compiler_wl_GCJ='-Wl,'
18833
lt_prog_compiler_can_build_shared_GCJ=no
18837
lt_prog_compiler_pic_GCJ='-pic'
18838
lt_prog_compiler_static_GCJ='-Bstatic'
18842
lt_prog_compiler_can_build_shared_GCJ=no
18847
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18848
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18851
# Check to make sure the PIC flag actually works.
18853
if test -n "$lt_prog_compiler_pic_GCJ"; then
18855
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18856
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18857
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18858
$as_echo_n "(cached) " >&6
18860
lt_cv_prog_compiler_pic_works_GCJ=no
18861
ac_outfile=conftest.$ac_objext
18862
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18863
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18864
# Insert the option either (1) after the last *FLAGS variable, or
18865
# (2) before a word containing "conftest.", or (3) at the end.
18866
# Note that $ac_compile itself does not contain backslashes and begins
18867
# with a dollar sign (not a hyphen), so the echo should work correctly.
18868
# The option is referenced via a variable to avoid confusing sed.
18869
lt_compile=`echo "$ac_compile" | $SED \
18870
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18871
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18872
-e 's:$: $lt_compiler_flag:'`
18873
(eval echo "\"\$as_me:18873: $lt_compile\"" >&5)
18874
(eval "$lt_compile" 2>conftest.err)
18876
cat conftest.err >&5
18877
echo "$as_me:18877: \$? = $ac_status" >&5
18878
if (exit $ac_status) && test -s "$ac_outfile"; then
18879
# The compiler can only warn and ignore the option if not recognized
18880
# So say no if there are warnings other than the usual output.
18881
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18882
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18883
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18884
lt_cv_prog_compiler_pic_works_GCJ=yes
18890
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18891
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18893
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18894
case $lt_prog_compiler_pic_GCJ in
18896
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18899
lt_prog_compiler_pic_GCJ=
18900
lt_prog_compiler_can_build_shared_GCJ=no
18905
# For platforms which do not support PIC, -DPIC is meaningless:
18907
lt_prog_compiler_pic_GCJ=
18910
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18915
# Check to make sure the static flag actually works.
18917
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18918
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18919
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18920
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18921
$as_echo_n "(cached) " >&6
18923
lt_cv_prog_compiler_static_works_GCJ=no
18924
save_LDFLAGS="$LDFLAGS"
18925
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18926
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18927
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18928
# The linker can only warn and ignore the option if not recognized
18929
# So say no if there are warnings
18930
if test -s conftest.err; then
18931
# Append any errors to the config.log.
18932
cat conftest.err 1>&5
18933
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18934
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18935
if diff conftest.exp conftest.er2 >/dev/null; then
18936
lt_cv_prog_compiler_static_works_GCJ=yes
18939
lt_cv_prog_compiler_static_works_GCJ=yes
18943
LDFLAGS="$save_LDFLAGS"
18946
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18947
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18949
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18952
lt_prog_compiler_static_GCJ=
18956
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18957
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18958
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18959
$as_echo_n "(cached) " >&6
18961
lt_cv_prog_compiler_c_o_GCJ=no
18962
$rm -r conftest 2>/dev/null
18966
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18968
lt_compiler_flag="-o out/conftest2.$ac_objext"
18969
# Insert the option either (1) after the last *FLAGS variable, or
18970
# (2) before a word containing "conftest.", or (3) at the end.
18971
# Note that $ac_compile itself does not contain backslashes and begins
18972
# with a dollar sign (not a hyphen), so the echo should work correctly.
18973
lt_compile=`echo "$ac_compile" | $SED \
18974
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18975
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18976
-e 's:$: $lt_compiler_flag:'`
18977
(eval echo "\"\$as_me:18977: $lt_compile\"" >&5)
18978
(eval "$lt_compile" 2>out/conftest.err)
18980
cat out/conftest.err >&5
18981
echo "$as_me:18981: \$? = $ac_status" >&5
18982
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18984
# The compiler can only warn and ignore the option if not recognized
18985
# So say no if there are warnings
18986
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18987
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18988
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18989
lt_cv_prog_compiler_c_o_GCJ=yes
18994
# SGI C++ compiler will create directory out/ii_files/ for
18995
# template instantiation
18996
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18997
$rm out/* && rmdir out
19003
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19004
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19007
hard_links="nottested"
19008
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19009
# do not overwrite the value of need_locks provided by the user
19010
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19011
$as_echo_n "checking if we can lock with hard links... " >&6; }
19014
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19016
ln conftest.a conftest.b 2>&5 || hard_links=no
19017
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19018
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19019
$as_echo "$hard_links" >&6; }
19020
if test "$hard_links" = no; then
19021
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19022
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19029
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19030
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19033
allow_undefined_flag_GCJ=
19034
enable_shared_with_static_runtimes_GCJ=no
19036
archive_expsym_cmds_GCJ=
19037
old_archive_From_new_cmds_GCJ=
19038
old_archive_from_expsyms_cmds_GCJ=
19039
export_dynamic_flag_spec_GCJ=
19040
whole_archive_flag_spec_GCJ=
19041
thread_safe_flag_spec_GCJ=
19042
hardcode_libdir_flag_spec_GCJ=
19043
hardcode_libdir_flag_spec_ld_GCJ=
19044
hardcode_libdir_separator_GCJ=
19045
hardcode_direct_GCJ=no
19046
hardcode_minus_L_GCJ=no
19047
hardcode_shlibpath_var_GCJ=unsupported
19048
link_all_deplibs_GCJ=unknown
19049
hardcode_automatic_GCJ=no
19051
module_expsym_cmds_GCJ=
19052
always_export_symbols_GCJ=no
19053
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19054
# include_expsyms should be a list of space-separated symbols to be *always*
19055
# included in the symbol list
19056
include_expsyms_GCJ=
19057
# exclude_expsyms can be an extended regexp of symbols to exclude
19058
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19059
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19060
# as well as any symbol that contains `d'.
19061
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19062
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19063
# platforms (ab)use it in PIC code, but their linkers get confused if
19064
# the symbol is explicitly referenced. Since portable code cannot
19065
# rely on this symbol name, it's probably fine to never include it in
19066
# preloaded symbol tables.
19067
# Exclude shared library initialization/finalization symbols.
19068
extract_expsyms_cmds=
19069
# Just being paranoid about ensuring that cc_basename is set.
19070
for cc_temp in $compiler""; do
19072
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19073
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19078
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19081
cygwin* | mingw* | pw32*)
19082
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19083
# When not using gcc, we currently assume that we are using
19084
# Microsoft Visual C++.
19085
if test "$GCC" != yes; then
19090
# we just hope/assume this is gcc and not c89 (= MSVC++)
19099
if test "$with_gnu_ld" = yes; then
19100
# If archive_cmds runs LD, not CC, wlarc should be empty
19103
# Set some defaults for GNU ld with shared library support. These
19104
# are reset later if shared libraries are not supported. Putting them
19105
# here allows them to be overridden if necessary.
19106
runpath_var=LD_RUN_PATH
19107
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19108
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19109
# ancient GNU ld didn't support --whole-archive et. al.
19110
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19111
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19113
whole_archive_flag_spec_GCJ=
19115
supports_anon_versioning=no
19116
case `$LD -v 2>/dev/null` in
19117
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19118
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19119
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19120
*\ 2.11.*) ;; # other 2.11 versions
19121
*) supports_anon_versioning=yes ;;
19124
# See if GNU ld supports shared libraries.
19127
# On AIX/PPC, the GNU linker is very broken
19128
if test "$host_cpu" != ia64; then
19132
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19133
*** to be unable to reliably create shared libraries on AIX.
19134
*** Therefore, libtool is disabling shared libraries support. If you
19135
*** really care for shared libraries, you may want to modify your PATH
19136
*** so that a non-GNU linker is found, and then restart.
19143
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)'
19144
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19145
hardcode_minus_L_GCJ=yes
19147
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19148
# that the semantics of dynamic libraries on AmigaOS, at least up
19149
# to version 4, is to share data among multiple programs linked
19150
# with the same dynamic library. Since this doesn't match the
19151
# behavior of shared libraries on other platforms, we can't use
19157
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19158
allow_undefined_flag_GCJ=unsupported
19159
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19160
# support --undefined. This deserves some investigation. FIXME
19161
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167
cygwin* | mingw* | pw32*)
19168
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19169
# as there is no search path for DLLs.
19170
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19171
allow_undefined_flag_GCJ=unsupported
19172
always_export_symbols_GCJ=no
19173
enable_shared_with_static_runtimes_GCJ=yes
19174
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19176
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19177
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19178
# If the export-symbols file already is a .def file (1st line
19179
# is EXPORTS), use it as is; otherwise, prepend...
19180
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19181
cp $export_symbols $output_objdir/$soname.def;
19183
echo EXPORTS > $output_objdir/$soname.def;
19184
cat $export_symbols >> $output_objdir/$soname.def;
19186
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19193
hardcode_direct_GCJ=no
19194
hardcode_shlibpath_var_GCJ=no
19195
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19196
export_dynamic_flag_spec_GCJ='${wl}-E'
19197
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19198
# Instead, shared libraries are loaded at an image base (0x10000000 by
19199
# default) and relocated if they conflict, which is a slow very memory
19200
# consuming and fragmenting process. To avoid this, we pick a random,
19201
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19202
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
19203
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'
19204
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'
19207
gnu* | linux* | k*bsd*-gnu)
19208
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19210
case $cc_basename,$host_cpu in
19211
pgcc*) # Portland Group C compiler
19212
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'
19213
tmp_addflag=' $pic_flag'
19215
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19216
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'
19217
tmp_addflag=' $pic_flag -Mnomain' ;;
19218
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19219
tmp_addflag=' -i_dynamic' ;;
19220
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19221
tmp_addflag=' -i_dynamic -nofor_main' ;;
19222
ifc* | ifort*) # Intel Fortran compiler
19223
tmp_addflag=' -nofor_main' ;;
19225
case `$CC -V 2>&1 | sed 5q` in
19226
*Sun\ C*) # Sun C 5.9
19227
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'
19228
tmp_sharedflag='-G' ;;
19229
*Sun\ F*) # Sun Fortran 8.3
19230
tmp_sharedflag='-G' ;;
19232
tmp_sharedflag='-shared' ;;
19234
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19236
if test $supports_anon_versioning = yes; then
19237
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19238
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19239
$echo "local: *; };" >> $output_objdir/$libname.ver~
19240
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19248
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19249
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19252
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19253
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19258
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19262
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19263
*** create shared libraries on Solaris systems. Therefore, libtool
19264
*** is disabling shared libraries support. We urge you to upgrade GNU
19265
*** binutils to release 2.9.1 or newer. Another option is to modify
19266
*** your PATH or compiler configuration so that the native linker is
19267
*** used, and then restart.
19270
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19271
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19272
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19278
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19279
case `$LD -v 2>&1` in
19280
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19284
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19285
*** reliably create shared libraries on SCO systems. Therefore, libtool
19286
*** is disabling shared libraries support. We urge you to upgrade GNU
19287
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19288
*** your PATH or compiler configuration so that the native linker is
19289
*** used, and then restart.
19294
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19295
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19296
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19297
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19306
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19308
hardcode_direct_GCJ=yes
19309
hardcode_shlibpath_var_GCJ=no
19313
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19314
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19315
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19322
if test "$ld_shlibs_GCJ" = no; then
19324
hardcode_libdir_flag_spec_GCJ=
19325
export_dynamic_flag_spec_GCJ=
19326
whole_archive_flag_spec_GCJ=
19329
# PORTME fill in a description of your system's linker (not GNU ld)
19332
allow_undefined_flag_GCJ=unsupported
19333
always_export_symbols_GCJ=yes
19334
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'
19335
# Note: this linker hardcodes the directories in LIBPATH if there
19336
# are no directories specified by -L.
19337
hardcode_minus_L_GCJ=yes
19338
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19339
# Neither direct hardcoding nor static linking is supported with a
19341
hardcode_direct_GCJ=unsupported
19346
if test "$host_cpu" = ia64; then
19347
# On IA64, the linker does run time linking by default, so we don't
19348
# have to do anything special.
19349
aix_use_runtimelinking=no
19350
exp_sym_flag='-Bexport'
19353
# If we're using GNU nm, then we don't want the "-C" option.
19354
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19355
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19356
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'
19358
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'
19360
aix_use_runtimelinking=no
19362
# Test if we are trying to use run time linking or normal
19363
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19364
# need to do runtime linking.
19365
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19366
for ld_flag in $LDFLAGS; do
19367
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19368
aix_use_runtimelinking=yes
19375
exp_sym_flag='-bexport'
19376
no_entry_flag='-bnoentry'
19379
# When large executables or shared objects are built, AIX ld can
19380
# have problems creating the table of contents. If linking a library
19381
# or program results in "error TOC overflow" add -mminimal-toc to
19382
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19383
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19385
archive_cmds_GCJ=''
19386
hardcode_direct_GCJ=yes
19387
hardcode_libdir_separator_GCJ=':'
19388
link_all_deplibs_GCJ=yes
19390
if test "$GCC" = yes; then
19391
case $host_os in aix4.[012]|aix4.[012].*)
19392
# We only want to do this on AIX 4.2 and lower, the check
19393
# below for broken collect2 doesn't work under 4.3+
19394
collect2name=`${CC} -print-prog-name=collect2`
19395
if test -f "$collect2name" && \
19396
strings "$collect2name" | grep resolve_lib_name >/dev/null
19398
# We have reworked collect2
19401
# We have old collect2
19402
hardcode_direct_GCJ=unsupported
19403
# It fails to find uninstalled libraries when the uninstalled
19404
# path is not listed in the libpath. Setting hardcode_minus_L
19405
# to unsupported forces relinking
19406
hardcode_minus_L_GCJ=yes
19407
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19408
hardcode_libdir_separator_GCJ=
19412
shared_flag='-shared'
19413
if test "$aix_use_runtimelinking" = yes; then
19414
shared_flag="$shared_flag "'${wl}-G'
19418
if test "$host_cpu" = ia64; then
19419
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19420
# chokes on -Wl,-G. The following line is correct:
19423
if test "$aix_use_runtimelinking" = yes; then
19424
shared_flag='${wl}-G'
19426
shared_flag='${wl}-bM:SRE'
19431
# It seems that -bexpall does not export symbols beginning with
19432
# underscore (_), so it is better to generate a list of symbols to export.
19433
always_export_symbols_GCJ=yes
19434
if test "$aix_use_runtimelinking" = yes; then
19435
# Warning - without using the other runtime loading flags (-brtl),
19436
# -berok will link without error, but may produce a broken library.
19437
allow_undefined_flag_GCJ='-berok'
19438
# Determine the default libpath from the value encoded in an empty executable.
19439
cat >conftest.$ac_ext <<_ACEOF
19442
cat confdefs.h >>conftest.$ac_ext
19443
cat >>conftest.$ac_ext <<_ACEOF
19444
/* end confdefs.h. */
19454
rm -f conftest.$ac_objext conftest$ac_exeext
19455
if { (ac_try="$ac_link"
19456
case "(($ac_try" in
19457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458
*) ac_try_echo=$ac_try;;
19460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19461
$as_echo "$ac_try_echo") >&5
19462
(eval "$ac_link") 2>conftest.er1
19464
grep -v '^ *+' conftest.er1 >conftest.err
19466
cat conftest.err >&5
19467
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468
(exit $ac_status); } && {
19469
test -z "$ac_c_werror_flag" ||
19470
test ! -s conftest.err
19471
} && test -s conftest$ac_exeext && {
19472
test "$cross_compiling" = yes ||
19473
$as_test_x conftest$ac_exeext
19476
lt_aix_libpath_sed='
19477
/Import File Strings/,/^$/ {
19483
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19484
# Check for a 64-bit object if we didn't find anything.
19485
if test -z "$aix_libpath"; then
19486
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19489
$as_echo "$as_me: failed program was:" >&5
19490
sed 's/^/| /' conftest.$ac_ext >&5
19495
rm -rf conftest.dSYM
19496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19497
conftest$ac_exeext conftest.$ac_ext
19498
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19500
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19501
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"
19503
if test "$host_cpu" = ia64; then
19504
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19505
allow_undefined_flag_GCJ="-z nodefs"
19506
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"
19508
# Determine the default libpath from the value encoded in an empty executable.
19509
cat >conftest.$ac_ext <<_ACEOF
19512
cat confdefs.h >>conftest.$ac_ext
19513
cat >>conftest.$ac_ext <<_ACEOF
19514
/* end confdefs.h. */
19524
rm -f conftest.$ac_objext conftest$ac_exeext
19525
if { (ac_try="$ac_link"
19526
case "(($ac_try" in
19527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528
*) ac_try_echo=$ac_try;;
19530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19531
$as_echo "$ac_try_echo") >&5
19532
(eval "$ac_link") 2>conftest.er1
19534
grep -v '^ *+' conftest.er1 >conftest.err
19536
cat conftest.err >&5
19537
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538
(exit $ac_status); } && {
19539
test -z "$ac_c_werror_flag" ||
19540
test ! -s conftest.err
19541
} && test -s conftest$ac_exeext && {
19542
test "$cross_compiling" = yes ||
19543
$as_test_x conftest$ac_exeext
19546
lt_aix_libpath_sed='
19547
/Import File Strings/,/^$/ {
19553
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19554
# Check for a 64-bit object if we didn't find anything.
19555
if test -z "$aix_libpath"; then
19556
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19559
$as_echo "$as_me: failed program was:" >&5
19560
sed 's/^/| /' conftest.$ac_ext >&5
19565
rm -rf conftest.dSYM
19566
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19567
conftest$ac_exeext conftest.$ac_ext
19568
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19570
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19571
# Warning - without using the other run time loading flags,
19572
# -berok will link without error, but may produce a broken library.
19573
no_undefined_flag_GCJ=' ${wl}-bernotok'
19574
allow_undefined_flag_GCJ=' ${wl}-berok'
19575
# Exported symbols can be pulled into shared objects from archives
19576
whole_archive_flag_spec_GCJ='$convenience'
19577
archive_cmds_need_lc_GCJ=yes
19578
# This is similar to how AIX traditionally builds its shared libraries.
19579
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'
19585
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)'
19586
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19587
hardcode_minus_L_GCJ=yes
19588
# see comment about different semantics on the GNU ld section
19593
export_dynamic_flag_spec_GCJ=-rdynamic
19596
cygwin* | mingw* | pw32*)
19597
# When not using gcc, we currently assume that we are using
19598
# Microsoft Visual C++.
19599
# hardcode_libdir_flag_spec is actually meaningless, as there is
19600
# no search path for DLLs.
19601
hardcode_libdir_flag_spec_GCJ=' '
19602
allow_undefined_flag_GCJ=unsupported
19603
# Tell ltmain to make .lib files, not .a files.
19605
# Tell ltmain to make .dll files, not .so files.
19607
# FIXME: Setting linknames here is a bad hack.
19608
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19609
# The linker will automatically build a .lib file if we build a DLL.
19610
old_archive_From_new_cmds_GCJ='true'
19611
# FIXME: Should let the user specify the lib program.
19612
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19613
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19614
enable_shared_with_static_runtimes_GCJ=yes
19617
darwin* | rhapsody*)
19619
rhapsody* | darwin1.[012])
19620
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19623
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19626
case ${MACOSX_DEPLOYMENT_TARGET} in
19628
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19631
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19637
archive_cmds_need_lc_GCJ=no
19638
hardcode_direct_GCJ=no
19639
hardcode_automatic_GCJ=yes
19640
hardcode_shlibpath_var_GCJ=unsupported
19641
whole_archive_flag_spec_GCJ=''
19642
link_all_deplibs_GCJ=yes
19643
if test "$GCC" = yes ; then
19644
output_verbose_link_cmd='echo'
19645
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}"
19646
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19647
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}"
19648
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}"
19650
case $cc_basename in
19652
output_verbose_link_cmd='echo'
19653
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19654
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19655
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19656
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}'
19657
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}'
19667
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19669
hardcode_shlibpath_var_GCJ=no
19676
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19677
# support. Future versions do this automatically, but an explicit c++rt0.o
19678
# does not break anything, and helps significantly (at the cost of a little
19681
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19682
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19683
hardcode_direct_GCJ=yes
19684
hardcode_shlibpath_var_GCJ=no
19687
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690
hardcode_direct_GCJ=yes
19691
hardcode_minus_L_GCJ=yes
19692
hardcode_shlibpath_var_GCJ=no
19695
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19696
freebsd* | dragonfly*)
19697
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19698
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19699
hardcode_direct_GCJ=yes
19700
hardcode_shlibpath_var_GCJ=no
19704
if test "$GCC" = yes; then
19705
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'
19707
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'
19709
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19710
hardcode_libdir_separator_GCJ=:
19711
hardcode_direct_GCJ=yes
19713
# hardcode_minus_L: Not really in the search PATH,
19714
# but as the default location of the library.
19715
hardcode_minus_L_GCJ=yes
19716
export_dynamic_flag_spec_GCJ='${wl}-E'
19720
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19721
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19723
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19725
if test "$with_gnu_ld" = no; then
19726
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19727
hardcode_libdir_separator_GCJ=:
19729
hardcode_direct_GCJ=yes
19730
export_dynamic_flag_spec_GCJ='${wl}-E'
19732
# hardcode_minus_L: Not really in the search PATH,
19733
# but as the default location of the library.
19734
hardcode_minus_L_GCJ=yes
19739
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19742
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19745
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19748
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19754
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19757
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19760
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19764
if test "$with_gnu_ld" = no; then
19765
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19766
hardcode_libdir_separator_GCJ=:
19770
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19771
hardcode_direct_GCJ=no
19772
hardcode_shlibpath_var_GCJ=no
19775
hardcode_direct_GCJ=yes
19776
export_dynamic_flag_spec_GCJ='${wl}-E'
19778
# hardcode_minus_L: Not really in the search PATH,
19779
# but as the default location of the library.
19780
hardcode_minus_L_GCJ=yes
19786
irix5* | irix6* | nonstopux*)
19787
if test "$GCC" = yes; then
19788
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'
19790
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'
19791
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19793
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19794
hardcode_libdir_separator_GCJ=:
19795
link_all_deplibs_GCJ=yes
19799
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19800
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19802
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19804
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19805
hardcode_direct_GCJ=yes
19806
hardcode_shlibpath_var_GCJ=no
19810
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19811
hardcode_direct_GCJ=yes
19812
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19813
hardcode_libdir_separator_GCJ=:
19814
hardcode_shlibpath_var_GCJ=no
19818
if test -f /usr/libexec/ld.so; then
19819
hardcode_direct_GCJ=yes
19820
hardcode_shlibpath_var_GCJ=no
19821
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19822
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19823
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19824
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19825
export_dynamic_flag_spec_GCJ='${wl}-E'
19828
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19829
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19830
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19833
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19834
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19844
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19845
hardcode_minus_L_GCJ=yes
19846
allow_undefined_flag_GCJ=unsupported
19847
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'
19848
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19852
if test "$GCC" = yes; then
19853
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19854
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'
19856
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19857
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'
19859
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19860
hardcode_libdir_separator_GCJ=:
19863
osf4* | osf5*) # as osf3* with the addition of -msym flag
19864
if test "$GCC" = yes; then
19865
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19866
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'
19867
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19869
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19870
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'
19871
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~
19872
$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'
19874
# Both c and cxx compiler support -rpath directly
19875
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19877
hardcode_libdir_separator_GCJ=:
19881
no_undefined_flag_GCJ=' -z text'
19882
if test "$GCC" = yes; then
19884
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19885
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19886
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19889
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19890
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19891
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19893
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19894
hardcode_shlibpath_var_GCJ=no
19896
solaris2.[0-5] | solaris2.[0-5].*) ;;
19898
# The compiler driver will combine and reorder linker options,
19899
# but understands `-z linker_flag'. GCC discards it without `$wl',
19900
# but is careful enough not to reorder.
19901
# Supported since Solaris 2.6 (maybe 2.5.1?)
19902
if test "$GCC" = yes; then
19903
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19905
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19909
link_all_deplibs_GCJ=yes
19913
if test "x$host_vendor" = xsequent; then
19914
# Use $CC to link under sequent, because it throws in some extra .o
19915
# files that make .init and .fini sections work.
19916
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19918
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19920
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19921
hardcode_direct_GCJ=yes
19922
hardcode_minus_L_GCJ=yes
19923
hardcode_shlibpath_var_GCJ=no
19927
case $host_vendor in
19929
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19930
hardcode_direct_GCJ=yes # is this really true???
19933
## LD is ld it makes a PLAMLIB
19934
## CC just makes a GrossModule.
19935
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19936
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19937
hardcode_direct_GCJ=no
19940
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19941
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19944
runpath_var='LD_RUN_PATH'
19945
hardcode_shlibpath_var_GCJ=no
19949
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19950
hardcode_shlibpath_var_GCJ=no
19951
export_dynamic_flag_spec_GCJ='-Bexport'
19955
if test -d /usr/nec; then
19956
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19957
hardcode_shlibpath_var_GCJ=no
19958
runpath_var=LD_RUN_PATH
19959
hardcode_runpath_var=yes
19964
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19965
no_undefined_flag_GCJ='${wl}-z,text'
19966
archive_cmds_need_lc_GCJ=no
19967
hardcode_shlibpath_var_GCJ=no
19968
runpath_var='LD_RUN_PATH'
19970
if test "$GCC" = yes; then
19971
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19972
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19974
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19975
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19979
sysv5* | sco3.2v5* | sco5v6*)
19980
# Note: We can NOT use -z defs as we might desire, because we do not
19981
# link with -lc, and that would cause any symbols used from libc to
19982
# always be unresolved, which means just about no library would
19983
# ever link correctly. If we're not using GNU ld we use -z text
19984
# though, which does catch some bad symbols but isn't as heavy-handed
19986
no_undefined_flag_GCJ='${wl}-z,text'
19987
allow_undefined_flag_GCJ='${wl}-z,nodefs'
19988
archive_cmds_need_lc_GCJ=no
19989
hardcode_shlibpath_var_GCJ=no
19990
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19991
hardcode_libdir_separator_GCJ=':'
19992
link_all_deplibs_GCJ=yes
19993
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19994
runpath_var='LD_RUN_PATH'
19996
if test "$GCC" = yes; then
19997
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19998
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20000
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20001
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20006
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20007
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20008
hardcode_shlibpath_var_GCJ=no
20017
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20018
$as_echo "$ld_shlibs_GCJ" >&6; }
20019
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20022
# Do we need to explicitly link libc?
20024
case "x$archive_cmds_need_lc_GCJ" in
20026
# Assume -lc should be added
20027
archive_cmds_need_lc_GCJ=yes
20029
if test "$enable_shared" = yes && test "$GCC" = yes; then
20030
case $archive_cmds_GCJ in
20032
# FIXME: we may have to deal with multi-command sequences.
20035
# Test whether the compiler implicitly links with -lc since on some
20036
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20037
# to ld, don't add -lc before -lgcc.
20038
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20039
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20041
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044
(eval $ac_compile) 2>&5
20046
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047
(exit $ac_status); } 2>conftest.err; then
20050
libobjs=conftest.$ac_objext
20052
wl=$lt_prog_compiler_wl_GCJ
20053
pic_flag=$lt_prog_compiler_pic_GCJ
20059
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20060
allow_undefined_flag_GCJ=
20061
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20062
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20064
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065
(exit $ac_status); }
20067
archive_cmds_need_lc_GCJ=no
20069
archive_cmds_need_lc_GCJ=yes
20071
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20073
cat conftest.err 1>&5
20076
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20077
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20084
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20085
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20086
library_names_spec=
20087
libname_spec='lib$name'
20091
postuninstall_cmds=
20095
shlibpath_overrides_runpath=unknown
20097
dynamic_linker="$host_os ld.so"
20098
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20100
need_lib_prefix=unknown
20101
hardcode_into_libs=no
20103
# when you set need_version to no, make sure it does not cause -set_version
20104
# flags to be left without arguments
20105
need_version=unknown
20110
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20111
shlibpath_var=LIBPATH
20113
# AIX 3 has no versioning support, so we append a major version to the name.
20114
soname_spec='${libname}${release}${shared_ext}$major'
20121
hardcode_into_libs=yes
20122
if test "$host_cpu" = ia64; then
20123
# AIX 5 supports IA64
20124
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20125
shlibpath_var=LD_LIBRARY_PATH
20127
# With GCC up to 2.95.x, collect2 would create an import file
20128
# for dependence libraries. The import file would start with
20129
# the line `#! .'. This would cause the generated library to
20130
# depend on `.', always an invalid library. This was fixed in
20131
# development snapshots of GCC prior to 3.0.
20133
aix4 | aix4.[01] | aix4.[01].*)
20134
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20136
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20139
can_build_shared=no
20143
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20144
# soname into executable. Probably we can add versioning support to
20145
# collect2, so additional links can be useful in future.
20146
if test "$aix_use_runtimelinking" = yes; then
20147
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20148
# instead of lib<name>.a to let people know that these are not
20149
# typical AIX shared libraries.
20150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152
# We preserve .a as extension for shared libraries through AIX4.2
20153
# and later when we are not doing run time linking.
20154
library_names_spec='${libname}${release}.a $libname.a'
20155
soname_spec='${libname}${release}${shared_ext}$major'
20157
shlibpath_var=LIBPATH
20162
library_names_spec='$libname.ixlibrary $libname.a'
20163
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20164
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'
20168
library_names_spec='${libname}${shared_ext}'
20169
dynamic_linker="$host_os ld.so"
20170
shlibpath_var=LIBRARY_PATH
20176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177
soname_spec='${libname}${release}${shared_ext}$major'
20178
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20179
shlibpath_var=LD_LIBRARY_PATH
20180
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20181
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20182
# the default ld.so.conf also contains /usr/contrib/lib and
20183
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20184
# libtool to hard-code these into programs
20187
cygwin* | mingw* | pw32*)
20188
version_type=windows
20193
case $GCC,$host_os in
20194
yes,cygwin* | yes,mingw* | yes,pw32*)
20195
library_names_spec='$libname.dll.a'
20196
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20197
postinstall_cmds='base_file=`basename \${file}`~
20198
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20199
dldir=$destdir/`dirname \$dlpath`~
20200
test -d \$dldir || mkdir -p \$dldir~
20201
$install_prog $dir/$dlname \$dldir/$dlname~
20202
chmod a+x \$dldir/$dlname'
20203
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20204
dlpath=$dir/\$dldll~
20206
shlibpath_overrides_runpath=yes
20210
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20211
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20212
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20215
# MinGW DLLs use traditional 'lib' prefix
20216
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20217
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20218
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20219
# It is most probably a Windows format PATH printed by
20220
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20221
# path with ; separators, and with drive letters. We can handle the
20222
# drive letters (cygwin fileutils understands them), so leave them,
20223
# especially as we might pass files found there to a mingw objdump,
20224
# which wouldn't understand a cygwinified path. Ahh.
20225
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20227
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20231
# pw32 DLLs use 'pw' prefix rather than 'lib'
20232
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20238
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20241
dynamic_linker='Win32 ld.exe'
20242
# FIXME: first we should search . and the directory the executable is in
20246
darwin* | rhapsody*)
20247
dynamic_linker="$host_os dyld"
20248
version_type=darwin
20251
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20252
soname_spec='${libname}${release}${major}$shared_ext'
20253
shlibpath_overrides_runpath=yes
20254
shlibpath_var=DYLD_LIBRARY_PATH
20255
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20257
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20264
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20265
soname_spec='${libname}${release}${shared_ext}$major'
20266
shlibpath_var=LD_LIBRARY_PATH
20273
freebsd* | dragonfly*)
20274
# DragonFly does not have aout. When/if they implement a new
20275
# versioning mechanism, adjust this.
20276
if test -x /usr/bin/objformat; then
20277
objformat=`/usr/bin/objformat`
20280
freebsd[123]*) objformat=aout ;;
20281
*) objformat=elf ;;
20284
version_type=freebsd-$objformat
20285
case $version_type in
20287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20292
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20296
shlibpath_var=LD_LIBRARY_PATH
20299
shlibpath_overrides_runpath=yes
20301
freebsd3.[01]* | freebsdelf3.[01]*)
20302
shlibpath_overrides_runpath=yes
20303
hardcode_into_libs=yes
20305
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20306
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20307
shlibpath_overrides_runpath=no
20308
hardcode_into_libs=yes
20310
*) # from 4.6 on, and DragonFly
20311
shlibpath_overrides_runpath=yes
20312
hardcode_into_libs=yes
20321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20322
soname_spec='${libname}${release}${shared_ext}$major'
20323
shlibpath_var=LD_LIBRARY_PATH
20324
hardcode_into_libs=yes
20327
hpux9* | hpux10* | hpux11*)
20328
# Give a soname corresponding to the major version so that dld.sl refuses to
20329
# link against other versions.
20336
hardcode_into_libs=yes
20337
dynamic_linker="$host_os dld.so"
20338
shlibpath_var=LD_LIBRARY_PATH
20339
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20341
soname_spec='${libname}${release}${shared_ext}$major'
20342
if test "X$HPUX_IA64_MODE" = X32; then
20343
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20345
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20347
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20351
hardcode_into_libs=yes
20352
dynamic_linker="$host_os dld.sl"
20353
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20354
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356
soname_spec='${libname}${release}${shared_ext}$major'
20357
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20358
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20362
dynamic_linker="$host_os dld.sl"
20363
shlibpath_var=SHLIB_PATH
20364
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366
soname_spec='${libname}${release}${shared_ext}$major'
20369
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20370
postinstall_cmds='chmod 555 $lib'
20377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20378
soname_spec='${libname}${release}${shared_ext}$major'
20379
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20380
shlibpath_var=LD_LIBRARY_PATH
20381
shlibpath_overrides_runpath=no
20382
hardcode_into_libs=yes
20385
irix5* | irix6* | nonstopux*)
20387
nonstopux*) version_type=nonstopux ;;
20389
if test "$lt_cv_prog_gnu_ld" = yes; then
20397
soname_spec='${libname}${release}${shared_ext}$major'
20398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20400
irix5* | nonstopux*)
20401
libsuff= shlibsuff=
20404
case $LD in # libtool.m4 will add one of these switches to LD
20405
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20406
libsuff= shlibsuff= libmagic=32-bit;;
20407
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20408
libsuff=32 shlibsuff=N32 libmagic=N32;;
20409
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20410
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20411
*) libsuff= shlibsuff= libmagic=never-match;;
20415
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20416
shlibpath_overrides_runpath=no
20417
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20418
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20419
hardcode_into_libs=yes
20422
# No shared lib support for Linux oldld, aout, or coff.
20423
linux*oldld* | linux*aout* | linux*coff*)
20427
# This must be Linux ELF.
20428
linux* | k*bsd*-gnu)
20432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433
soname_spec='${libname}${release}${shared_ext}$major'
20434
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20435
shlibpath_var=LD_LIBRARY_PATH
20436
shlibpath_overrides_runpath=no
20437
# This implies no fast_install, which is unacceptable.
20438
# Some rework will be needed to allow for fast_install
20439
# before this can be enabled.
20440
hardcode_into_libs=yes
20441
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20442
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20444
# Append ld.so.conf contents to the search path
20445
if test -f /etc/ld.so.conf; then
20446
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' ' '`
20447
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20450
# We used to test for /lib/ld.so.1 and disable shared libraries on
20451
# powerpc, because MkLinux only supported shared libraries with the
20452
# GNU dynamic linker. Since this was broken with cross compilers,
20453
# most powerpc-linux boxes support dynamic linking these days and
20454
# people can always --disable-shared, the test was removed, and we
20455
# assume the GNU/Linux dynamic linker is in use.
20456
dynamic_linker='GNU/Linux ld.so'
20463
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466
dynamic_linker='NetBSD (a.out) ld.so'
20468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20469
soname_spec='${libname}${release}${shared_ext}$major'
20470
dynamic_linker='NetBSD ld.elf_so'
20472
shlibpath_var=LD_LIBRARY_PATH
20473
shlibpath_overrides_runpath=yes
20474
hardcode_into_libs=yes
20479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480
shlibpath_var=LD_LIBRARY_PATH
20481
shlibpath_overrides_runpath=yes
20488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489
soname_spec='${libname}${release}${shared_ext}$major'
20490
shlibpath_var=LD_LIBRARY_PATH
20491
shlibpath_overrides_runpath=yes
20496
sys_lib_dlsearch_path_spec="/usr/lib"
20498
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20500
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20501
*) need_version=no ;;
20503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20504
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20505
shlibpath_var=LD_LIBRARY_PATH
20506
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20508
openbsd2.[89] | openbsd2.[89].*)
20509
shlibpath_overrides_runpath=no
20512
shlibpath_overrides_runpath=yes
20516
shlibpath_overrides_runpath=yes
20521
libname_spec='$name'
20524
library_names_spec='$libname${shared_ext} $libname.a'
20525
dynamic_linker='OS/2 ld.exe'
20526
shlibpath_var=LIBPATH
20529
osf3* | osf4* | osf5*)
20533
soname_spec='${libname}${release}${shared_ext}$major'
20534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535
shlibpath_var=LD_LIBRARY_PATH
20536
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20537
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549
soname_spec='${libname}${release}${shared_ext}$major'
20550
shlibpath_var=LD_LIBRARY_PATH
20551
shlibpath_overrides_runpath=yes
20552
hardcode_into_libs=yes
20553
# ldd complains unless libraries are executable
20554
postinstall_cmds='chmod +x $lib'
20559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20560
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20561
shlibpath_var=LD_LIBRARY_PATH
20562
shlibpath_overrides_runpath=yes
20563
if test "$with_gnu_ld" = yes; then
20571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572
soname_spec='${libname}${release}${shared_ext}$major'
20573
shlibpath_var=LD_LIBRARY_PATH
20574
case $host_vendor in
20576
shlibpath_overrides_runpath=no
20578
export_dynamic_flag_spec='${wl}-Blargedynsym'
20579
runpath_var=LD_RUN_PATH
20587
shlibpath_overrides_runpath=no
20588
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20594
if test -d /usr/nec ;then
20596
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20597
soname_spec='$libname${shared_ext}.$major'
20598
shlibpath_var=LD_LIBRARY_PATH
20602
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20603
version_type=freebsd-elf
20606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20607
soname_spec='${libname}${release}${shared_ext}$major'
20608
shlibpath_var=LD_LIBRARY_PATH
20609
hardcode_into_libs=yes
20610
if test "$with_gnu_ld" = yes; then
20611
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20612
shlibpath_overrides_runpath=no
20614
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20615
shlibpath_overrides_runpath=yes
20618
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20622
sys_lib_dlsearch_path_spec='/usr/lib'
20627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20628
soname_spec='${libname}${release}${shared_ext}$major'
20629
shlibpath_var=LD_LIBRARY_PATH
20636
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20637
$as_echo "$dynamic_linker" >&6; }
20638
test "$dynamic_linker" = no && can_build_shared=no
20640
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20641
$as_echo_n "(cached) " >&6
20643
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20646
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20647
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20648
$as_echo_n "(cached) " >&6
20650
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20653
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20655
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20656
if test "$GCC" = yes; then
20657
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20660
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20661
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20662
hardcode_action_GCJ=
20663
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20664
test -n "$runpath_var_GCJ" || \
20665
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20667
# We can hardcode non-existant directories.
20668
if test "$hardcode_direct_GCJ" != no &&
20669
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20670
# have to relink, otherwise we might link with an installed library
20671
# when we should be linking with a yet-to-be-installed one
20672
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20673
test "$hardcode_minus_L_GCJ" != no; then
20674
# Linking always hardcodes the temporary library directory.
20675
hardcode_action_GCJ=relink
20677
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20678
hardcode_action_GCJ=immediate
20681
# We cannot hardcode anything, or else we can only hardcode existing
20683
hardcode_action_GCJ=unsupported
20685
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20686
$as_echo "$hardcode_action_GCJ" >&6; }
20688
if test "$hardcode_action_GCJ" = relink; then
20689
# Fast installation is not supported
20690
enable_fast_install=no
20691
elif test "$shlibpath_overrides_runpath" = yes ||
20692
test "$enable_shared" = no; then
20693
# Fast installation is not necessary
20694
enable_fast_install=needless
20698
# The else clause should only fire when bootstrapping the
20699
# libtool distribution, otherwise you forgot to ship ltmain.sh
20700
# with your package, and you will get complaints that there are
20701
# no rules to generate ltmain.sh.
20702
if test -f "$ltmain"; then
20703
# See if we are running on zsh, and set the options which allow our commands through
20704
# without removal of \ escapes.
20705
if test -n "${ZSH_VERSION+set}" ; then
20706
setopt NO_GLOB_SUBST
20708
# Now quote all the things that may contain metacharacters while being
20709
# careful not to overquote the AC_SUBSTed values. We take copies of the
20710
# variables and quote the copies for generation of the libtool script.
20711
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20713
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20714
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20715
deplibs_check_method reload_flag reload_cmds need_locks \
20716
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20717
lt_cv_sys_global_symbol_to_c_name_address \
20718
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20719
old_postinstall_cmds old_postuninstall_cmds \
20723
lt_prog_compiler_wl_GCJ \
20724
lt_prog_compiler_pic_GCJ \
20725
lt_prog_compiler_static_GCJ \
20726
lt_prog_compiler_no_builtin_flag_GCJ \
20727
export_dynamic_flag_spec_GCJ \
20728
thread_safe_flag_spec_GCJ \
20729
whole_archive_flag_spec_GCJ \
20730
enable_shared_with_static_runtimes_GCJ \
20731
old_archive_cmds_GCJ \
20732
old_archive_from_new_cmds_GCJ \
20733
predep_objects_GCJ \
20734
postdep_objects_GCJ \
20737
compiler_lib_search_path_GCJ \
20738
compiler_lib_search_dirs_GCJ \
20740
archive_expsym_cmds_GCJ \
20741
postinstall_cmds_GCJ \
20742
postuninstall_cmds_GCJ \
20743
old_archive_from_expsyms_cmds_GCJ \
20744
allow_undefined_flag_GCJ \
20745
no_undefined_flag_GCJ \
20746
export_symbols_cmds_GCJ \
20747
hardcode_libdir_flag_spec_GCJ \
20748
hardcode_libdir_flag_spec_ld_GCJ \
20749
hardcode_libdir_separator_GCJ \
20750
hardcode_automatic_GCJ \
20752
module_expsym_cmds_GCJ \
20753
lt_cv_prog_compiler_c_o_GCJ \
20754
fix_srcfile_path_GCJ \
20755
exclude_expsyms_GCJ \
20756
include_expsyms_GCJ; do
20759
old_archive_cmds_GCJ | \
20760
old_archive_from_new_cmds_GCJ | \
20761
archive_cmds_GCJ | \
20762
archive_expsym_cmds_GCJ | \
20763
module_cmds_GCJ | \
20764
module_expsym_cmds_GCJ | \
20765
old_archive_from_expsyms_cmds_GCJ | \
20766
export_symbols_cmds_GCJ | \
20767
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20768
postinstall_cmds | postuninstall_cmds | \
20769
old_postinstall_cmds | old_postuninstall_cmds | \
20770
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20771
# Double-quote double-evaled strings.
20772
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20775
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20781
*'\$0 --fallback-echo"')
20782
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20788
cat <<__EOF__ >> "$cfgfile"
20789
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20791
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20793
# Shell to use when invoking shell scripts.
20796
# Whether or not to build shared libraries.
20797
build_libtool_libs=$enable_shared
20799
# Whether or not to build static libraries.
20800
build_old_libs=$enable_static
20802
# Whether or not to add -lc for building shared libraries.
20803
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20805
# Whether or not to disallow shared libs when runtime libs are static
20806
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20808
# Whether or not to optimize for fast installation.
20809
fast_install=$enable_fast_install
20812
host_alias=$host_alias
20816
# The build system.
20817
build_alias=$build_alias
20821
# An echo program that does not interpret backslashes.
20826
AR_FLAGS=$lt_AR_FLAGS
20831
# LTCC compiler flags.
20832
LTCFLAGS=$lt_LTCFLAGS
20834
# A language-specific compiler.
20835
CC=$lt_compiler_GCJ
20837
# Is the compiler the GNU C compiler?
20843
# The linker used to build libraries.
20846
# Whether we need hard or soft links.
20849
# A BSD-compatible nm program.
20852
# A symbol stripping program
20855
# Used to examine libraries when file_magic_cmd begins "file"
20856
MAGIC_CMD=$MAGIC_CMD
20858
# Used on cygwin: DLL creation program.
20861
# Used on cygwin: object dumper.
20864
# Used on cygwin: assembler.
20867
# The name of the directory that contains temporary libtool files.
20870
# How to create reloadable object files.
20871
reload_flag=$lt_reload_flag
20872
reload_cmds=$lt_reload_cmds
20874
# How to pass a linker flag through the compiler.
20875
wl=$lt_lt_prog_compiler_wl_GCJ
20877
# Object file suffix (normally "o").
20878
objext="$ac_objext"
20880
# Old archive suffix (normally "a").
20883
# Shared library suffix (normally ".so").
20884
shrext_cmds='$shrext_cmds'
20886
# Executable file suffix (normally "").
20889
# Additional compiler flags for building library objects.
20890
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20893
# What is the maximum length of a command?
20894
max_cmd_len=$lt_cv_sys_max_cmd_len
20896
# Does compiler simultaneously support -c and -o options?
20897
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20899
# Must we lock files when doing compilation?
20900
need_locks=$lt_need_locks
20902
# Do we need the lib prefix for modules?
20903
need_lib_prefix=$need_lib_prefix
20905
# Do we need a version for libraries?
20906
need_version=$need_version
20908
# Whether dlopen is supported.
20909
dlopen_support=$enable_dlopen
20911
# Whether dlopen of programs is supported.
20912
dlopen_self=$enable_dlopen_self
20914
# Whether dlopen of statically linked programs is supported.
20915
dlopen_self_static=$enable_dlopen_self_static
20917
# Compiler flag to prevent dynamic linking.
20918
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20920
# Compiler flag to turn off builtin functions.
20921
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20923
# Compiler flag to allow reflexive dlopens.
20924
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20926
# Compiler flag to generate shared objects directly from archives.
20927
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20929
# Compiler flag to generate thread-safe objects.
20930
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20932
# Library versioning type.
20933
version_type=$version_type
20935
# Format of library name prefix.
20936
libname_spec=$lt_libname_spec
20938
# List of archive names. First name is the real one, the rest are links.
20939
# The last name is the one that the linker finds with -lNAME.
20940
library_names_spec=$lt_library_names_spec
20942
# The coded name of the library, if different from the real name.
20943
soname_spec=$lt_soname_spec
20945
# Commands used to build and install an old-style archive.
20947
old_archive_cmds=$lt_old_archive_cmds_GCJ
20948
old_postinstall_cmds=$lt_old_postinstall_cmds
20949
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20951
# Create an old-style archive from a shared archive.
20952
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20954
# Create a temporary old-style archive to link instead of a shared archive.
20955
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20957
# Commands used to build and install a shared archive.
20958
archive_cmds=$lt_archive_cmds_GCJ
20959
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20960
postinstall_cmds=$lt_postinstall_cmds
20961
postuninstall_cmds=$lt_postuninstall_cmds
20963
# Commands used to build a loadable module (assumed same as above if empty)
20964
module_cmds=$lt_module_cmds_GCJ
20965
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20967
# Commands to strip libraries.
20968
old_striplib=$lt_old_striplib
20969
striplib=$lt_striplib
20971
# Dependencies to place before the objects being linked to create a
20973
predep_objects=$lt_predep_objects_GCJ
20975
# Dependencies to place after the objects being linked to create a
20977
postdep_objects=$lt_postdep_objects_GCJ
20979
# Dependencies to place before the objects being linked to create a
20981
predeps=$lt_predeps_GCJ
20983
# Dependencies to place after the objects being linked to create a
20985
postdeps=$lt_postdeps_GCJ
20987
# The directories searched by this compiler when creating a shared
20989
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20991
# The library search path used internally by the compiler when linking
20992
# a shared library.
20993
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20995
# Method to check whether dependent libraries are shared objects.
20996
deplibs_check_method=$lt_deplibs_check_method
20998
# Command to use when deplibs_check_method == file_magic.
20999
file_magic_cmd=$lt_file_magic_cmd
21001
# Flag that allows shared libraries with undefined symbols to be built.
21002
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21004
# Flag that forces no undefined symbols.
21005
no_undefined_flag=$lt_no_undefined_flag_GCJ
21007
# Commands used to finish a libtool library installation in a directory.
21008
finish_cmds=$lt_finish_cmds
21010
# Same as above, but a single script fragment to be evaled but not shown.
21011
finish_eval=$lt_finish_eval
21013
# Take the output of nm and produce a listing of raw symbols and C names.
21014
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21016
# Transform the output of nm in a proper C declaration
21017
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21019
# Transform the output of nm in a C name address pair
21020
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21022
# This is the shared library runtime path variable.
21023
runpath_var=$runpath_var
21025
# This is the shared library path variable.
21026
shlibpath_var=$shlibpath_var
21028
# Is shlibpath searched before the hard-coded library search path?
21029
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21031
# How to hardcode a shared library path into an executable.
21032
hardcode_action=$hardcode_action_GCJ
21034
# Whether we should hardcode library paths into libraries.
21035
hardcode_into_libs=$hardcode_into_libs
21037
# Flag to hardcode \$libdir into a binary during linking.
21038
# This must work even if \$libdir does not exist.
21039
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21041
# If ld is used when linking, flag to hardcode \$libdir into
21042
# a binary during linking. This must work even if \$libdir does
21044
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21046
# Whether we need a single -rpath flag with a separated argument.
21047
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21049
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21050
# resulting binary.
21051
hardcode_direct=$hardcode_direct_GCJ
21053
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21054
# resulting binary.
21055
hardcode_minus_L=$hardcode_minus_L_GCJ
21057
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21058
# the resulting binary.
21059
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21061
# Set to yes if building a shared library automatically hardcodes DIR into the library
21062
# and all subsequent libraries and executables linked against it.
21063
hardcode_automatic=$hardcode_automatic_GCJ
21065
# Variables whose values should be saved in libtool wrapper scripts and
21066
# restored at relink time.
21067
variables_saved_for_relink="$variables_saved_for_relink"
21069
# Whether libtool must link a program against all its dependency libraries.
21070
link_all_deplibs=$link_all_deplibs_GCJ
21072
# Compile-time system search path for libraries
21073
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21075
# Run-time system search path for libraries
21076
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21078
# Fix the shell variable \$srcfile for the compiler.
21079
fix_srcfile_path=$lt_fix_srcfile_path
21081
# Set to yes if exported symbols are required.
21082
always_export_symbols=$always_export_symbols_GCJ
21084
# The commands to list exported symbols.
21085
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21087
# The commands to extract the exported symbol list from a shared archive.
21088
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21090
# Symbols that should not be listed in the preloaded symbols.
21091
exclude_expsyms=$lt_exclude_expsyms_GCJ
21093
# Symbols that must always be exported.
21094
include_expsyms=$lt_include_expsyms_GCJ
21096
# ### END LIBTOOL TAG CONFIG: $tagname
21102
# If there is no Makefile yet, we rely on a make rule to execute
21103
# `config.status --recheck' to rerun these tests and create the
21104
# libtool script then.
21105
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21106
if test -f "$ltmain_in"; then
21107
test -f Makefile && make "$ltmain"
21113
ac_cpp='$CPP $CPPFLAGS'
21114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
# Source file extension for RC test sources.
21131
# Object file extension for compiled RC test sources.
21135
# Code to be used in simple compile tests
21136
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21138
# Code to be used in simple link tests
21139
lt_simple_link_test_code="$lt_simple_compile_test_code"
21141
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21143
# If no C compiler was specified, use CC.
21146
# If no C compiler flags were specified, use CFLAGS.
21147
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21149
# Allow CC to be a program name with arguments.
21153
# save warnings/boilerplate of simple test code
21154
ac_outfile=conftest.$ac_objext
21155
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21156
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21157
_lt_compiler_boilerplate=`cat conftest.err`
21160
ac_outfile=conftest.$ac_objext
21161
echo "$lt_simple_link_test_code" >conftest.$ac_ext
21162
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163
_lt_linker_boilerplate=`cat conftest.err`
21167
# Allow CC to be a program name with arguments.
21172
for cc_temp in $compiler""; do
21174
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21175
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21180
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21182
lt_cv_prog_compiler_c_o_RC=yes
21184
# The else clause should only fire when bootstrapping the
21185
# libtool distribution, otherwise you forgot to ship ltmain.sh
21186
# with your package, and you will get complaints that there are
21187
# no rules to generate ltmain.sh.
21188
if test -f "$ltmain"; then
21189
# See if we are running on zsh, and set the options which allow our commands through
21190
# without removal of \ escapes.
21191
if test -n "${ZSH_VERSION+set}" ; then
21192
setopt NO_GLOB_SUBST
21194
# Now quote all the things that may contain metacharacters while being
21195
# careful not to overquote the AC_SUBSTed values. We take copies of the
21196
# variables and quote the copies for generation of the libtool script.
21197
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21199
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21200
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21201
deplibs_check_method reload_flag reload_cmds need_locks \
21202
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21203
lt_cv_sys_global_symbol_to_c_name_address \
21204
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21205
old_postinstall_cmds old_postuninstall_cmds \
21209
lt_prog_compiler_wl_RC \
21210
lt_prog_compiler_pic_RC \
21211
lt_prog_compiler_static_RC \
21212
lt_prog_compiler_no_builtin_flag_RC \
21213
export_dynamic_flag_spec_RC \
21214
thread_safe_flag_spec_RC \
21215
whole_archive_flag_spec_RC \
21216
enable_shared_with_static_runtimes_RC \
21217
old_archive_cmds_RC \
21218
old_archive_from_new_cmds_RC \
21219
predep_objects_RC \
21220
postdep_objects_RC \
21223
compiler_lib_search_path_RC \
21224
compiler_lib_search_dirs_RC \
21226
archive_expsym_cmds_RC \
21227
postinstall_cmds_RC \
21228
postuninstall_cmds_RC \
21229
old_archive_from_expsyms_cmds_RC \
21230
allow_undefined_flag_RC \
21231
no_undefined_flag_RC \
21232
export_symbols_cmds_RC \
21233
hardcode_libdir_flag_spec_RC \
21234
hardcode_libdir_flag_spec_ld_RC \
21235
hardcode_libdir_separator_RC \
21236
hardcode_automatic_RC \
21238
module_expsym_cmds_RC \
21239
lt_cv_prog_compiler_c_o_RC \
21240
fix_srcfile_path_RC \
21241
exclude_expsyms_RC \
21242
include_expsyms_RC; do
21245
old_archive_cmds_RC | \
21246
old_archive_from_new_cmds_RC | \
21247
archive_cmds_RC | \
21248
archive_expsym_cmds_RC | \
21250
module_expsym_cmds_RC | \
21251
old_archive_from_expsyms_cmds_RC | \
21252
export_symbols_cmds_RC | \
21253
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21254
postinstall_cmds | postuninstall_cmds | \
21255
old_postinstall_cmds | old_postuninstall_cmds | \
21256
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21257
# Double-quote double-evaled strings.
21258
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21261
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21267
*'\$0 --fallback-echo"')
21268
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21274
cat <<__EOF__ >> "$cfgfile"
21275
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21277
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21279
# Shell to use when invoking shell scripts.
21282
# Whether or not to build shared libraries.
21283
build_libtool_libs=$enable_shared
21285
# Whether or not to build static libraries.
21286
build_old_libs=$enable_static
21288
# Whether or not to add -lc for building shared libraries.
21289
build_libtool_need_lc=$archive_cmds_need_lc_RC
21291
# Whether or not to disallow shared libs when runtime libs are static
21292
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21294
# Whether or not to optimize for fast installation.
21295
fast_install=$enable_fast_install
21298
host_alias=$host_alias
21302
# The build system.
21303
build_alias=$build_alias
21307
# An echo program that does not interpret backslashes.
21312
AR_FLAGS=$lt_AR_FLAGS
21317
# LTCC compiler flags.
21318
LTCFLAGS=$lt_LTCFLAGS
21320
# A language-specific compiler.
21323
# Is the compiler the GNU C compiler?
21329
# The linker used to build libraries.
21332
# Whether we need hard or soft links.
21335
# A BSD-compatible nm program.
21338
# A symbol stripping program
21341
# Used to examine libraries when file_magic_cmd begins "file"
21342
MAGIC_CMD=$MAGIC_CMD
21344
# Used on cygwin: DLL creation program.
21347
# Used on cygwin: object dumper.
21350
# Used on cygwin: assembler.
21353
# The name of the directory that contains temporary libtool files.
21356
# How to create reloadable object files.
21357
reload_flag=$lt_reload_flag
21358
reload_cmds=$lt_reload_cmds
21360
# How to pass a linker flag through the compiler.
21361
wl=$lt_lt_prog_compiler_wl_RC
21363
# Object file suffix (normally "o").
21364
objext="$ac_objext"
21366
# Old archive suffix (normally "a").
21369
# Shared library suffix (normally ".so").
21370
shrext_cmds='$shrext_cmds'
21372
# Executable file suffix (normally "").
21375
# Additional compiler flags for building library objects.
21376
pic_flag=$lt_lt_prog_compiler_pic_RC
21379
# What is the maximum length of a command?
21380
max_cmd_len=$lt_cv_sys_max_cmd_len
21382
# Does compiler simultaneously support -c and -o options?
21383
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21385
# Must we lock files when doing compilation?
21386
need_locks=$lt_need_locks
21388
# Do we need the lib prefix for modules?
21389
need_lib_prefix=$need_lib_prefix
21391
# Do we need a version for libraries?
21392
need_version=$need_version
21394
# Whether dlopen is supported.
21395
dlopen_support=$enable_dlopen
21397
# Whether dlopen of programs is supported.
21398
dlopen_self=$enable_dlopen_self
21400
# Whether dlopen of statically linked programs is supported.
21401
dlopen_self_static=$enable_dlopen_self_static
21403
# Compiler flag to prevent dynamic linking.
21404
link_static_flag=$lt_lt_prog_compiler_static_RC
21406
# Compiler flag to turn off builtin functions.
21407
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21409
# Compiler flag to allow reflexive dlopens.
21410
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21412
# Compiler flag to generate shared objects directly from archives.
21413
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21415
# Compiler flag to generate thread-safe objects.
21416
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21418
# Library versioning type.
21419
version_type=$version_type
21421
# Format of library name prefix.
21422
libname_spec=$lt_libname_spec
21424
# List of archive names. First name is the real one, the rest are links.
21425
# The last name is the one that the linker finds with -lNAME.
21426
library_names_spec=$lt_library_names_spec
21428
# The coded name of the library, if different from the real name.
21429
soname_spec=$lt_soname_spec
21431
# Commands used to build and install an old-style archive.
21433
old_archive_cmds=$lt_old_archive_cmds_RC
21434
old_postinstall_cmds=$lt_old_postinstall_cmds
21435
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21437
# Create an old-style archive from a shared archive.
21438
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21440
# Create a temporary old-style archive to link instead of a shared archive.
21441
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21443
# Commands used to build and install a shared archive.
21444
archive_cmds=$lt_archive_cmds_RC
21445
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21446
postinstall_cmds=$lt_postinstall_cmds
21447
postuninstall_cmds=$lt_postuninstall_cmds
21449
# Commands used to build a loadable module (assumed same as above if empty)
21450
module_cmds=$lt_module_cmds_RC
21451
module_expsym_cmds=$lt_module_expsym_cmds_RC
21453
# Commands to strip libraries.
21454
old_striplib=$lt_old_striplib
21455
striplib=$lt_striplib
21457
# Dependencies to place before the objects being linked to create a
21459
predep_objects=$lt_predep_objects_RC
21461
# Dependencies to place after the objects being linked to create a
21463
postdep_objects=$lt_postdep_objects_RC
21465
# Dependencies to place before the objects being linked to create a
21467
predeps=$lt_predeps_RC
21469
# Dependencies to place after the objects being linked to create a
21471
postdeps=$lt_postdeps_RC
21473
# The directories searched by this compiler when creating a shared
21475
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21477
# The library search path used internally by the compiler when linking
21478
# a shared library.
21479
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21481
# Method to check whether dependent libraries are shared objects.
21482
deplibs_check_method=$lt_deplibs_check_method
21484
# Command to use when deplibs_check_method == file_magic.
21485
file_magic_cmd=$lt_file_magic_cmd
21487
# Flag that allows shared libraries with undefined symbols to be built.
21488
allow_undefined_flag=$lt_allow_undefined_flag_RC
21490
# Flag that forces no undefined symbols.
21491
no_undefined_flag=$lt_no_undefined_flag_RC
21493
# Commands used to finish a libtool library installation in a directory.
21494
finish_cmds=$lt_finish_cmds
21496
# Same as above, but a single script fragment to be evaled but not shown.
21497
finish_eval=$lt_finish_eval
21499
# Take the output of nm and produce a listing of raw symbols and C names.
21500
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21502
# Transform the output of nm in a proper C declaration
21503
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21505
# Transform the output of nm in a C name address pair
21506
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21508
# This is the shared library runtime path variable.
21509
runpath_var=$runpath_var
21511
# This is the shared library path variable.
21512
shlibpath_var=$shlibpath_var
21514
# Is shlibpath searched before the hard-coded library search path?
21515
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21517
# How to hardcode a shared library path into an executable.
21518
hardcode_action=$hardcode_action_RC
21520
# Whether we should hardcode library paths into libraries.
21521
hardcode_into_libs=$hardcode_into_libs
21523
# Flag to hardcode \$libdir into a binary during linking.
21524
# This must work even if \$libdir does not exist.
21525
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21527
# If ld is used when linking, flag to hardcode \$libdir into
21528
# a binary during linking. This must work even if \$libdir does
21530
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21532
# Whether we need a single -rpath flag with a separated argument.
21533
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21535
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21536
# resulting binary.
21537
hardcode_direct=$hardcode_direct_RC
21539
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21540
# resulting binary.
21541
hardcode_minus_L=$hardcode_minus_L_RC
21543
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21544
# the resulting binary.
21545
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21547
# Set to yes if building a shared library automatically hardcodes DIR into the library
21548
# and all subsequent libraries and executables linked against it.
21549
hardcode_automatic=$hardcode_automatic_RC
21551
# Variables whose values should be saved in libtool wrapper scripts and
21552
# restored at relink time.
21553
variables_saved_for_relink="$variables_saved_for_relink"
21555
# Whether libtool must link a program against all its dependency libraries.
21556
link_all_deplibs=$link_all_deplibs_RC
21558
# Compile-time system search path for libraries
21559
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21561
# Run-time system search path for libraries
21562
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21564
# Fix the shell variable \$srcfile for the compiler.
21565
fix_srcfile_path=$lt_fix_srcfile_path
21567
# Set to yes if exported symbols are required.
21568
always_export_symbols=$always_export_symbols_RC
21570
# The commands to list exported symbols.
21571
export_symbols_cmds=$lt_export_symbols_cmds_RC
21573
# The commands to extract the exported symbol list from a shared archive.
21574
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21576
# Symbols that should not be listed in the preloaded symbols.
21577
exclude_expsyms=$lt_exclude_expsyms_RC
21579
# Symbols that must always be exported.
21580
include_expsyms=$lt_include_expsyms_RC
21582
# ### END LIBTOOL TAG CONFIG: $tagname
21588
# If there is no Makefile yet, we rely on a make rule to execute
21589
# `config.status --recheck' to rerun these tests and create the
21590
# libtool script then.
21591
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21592
if test -f "$ltmain_in"; then
21593
test -f Makefile && make "$ltmain"
21599
ac_cpp='$CPP $CPPFLAGS'
21600
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21609
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21610
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21611
{ (exit 1); exit 1; }; }
21615
# Append the new tag name to the list of available tags.
21616
if test -n "$tagname" ; then
21617
available_tags="$available_tags $tagname"
21623
# Now substitute the updated list of available tags.
21624
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21625
mv "${ofile}T" "$ofile"
21629
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21630
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21631
{ (exit 1); exit 1; }; }
21637
# This can be used to rebuild libtool when needed
21638
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21640
# Always use our own libtool.
21641
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21643
# Prevent multiple expansion
12840
21664
# Extract the first word of "glib-genmarshal", so it can be a program name with args.