14108
# Report which library types will actually be built
14109
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14110
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14111
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14112
echo "${ECHO_T}$can_build_shared" >&6; }
14114
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14115
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14116
test "$can_build_shared" = "no" && enable_shared=no
14118
# On AIX, shared libraries and static libraries use the same namespace, and
14119
# are all built from PIC.
14122
test "$enable_shared" = yes && enable_static=no
14123
if test -n "$RANLIB"; then
14124
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14125
postinstall_cmds='$RANLIB $lib'
14130
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14131
test "$enable_shared" = yes && enable_static=no
14135
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14136
echo "${ECHO_T}$enable_shared" >&6; }
14138
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14139
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14140
# Make sure either enable_shared or enable_static is yes.
14141
test "$enable_shared" = yes || enable_static=yes
14142
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14143
echo "${ECHO_T}$enable_static" >&6; }
14145
# The else clause should only fire when bootstrapping the
14146
# libtool distribution, otherwise you forgot to ship ltmain.sh
14147
# with your package, and you will get complaints that there are
14148
# no rules to generate ltmain.sh.
14149
if test -f "$ltmain"; then
14150
# See if we are running on zsh, and set the options which allow our commands through
14151
# without removal of \ escapes.
14152
if test -n "${ZSH_VERSION+set}" ; then
14153
setopt NO_GLOB_SUBST
14155
# Now quote all the things that may contain metacharacters while being
14156
# careful not to overquote the AC_SUBSTed values. We take copies of the
14157
# variables and quote the copies for generation of the libtool script.
14158
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14160
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14161
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14162
deplibs_check_method reload_flag reload_cmds need_locks \
14163
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14164
lt_cv_sys_global_symbol_to_c_name_address \
14165
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14166
old_postinstall_cmds old_postuninstall_cmds \
14170
lt_prog_compiler_wl \
14171
lt_prog_compiler_pic \
14172
lt_prog_compiler_static \
14173
lt_prog_compiler_no_builtin_flag \
14174
export_dynamic_flag_spec \
14175
thread_safe_flag_spec \
14176
whole_archive_flag_spec \
14177
enable_shared_with_static_runtimes \
14179
old_archive_from_new_cmds \
14184
compiler_lib_search_path \
14185
compiler_lib_search_dirs \
14187
archive_expsym_cmds \
14189
postuninstall_cmds \
14190
old_archive_from_expsyms_cmds \
14191
allow_undefined_flag \
14192
no_undefined_flag \
14193
export_symbols_cmds \
14194
hardcode_libdir_flag_spec \
14195
hardcode_libdir_flag_spec_ld \
14196
hardcode_libdir_separator \
14197
hardcode_automatic \
14199
module_expsym_cmds \
14200
lt_cv_prog_compiler_c_o \
14203
include_expsyms; do
14206
old_archive_cmds | \
14207
old_archive_from_new_cmds | \
14209
archive_expsym_cmds | \
14211
module_expsym_cmds | \
14212
old_archive_from_expsyms_cmds | \
14213
export_symbols_cmds | \
14214
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14215
postinstall_cmds | postuninstall_cmds | \
14216
old_postinstall_cmds | old_postuninstall_cmds | \
14217
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14218
# Double-quote double-evaled strings.
14219
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14222
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14228
*'\$0 --fallback-echo"')
14229
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14233
cfgfile="${ofile}T"
14234
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14236
{ echo "$as_me:$LINENO: creating $ofile" >&5
14237
echo "$as_me: creating $ofile" >&6;}
14239
cat <<__EOF__ >> "$cfgfile"
14242
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14243
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14244
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14246
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
14247
# Free Software Foundation, Inc.
14249
# This file is part of GNU Libtool:
14250
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14252
# This program is free software; you can redistribute it and/or modify
14253
# it under the terms of the GNU General Public License as published by
14254
# the Free Software Foundation; either version 2 of the License, or
14255
# (at your option) any later version.
14257
# This program is distributed in the hope that it will be useful, but
14258
# WITHOUT ANY WARRANTY; without even the implied warranty of
14259
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14260
# General Public License for more details.
14262
# You should have received a copy of the GNU General Public License
14263
# along with this program; if not, write to the Free Software
14264
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14266
# As a special exception to the GNU General Public License, if you
14267
# distribute this file as part of a program that contains a
14268
# configuration script generated by Autoconf, you may include it under
14269
# the same distribution terms that you use for the rest of that program.
14271
# A sed program that does not truncate output.
14274
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14275
Xsed="$SED -e 1s/^X//"
14277
# The HP-UX ksh and POSIX shell print the target directory to stdout
14278
# if CDPATH is set.
14279
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14281
# The names of the tagged configurations supported by this script.
14284
# ### BEGIN LIBTOOL CONFIG
14286
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14288
# Shell to use when invoking shell scripts.
14291
# Whether or not to build shared libraries.
14292
build_libtool_libs=$enable_shared
14294
# Whether or not to build static libraries.
14295
build_old_libs=$enable_static
14297
# Whether or not to add -lc for building shared libraries.
14298
build_libtool_need_lc=$archive_cmds_need_lc
14300
# Whether or not to disallow shared libs when runtime libs are static
14301
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14303
# Whether or not to optimize for fast installation.
14304
fast_install=$enable_fast_install
14307
host_alias=$host_alias
14311
# The build system.
14312
build_alias=$build_alias
14316
# An echo program that does not interpret backslashes.
14321
AR_FLAGS=$lt_AR_FLAGS
14326
# LTCC compiler flags.
14327
LTCFLAGS=$lt_LTCFLAGS
14329
# A language-specific compiler.
14332
# Is the compiler the GNU C compiler?
14338
# The linker used to build libraries.
14341
# Whether we need hard or soft links.
14344
# A BSD-compatible nm program.
14347
# A symbol stripping program
14350
# Used to examine libraries when file_magic_cmd begins "file"
14351
MAGIC_CMD=$MAGIC_CMD
14353
# Used on cygwin: DLL creation program.
14356
# Used on cygwin: object dumper.
14359
# Used on cygwin: assembler.
14362
# The name of the directory that contains temporary libtool files.
14365
# How to create reloadable object files.
14366
reload_flag=$lt_reload_flag
14367
reload_cmds=$lt_reload_cmds
14369
# How to pass a linker flag through the compiler.
14370
wl=$lt_lt_prog_compiler_wl
14372
# Object file suffix (normally "o").
14373
objext="$ac_objext"
14375
# Old archive suffix (normally "a").
14378
# Shared library suffix (normally ".so").
14379
shrext_cmds='$shrext_cmds'
14381
# Executable file suffix (normally "").
14384
# Additional compiler flags for building library objects.
14385
pic_flag=$lt_lt_prog_compiler_pic
14388
# What is the maximum length of a command?
14389
max_cmd_len=$lt_cv_sys_max_cmd_len
14391
# Does compiler simultaneously support -c and -o options?
14392
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14394
# Must we lock files when doing compilation?
14395
need_locks=$lt_need_locks
14397
# Do we need the lib prefix for modules?
14398
need_lib_prefix=$need_lib_prefix
14400
# Do we need a version for libraries?
14401
need_version=$need_version
14403
# Whether dlopen is supported.
14404
dlopen_support=$enable_dlopen
14406
# Whether dlopen of programs is supported.
14407
dlopen_self=$enable_dlopen_self
14409
# Whether dlopen of statically linked programs is supported.
14410
dlopen_self_static=$enable_dlopen_self_static
14412
# Compiler flag to prevent dynamic linking.
14413
link_static_flag=$lt_lt_prog_compiler_static
14415
# Compiler flag to turn off builtin functions.
14416
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14418
# Compiler flag to allow reflexive dlopens.
14419
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14421
# Compiler flag to generate shared objects directly from archives.
14422
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14424
# Compiler flag to generate thread-safe objects.
14425
thread_safe_flag_spec=$lt_thread_safe_flag_spec
14427
# Library versioning type.
14428
version_type=$version_type
14430
# Format of library name prefix.
14431
libname_spec=$lt_libname_spec
14433
# List of archive names. First name is the real one, the rest are links.
14434
# The last name is the one that the linker finds with -lNAME.
14435
library_names_spec=$lt_library_names_spec
14437
# The coded name of the library, if different from the real name.
14438
soname_spec=$lt_soname_spec
14440
# Commands used to build and install an old-style archive.
14442
old_archive_cmds=$lt_old_archive_cmds
14443
old_postinstall_cmds=$lt_old_postinstall_cmds
14444
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14446
# Create an old-style archive from a shared archive.
14447
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14449
# Create a temporary old-style archive to link instead of a shared archive.
14450
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14452
# Commands used to build and install a shared archive.
14453
archive_cmds=$lt_archive_cmds
14454
archive_expsym_cmds=$lt_archive_expsym_cmds
14455
postinstall_cmds=$lt_postinstall_cmds
14456
postuninstall_cmds=$lt_postuninstall_cmds
14458
# Commands used to build a loadable module (assumed same as above if empty)
14459
module_cmds=$lt_module_cmds
14460
module_expsym_cmds=$lt_module_expsym_cmds
14462
# Commands to strip libraries.
14463
old_striplib=$lt_old_striplib
14464
striplib=$lt_striplib
14466
# Dependencies to place before the objects being linked to create a
14468
predep_objects=$lt_predep_objects
14470
# Dependencies to place after the objects being linked to create a
14472
postdep_objects=$lt_postdep_objects
14474
# Dependencies to place before the objects being linked to create a
14476
predeps=$lt_predeps
14478
# Dependencies to place after the objects being linked to create a
14480
postdeps=$lt_postdeps
14482
# The directories searched by this compiler when creating a shared
14484
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
14486
# The library search path used internally by the compiler when linking
14487
# a shared library.
14488
compiler_lib_search_path=$lt_compiler_lib_search_path
14490
# Method to check whether dependent libraries are shared objects.
14491
deplibs_check_method=$lt_deplibs_check_method
14493
# Command to use when deplibs_check_method == file_magic.
14494
file_magic_cmd=$lt_file_magic_cmd
14496
# Flag that allows shared libraries with undefined symbols to be built.
14497
allow_undefined_flag=$lt_allow_undefined_flag
14499
# Flag that forces no undefined symbols.
14500
no_undefined_flag=$lt_no_undefined_flag
14502
# Commands used to finish a libtool library installation in a directory.
14503
finish_cmds=$lt_finish_cmds
14505
# Same as above, but a single script fragment to be evaled but not shown.
14506
finish_eval=$lt_finish_eval
14508
# Take the output of nm and produce a listing of raw symbols and C names.
14509
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14511
# Transform the output of nm in a proper C declaration
14512
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14514
# Transform the output of nm in a C name address pair
14515
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14517
# This is the shared library runtime path variable.
14518
runpath_var=$runpath_var
14520
# This is the shared library path variable.
14521
shlibpath_var=$shlibpath_var
14523
# Is shlibpath searched before the hard-coded library search path?
14524
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14526
# How to hardcode a shared library path into an executable.
14527
hardcode_action=$hardcode_action
14529
# Whether we should hardcode library paths into libraries.
14530
hardcode_into_libs=$hardcode_into_libs
14532
# Flag to hardcode \$libdir into a binary during linking.
14533
# This must work even if \$libdir does not exist.
14534
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14536
# If ld is used when linking, flag to hardcode \$libdir into
14537
# a binary during linking. This must work even if \$libdir does
14539
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14541
# Whether we need a single -rpath flag with a separated argument.
14542
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14544
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14545
# resulting binary.
14546
hardcode_direct=$hardcode_direct
14548
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14549
# resulting binary.
14550
hardcode_minus_L=$hardcode_minus_L
14552
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14553
# the resulting binary.
14554
hardcode_shlibpath_var=$hardcode_shlibpath_var
14556
# Set to yes if building a shared library automatically hardcodes DIR into the library
14557
# and all subsequent libraries and executables linked against it.
14558
hardcode_automatic=$hardcode_automatic
14560
# Variables whose values should be saved in libtool wrapper scripts and
14561
# restored at relink time.
14562
variables_saved_for_relink="$variables_saved_for_relink"
14564
# Whether libtool must link a program against all its dependency libraries.
14565
link_all_deplibs=$link_all_deplibs
14567
# Compile-time system search path for libraries
14568
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14570
# Run-time system search path for libraries
14571
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14573
# Fix the shell variable \$srcfile for the compiler.
14574
fix_srcfile_path=$lt_fix_srcfile_path
14576
# Set to yes if exported symbols are required.
14577
always_export_symbols=$always_export_symbols
14579
# The commands to list exported symbols.
14580
export_symbols_cmds=$lt_export_symbols_cmds
14582
# The commands to extract the exported symbol list from a shared archive.
14583
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14585
# Symbols that should not be listed in the preloaded symbols.
14586
exclude_expsyms=$lt_exclude_expsyms
14588
# Symbols that must always be exported.
14589
include_expsyms=$lt_include_expsyms
14591
# ### END LIBTOOL CONFIG
14598
cat <<\EOF >> "$cfgfile"
14600
# AIX sometimes has problems with the GCC collect2 program. For some
14601
# reason, if we set the COLLECT_NAMES environment variable, the problems
14602
# vanish in a puff of smoke.
14603
if test "X${COLLECT_NAMES+set}" != Xset; then
14605
export COLLECT_NAMES
14611
# We use sed instead of cat because bash on DJGPP gets confused if
14612
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14613
# text mode, it properly converts lines to CR/LF. This bash problem
14614
# is reportedly fixed, but why not run on old versions too?
14615
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14617
mv -f "$cfgfile" "$ofile" || \
14618
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14622
# If there is no Makefile yet, we rely on a make rule to execute
14623
# `config.status --recheck' to rerun these tests and create the
14624
# libtool script then.
14625
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14626
if test -f "$ltmain_in"; then
14627
test -f Makefile && make "$ltmain"
14633
ac_cpp='$CPP $CPPFLAGS'
14634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14641
# Check whether --with-tags was given.
14642
if test "${with_tags+set}" = set; then
14643
withval=$with_tags; tagnames="$withval"
14647
if test -f "$ltmain" && test -n "$tagnames"; then
14648
if test ! -f "${ofile}"; then
14649
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14650
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14653
if test -z "$LTCC"; then
14654
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14655
if test -z "$LTCC"; then
14656
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14657
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14659
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14660
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14663
if test -z "$LTCFLAGS"; then
14664
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14667
# Extract list of available tagged configurations in $ofile.
14668
# Note that this assumes the entire list is on one line.
14669
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14671
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14672
for tagname in $tagnames; do
14674
# Check whether tagname contains only valid characters
14675
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14677
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14678
echo "$as_me: error: invalid tag name: $tagname" >&2;}
14679
{ (exit 1); exit 1; }; }
14683
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14685
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14686
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14687
{ (exit 1); exit 1; }; }
14690
# Update the list of available tags.
14691
if test -n "$tagname"; then
14692
echo appending configuration tag \"$tagname\" to $ofile
14696
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14697
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14698
(test "X$CXX" != "Xg++"))) ; then
14700
ac_cpp='$CXXCPP $CPPFLAGS'
14701
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14702
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14703
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14708
archive_cmds_need_lc_CXX=no
14709
allow_undefined_flag_CXX=
14710
always_export_symbols_CXX=no
14711
archive_expsym_cmds_CXX=
14712
export_dynamic_flag_spec_CXX=
14713
hardcode_direct_CXX=no
14714
hardcode_libdir_flag_spec_CXX=
14715
hardcode_libdir_flag_spec_ld_CXX=
14716
hardcode_libdir_separator_CXX=
14717
hardcode_minus_L_CXX=no
14718
hardcode_shlibpath_var_CXX=unsupported
14719
hardcode_automatic_CXX=no
14721
module_expsym_cmds_CXX=
14722
link_all_deplibs_CXX=unknown
14723
old_archive_cmds_CXX=$old_archive_cmds
14724
no_undefined_flag_CXX=
14725
whole_archive_flag_spec_CXX=
14726
enable_shared_with_static_runtimes_CXX=no
14728
# Dependencies to place before and after the object being linked:
14729
predep_objects_CXX=
14730
postdep_objects_CXX=
14733
compiler_lib_search_path_CXX=
14734
compiler_lib_search_dirs_CXX=
14736
# Source file extension for C++ test sources.
14739
# Object file extension for compiled C++ test sources.
14743
# Code to be used in simple compile tests
14744
lt_simple_compile_test_code="int some_variable = 0;"
14746
# Code to be used in simple link tests
14747
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14749
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14751
# If no C compiler was specified, use CC.
14754
# If no C compiler flags were specified, use CFLAGS.
14755
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14757
# Allow CC to be a program name with arguments.
14761
# save warnings/boilerplate of simple test code
14762
ac_outfile=conftest.$ac_objext
14763
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14764
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14765
_lt_compiler_boilerplate=`cat conftest.err`
14768
ac_outfile=conftest.$ac_objext
14769
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14770
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14771
_lt_linker_boilerplate=`cat conftest.err`
14775
# Allow CC to be a program name with arguments.
14780
lt_save_with_gnu_ld=$with_gnu_ld
14781
lt_save_path_LD=$lt_cv_path_LD
14782
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14783
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14785
$as_unset lt_cv_prog_gnu_ld
14787
if test -n "${lt_cv_path_LDCXX+set}"; then
14788
lt_cv_path_LD=$lt_cv_path_LDCXX
14790
$as_unset lt_cv_path_LD
14792
test -z "${LDCXX+set}" || LD=$LDCXX
14796
for cc_temp in $compiler""; do
14798
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14799
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14804
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14807
# We don't want -fno-exception wen compiling C++ code, so set the
14808
# no_builtin_flag separately
14809
if test "$GXX" = yes; then
14810
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14812
lt_prog_compiler_no_builtin_flag_CXX=
14815
if test "$GXX" = yes; then
14816
# Set up default GNU C++ configuration
14819
# Check whether --with-gnu-ld was given.
14820
if test "${with_gnu_ld+set}" = set; then
14821
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14827
if test "$GCC" = yes; then
14828
# Check if gcc -print-prog-name=ld gives a path.
14829
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14830
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14833
# gcc leaves a trailing carriage return which upsets mingw
14834
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14836
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14839
# Accept absolute paths.
14841
re_direlt='/[^/][^/]*/\.\./'
14842
# Canonicalize the pathname of ld
14843
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14844
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14845
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14847
test -z "$LD" && LD="$ac_prog"
14850
# If it fails, then pretend we aren't using GCC.
14854
# If it is relative, then search for the first ld in PATH.
14855
with_gnu_ld=unknown
14858
elif test "$with_gnu_ld" = yes; then
14859
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
14860
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14862
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14863
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14865
if test "${lt_cv_path_LD+set}" = set; then
14866
echo $ECHO_N "(cached) $ECHO_C" >&6
14868
if test -z "$LD"; then
14869
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14870
for ac_dir in $PATH; do
14872
test -z "$ac_dir" && ac_dir=.
14873
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14874
lt_cv_path_LD="$ac_dir/$ac_prog"
14875
# Check to see if the program is GNU ld. I'd rather use --version,
14876
# but apparently some variants of GNU ld only accept -v.
14877
# Break only if it was the GNU/non-GNU ld that we prefer.
14878
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14879
*GNU* | *'with BFD'*)
14880
test "$with_gnu_ld" != no && break
14883
test "$with_gnu_ld" != yes && break
14890
lt_cv_path_LD="$LD" # Let the user override the test with a path.
14894
LD="$lt_cv_path_LD"
14895
if test -n "$LD"; then
14896
{ echo "$as_me:$LINENO: result: $LD" >&5
14897
echo "${ECHO_T}$LD" >&6; }
14899
{ echo "$as_me:$LINENO: result: no" >&5
14900
echo "${ECHO_T}no" >&6; }
14902
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14903
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14904
{ (exit 1); exit 1; }; }
14905
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14906
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14907
if test "${lt_cv_prog_gnu_ld+set}" = set; then
14908
echo $ECHO_N "(cached) $ECHO_C" >&6
14910
# I'd rather use --version here, but apparently some GNU lds only accept -v.
14911
case `$LD -v 2>&1 </dev/null` in
14912
*GNU* | *'with BFD'*)
14913
lt_cv_prog_gnu_ld=yes
14916
lt_cv_prog_gnu_ld=no
14920
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14921
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14922
with_gnu_ld=$lt_cv_prog_gnu_ld
14926
# Check if GNU C++ uses GNU ld as the underlying linker, since the
14927
# archiving commands below assume that GNU ld is being used.
14928
if test "$with_gnu_ld" = yes; then
14929
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930
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'
14932
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14933
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14935
# If archive_cmds runs LD, not CC, wlarc should be empty
14936
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14937
# investigate it a little bit more. (MM)
14940
# ancient GNU ld didn't support --whole-archive et. al.
14941
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14942
grep 'no-whole-archive' > /dev/null; then
14943
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14945
whole_archive_flag_spec_CXX=
14951
# A generic and very simple default shared library creation
14952
# command for GNU C++ for the case where it uses the native
14953
# linker, instead of GNU ld. If possible, this setting should
14954
# overridden to take advantage of the native linker features on
14955
# the platform it is being used on.
14956
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14959
# Commands to make compiler produce verbose output that lists
14960
# what "hidden" libraries, object files and flags are used when
14961
# linking a shared library.
14962
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14970
# PORTME: fill in a description of your system's C++ link characteristics
14971
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14972
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14976
# FIXME: insert proper C++ library support
14980
if test "$host_cpu" = ia64; then
14981
# On IA64, the linker does run time linking by default, so we don't
14982
# have to do anything special.
14983
aix_use_runtimelinking=no
14984
exp_sym_flag='-Bexport'
14987
aix_use_runtimelinking=no
14989
# Test if we are trying to use run time linking or normal
14990
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14991
# need to do runtime linking.
14992
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14993
for ld_flag in $LDFLAGS; do
14996
aix_use_runtimelinking=yes
15004
exp_sym_flag='-bexport'
15005
no_entry_flag='-bnoentry'
15008
# When large executables or shared objects are built, AIX ld can
15009
# have problems creating the table of contents. If linking a library
15010
# or program results in "error TOC overflow" add -mminimal-toc to
15011
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15012
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15014
archive_cmds_CXX=''
15015
hardcode_direct_CXX=yes
15016
hardcode_libdir_separator_CXX=':'
15017
link_all_deplibs_CXX=yes
15019
if test "$GXX" = yes; then
15020
case $host_os in aix4.[012]|aix4.[012].*)
15021
# We only want to do this on AIX 4.2 and lower, the check
15022
# below for broken collect2 doesn't work under 4.3+
15023
collect2name=`${CC} -print-prog-name=collect2`
15024
if test -f "$collect2name" && \
15025
strings "$collect2name" | grep resolve_lib_name >/dev/null
15027
# We have reworked collect2
15030
# We have old collect2
15031
hardcode_direct_CXX=unsupported
15032
# It fails to find uninstalled libraries when the uninstalled
15033
# path is not listed in the libpath. Setting hardcode_minus_L
15034
# to unsupported forces relinking
15035
hardcode_minus_L_CXX=yes
15036
hardcode_libdir_flag_spec_CXX='-L$libdir'
15037
hardcode_libdir_separator_CXX=
15041
shared_flag='-shared'
15042
if test "$aix_use_runtimelinking" = yes; then
15043
shared_flag="$shared_flag "'${wl}-G'
15047
if test "$host_cpu" = ia64; then
15048
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15049
# chokes on -Wl,-G. The following line is correct:
15052
if test "$aix_use_runtimelinking" = yes; then
15053
shared_flag='${wl}-G'
15055
shared_flag='${wl}-bM:SRE'
15060
# It seems that -bexpall does not export symbols beginning with
15061
# underscore (_), so it is better to generate a list of symbols to export.
15062
always_export_symbols_CXX=yes
15063
if test "$aix_use_runtimelinking" = yes; then
15064
# Warning - without using the other runtime loading flags (-brtl),
15065
# -berok will link without error, but may produce a broken library.
15066
allow_undefined_flag_CXX='-berok'
15067
# Determine the default libpath from the value encoded in an empty executable.
15068
cat >conftest.$ac_ext <<_ACEOF
15071
cat confdefs.h >>conftest.$ac_ext
15072
cat >>conftest.$ac_ext <<_ACEOF
15073
/* end confdefs.h. */
15083
rm -f conftest.$ac_objext conftest$ac_exeext
15084
if { (ac_try="$ac_link"
15085
case "(($ac_try" in
15086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087
*) ac_try_echo=$ac_try;;
15089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090
(eval "$ac_link") 2>conftest.er1
15092
grep -v '^ *+' conftest.er1 >conftest.err
15094
cat conftest.err >&5
15095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096
(exit $ac_status); } && {
15097
test -z "$ac_cxx_werror_flag" ||
15098
test ! -s conftest.err
15099
} && test -s conftest$ac_exeext &&
15100
$as_test_x conftest$ac_exeext; then
15102
lt_aix_libpath_sed='
15103
/Import File Strings/,/^$/ {
15109
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15110
# Check for a 64-bit object if we didn't find anything.
15111
if test -z "$aix_libpath"; then
15112
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15115
echo "$as_me: failed program was:" >&5
15116
sed 's/^/| /' conftest.$ac_ext >&5
15121
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15122
conftest$ac_exeext conftest.$ac_ext
15123
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15125
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15127
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"
15129
if test "$host_cpu" = ia64; then
15130
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15131
allow_undefined_flag_CXX="-z nodefs"
15132
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"
15134
# Determine the default libpath from the value encoded in an empty executable.
15135
cat >conftest.$ac_ext <<_ACEOF
15138
cat confdefs.h >>conftest.$ac_ext
15139
cat >>conftest.$ac_ext <<_ACEOF
15140
/* end confdefs.h. */
15150
rm -f conftest.$ac_objext conftest$ac_exeext
15151
if { (ac_try="$ac_link"
15152
case "(($ac_try" in
15153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154
*) ac_try_echo=$ac_try;;
15156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157
(eval "$ac_link") 2>conftest.er1
15159
grep -v '^ *+' conftest.er1 >conftest.err
15161
cat conftest.err >&5
15162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163
(exit $ac_status); } && {
15164
test -z "$ac_cxx_werror_flag" ||
15165
test ! -s conftest.err
15166
} && test -s conftest$ac_exeext &&
15167
$as_test_x conftest$ac_exeext; then
15169
lt_aix_libpath_sed='
15170
/Import File Strings/,/^$/ {
15176
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15177
# Check for a 64-bit object if we didn't find anything.
15178
if test -z "$aix_libpath"; then
15179
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182
echo "$as_me: failed program was:" >&5
15183
sed 's/^/| /' conftest.$ac_ext >&5
15188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15189
conftest$ac_exeext conftest.$ac_ext
15190
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15192
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15193
# Warning - without using the other run time loading flags,
15194
# -berok will link without error, but may produce a broken library.
15195
no_undefined_flag_CXX=' ${wl}-bernotok'
15196
allow_undefined_flag_CXX=' ${wl}-berok'
15197
# Exported symbols can be pulled into shared objects from archives
15198
whole_archive_flag_spec_CXX='$convenience'
15199
archive_cmds_need_lc_CXX=yes
15200
# This is similar to how AIX traditionally builds its shared libraries.
15201
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'
15207
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15208
allow_undefined_flag_CXX=unsupported
15209
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15210
# support --undefined. This deserves some investigation. FIXME
15211
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218
case $cc_basename in
15220
# FIXME: insert proper C++ library support
15226
cygwin* | mingw* | pw32*)
15227
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15228
# as there is no search path for DLLs.
15229
hardcode_libdir_flag_spec_CXX='-L$libdir'
15230
allow_undefined_flag_CXX=unsupported
15231
always_export_symbols_CXX=no
15232
enable_shared_with_static_runtimes_CXX=yes
15234
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15235
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'
15236
# If the export-symbols file already is a .def file (1st line
15237
# is EXPORTS), use it as is; otherwise, prepend...
15238
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15239
cp $export_symbols $output_objdir/$soname.def;
15241
echo EXPORTS > $output_objdir/$soname.def;
15242
cat $export_symbols >> $output_objdir/$soname.def;
15244
$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'
15249
darwin* | rhapsody*)
15250
archive_cmds_need_lc_CXX=no
15251
hardcode_direct_CXX=no
15252
hardcode_automatic_CXX=yes
15253
hardcode_shlibpath_var_CXX=unsupported
15254
whole_archive_flag_spec_CXX=''
15255
link_all_deplibs_CXX=yes
15256
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15257
if test "$GXX" = yes ; then
15258
output_verbose_link_cmd='echo'
15259
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}"
15260
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15261
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}"
15262
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}"
15263
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15264
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}"
15265
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}"
15268
case $cc_basename in
15270
output_verbose_link_cmd='echo'
15271
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'
15272
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15273
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15274
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}'
15275
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}'
15285
case $cc_basename in
15287
# FIXME: insert proper C++ library support
15291
# Green Hills C++ Compiler
15292
# FIXME: insert proper C++ library support
15296
# FIXME: insert proper C++ library support
15302
# C++ shared libraries reported to be fairly broken before switch to ELF
15306
archive_cmds_need_lc_CXX=no
15308
freebsd* | dragonfly*)
15309
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15316
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15317
hardcode_libdir_separator_CXX=:
15318
export_dynamic_flag_spec_CXX='${wl}-E'
15319
hardcode_direct_CXX=yes
15320
hardcode_minus_L_CXX=yes # Not in the search PATH,
15321
# but as the default
15322
# location of the library.
15324
case $cc_basename in
15326
# FIXME: insert proper C++ library support
15330
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'
15331
# Commands to make compiler produce verbose output that lists
15332
# what "hidden" libraries, object files and flags are used when
15333
# linking a shared library.
15335
# There doesn't appear to be a way to prevent this compiler from
15336
# explicitly linking system object files so we need to strip them
15337
# from the output so that they don't get included in the library
15339
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'
15342
if test "$GXX" = yes; then
15343
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'
15345
# FIXME: insert proper C++ library support
15352
if test $with_gnu_ld = no; then
15353
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15354
hardcode_libdir_separator_CXX=:
15359
export_dynamic_flag_spec_CXX='${wl}-E'
15365
hardcode_direct_CXX=no
15366
hardcode_shlibpath_var_CXX=no
15369
hardcode_direct_CXX=yes
15370
hardcode_minus_L_CXX=yes # Not in the search PATH,
15371
# but as the default
15372
# location of the library.
15376
case $cc_basename in
15378
# FIXME: insert proper C++ library support
15384
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15387
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15390
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15393
# Commands to make compiler produce verbose output that lists
15394
# what "hidden" libraries, object files and flags are used when
15395
# linking a shared library.
15397
# There doesn't appear to be a way to prevent this compiler from
15398
# explicitly linking system object files so we need to strip them
15399
# from the output so that they don't get included in the library
15401
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'
15404
if test "$GXX" = yes; then
15405
if test $with_gnu_ld = no; then
15408
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15411
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15414
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'
15419
# FIXME: insert proper C++ library support
15426
hardcode_direct_CXX=no
15427
hardcode_shlibpath_var_CXX=no
15428
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15429
export_dynamic_flag_spec_CXX='${wl}-E'
15430
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15431
# Instead, shared libraries are loaded at an image base (0x10000000 by
15432
# default) and relocated if they conflict, which is a slow very memory
15433
# consuming and fragmenting process. To avoid this, we pick a random,
15434
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15435
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15436
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'
15437
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'
15440
case $cc_basename in
15443
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'
15445
# Archives containing C++ object files must be created using
15446
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
15447
# necessary to make sure instantiated templates are included
15449
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15452
if test "$GXX" = yes; then
15453
if test "$with_gnu_ld" = no; then
15454
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'
15456
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'
15459
link_all_deplibs_CXX=yes
15462
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15463
hardcode_libdir_separator_CXX=:
15465
linux* | k*bsd*-gnu)
15466
case $cc_basename in
15468
# Kuck and Associates, Inc. (KAI) C++ Compiler
15470
# KCC will only create a shared library if the output file
15471
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15472
# to its proper name (with version) after linking.
15473
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'
15474
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'
15475
# Commands to make compiler produce verbose output that lists
15476
# what "hidden" libraries, object files and flags are used when
15477
# linking a shared library.
15479
# There doesn't appear to be a way to prevent this compiler from
15480
# explicitly linking system object files so we need to strip them
15481
# from the output so that they don't get included in the library
15483
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'
15485
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15486
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15488
# Archives containing C++ object files must be created using
15489
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15490
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15495
# version 8.0 and above of icpc choke on multiply defined symbols
15496
# if we add $predep_objects and $postdep_objects, however 7.1 and
15497
# earlier do not add the objects themselves.
15498
case `$CC -V 2>&1` in
15500
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15501
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'
15503
*) # Version 8.0 or newer
15506
ia64*) tmp_idyn=' -i_dynamic';;
15508
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509
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'
15512
archive_cmds_need_lc_CXX=no
15513
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15514
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15515
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15518
# Portland Group C++ compiler
15519
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15520
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'
15522
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15523
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15524
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'
15528
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529
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'
15531
runpath_var=LD_RUN_PATH
15532
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15533
hardcode_libdir_separator_CXX=:
15535
# Commands to make compiler produce verbose output that lists
15536
# what "hidden" libraries, object files and flags are used when
15537
# linking a shared library.
15539
# There doesn't appear to be a way to prevent this compiler from
15540
# explicitly linking system object files so we need to strip them
15541
# from the output so that they don't get included in the library
15543
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'
15546
case `$CC -V 2>&1 | sed 5q` in
15549
no_undefined_flag_CXX=' -zdefs'
15550
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15551
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'
15552
hardcode_libdir_flag_spec_CXX='-R$libdir'
15553
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'
15555
# Not sure whether something based on
15556
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15558
output_verbose_link_cmd='echo'
15560
# Archives containing C++ object files must be created using
15561
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15562
# necessary to make sure instantiated templates are included
15564
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15571
# FIXME: insert proper C++ library support
15575
# FIXME: insert proper C++ library support
15579
case $cc_basename in
15581
# FIXME: insert proper C++ library support
15585
# FIXME: insert proper C++ library support
15590
netbsd* | netbsdelf*-gnu)
15591
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15594
hardcode_libdir_flag_spec_CXX='-R$libdir'
15595
hardcode_direct_CXX=yes
15596
hardcode_shlibpath_var_CXX=no
15598
# Workaround some broken pre-1.5 toolchains
15599
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15602
# C++ shared libraries are fairly broken
15606
if test -f /usr/libexec/ld.so; then
15607
hardcode_direct_CXX=yes
15608
hardcode_shlibpath_var_CXX=no
15609
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15610
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15611
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15612
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15613
export_dynamic_flag_spec_CXX='${wl}-E'
15614
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15616
output_verbose_link_cmd='echo'
15622
case $cc_basename in
15624
# Kuck and Associates, Inc. (KAI) C++ Compiler
15626
# KCC will only create a shared library if the output file
15627
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15628
# to its proper name (with version) after linking.
15629
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'
15631
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15632
hardcode_libdir_separator_CXX=:
15634
# Archives containing C++ object files must be created using
15635
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
15636
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15640
# Rational C++ 2.4.1
15641
# FIXME: insert proper C++ library support
15645
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15646
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'
15648
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15649
hardcode_libdir_separator_CXX=:
15651
# Commands to make compiler produce verbose output that lists
15652
# what "hidden" libraries, object files and flags are used when
15653
# linking a shared library.
15655
# There doesn't appear to be a way to prevent this compiler from
15656
# explicitly linking system object files so we need to strip them
15657
# from the output so that they don't get included in the library
15659
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'
15662
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15663
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15664
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'
15666
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15667
hardcode_libdir_separator_CXX=:
15669
# Commands to make compiler produce verbose output that lists
15670
# what "hidden" libraries, object files and flags are used when
15671
# linking a shared library.
15672
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15675
# FIXME: insert proper C++ library support
15682
case $cc_basename in
15684
# Kuck and Associates, Inc. (KAI) C++ Compiler
15686
# KCC will only create a shared library if the output file
15687
# ends with ".so" (or ".sl" for HP-UX), so rename the library
15688
# to its proper name (with version) after linking.
15689
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'
15691
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15692
hardcode_libdir_separator_CXX=:
15694
# Archives containing C++ object files must be created using
15695
# the KAI C++ compiler.
15696
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15699
# Rational C++ 2.4.1
15700
# FIXME: insert proper C++ library support
15704
allow_undefined_flag_CXX=' -expect_unresolved \*'
15705
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'
15706
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15707
echo "-hidden">> $lib.exp~
15708
$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~
15711
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15712
hardcode_libdir_separator_CXX=:
15714
# Commands to make compiler produce verbose output that lists
15715
# what "hidden" libraries, object files and flags are used when
15716
# linking a shared library.
15718
# There doesn't appear to be a way to prevent this compiler from
15719
# explicitly linking system object files so we need to strip them
15720
# from the output so that they don't get included in the library
15722
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'
15725
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15726
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15727
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'
15729
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15730
hardcode_libdir_separator_CXX=:
15732
# Commands to make compiler produce verbose output that lists
15733
# what "hidden" libraries, object files and flags are used when
15734
# linking a shared library.
15735
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15738
# FIXME: insert proper C++ library support
15745
# FIXME: insert proper C++ library support
15749
case $cc_basename in
15752
# FIXME: insert proper C++ library support
15757
# FIXME: insert proper C++ library support
15761
# FIXME: insert proper C++ library support
15767
case $cc_basename in
15769
# Sun C++ 4.2, 5.x and Centerline C++
15770
archive_cmds_need_lc_CXX=yes
15771
no_undefined_flag_CXX=' -zdefs'
15772
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15773
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15774
$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'
15776
hardcode_libdir_flag_spec_CXX='-R$libdir'
15777
hardcode_shlibpath_var_CXX=no
15779
solaris2.[0-5] | solaris2.[0-5].*) ;;
15781
# The compiler driver will combine and reorder linker options,
15782
# but understands `-z linker_flag'.
15783
# Supported since Solaris 2.6 (maybe 2.5.1?)
15784
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15787
link_all_deplibs_CXX=yes
15789
output_verbose_link_cmd='echo'
15791
# Archives containing C++ object files must be created using
15792
# "CC -xar", where "CC" is the Sun C++ compiler. This is
15793
# necessary to make sure instantiated templates are included
15795
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15798
# Green Hills C++ Compiler
15799
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15801
# The C++ compiler must be used to create the archive.
15802
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15805
# GNU C++ compiler with Solaris linker
15806
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15807
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15808
if $CC --version | grep -v '^2\.7' > /dev/null; then
15809
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15810
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15811
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15813
# Commands to make compiler produce verbose output that lists
15814
# what "hidden" libraries, object files and flags are used when
15815
# linking a shared library.
15816
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15818
# g++ 2.7 appears to require `-G' NOT `-shared' on this
15820
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15821
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15822
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15824
# Commands to make compiler produce verbose output that lists
15825
# what "hidden" libraries, object files and flags are used when
15826
# linking a shared library.
15827
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15830
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15832
solaris2.[0-5] | solaris2.[0-5].*) ;;
15834
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15841
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15842
no_undefined_flag_CXX='${wl}-z,text'
15843
archive_cmds_need_lc_CXX=no
15844
hardcode_shlibpath_var_CXX=no
15845
runpath_var='LD_RUN_PATH'
15847
case $cc_basename in
15849
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15850
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15853
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15854
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858
sysv5* | sco3.2v5* | sco5v6*)
15859
# Note: We can NOT use -z defs as we might desire, because we do not
15860
# link with -lc, and that would cause any symbols used from libc to
15861
# always be unresolved, which means just about no library would
15862
# ever link correctly. If we're not using GNU ld we use -z text
15863
# though, which does catch some bad symbols but isn't as heavy-handed
15865
# For security reasons, it is highly recommended that you always
15866
# use absolute paths for naming shared libraries, and exclude the
15867
# DT_RUNPATH tag from executables and libraries. But doing so
15868
# requires that you compile everything twice, which is a pain.
15869
# So that behaviour is only enabled if SCOABSPATH is set to a
15870
# non-empty value in the environment. Most likely only useful for
15871
# creating official distributions of packages.
15872
# This is a hack until libtool officially supports absolute path
15873
# names for shared libraries.
15874
no_undefined_flag_CXX='${wl}-z,text'
15875
allow_undefined_flag_CXX='${wl}-z,nodefs'
15876
archive_cmds_need_lc_CXX=no
15877
hardcode_shlibpath_var_CXX=no
15878
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15879
hardcode_libdir_separator_CXX=':'
15880
link_all_deplibs_CXX=yes
15881
export_dynamic_flag_spec_CXX='${wl}-Bexport'
15882
runpath_var='LD_RUN_PATH'
15884
case $cc_basename in
15886
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15891
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896
case $cc_basename in
15898
# NonStop-UX NCC 3.20
15899
# FIXME: insert proper C++ library support
15903
# FIXME: insert proper C++ library support
15909
# FIXME: insert proper C++ library support
15913
# FIXME: insert proper C++ library support
15917
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15918
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15919
test "$ld_shlibs_CXX" = no && can_build_shared=no
15924
cat > conftest.$ac_ext <<EOF
15928
Foo (void) { a = 0; }
15934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935
(eval $ac_compile) 2>&5
15937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938
(exit $ac_status); }; then
15939
# Parse the compiler output and extract the necessary
15940
# objects, libraries and library flags.
15942
# Sentinel used to keep track of whether or not we are before
15943
# the conftest object file.
15944
pre_test_object_deps_done=no
15946
# The `*' in the case matches for architectures that use `case' in
15947
# $output_verbose_cmd can trigger glob expansion during the loop
15948
# eval without this substitution.
15949
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15951
for p in `eval $output_verbose_link_cmd`; do
15955
# Some compilers place space between "-{L,R}" and the path.
15956
# Remove the space.
15957
if test $p = "-L" \
15958
|| test $p = "-R"; then
15965
if test "$pre_test_object_deps_done" = no; then
15968
# Internal compiler library paths should come after those
15969
# provided the user. The postdeps already come after the
15970
# user supplied libs so there is no need to process them.
15971
if test -z "$compiler_lib_search_path_CXX"; then
15972
compiler_lib_search_path_CXX="${prev}${p}"
15974
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15977
# The "-l" case would never come before the object being
15978
# linked, so don't bother handling this case.
15981
if test -z "$postdeps_CXX"; then
15982
postdeps_CXX="${prev}${p}"
15984
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15990
# This assumes that the test object file only shows up
15991
# once in the compiler output.
15992
if test "$p" = "conftest.$objext"; then
15993
pre_test_object_deps_done=yes
15997
if test "$pre_test_object_deps_done" = no; then
15998
if test -z "$predep_objects_CXX"; then
15999
predep_objects_CXX="$p"
16001
predep_objects_CXX="$predep_objects_CXX $p"
16004
if test -z "$postdep_objects_CXX"; then
16005
postdep_objects_CXX="$p"
16007
postdep_objects_CXX="$postdep_objects_CXX $p"
16012
*) ;; # Ignore the rest.
16020
echo "libtool.m4: error: problem compiling CXX test program"
16023
$rm -f confest.$objext
16025
compiler_lib_search_dirs_CXX=
16026
if test -n "$compiler_lib_search_path_CXX"; then
16027
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16030
# PORTME: override above test on systems where it is broken
16033
# Interix 3.5 installs completely hosed .la files for C++, so rather than
16034
# hack all around it, let's just trust "g++" to DTRT.
16035
predep_objects_CXX=
16036
postdep_objects_CXX=
16041
case `$CC -V 2>&1 | sed 5q` in
16045
# The more standards-conforming stlport4 library is
16046
# incompatible with the Cstd library. Avoid specifying
16047
# it if it's in CXXFLAGS. Ignore libCrun as
16048
# -library=stlport4 depends on it.
16049
case " $CXX $CXXFLAGS " in
16050
*" -library=stlport4 "*)
16051
solaris_use_stlport4=yes
16054
if test "$solaris_use_stlport4" != yes; then
16055
postdeps_CXX='-library=Cstd -library=Crun'
16062
case $cc_basename in
16064
# The more standards-conforming stlport4 library is
16065
# incompatible with the Cstd library. Avoid specifying
16066
# it if it's in CXXFLAGS. Ignore libCrun as
16067
# -library=stlport4 depends on it.
16068
case " $CXX $CXXFLAGS " in
16069
*" -library=stlport4 "*)
16070
solaris_use_stlport4=yes
16074
# Adding this requires a known-good setup of shared libraries for
16075
# Sun compiler versions before 5.6, else PIC objects from an old
16076
# archive will be linked into the output, leading to subtle bugs.
16077
if test "$solaris_use_stlport4" != yes; then
16078
postdeps_CXX='-library=Cstd -library=Crun'
16085
case " $postdeps_CXX " in
16086
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16089
lt_prog_compiler_wl_CXX=
16090
lt_prog_compiler_pic_CXX=
16091
lt_prog_compiler_static_CXX=
16093
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16094
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16096
# C++ specific cases for pic, static, wl, etc.
16097
if test "$GXX" = yes; then
16098
lt_prog_compiler_wl_CXX='-Wl,'
16099
lt_prog_compiler_static_CXX='-static'
16103
# All AIX code is PIC.
16104
if test "$host_cpu" = ia64; then
16105
# AIX 5 now supports IA64 processor
16106
lt_prog_compiler_static_CXX='-Bstatic'
16110
# FIXME: we need at least 68020 code to build shared libraries, but
16111
# adding the `-m68020' flag to GCC prevents building anything better,
16113
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16115
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16116
# PIC is the default for these OSes.
16118
mingw* | cygwin* | os2* | pw32*)
16119
# This hack is so that the source file can tell whether it is being
16120
# built for inclusion in a dll (and should export symbols for example).
16121
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16122
# (--disable-auto-import) libraries
16123
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16125
darwin* | rhapsody*)
16126
# PIC is the default on this platform
16127
# Common symbols not allowed in MH_DYLIB files
16128
lt_prog_compiler_pic_CXX='-fno-common'
16131
# DJGPP does not support shared libraries at all
16132
lt_prog_compiler_pic_CXX=
16135
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16136
# Instead, we relocate shared libraries at runtime.
16139
if test -d /usr/nec; then
16140
lt_prog_compiler_pic_CXX=-Kconform_pic
16144
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16145
# not for PA HP-UX.
16150
lt_prog_compiler_pic_CXX='-fPIC'
16155
lt_prog_compiler_pic_CXX='-fPIC'
16161
# All AIX code is PIC.
16162
if test "$host_cpu" = ia64; then
16163
# AIX 5 now supports IA64 processor
16164
lt_prog_compiler_static_CXX='-Bstatic'
16166
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16170
case $cc_basename in
16172
# Green Hills C++ Compiler
16173
# _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"
16178
# PIC is the default on this platform
16179
# Common symbols not allowed in MH_DYLIB files
16180
case $cc_basename in
16182
lt_prog_compiler_pic_CXX='-qnocommon'
16183
lt_prog_compiler_wl_CXX='-Wl,'
16188
case $cc_basename in
16190
lt_prog_compiler_pic_CXX='-KPIC'
16193
# Green Hills C++ Compiler
16194
lt_prog_compiler_pic_CXX='-pic'
16200
freebsd* | dragonfly*)
16201
# FreeBSD uses GNU C++
16203
hpux9* | hpux10* | hpux11*)
16204
case $cc_basename in
16206
lt_prog_compiler_wl_CXX='-Wl,'
16207
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16208
if test "$host_cpu" != ia64; then
16209
lt_prog_compiler_pic_CXX='+Z'
16213
lt_prog_compiler_wl_CXX='-Wl,'
16214
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16220
lt_prog_compiler_pic_CXX='+Z'
16229
# This is c89, which is MS Visual C++ (no shared libs)
16230
# Anyone wants to do a port?
16232
irix5* | irix6* | nonstopux*)
16233
case $cc_basename in
16235
lt_prog_compiler_wl_CXX='-Wl,'
16236
lt_prog_compiler_static_CXX='-non_shared'
16237
# CC pic flag -KPIC is the default.
16243
linux* | k*bsd*-gnu)
16244
case $cc_basename in
16247
lt_prog_compiler_wl_CXX='--backend -Wl,'
16248
lt_prog_compiler_pic_CXX='-fPIC'
16252
lt_prog_compiler_wl_CXX='-Wl,'
16253
lt_prog_compiler_pic_CXX='-KPIC'
16254
lt_prog_compiler_static_CXX='-static'
16257
# Portland Group C++ compiler.
16258
lt_prog_compiler_wl_CXX='-Wl,'
16259
lt_prog_compiler_pic_CXX='-fpic'
16260
lt_prog_compiler_static_CXX='-Bstatic'
16264
# Make sure the PIC flag is empty. It appears that all Alpha
16265
# Linux and Compaq Tru64 Unix objects are PIC.
16266
lt_prog_compiler_pic_CXX=
16267
lt_prog_compiler_static_CXX='-non_shared'
16270
case `$CC -V 2>&1 | sed 5q` in
16273
lt_prog_compiler_pic_CXX='-KPIC'
16274
lt_prog_compiler_static_CXX='-Bstatic'
16275
lt_prog_compiler_wl_CXX='-Qoption ld '
16286
case $cc_basename in
16288
lt_prog_compiler_pic_CXX='-W c,exportall'
16294
netbsd* | netbsdelf*-gnu)
16296
osf3* | osf4* | osf5*)
16297
case $cc_basename in
16299
lt_prog_compiler_wl_CXX='--backend -Wl,'
16302
# Rational C++ 2.4.1
16303
lt_prog_compiler_pic_CXX='-pic'
16306
# Digital/Compaq C++
16307
lt_prog_compiler_wl_CXX='-Wl,'
16308
# Make sure the PIC flag is empty. It appears that all Alpha
16309
# Linux and Compaq Tru64 Unix objects are PIC.
16310
lt_prog_compiler_pic_CXX=
16311
lt_prog_compiler_static_CXX='-non_shared'
16320
case $cc_basename in
16322
# Sun C++ 4.2, 5.x and Centerline C++
16323
lt_prog_compiler_pic_CXX='-KPIC'
16324
lt_prog_compiler_static_CXX='-Bstatic'
16325
lt_prog_compiler_wl_CXX='-Qoption ld '
16328
# Green Hills C++ Compiler
16329
lt_prog_compiler_pic_CXX='-PIC'
16336
case $cc_basename in
16339
lt_prog_compiler_pic_CXX='-pic'
16340
lt_prog_compiler_static_CXX='-Bstatic'
16344
lt_prog_compiler_pic_CXX='-pic'
16351
case $cc_basename in
16353
# NonStop-UX NCC 3.20
16354
lt_prog_compiler_pic_CXX='-KPIC'
16360
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16361
case $cc_basename in
16363
lt_prog_compiler_wl_CXX='-Wl,'
16364
lt_prog_compiler_pic_CXX='-KPIC'
16365
lt_prog_compiler_static_CXX='-Bstatic'
16372
lt_prog_compiler_can_build_shared_CXX=no
16377
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16378
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
16381
# Check to make sure the PIC flag actually works.
16383
if test -n "$lt_prog_compiler_pic_CXX"; then
16385
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16386
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
16387
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16388
echo $ECHO_N "(cached) $ECHO_C" >&6
16390
lt_cv_prog_compiler_pic_works_CXX=no
16391
ac_outfile=conftest.$ac_objext
16392
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16393
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16394
# Insert the option either (1) after the last *FLAGS variable, or
16395
# (2) before a word containing "conftest.", or (3) at the end.
16396
# Note that $ac_compile itself does not contain backslashes and begins
16397
# with a dollar sign (not a hyphen), so the echo should work correctly.
16398
# The option is referenced via a variable to avoid confusing sed.
16399
lt_compile=`echo "$ac_compile" | $SED \
16400
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16401
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16402
-e 's:$: $lt_compiler_flag:'`
16403
(eval echo "\"\$as_me:16403: $lt_compile\"" >&5)
16404
(eval "$lt_compile" 2>conftest.err)
16406
cat conftest.err >&5
16407
echo "$as_me:16407: \$? = $ac_status" >&5
16408
if (exit $ac_status) && test -s "$ac_outfile"; then
16409
# The compiler can only warn and ignore the option if not recognized
16410
# So say no if there are warnings other than the usual output.
16411
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16412
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16413
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16414
lt_cv_prog_compiler_pic_works_CXX=yes
16420
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16421
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16423
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16424
case $lt_prog_compiler_pic_CXX in
16426
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16429
lt_prog_compiler_pic_CXX=
16430
lt_prog_compiler_can_build_shared_CXX=no
16435
# For platforms which do not support PIC, -DPIC is meaningless:
16437
lt_prog_compiler_pic_CXX=
16440
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16445
# Check to make sure the static flag actually works.
16447
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16448
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16449
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16450
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16451
echo $ECHO_N "(cached) $ECHO_C" >&6
16453
lt_cv_prog_compiler_static_works_CXX=no
16454
save_LDFLAGS="$LDFLAGS"
16455
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16456
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16457
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16458
# The linker can only warn and ignore the option if not recognized
16459
# So say no if there are warnings
16460
if test -s conftest.err; then
16461
# Append any errors to the config.log.
16462
cat conftest.err 1>&5
16463
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16464
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16465
if diff conftest.exp conftest.er2 >/dev/null; then
16466
lt_cv_prog_compiler_static_works_CXX=yes
16469
lt_cv_prog_compiler_static_works_CXX=yes
16473
LDFLAGS="$save_LDFLAGS"
16476
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16477
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
16479
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16482
lt_prog_compiler_static_CXX=
16486
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16487
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16488
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16489
echo $ECHO_N "(cached) $ECHO_C" >&6
16491
lt_cv_prog_compiler_c_o_CXX=no
16492
$rm -r conftest 2>/dev/null
16496
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16498
lt_compiler_flag="-o out/conftest2.$ac_objext"
16499
# Insert the option either (1) after the last *FLAGS variable, or
16500
# (2) before a word containing "conftest.", or (3) at the end.
16501
# Note that $ac_compile itself does not contain backslashes and begins
16502
# with a dollar sign (not a hyphen), so the echo should work correctly.
16503
lt_compile=`echo "$ac_compile" | $SED \
16504
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16505
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16506
-e 's:$: $lt_compiler_flag:'`
16507
(eval echo "\"\$as_me:16507: $lt_compile\"" >&5)
16508
(eval "$lt_compile" 2>out/conftest.err)
16510
cat out/conftest.err >&5
16511
echo "$as_me:16511: \$? = $ac_status" >&5
16512
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16514
# The compiler can only warn and ignore the option if not recognized
16515
# So say no if there are warnings
16516
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16517
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16518
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16519
lt_cv_prog_compiler_c_o_CXX=yes
16524
# SGI C++ compiler will create directory out/ii_files/ for
16525
# template instantiation
16526
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16527
$rm out/* && rmdir out
16533
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16534
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
16537
hard_links="nottested"
16538
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16539
# do not overwrite the value of need_locks provided by the user
16540
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16541
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16544
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16546
ln conftest.a conftest.b 2>&5 || hard_links=no
16547
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16548
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16549
echo "${ECHO_T}$hard_links" >&6; }
16550
if test "$hard_links" = no; then
16551
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16552
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16559
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16560
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16562
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16565
# If we're using GNU nm, then we don't want the "-C" option.
16566
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16567
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16568
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'
16570
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'
16574
export_symbols_cmds_CXX="$ltdll_cmds"
16577
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'
16579
linux* | k*bsd*-gnu)
16580
link_all_deplibs_CXX=no
16583
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16586
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16588
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16589
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
16590
test "$ld_shlibs_CXX" = no && can_build_shared=no
16593
# Do we need to explicitly link libc?
16595
case "x$archive_cmds_need_lc_CXX" in
16597
# Assume -lc should be added
16598
archive_cmds_need_lc_CXX=yes
16600
if test "$enable_shared" = yes && test "$GCC" = yes; then
16601
case $archive_cmds_CXX in
16603
# FIXME: we may have to deal with multi-command sequences.
16606
# Test whether the compiler implicitly links with -lc since on some
16607
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16608
# to ld, don't add -lc before -lgcc.
16609
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16610
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16612
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615
(eval $ac_compile) 2>&5
16617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618
(exit $ac_status); } 2>conftest.err; then
16621
libobjs=conftest.$ac_objext
16623
wl=$lt_prog_compiler_wl_CXX
16624
pic_flag=$lt_prog_compiler_pic_CXX
16630
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16631
allow_undefined_flag_CXX=
16632
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16633
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636
(exit $ac_status); }
16638
archive_cmds_need_lc_CXX=no
16640
archive_cmds_need_lc_CXX=yes
16642
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16644
cat conftest.err 1>&5
16647
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16648
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
16655
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16656
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16657
library_names_spec=
16658
libname_spec='lib$name'
16662
postuninstall_cmds=
16666
shlibpath_overrides_runpath=unknown
16668
dynamic_linker="$host_os ld.so"
16669
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16671
need_lib_prefix=unknown
16672
hardcode_into_libs=no
16674
# when you set need_version to no, make sure it does not cause -set_version
16675
# flags to be left without arguments
16676
need_version=unknown
16681
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16682
shlibpath_var=LIBPATH
16684
# AIX 3 has no versioning support, so we append a major version to the name.
16685
soname_spec='${libname}${release}${shared_ext}$major'
16692
hardcode_into_libs=yes
16693
if test "$host_cpu" = ia64; then
16694
# AIX 5 supports IA64
16695
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16696
shlibpath_var=LD_LIBRARY_PATH
16698
# With GCC up to 2.95.x, collect2 would create an import file
16699
# for dependence libraries. The import file would start with
16700
# the line `#! .'. This would cause the generated library to
16701
# depend on `.', always an invalid library. This was fixed in
16702
# development snapshots of GCC prior to 3.0.
16704
aix4 | aix4.[01] | aix4.[01].*)
16705
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16707
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16710
can_build_shared=no
16714
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16715
# soname into executable. Probably we can add versioning support to
16716
# collect2, so additional links can be useful in future.
16717
if test "$aix_use_runtimelinking" = yes; then
16718
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16719
# instead of lib<name>.a to let people know that these are not
16720
# typical AIX shared libraries.
16721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723
# We preserve .a as extension for shared libraries through AIX4.2
16724
# and later when we are not doing run time linking.
16725
library_names_spec='${libname}${release}.a $libname.a'
16726
soname_spec='${libname}${release}${shared_ext}$major'
16728
shlibpath_var=LIBPATH
16733
library_names_spec='$libname.ixlibrary $libname.a'
16734
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16735
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'
16739
library_names_spec='${libname}${shared_ext}'
16740
dynamic_linker="$host_os ld.so"
16741
shlibpath_var=LIBRARY_PATH
16747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748
soname_spec='${libname}${release}${shared_ext}$major'
16749
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16750
shlibpath_var=LD_LIBRARY_PATH
16751
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16752
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16753
# the default ld.so.conf also contains /usr/contrib/lib and
16754
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16755
# libtool to hard-code these into programs
16758
cygwin* | mingw* | pw32*)
16759
version_type=windows
16764
case $GCC,$host_os in
16765
yes,cygwin* | yes,mingw* | yes,pw32*)
16766
library_names_spec='$libname.dll.a'
16767
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16768
postinstall_cmds='base_file=`basename \${file}`~
16769
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16770
dldir=$destdir/`dirname \$dlpath`~
16771
test -d \$dldir || mkdir -p \$dldir~
16772
$install_prog $dir/$dlname \$dldir/$dlname~
16773
chmod a+x \$dldir/$dlname'
16774
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16775
dlpath=$dir/\$dldll~
16777
shlibpath_overrides_runpath=yes
16781
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16782
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16783
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16786
# MinGW DLLs use traditional 'lib' prefix
16787
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16788
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16789
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16790
# It is most probably a Windows format PATH printed by
16791
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16792
# path with ; separators, and with drive letters. We can handle the
16793
# drive letters (cygwin fileutils understands them), so leave them,
16794
# especially as we might pass files found there to a mingw objdump,
16795
# which wouldn't understand a cygwinified path. Ahh.
16796
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16798
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16802
# pw32 DLLs use 'pw' prefix rather than 'lib'
16803
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16809
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16812
dynamic_linker='Win32 ld.exe'
16813
# FIXME: first we should search . and the directory the executable is in
16817
darwin* | rhapsody*)
16818
dynamic_linker="$host_os dyld"
16819
version_type=darwin
16822
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16823
soname_spec='${libname}${release}${major}$shared_ext'
16824
shlibpath_overrides_runpath=yes
16825
shlibpath_var=DYLD_LIBRARY_PATH
16826
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16828
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16836
soname_spec='${libname}${release}${shared_ext}$major'
16837
shlibpath_var=LD_LIBRARY_PATH
16844
freebsd* | dragonfly*)
16845
# DragonFly does not have aout. When/if they implement a new
16846
# versioning mechanism, adjust this.
16847
if test -x /usr/bin/objformat; then
16848
objformat=`/usr/bin/objformat`
16851
freebsd[123]*) objformat=aout ;;
16852
*) objformat=elf ;;
16855
version_type=freebsd-$objformat
16856
case $version_type in
16858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16863
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16867
shlibpath_var=LD_LIBRARY_PATH
16870
shlibpath_overrides_runpath=yes
16872
freebsd3.[01]* | freebsdelf3.[01]*)
16873
shlibpath_overrides_runpath=yes
16874
hardcode_into_libs=yes
16876
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16877
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16878
shlibpath_overrides_runpath=no
16879
hardcode_into_libs=yes
16881
*) # from 4.6 on, and DragonFly
16882
shlibpath_overrides_runpath=yes
16883
hardcode_into_libs=yes
16892
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16893
soname_spec='${libname}${release}${shared_ext}$major'
16894
shlibpath_var=LD_LIBRARY_PATH
16895
hardcode_into_libs=yes
16898
hpux9* | hpux10* | hpux11*)
16899
# Give a soname corresponding to the major version so that dld.sl refuses to
16900
# link against other versions.
16907
hardcode_into_libs=yes
16908
dynamic_linker="$host_os dld.so"
16909
shlibpath_var=LD_LIBRARY_PATH
16910
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912
soname_spec='${libname}${release}${shared_ext}$major'
16913
if test "X$HPUX_IA64_MODE" = X32; then
16914
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16916
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16918
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16922
hardcode_into_libs=yes
16923
dynamic_linker="$host_os dld.sl"
16924
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16925
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927
soname_spec='${libname}${release}${shared_ext}$major'
16928
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16929
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16933
dynamic_linker="$host_os dld.sl"
16934
shlibpath_var=SHLIB_PATH
16935
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16937
soname_spec='${libname}${release}${shared_ext}$major'
16940
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16941
postinstall_cmds='chmod 555 $lib'
16948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16949
soname_spec='${libname}${release}${shared_ext}$major'
16950
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16951
shlibpath_var=LD_LIBRARY_PATH
16952
shlibpath_overrides_runpath=no
16953
hardcode_into_libs=yes
16956
irix5* | irix6* | nonstopux*)
16958
nonstopux*) version_type=nonstopux ;;
16960
if test "$lt_cv_prog_gnu_ld" = yes; then
16968
soname_spec='${libname}${release}${shared_ext}$major'
16969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16971
irix5* | nonstopux*)
16972
libsuff= shlibsuff=
16975
case $LD in # libtool.m4 will add one of these switches to LD
16976
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16977
libsuff= shlibsuff= libmagic=32-bit;;
16978
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16979
libsuff=32 shlibsuff=N32 libmagic=N32;;
16980
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16981
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16982
*) libsuff= shlibsuff= libmagic=never-match;;
16986
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16987
shlibpath_overrides_runpath=no
16988
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16989
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16990
hardcode_into_libs=yes
16993
# No shared lib support for Linux oldld, aout, or coff.
16994
linux*oldld* | linux*aout* | linux*coff*)
16998
# This must be Linux ELF.
16999
linux* | k*bsd*-gnu)
17003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004
soname_spec='${libname}${release}${shared_ext}$major'
17005
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17006
shlibpath_var=LD_LIBRARY_PATH
17007
shlibpath_overrides_runpath=no
17008
# This implies no fast_install, which is unacceptable.
17009
# Some rework will be needed to allow for fast_install
17010
# before this can be enabled.
17011
hardcode_into_libs=yes
17013
# Append ld.so.conf contents to the search path
17014
if test -f /etc/ld.so.conf; then
17015
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' ' '`
17016
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17019
# We used to test for /lib/ld.so.1 and disable shared libraries on
17020
# powerpc, because MkLinux only supported shared libraries with the
17021
# GNU dynamic linker. Since this was broken with cross compilers,
17022
# most powerpc-linux boxes support dynamic linking these days and
17023
# people can always --disable-shared, the test was removed, and we
17024
# assume the GNU/Linux dynamic linker is in use.
17025
dynamic_linker='GNU/Linux ld.so'
17032
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17033
soname_spec='${libname}${release}${shared_ext}$major'
17034
shlibpath_var=LD_LIBRARY_PATH
17035
shlibpath_overrides_runpath=no
17036
hardcode_into_libs=yes
17037
dynamic_linker='NetBSD ld.elf_so'
17044
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17046
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17047
dynamic_linker='NetBSD (a.out) ld.so'
17049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17050
soname_spec='${libname}${release}${shared_ext}$major'
17051
dynamic_linker='NetBSD ld.elf_so'
17053
shlibpath_var=LD_LIBRARY_PATH
17054
shlibpath_overrides_runpath=yes
17055
hardcode_into_libs=yes
17060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061
shlibpath_var=LD_LIBRARY_PATH
17062
shlibpath_overrides_runpath=yes
17069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070
soname_spec='${libname}${release}${shared_ext}$major'
17071
shlibpath_var=LD_LIBRARY_PATH
17072
shlibpath_overrides_runpath=yes
17077
sys_lib_dlsearch_path_spec="/usr/lib"
17079
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17081
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17082
*) need_version=no ;;
17084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17085
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17086
shlibpath_var=LD_LIBRARY_PATH
17087
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17089
openbsd2.[89] | openbsd2.[89].*)
17090
shlibpath_overrides_runpath=no
17093
shlibpath_overrides_runpath=yes
17097
shlibpath_overrides_runpath=yes
17102
libname_spec='$name'
17105
library_names_spec='$libname${shared_ext} $libname.a'
17106
dynamic_linker='OS/2 ld.exe'
17107
shlibpath_var=LIBPATH
17110
osf3* | osf4* | osf5*)
17114
soname_spec='${libname}${release}${shared_ext}$major'
17115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116
shlibpath_var=LD_LIBRARY_PATH
17117
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17118
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130
soname_spec='${libname}${release}${shared_ext}$major'
17131
shlibpath_var=LD_LIBRARY_PATH
17132
shlibpath_overrides_runpath=yes
17133
hardcode_into_libs=yes
17134
# ldd complains unless libraries are executable
17135
postinstall_cmds='chmod +x $lib'
17140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17141
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17142
shlibpath_var=LD_LIBRARY_PATH
17143
shlibpath_overrides_runpath=yes
17144
if test "$with_gnu_ld" = yes; then
17152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153
soname_spec='${libname}${release}${shared_ext}$major'
17154
shlibpath_var=LD_LIBRARY_PATH
17155
case $host_vendor in
17157
shlibpath_overrides_runpath=no
17159
export_dynamic_flag_spec='${wl}-Blargedynsym'
17160
runpath_var=LD_RUN_PATH
17168
shlibpath_overrides_runpath=no
17169
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17175
if test -d /usr/nec ;then
17177
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17178
soname_spec='$libname${shared_ext}.$major'
17179
shlibpath_var=LD_LIBRARY_PATH
17183
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17184
version_type=freebsd-elf
17187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17188
soname_spec='${libname}${release}${shared_ext}$major'
17189
shlibpath_var=LD_LIBRARY_PATH
17190
hardcode_into_libs=yes
17191
if test "$with_gnu_ld" = yes; then
17192
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17193
shlibpath_overrides_runpath=no
17195
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17196
shlibpath_overrides_runpath=yes
17199
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17203
sys_lib_dlsearch_path_spec='/usr/lib'
17208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209
soname_spec='${libname}${release}${shared_ext}$major'
17210
shlibpath_var=LD_LIBRARY_PATH
17217
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17218
echo "${ECHO_T}$dynamic_linker" >&6; }
17219
test "$dynamic_linker" = no && can_build_shared=no
17221
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17222
echo $ECHO_N "(cached) $ECHO_C" >&6
17224
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17227
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17228
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17229
echo $ECHO_N "(cached) $ECHO_C" >&6
17231
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17234
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17236
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17237
if test "$GCC" = yes; then
17238
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17241
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17242
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17243
hardcode_action_CXX=
17244
if test -n "$hardcode_libdir_flag_spec_CXX" || \
17245
test -n "$runpath_var_CXX" || \
17246
test "X$hardcode_automatic_CXX" = "Xyes" ; then
17248
# We can hardcode non-existant directories.
17249
if test "$hardcode_direct_CXX" != no &&
17250
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17251
# have to relink, otherwise we might link with an installed library
17252
# when we should be linking with a yet-to-be-installed one
17253
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17254
test "$hardcode_minus_L_CXX" != no; then
17255
# Linking always hardcodes the temporary library directory.
17256
hardcode_action_CXX=relink
17258
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17259
hardcode_action_CXX=immediate
17262
# We cannot hardcode anything, or else we can only hardcode existing
17264
hardcode_action_CXX=unsupported
17266
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17267
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
17269
if test "$hardcode_action_CXX" = relink; then
17270
# Fast installation is not supported
17271
enable_fast_install=no
17272
elif test "$shlibpath_overrides_runpath" = yes ||
17273
test "$enable_shared" = no; then
17274
# Fast installation is not necessary
17275
enable_fast_install=needless
17279
# The else clause should only fire when bootstrapping the
17280
# libtool distribution, otherwise you forgot to ship ltmain.sh
17281
# with your package, and you will get complaints that there are
17282
# no rules to generate ltmain.sh.
17283
if test -f "$ltmain"; then
17284
# See if we are running on zsh, and set the options which allow our commands through
17285
# without removal of \ escapes.
17286
if test -n "${ZSH_VERSION+set}" ; then
17287
setopt NO_GLOB_SUBST
17289
# Now quote all the things that may contain metacharacters while being
17290
# careful not to overquote the AC_SUBSTed values. We take copies of the
17291
# variables and quote the copies for generation of the libtool script.
17292
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17294
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17295
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17296
deplibs_check_method reload_flag reload_cmds need_locks \
17297
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17298
lt_cv_sys_global_symbol_to_c_name_address \
17299
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17300
old_postinstall_cmds old_postuninstall_cmds \
17304
lt_prog_compiler_wl_CXX \
17305
lt_prog_compiler_pic_CXX \
17306
lt_prog_compiler_static_CXX \
17307
lt_prog_compiler_no_builtin_flag_CXX \
17308
export_dynamic_flag_spec_CXX \
17309
thread_safe_flag_spec_CXX \
17310
whole_archive_flag_spec_CXX \
17311
enable_shared_with_static_runtimes_CXX \
17312
old_archive_cmds_CXX \
17313
old_archive_from_new_cmds_CXX \
17314
predep_objects_CXX \
17315
postdep_objects_CXX \
17318
compiler_lib_search_path_CXX \
17319
compiler_lib_search_dirs_CXX \
17321
archive_expsym_cmds_CXX \
17322
postinstall_cmds_CXX \
17323
postuninstall_cmds_CXX \
17324
old_archive_from_expsyms_cmds_CXX \
17325
allow_undefined_flag_CXX \
17326
no_undefined_flag_CXX \
17327
export_symbols_cmds_CXX \
17328
hardcode_libdir_flag_spec_CXX \
17329
hardcode_libdir_flag_spec_ld_CXX \
17330
hardcode_libdir_separator_CXX \
17331
hardcode_automatic_CXX \
17333
module_expsym_cmds_CXX \
17334
lt_cv_prog_compiler_c_o_CXX \
17335
fix_srcfile_path_CXX \
17336
exclude_expsyms_CXX \
17337
include_expsyms_CXX; do
17340
old_archive_cmds_CXX | \
17341
old_archive_from_new_cmds_CXX | \
17342
archive_cmds_CXX | \
17343
archive_expsym_cmds_CXX | \
17344
module_cmds_CXX | \
17345
module_expsym_cmds_CXX | \
17346
old_archive_from_expsyms_cmds_CXX | \
17347
export_symbols_cmds_CXX | \
17348
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17349
postinstall_cmds | postuninstall_cmds | \
17350
old_postinstall_cmds | old_postuninstall_cmds | \
17351
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17352
# Double-quote double-evaled strings.
17353
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17356
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17362
*'\$0 --fallback-echo"')
17363
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17369
cat <<__EOF__ >> "$cfgfile"
17370
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17372
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17374
# Shell to use when invoking shell scripts.
17377
# Whether or not to build shared libraries.
17378
build_libtool_libs=$enable_shared
17380
# Whether or not to build static libraries.
17381
build_old_libs=$enable_static
17383
# Whether or not to add -lc for building shared libraries.
17384
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17386
# Whether or not to disallow shared libs when runtime libs are static
17387
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17389
# Whether or not to optimize for fast installation.
17390
fast_install=$enable_fast_install
17393
host_alias=$host_alias
17397
# The build system.
17398
build_alias=$build_alias
17402
# An echo program that does not interpret backslashes.
17407
AR_FLAGS=$lt_AR_FLAGS
17412
# LTCC compiler flags.
17413
LTCFLAGS=$lt_LTCFLAGS
17415
# A language-specific compiler.
17416
CC=$lt_compiler_CXX
17418
# Is the compiler the GNU C compiler?
17424
# The linker used to build libraries.
17427
# Whether we need hard or soft links.
17430
# A BSD-compatible nm program.
17433
# A symbol stripping program
17436
# Used to examine libraries when file_magic_cmd begins "file"
17437
MAGIC_CMD=$MAGIC_CMD
17439
# Used on cygwin: DLL creation program.
17442
# Used on cygwin: object dumper.
17445
# Used on cygwin: assembler.
17448
# The name of the directory that contains temporary libtool files.
17451
# How to create reloadable object files.
17452
reload_flag=$lt_reload_flag
17453
reload_cmds=$lt_reload_cmds
17455
# How to pass a linker flag through the compiler.
17456
wl=$lt_lt_prog_compiler_wl_CXX
17458
# Object file suffix (normally "o").
17459
objext="$ac_objext"
17461
# Old archive suffix (normally "a").
17464
# Shared library suffix (normally ".so").
17465
shrext_cmds='$shrext_cmds'
17467
# Executable file suffix (normally "").
17470
# Additional compiler flags for building library objects.
17471
pic_flag=$lt_lt_prog_compiler_pic_CXX
17474
# What is the maximum length of a command?
17475
max_cmd_len=$lt_cv_sys_max_cmd_len
17477
# Does compiler simultaneously support -c and -o options?
17478
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17480
# Must we lock files when doing compilation?
17481
need_locks=$lt_need_locks
17483
# Do we need the lib prefix for modules?
17484
need_lib_prefix=$need_lib_prefix
17486
# Do we need a version for libraries?
17487
need_version=$need_version
17489
# Whether dlopen is supported.
17490
dlopen_support=$enable_dlopen
17492
# Whether dlopen of programs is supported.
17493
dlopen_self=$enable_dlopen_self
17495
# Whether dlopen of statically linked programs is supported.
17496
dlopen_self_static=$enable_dlopen_self_static
17498
# Compiler flag to prevent dynamic linking.
17499
link_static_flag=$lt_lt_prog_compiler_static_CXX
17501
# Compiler flag to turn off builtin functions.
17502
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17504
# Compiler flag to allow reflexive dlopens.
17505
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17507
# Compiler flag to generate shared objects directly from archives.
17508
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17510
# Compiler flag to generate thread-safe objects.
17511
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17513
# Library versioning type.
17514
version_type=$version_type
17516
# Format of library name prefix.
17517
libname_spec=$lt_libname_spec
17519
# List of archive names. First name is the real one, the rest are links.
17520
# The last name is the one that the linker finds with -lNAME.
17521
library_names_spec=$lt_library_names_spec
17523
# The coded name of the library, if different from the real name.
17524
soname_spec=$lt_soname_spec
17526
# Commands used to build and install an old-style archive.
17528
old_archive_cmds=$lt_old_archive_cmds_CXX
17529
old_postinstall_cmds=$lt_old_postinstall_cmds
17530
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17532
# Create an old-style archive from a shared archive.
17533
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17535
# Create a temporary old-style archive to link instead of a shared archive.
17536
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17538
# Commands used to build and install a shared archive.
17539
archive_cmds=$lt_archive_cmds_CXX
17540
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17541
postinstall_cmds=$lt_postinstall_cmds
17542
postuninstall_cmds=$lt_postuninstall_cmds
17544
# Commands used to build a loadable module (assumed same as above if empty)
17545
module_cmds=$lt_module_cmds_CXX
17546
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17548
# Commands to strip libraries.
17549
old_striplib=$lt_old_striplib
17550
striplib=$lt_striplib
17552
# Dependencies to place before the objects being linked to create a
17554
predep_objects=$lt_predep_objects_CXX
17556
# Dependencies to place after the objects being linked to create a
17558
postdep_objects=$lt_postdep_objects_CXX
17560
# Dependencies to place before the objects being linked to create a
17562
predeps=$lt_predeps_CXX
17564
# Dependencies to place after the objects being linked to create a
17566
postdeps=$lt_postdeps_CXX
17568
# The directories searched by this compiler when creating a shared
17570
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17572
# The library search path used internally by the compiler when linking
17573
# a shared library.
17574
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17576
# Method to check whether dependent libraries are shared objects.
17577
deplibs_check_method=$lt_deplibs_check_method
17579
# Command to use when deplibs_check_method == file_magic.
17580
file_magic_cmd=$lt_file_magic_cmd
17582
# Flag that allows shared libraries with undefined symbols to be built.
17583
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17585
# Flag that forces no undefined symbols.
17586
no_undefined_flag=$lt_no_undefined_flag_CXX
17588
# Commands used to finish a libtool library installation in a directory.
17589
finish_cmds=$lt_finish_cmds
17591
# Same as above, but a single script fragment to be evaled but not shown.
17592
finish_eval=$lt_finish_eval
17594
# Take the output of nm and produce a listing of raw symbols and C names.
17595
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17597
# Transform the output of nm in a proper C declaration
17598
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17600
# Transform the output of nm in a C name address pair
17601
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17603
# This is the shared library runtime path variable.
17604
runpath_var=$runpath_var
17606
# This is the shared library path variable.
17607
shlibpath_var=$shlibpath_var
17609
# Is shlibpath searched before the hard-coded library search path?
17610
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17612
# How to hardcode a shared library path into an executable.
17613
hardcode_action=$hardcode_action_CXX
17615
# Whether we should hardcode library paths into libraries.
17616
hardcode_into_libs=$hardcode_into_libs
17618
# Flag to hardcode \$libdir into a binary during linking.
17619
# This must work even if \$libdir does not exist.
17620
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17622
# If ld is used when linking, flag to hardcode \$libdir into
17623
# a binary during linking. This must work even if \$libdir does
17625
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17627
# Whether we need a single -rpath flag with a separated argument.
17628
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17630
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17631
# resulting binary.
17632
hardcode_direct=$hardcode_direct_CXX
17634
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17635
# resulting binary.
17636
hardcode_minus_L=$hardcode_minus_L_CXX
17638
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17639
# the resulting binary.
17640
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17642
# Set to yes if building a shared library automatically hardcodes DIR into the library
17643
# and all subsequent libraries and executables linked against it.
17644
hardcode_automatic=$hardcode_automatic_CXX
17646
# Variables whose values should be saved in libtool wrapper scripts and
17647
# restored at relink time.
17648
variables_saved_for_relink="$variables_saved_for_relink"
17650
# Whether libtool must link a program against all its dependency libraries.
17651
link_all_deplibs=$link_all_deplibs_CXX
17653
# Compile-time system search path for libraries
17654
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17656
# Run-time system search path for libraries
17657
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17659
# Fix the shell variable \$srcfile for the compiler.
17660
fix_srcfile_path=$lt_fix_srcfile_path
17662
# Set to yes if exported symbols are required.
17663
always_export_symbols=$always_export_symbols_CXX
17665
# The commands to list exported symbols.
17666
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17668
# The commands to extract the exported symbol list from a shared archive.
17669
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17671
# Symbols that should not be listed in the preloaded symbols.
17672
exclude_expsyms=$lt_exclude_expsyms_CXX
17674
# Symbols that must always be exported.
17675
include_expsyms=$lt_include_expsyms_CXX
17677
# ### END LIBTOOL TAG CONFIG: $tagname
17683
# If there is no Makefile yet, we rely on a make rule to execute
17684
# `config.status --recheck' to rerun these tests and create the
17685
# libtool script then.
17686
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17687
if test -f "$ltmain_in"; then
17688
test -f Makefile && make "$ltmain"
17694
ac_cpp='$CPP $CPPFLAGS'
17695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17703
with_gnu_ldcxx=$with_gnu_ld
17704
with_gnu_ld=$lt_save_with_gnu_ld
17705
lt_cv_path_LDCXX=$lt_cv_path_LD
17706
lt_cv_path_LD=$lt_save_path_LD
17707
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17708
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17716
if test -n "$F77" && test "X$F77" != "Xno"; then
17719
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17720
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17721
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17724
archive_cmds_need_lc_F77=no
17725
allow_undefined_flag_F77=
17726
always_export_symbols_F77=no
17727
archive_expsym_cmds_F77=
17728
export_dynamic_flag_spec_F77=
17729
hardcode_direct_F77=no
17730
hardcode_libdir_flag_spec_F77=
17731
hardcode_libdir_flag_spec_ld_F77=
17732
hardcode_libdir_separator_F77=
17733
hardcode_minus_L_F77=no
17734
hardcode_automatic_F77=no
17736
module_expsym_cmds_F77=
17737
link_all_deplibs_F77=unknown
17738
old_archive_cmds_F77=$old_archive_cmds
17739
no_undefined_flag_F77=
17740
whole_archive_flag_spec_F77=
17741
enable_shared_with_static_runtimes_F77=no
17743
# Source file extension for f77 test sources.
17746
# Object file extension for compiled f77 test sources.
17750
# Code to be used in simple compile tests
17751
lt_simple_compile_test_code="\
17757
# Code to be used in simple link tests
17758
lt_simple_link_test_code="\
17763
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17765
# If no C compiler was specified, use CC.
17768
# If no C compiler flags were specified, use CFLAGS.
17769
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17771
# Allow CC to be a program name with arguments.
17775
# save warnings/boilerplate of simple test code
17776
ac_outfile=conftest.$ac_objext
17777
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17778
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17779
_lt_compiler_boilerplate=`cat conftest.err`
17782
ac_outfile=conftest.$ac_objext
17783
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17784
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17785
_lt_linker_boilerplate=`cat conftest.err`
17789
# Allow CC to be a program name with arguments.
17794
for cc_temp in $compiler""; do
17796
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17797
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17802
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17805
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17806
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17807
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17808
echo "${ECHO_T}$can_build_shared" >&6; }
17810
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17811
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17812
test "$can_build_shared" = "no" && enable_shared=no
17814
# On AIX, shared libraries and static libraries use the same namespace, and
17815
# are all built from PIC.
17818
test "$enable_shared" = yes && enable_static=no
17819
if test -n "$RANLIB"; then
17820
archive_cmds="$archive_cmds~\$RANLIB \$lib"
17821
postinstall_cmds='$RANLIB $lib'
17825
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17826
test "$enable_shared" = yes && enable_static=no
17830
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17831
echo "${ECHO_T}$enable_shared" >&6; }
17833
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17834
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17835
# Make sure either enable_shared or enable_static is yes.
17836
test "$enable_shared" = yes || enable_static=yes
17837
{ echo "$as_me:$LINENO: result: $enable_static" >&5
17838
echo "${ECHO_T}$enable_static" >&6; }
17843
lt_prog_compiler_wl_F77=
17844
lt_prog_compiler_pic_F77=
17845
lt_prog_compiler_static_F77=
17847
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17848
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17850
if test "$GCC" = yes; then
17851
lt_prog_compiler_wl_F77='-Wl,'
17852
lt_prog_compiler_static_F77='-static'
17856
# All AIX code is PIC.
17857
if test "$host_cpu" = ia64; then
17858
# AIX 5 now supports IA64 processor
17859
lt_prog_compiler_static_F77='-Bstatic'
17864
# FIXME: we need at least 68020 code to build shared libraries, but
17865
# adding the `-m68020' flag to GCC prevents building anything better,
17867
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17870
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17871
# PIC is the default for these OSes.
17874
mingw* | cygwin* | pw32* | os2*)
17875
# This hack is so that the source file can tell whether it is being
17876
# built for inclusion in a dll (and should export symbols for example).
17877
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17878
# (--disable-auto-import) libraries
17879
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17882
darwin* | rhapsody*)
17883
# PIC is the default on this platform
17884
# Common symbols not allowed in MH_DYLIB files
17885
lt_prog_compiler_pic_F77='-fno-common'
17889
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17890
# Instead, we relocate shared libraries at runtime.
17894
# Just because we use GCC doesn't mean we suddenly get shared libraries
17895
# on systems that don't support them.
17896
lt_prog_compiler_can_build_shared_F77=no
17901
if test -d /usr/nec; then
17902
lt_prog_compiler_pic_F77=-Kconform_pic
17907
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17908
# not for PA HP-UX.
17914
lt_prog_compiler_pic_F77='-fPIC'
17920
lt_prog_compiler_pic_F77='-fPIC'
17924
# PORTME Check for flag to pass linker flags through the system compiler.
17927
lt_prog_compiler_wl_F77='-Wl,'
17928
if test "$host_cpu" = ia64; then
17929
# AIX 5 now supports IA64 processor
17930
lt_prog_compiler_static_F77='-Bstatic'
17932
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17936
# PIC is the default on this platform
17937
# Common symbols not allowed in MH_DYLIB files
17938
case $cc_basename in
17940
lt_prog_compiler_pic_F77='-qnocommon'
17941
lt_prog_compiler_wl_F77='-Wl,'
17946
mingw* | cygwin* | pw32* | os2*)
17947
# This hack is so that the source file can tell whether it is being
17948
# built for inclusion in a dll (and should export symbols for example).
17949
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17952
hpux9* | hpux10* | hpux11*)
17953
lt_prog_compiler_wl_F77='-Wl,'
17954
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17955
# not for PA HP-UX.
17961
lt_prog_compiler_pic_F77='+Z'
17964
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17965
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17968
irix5* | irix6* | nonstopux*)
17969
lt_prog_compiler_wl_F77='-Wl,'
17970
# PIC (with -KPIC) is the default.
17971
lt_prog_compiler_static_F77='-non_shared'
17975
lt_prog_compiler_pic_F77='-KPIC'
17976
lt_prog_compiler_static_F77='-Bstatic'
17979
linux* | k*bsd*-gnu)
17980
case $cc_basename in
17982
lt_prog_compiler_wl_F77='-Wl,'
17983
lt_prog_compiler_pic_F77='-KPIC'
17984
lt_prog_compiler_static_F77='-static'
17986
pgcc* | pgf77* | pgf90* | pgf95*)
17987
# Portland Group compilers (*not* the Pentium gcc compiler,
17988
# which looks to be a dead project)
17989
lt_prog_compiler_wl_F77='-Wl,'
17990
lt_prog_compiler_pic_F77='-fpic'
17991
lt_prog_compiler_static_F77='-Bstatic'
17994
lt_prog_compiler_wl_F77='-Wl,'
17995
# All Alpha code is PIC.
17996
lt_prog_compiler_static_F77='-non_shared'
17999
case `$CC -V 2>&1 | sed 5q` in
18002
lt_prog_compiler_pic_F77='-KPIC'
18003
lt_prog_compiler_static_F77='-Bstatic'
18004
lt_prog_compiler_wl_F77='-Wl,'
18007
# Sun Fortran 8.3 passes all unrecognized flags to the linker
18008
lt_prog_compiler_pic_F77='-KPIC'
18009
lt_prog_compiler_static_F77='-Bstatic'
18010
lt_prog_compiler_wl_F77=''
18017
osf3* | osf4* | osf5*)
18018
lt_prog_compiler_wl_F77='-Wl,'
18019
# All OSF/1 code is PIC.
18020
lt_prog_compiler_static_F77='-non_shared'
18024
lt_prog_compiler_static_F77='-non_shared'
18028
lt_prog_compiler_pic_F77='-KPIC'
18029
lt_prog_compiler_static_F77='-Bstatic'
18030
case $cc_basename in
18031
f77* | f90* | f95*)
18032
lt_prog_compiler_wl_F77='-Qoption ld ';;
18034
lt_prog_compiler_wl_F77='-Wl,';;
18039
lt_prog_compiler_wl_F77='-Qoption ld '
18040
lt_prog_compiler_pic_F77='-PIC'
18041
lt_prog_compiler_static_F77='-Bstatic'
18044
sysv4 | sysv4.2uw2* | sysv4.3*)
18045
lt_prog_compiler_wl_F77='-Wl,'
18046
lt_prog_compiler_pic_F77='-KPIC'
18047
lt_prog_compiler_static_F77='-Bstatic'
18051
if test -d /usr/nec ;then
18052
lt_prog_compiler_pic_F77='-Kconform_pic'
18053
lt_prog_compiler_static_F77='-Bstatic'
18057
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18058
lt_prog_compiler_wl_F77='-Wl,'
18059
lt_prog_compiler_pic_F77='-KPIC'
18060
lt_prog_compiler_static_F77='-Bstatic'
18064
lt_prog_compiler_wl_F77='-Wl,'
18065
lt_prog_compiler_can_build_shared_F77=no
18069
lt_prog_compiler_pic_F77='-pic'
18070
lt_prog_compiler_static_F77='-Bstatic'
18074
lt_prog_compiler_can_build_shared_F77=no
18079
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18080
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
18083
# Check to make sure the PIC flag actually works.
18085
if test -n "$lt_prog_compiler_pic_F77"; then
18087
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18088
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
18089
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
18090
echo $ECHO_N "(cached) $ECHO_C" >&6
18092
lt_cv_prog_compiler_pic_works_F77=no
18093
ac_outfile=conftest.$ac_objext
18094
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18095
lt_compiler_flag="$lt_prog_compiler_pic_F77"
18096
# Insert the option either (1) after the last *FLAGS variable, or
18097
# (2) before a word containing "conftest.", or (3) at the end.
18098
# Note that $ac_compile itself does not contain backslashes and begins
18099
# with a dollar sign (not a hyphen), so the echo should work correctly.
18100
# The option is referenced via a variable to avoid confusing sed.
18101
lt_compile=`echo "$ac_compile" | $SED \
18102
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18103
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18104
-e 's:$: $lt_compiler_flag:'`
18105
(eval echo "\"\$as_me:18105: $lt_compile\"" >&5)
18106
(eval "$lt_compile" 2>conftest.err)
18108
cat conftest.err >&5
18109
echo "$as_me:18109: \$? = $ac_status" >&5
18110
if (exit $ac_status) && test -s "$ac_outfile"; then
18111
# The compiler can only warn and ignore the option if not recognized
18112
# So say no if there are warnings other than the usual output.
18113
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18114
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18115
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18116
lt_cv_prog_compiler_pic_works_F77=yes
18122
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18123
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
18125
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
18126
case $lt_prog_compiler_pic_F77 in
18128
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18131
lt_prog_compiler_pic_F77=
18132
lt_prog_compiler_can_build_shared_F77=no
18137
# For platforms which do not support PIC, -DPIC is meaningless:
18139
lt_prog_compiler_pic_F77=
18142
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18147
# Check to make sure the static flag actually works.
18149
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18150
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18151
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18152
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
18153
echo $ECHO_N "(cached) $ECHO_C" >&6
18155
lt_cv_prog_compiler_static_works_F77=no
18156
save_LDFLAGS="$LDFLAGS"
18157
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18158
echo "$lt_simple_link_test_code" > conftest.$ac_ext
18159
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18160
# The linker can only warn and ignore the option if not recognized
18161
# So say no if there are warnings
18162
if test -s conftest.err; then
18163
# Append any errors to the config.log.
18164
cat conftest.err 1>&5
18165
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18166
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18167
if diff conftest.exp conftest.er2 >/dev/null; then
18168
lt_cv_prog_compiler_static_works_F77=yes
18171
lt_cv_prog_compiler_static_works_F77=yes
18175
LDFLAGS="$save_LDFLAGS"
18178
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
18179
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
18181
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
18184
lt_prog_compiler_static_F77=
18188
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18189
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18190
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18191
echo $ECHO_N "(cached) $ECHO_C" >&6
18193
lt_cv_prog_compiler_c_o_F77=no
18194
$rm -r conftest 2>/dev/null
18198
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18200
lt_compiler_flag="-o out/conftest2.$ac_objext"
18201
# Insert the option either (1) after the last *FLAGS variable, or
18202
# (2) before a word containing "conftest.", or (3) at the end.
18203
# Note that $ac_compile itself does not contain backslashes and begins
18204
# with a dollar sign (not a hyphen), so the echo should work correctly.
18205
lt_compile=`echo "$ac_compile" | $SED \
18206
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18207
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18208
-e 's:$: $lt_compiler_flag:'`
18209
(eval echo "\"\$as_me:18209: $lt_compile\"" >&5)
18210
(eval "$lt_compile" 2>out/conftest.err)
18212
cat out/conftest.err >&5
18213
echo "$as_me:18213: \$? = $ac_status" >&5
18214
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18216
# The compiler can only warn and ignore the option if not recognized
18217
# So say no if there are warnings
18218
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18219
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18220
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18221
lt_cv_prog_compiler_c_o_F77=yes
18226
# SGI C++ compiler will create directory out/ii_files/ for
18227
# template instantiation
18228
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18229
$rm out/* && rmdir out
18235
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18236
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
18239
hard_links="nottested"
18240
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18241
# do not overwrite the value of need_locks provided by the user
18242
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18243
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18246
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18248
ln conftest.a conftest.b 2>&5 || hard_links=no
18249
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18250
{ echo "$as_me:$LINENO: result: $hard_links" >&5
18251
echo "${ECHO_T}$hard_links" >&6; }
18252
if test "$hard_links" = no; then
18253
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18254
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18261
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18262
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18265
allow_undefined_flag_F77=
18266
enable_shared_with_static_runtimes_F77=no
18268
archive_expsym_cmds_F77=
18269
old_archive_From_new_cmds_F77=
18270
old_archive_from_expsyms_cmds_F77=
18271
export_dynamic_flag_spec_F77=
18272
whole_archive_flag_spec_F77=
18273
thread_safe_flag_spec_F77=
18274
hardcode_libdir_flag_spec_F77=
18275
hardcode_libdir_flag_spec_ld_F77=
18276
hardcode_libdir_separator_F77=
18277
hardcode_direct_F77=no
18278
hardcode_minus_L_F77=no
18279
hardcode_shlibpath_var_F77=unsupported
18280
link_all_deplibs_F77=unknown
18281
hardcode_automatic_F77=no
18283
module_expsym_cmds_F77=
18284
always_export_symbols_F77=no
18285
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18286
# include_expsyms should be a list of space-separated symbols to be *always*
18287
# included in the symbol list
18288
include_expsyms_F77=
18289
# exclude_expsyms can be an extended regexp of symbols to exclude
18290
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18291
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18292
# as well as any symbol that contains `d'.
18293
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18294
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18295
# platforms (ab)use it in PIC code, but their linkers get confused if
18296
# the symbol is explicitly referenced. Since portable code cannot
18297
# rely on this symbol name, it's probably fine to never include it in
18298
# preloaded symbol tables.
18299
# Exclude shared library initialization/finalization symbols.
18300
extract_expsyms_cmds=
18301
# Just being paranoid about ensuring that cc_basename is set.
18302
for cc_temp in $compiler""; do
18304
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18305
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18310
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18313
cygwin* | mingw* | pw32*)
18314
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18315
# When not using gcc, we currently assume that we are using
18316
# Microsoft Visual C++.
18317
if test "$GCC" != yes; then
18322
# we just hope/assume this is gcc and not c89 (= MSVC++)
18331
if test "$with_gnu_ld" = yes; then
18332
# If archive_cmds runs LD, not CC, wlarc should be empty
18335
# Set some defaults for GNU ld with shared library support. These
18336
# are reset later if shared libraries are not supported. Putting them
18337
# here allows them to be overridden if necessary.
18338
runpath_var=LD_RUN_PATH
18339
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
18340
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18341
# ancient GNU ld didn't support --whole-archive et. al.
18342
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18343
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18345
whole_archive_flag_spec_F77=
18347
supports_anon_versioning=no
18348
case `$LD -v 2>/dev/null` in
18349
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18350
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18351
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18352
*\ 2.11.*) ;; # other 2.11 versions
18353
*) supports_anon_versioning=yes ;;
18356
# See if GNU ld supports shared libraries.
18359
# On AIX/PPC, the GNU linker is very broken
18360
if test "$host_cpu" != ia64; then
18364
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18365
*** to be unable to reliably create shared libraries on AIX.
18366
*** Therefore, libtool is disabling shared libraries support. If you
18367
*** really care for shared libraries, you may want to modify your PATH
18368
*** so that a non-GNU linker is found, and then restart.
18375
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)'
18376
hardcode_libdir_flag_spec_F77='-L$libdir'
18377
hardcode_minus_L_F77=yes
18379
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18380
# that the semantics of dynamic libraries on AmigaOS, at least up
18381
# to version 4, is to share data among multiple programs linked
18382
# with the same dynamic library. Since this doesn't match the
18383
# behavior of shared libraries on other platforms, we can't use
18389
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18390
allow_undefined_flag_F77=unsupported
18391
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18392
# support --undefined. This deserves some investigation. FIXME
18393
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18399
cygwin* | mingw* | pw32*)
18400
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18401
# as there is no search path for DLLs.
18402
hardcode_libdir_flag_spec_F77='-L$libdir'
18403
allow_undefined_flag_F77=unsupported
18404
always_export_symbols_F77=no
18405
enable_shared_with_static_runtimes_F77=yes
18406
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18408
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18409
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18410
# If the export-symbols file already is a .def file (1st line
18411
# is EXPORTS), use it as is; otherwise, prepend...
18412
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18413
cp $export_symbols $output_objdir/$soname.def;
18415
echo EXPORTS > $output_objdir/$soname.def;
18416
cat $export_symbols >> $output_objdir/$soname.def;
18418
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18425
hardcode_direct_F77=no
18426
hardcode_shlibpath_var_F77=no
18427
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18428
export_dynamic_flag_spec_F77='${wl}-E'
18429
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18430
# Instead, shared libraries are loaded at an image base (0x10000000 by
18431
# default) and relocated if they conflict, which is a slow very memory
18432
# consuming and fragmenting process. To avoid this, we pick a random,
18433
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18434
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
18435
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'
18436
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'
18439
gnu* | linux* | k*bsd*-gnu)
18440
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18442
case $cc_basename,$host_cpu in
18443
pgcc*) # Portland Group C compiler
18444
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'
18445
tmp_addflag=' $pic_flag'
18447
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18448
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'
18449
tmp_addflag=' $pic_flag -Mnomain' ;;
18450
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18451
tmp_addflag=' -i_dynamic' ;;
18452
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18453
tmp_addflag=' -i_dynamic -nofor_main' ;;
18454
ifc* | ifort*) # Intel Fortran compiler
18455
tmp_addflag=' -nofor_main' ;;
18457
case `$CC -V 2>&1 | sed 5q` in
18458
*Sun\ C*) # Sun C 5.9
18459
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'
18460
tmp_sharedflag='-G' ;;
18461
*Sun\ F*) # Sun Fortran 8.3
18462
tmp_sharedflag='-G' ;;
18464
tmp_sharedflag='-shared' ;;
18466
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18468
if test $supports_anon_versioning = yes; then
18469
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
18470
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18471
$echo "local: *; };" >> $output_objdir/$libname.ver~
18472
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18474
link_all_deplibs_F77=no
18480
netbsd* | netbsdelf*-gnu)
18481
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18482
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18485
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18486
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18491
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18495
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18496
*** create shared libraries on Solaris systems. Therefore, libtool
18497
*** is disabling shared libraries support. We urge you to upgrade GNU
18498
*** binutils to release 2.9.1 or newer. Another option is to modify
18499
*** your PATH or compiler configuration so that the native linker is
18500
*** used, and then restart.
18503
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18504
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18505
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18511
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18512
case `$LD -v 2>&1` in
18513
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18517
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18518
*** reliably create shared libraries on SCO systems. Therefore, libtool
18519
*** is disabling shared libraries support. We urge you to upgrade GNU
18520
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18521
*** your PATH or compiler configuration so that the native linker is
18522
*** used, and then restart.
18527
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18528
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18529
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18530
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18539
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18541
hardcode_direct_F77=yes
18542
hardcode_shlibpath_var_F77=no
18546
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18547
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18548
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18555
if test "$ld_shlibs_F77" = no; then
18557
hardcode_libdir_flag_spec_F77=
18558
export_dynamic_flag_spec_F77=
18559
whole_archive_flag_spec_F77=
18562
# PORTME fill in a description of your system's linker (not GNU ld)
18565
allow_undefined_flag_F77=unsupported
18566
always_export_symbols_F77=yes
18567
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'
18568
# Note: this linker hardcodes the directories in LIBPATH if there
18569
# are no directories specified by -L.
18570
hardcode_minus_L_F77=yes
18571
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18572
# Neither direct hardcoding nor static linking is supported with a
18574
hardcode_direct_F77=unsupported
18579
if test "$host_cpu" = ia64; then
18580
# On IA64, the linker does run time linking by default, so we don't
18581
# have to do anything special.
18582
aix_use_runtimelinking=no
18583
exp_sym_flag='-Bexport'
18586
# If we're using GNU nm, then we don't want the "-C" option.
18587
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18588
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18589
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'
18591
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'
18593
aix_use_runtimelinking=no
18595
# Test if we are trying to use run time linking or normal
18596
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18597
# need to do runtime linking.
18598
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18599
for ld_flag in $LDFLAGS; do
18600
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18601
aix_use_runtimelinking=yes
18608
exp_sym_flag='-bexport'
18609
no_entry_flag='-bnoentry'
18612
# When large executables or shared objects are built, AIX ld can
18613
# have problems creating the table of contents. If linking a library
18614
# or program results in "error TOC overflow" add -mminimal-toc to
18615
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18616
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18618
archive_cmds_F77=''
18619
hardcode_direct_F77=yes
18620
hardcode_libdir_separator_F77=':'
18621
link_all_deplibs_F77=yes
18623
if test "$GCC" = yes; then
18624
case $host_os in aix4.[012]|aix4.[012].*)
18625
# We only want to do this on AIX 4.2 and lower, the check
18626
# below for broken collect2 doesn't work under 4.3+
18627
collect2name=`${CC} -print-prog-name=collect2`
18628
if test -f "$collect2name" && \
18629
strings "$collect2name" | grep resolve_lib_name >/dev/null
18631
# We have reworked collect2
18634
# We have old collect2
18635
hardcode_direct_F77=unsupported
18636
# It fails to find uninstalled libraries when the uninstalled
18637
# path is not listed in the libpath. Setting hardcode_minus_L
18638
# to unsupported forces relinking
18639
hardcode_minus_L_F77=yes
18640
hardcode_libdir_flag_spec_F77='-L$libdir'
18641
hardcode_libdir_separator_F77=
18645
shared_flag='-shared'
18646
if test "$aix_use_runtimelinking" = yes; then
18647
shared_flag="$shared_flag "'${wl}-G'
18651
if test "$host_cpu" = ia64; then
18652
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18653
# chokes on -Wl,-G. The following line is correct:
18656
if test "$aix_use_runtimelinking" = yes; then
18657
shared_flag='${wl}-G'
18659
shared_flag='${wl}-bM:SRE'
18664
# It seems that -bexpall does not export symbols beginning with
18665
# underscore (_), so it is better to generate a list of symbols to export.
18666
always_export_symbols_F77=yes
18667
if test "$aix_use_runtimelinking" = yes; then
18668
# Warning - without using the other runtime loading flags (-brtl),
18669
# -berok will link without error, but may produce a broken library.
18670
allow_undefined_flag_F77='-berok'
18671
# Determine the default libpath from the value encoded in an empty executable.
18672
cat >conftest.$ac_ext <<_ACEOF
18677
rm -f conftest.$ac_objext conftest$ac_exeext
18678
if { (ac_try="$ac_link"
18679
case "(($ac_try" in
18680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681
*) ac_try_echo=$ac_try;;
18683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684
(eval "$ac_link") 2>conftest.er1
18686
grep -v '^ *+' conftest.er1 >conftest.err
18688
cat conftest.err >&5
18689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690
(exit $ac_status); } && {
18691
test -z "$ac_f77_werror_flag" ||
18692
test ! -s conftest.err
18693
} && test -s conftest$ac_exeext &&
18694
$as_test_x conftest$ac_exeext; then
18696
lt_aix_libpath_sed='
18697
/Import File Strings/,/^$/ {
18703
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18704
# Check for a 64-bit object if we didn't find anything.
18705
if test -z "$aix_libpath"; then
18706
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18709
echo "$as_me: failed program was:" >&5
18710
sed 's/^/| /' conftest.$ac_ext >&5
18715
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716
conftest$ac_exeext conftest.$ac_ext
18717
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18719
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18720
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"
18722
if test "$host_cpu" = ia64; then
18723
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18724
allow_undefined_flag_F77="-z nodefs"
18725
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"
18727
# Determine the default libpath from the value encoded in an empty executable.
18728
cat >conftest.$ac_ext <<_ACEOF
18733
rm -f conftest.$ac_objext conftest$ac_exeext
18734
if { (ac_try="$ac_link"
18735
case "(($ac_try" in
18736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737
*) ac_try_echo=$ac_try;;
18739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740
(eval "$ac_link") 2>conftest.er1
18742
grep -v '^ *+' conftest.er1 >conftest.err
18744
cat conftest.err >&5
18745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746
(exit $ac_status); } && {
18747
test -z "$ac_f77_werror_flag" ||
18748
test ! -s conftest.err
18749
} && test -s conftest$ac_exeext &&
18750
$as_test_x conftest$ac_exeext; then
18752
lt_aix_libpath_sed='
18753
/Import File Strings/,/^$/ {
18759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18760
# Check for a 64-bit object if we didn't find anything.
18761
if test -z "$aix_libpath"; then
18762
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18765
echo "$as_me: failed program was:" >&5
18766
sed 's/^/| /' conftest.$ac_ext >&5
18771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772
conftest$ac_exeext conftest.$ac_ext
18773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18775
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18776
# Warning - without using the other run time loading flags,
18777
# -berok will link without error, but may produce a broken library.
18778
no_undefined_flag_F77=' ${wl}-bernotok'
18779
allow_undefined_flag_F77=' ${wl}-berok'
18780
# Exported symbols can be pulled into shared objects from archives
18781
whole_archive_flag_spec_F77='$convenience'
18782
archive_cmds_need_lc_F77=yes
18783
# This is similar to how AIX traditionally builds its shared libraries.
18784
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'
18790
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)'
18791
hardcode_libdir_flag_spec_F77='-L$libdir'
18792
hardcode_minus_L_F77=yes
18793
# see comment about different semantics on the GNU ld section
18798
export_dynamic_flag_spec_F77=-rdynamic
18801
cygwin* | mingw* | pw32*)
18802
# When not using gcc, we currently assume that we are using
18803
# Microsoft Visual C++.
18804
# hardcode_libdir_flag_spec is actually meaningless, as there is
18805
# no search path for DLLs.
18806
hardcode_libdir_flag_spec_F77=' '
18807
allow_undefined_flag_F77=unsupported
18808
# Tell ltmain to make .lib files, not .a files.
18810
# Tell ltmain to make .dll files, not .so files.
18812
# FIXME: Setting linknames here is a bad hack.
18813
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18814
# The linker will automatically build a .lib file if we build a DLL.
18815
old_archive_From_new_cmds_F77='true'
18816
# FIXME: Should let the user specify the lib program.
18817
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18818
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18819
enable_shared_with_static_runtimes_F77=yes
18822
darwin* | rhapsody*)
18824
rhapsody* | darwin1.[012])
18825
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18828
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18829
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18831
case ${MACOSX_DEPLOYMENT_TARGET} in
18833
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18842
archive_cmds_need_lc_F77=no
18843
hardcode_direct_F77=no
18844
hardcode_automatic_F77=yes
18845
hardcode_shlibpath_var_F77=unsupported
18846
whole_archive_flag_spec_F77=''
18847
link_all_deplibs_F77=yes
18848
if test "$GCC" = yes ; then
18849
output_verbose_link_cmd='echo'
18850
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}"
18851
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18852
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}"
18853
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}"
18855
case $cc_basename in
18857
output_verbose_link_cmd='echo'
18858
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18859
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18860
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18861
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}'
18862
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}'
18872
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18873
hardcode_libdir_flag_spec_F77='-L$libdir'
18874
hardcode_shlibpath_var_F77=no
18881
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18882
# support. Future versions do this automatically, but an explicit c++rt0.o
18883
# does not break anything, and helps significantly (at the cost of a little
18886
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18887
hardcode_libdir_flag_spec_F77='-R$libdir'
18888
hardcode_direct_F77=yes
18889
hardcode_shlibpath_var_F77=no
18892
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18894
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18895
hardcode_direct_F77=yes
18896
hardcode_minus_L_F77=yes
18897
hardcode_shlibpath_var_F77=no
18900
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18901
freebsd* | dragonfly*)
18902
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18903
hardcode_libdir_flag_spec_F77='-R$libdir'
18904
hardcode_direct_F77=yes
18905
hardcode_shlibpath_var_F77=no
18909
if test "$GCC" = yes; then
18910
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'
18912
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'
18914
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18915
hardcode_libdir_separator_F77=:
18916
hardcode_direct_F77=yes
18918
# hardcode_minus_L: Not really in the search PATH,
18919
# but as the default location of the library.
18920
hardcode_minus_L_F77=yes
18921
export_dynamic_flag_spec_F77='${wl}-E'
18925
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18926
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18928
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18930
if test "$with_gnu_ld" = no; then
18931
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18932
hardcode_libdir_separator_F77=:
18934
hardcode_direct_F77=yes
18935
export_dynamic_flag_spec_F77='${wl}-E'
18937
# hardcode_minus_L: Not really in the search PATH,
18938
# but as the default location of the library.
18939
hardcode_minus_L_F77=yes
18944
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18947
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18950
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18953
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18959
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18962
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18965
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18969
if test "$with_gnu_ld" = no; then
18970
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18971
hardcode_libdir_separator_F77=:
18975
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18976
hardcode_direct_F77=no
18977
hardcode_shlibpath_var_F77=no
18980
hardcode_direct_F77=yes
18981
export_dynamic_flag_spec_F77='${wl}-E'
18983
# hardcode_minus_L: Not really in the search PATH,
18984
# but as the default location of the library.
18985
hardcode_minus_L_F77=yes
18991
irix5* | irix6* | nonstopux*)
18992
if test "$GCC" = yes; then
18993
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'
18995
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'
18996
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18998
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18999
hardcode_libdir_separator_F77=:
19000
link_all_deplibs_F77=yes
19003
netbsd* | netbsdelf*-gnu)
19004
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19005
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19007
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19009
hardcode_libdir_flag_spec_F77='-R$libdir'
19010
hardcode_direct_F77=yes
19011
hardcode_shlibpath_var_F77=no
19015
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19016
hardcode_direct_F77=yes
19017
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19018
hardcode_libdir_separator_F77=:
19019
hardcode_shlibpath_var_F77=no
19023
if test -f /usr/libexec/ld.so; then
19024
hardcode_direct_F77=yes
19025
hardcode_shlibpath_var_F77=no
19026
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19027
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19028
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19029
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19030
export_dynamic_flag_spec_F77='${wl}-E'
19033
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19034
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19035
hardcode_libdir_flag_spec_F77='-R$libdir'
19038
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19039
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19049
hardcode_libdir_flag_spec_F77='-L$libdir'
19050
hardcode_minus_L_F77=yes
19051
allow_undefined_flag_F77=unsupported
19052
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'
19053
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19057
if test "$GCC" = yes; then
19058
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19059
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'
19061
allow_undefined_flag_F77=' -expect_unresolved \*'
19062
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'
19064
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19065
hardcode_libdir_separator_F77=:
19068
osf4* | osf5*) # as osf3* with the addition of -msym flag
19069
if test "$GCC" = yes; then
19070
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19071
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'
19072
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19074
allow_undefined_flag_F77=' -expect_unresolved \*'
19075
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'
19076
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~
19077
$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'
19079
# Both c and cxx compiler support -rpath directly
19080
hardcode_libdir_flag_spec_F77='-rpath $libdir'
19082
hardcode_libdir_separator_F77=:
19086
no_undefined_flag_F77=' -z text'
19087
if test "$GCC" = yes; then
19089
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19090
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19091
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19094
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19095
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19096
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19098
hardcode_libdir_flag_spec_F77='-R$libdir'
19099
hardcode_shlibpath_var_F77=no
19101
solaris2.[0-5] | solaris2.[0-5].*) ;;
19103
# The compiler driver will combine and reorder linker options,
19104
# but understands `-z linker_flag'. GCC discards it without `$wl',
19105
# but is careful enough not to reorder.
19106
# Supported since Solaris 2.6 (maybe 2.5.1?)
19107
if test "$GCC" = yes; then
19108
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19110
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19114
link_all_deplibs_F77=yes
19118
if test "x$host_vendor" = xsequent; then
19119
# Use $CC to link under sequent, because it throws in some extra .o
19120
# files that make .init and .fini sections work.
19121
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19123
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19125
hardcode_libdir_flag_spec_F77='-L$libdir'
19126
hardcode_direct_F77=yes
19127
hardcode_minus_L_F77=yes
19128
hardcode_shlibpath_var_F77=no
19132
case $host_vendor in
19134
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135
hardcode_direct_F77=yes # is this really true???
19138
## LD is ld it makes a PLAMLIB
19139
## CC just makes a GrossModule.
19140
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19141
reload_cmds_F77='$CC -r -o $output$reload_objs'
19142
hardcode_direct_F77=no
19145
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19146
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19149
runpath_var='LD_RUN_PATH'
19150
hardcode_shlibpath_var_F77=no
19154
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19155
hardcode_shlibpath_var_F77=no
19156
export_dynamic_flag_spec_F77='-Bexport'
19160
if test -d /usr/nec; then
19161
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19162
hardcode_shlibpath_var_F77=no
19163
runpath_var=LD_RUN_PATH
19164
hardcode_runpath_var=yes
19169
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19170
no_undefined_flag_F77='${wl}-z,text'
19171
archive_cmds_need_lc_F77=no
19172
hardcode_shlibpath_var_F77=no
19173
runpath_var='LD_RUN_PATH'
19175
if test "$GCC" = yes; then
19176
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19177
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19179
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19180
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19184
sysv5* | sco3.2v5* | sco5v6*)
19185
# Note: We can NOT use -z defs as we might desire, because we do not
19186
# link with -lc, and that would cause any symbols used from libc to
19187
# always be unresolved, which means just about no library would
19188
# ever link correctly. If we're not using GNU ld we use -z text
19189
# though, which does catch some bad symbols but isn't as heavy-handed
19191
no_undefined_flag_F77='${wl}-z,text'
19192
allow_undefined_flag_F77='${wl}-z,nodefs'
19193
archive_cmds_need_lc_F77=no
19194
hardcode_shlibpath_var_F77=no
19195
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19196
hardcode_libdir_separator_F77=':'
19197
link_all_deplibs_F77=yes
19198
export_dynamic_flag_spec_F77='${wl}-Bexport'
19199
runpath_var='LD_RUN_PATH'
19201
if test "$GCC" = yes; then
19202
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19203
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19205
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19206
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19211
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19212
hardcode_libdir_flag_spec_F77='-L$libdir'
19213
hardcode_shlibpath_var_F77=no
19222
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19223
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
19224
test "$ld_shlibs_F77" = no && can_build_shared=no
19227
# Do we need to explicitly link libc?
19229
case "x$archive_cmds_need_lc_F77" in
19231
# Assume -lc should be added
19232
archive_cmds_need_lc_F77=yes
19234
if test "$enable_shared" = yes && test "$GCC" = yes; then
19235
case $archive_cmds_F77 in
19237
# FIXME: we may have to deal with multi-command sequences.
19240
# Test whether the compiler implicitly links with -lc since on some
19241
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19242
# to ld, don't add -lc before -lgcc.
19243
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19244
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19246
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19249
(eval $ac_compile) 2>&5
19251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252
(exit $ac_status); } 2>conftest.err; then
19255
libobjs=conftest.$ac_objext
19257
wl=$lt_prog_compiler_wl_F77
19258
pic_flag=$lt_prog_compiler_pic_F77
19264
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19265
allow_undefined_flag_F77=
19266
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19267
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270
(exit $ac_status); }
19272
archive_cmds_need_lc_F77=no
19274
archive_cmds_need_lc_F77=yes
19276
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19278
cat conftest.err 1>&5
19281
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19282
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
19289
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19290
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19291
library_names_spec=
19292
libname_spec='lib$name'
19296
postuninstall_cmds=
19300
shlibpath_overrides_runpath=unknown
19302
dynamic_linker="$host_os ld.so"
19303
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19305
need_lib_prefix=unknown
19306
hardcode_into_libs=no
19308
# when you set need_version to no, make sure it does not cause -set_version
19309
# flags to be left without arguments
19310
need_version=unknown
19315
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19316
shlibpath_var=LIBPATH
19318
# AIX 3 has no versioning support, so we append a major version to the name.
19319
soname_spec='${libname}${release}${shared_ext}$major'
19326
hardcode_into_libs=yes
19327
if test "$host_cpu" = ia64; then
19328
# AIX 5 supports IA64
19329
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19330
shlibpath_var=LD_LIBRARY_PATH
19332
# With GCC up to 2.95.x, collect2 would create an import file
19333
# for dependence libraries. The import file would start with
19334
# the line `#! .'. This would cause the generated library to
19335
# depend on `.', always an invalid library. This was fixed in
19336
# development snapshots of GCC prior to 3.0.
19338
aix4 | aix4.[01] | aix4.[01].*)
19339
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19341
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19344
can_build_shared=no
19348
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19349
# soname into executable. Probably we can add versioning support to
19350
# collect2, so additional links can be useful in future.
19351
if test "$aix_use_runtimelinking" = yes; then
19352
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19353
# instead of lib<name>.a to let people know that these are not
19354
# typical AIX shared libraries.
19355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19357
# We preserve .a as extension for shared libraries through AIX4.2
19358
# and later when we are not doing run time linking.
19359
library_names_spec='${libname}${release}.a $libname.a'
19360
soname_spec='${libname}${release}${shared_ext}$major'
19362
shlibpath_var=LIBPATH
19367
library_names_spec='$libname.ixlibrary $libname.a'
19368
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19369
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'
19373
library_names_spec='${libname}${shared_ext}'
19374
dynamic_linker="$host_os ld.so"
19375
shlibpath_var=LIBRARY_PATH
19381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382
soname_spec='${libname}${release}${shared_ext}$major'
19383
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19384
shlibpath_var=LD_LIBRARY_PATH
19385
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19386
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19387
# the default ld.so.conf also contains /usr/contrib/lib and
19388
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19389
# libtool to hard-code these into programs
19392
cygwin* | mingw* | pw32*)
19393
version_type=windows
19398
case $GCC,$host_os in
19399
yes,cygwin* | yes,mingw* | yes,pw32*)
19400
library_names_spec='$libname.dll.a'
19401
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19402
postinstall_cmds='base_file=`basename \${file}`~
19403
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19404
dldir=$destdir/`dirname \$dlpath`~
19405
test -d \$dldir || mkdir -p \$dldir~
19406
$install_prog $dir/$dlname \$dldir/$dlname~
19407
chmod a+x \$dldir/$dlname'
19408
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19409
dlpath=$dir/\$dldll~
19411
shlibpath_overrides_runpath=yes
19415
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19416
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19417
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19420
# MinGW DLLs use traditional 'lib' prefix
19421
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19422
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19423
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19424
# It is most probably a Windows format PATH printed by
19425
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19426
# path with ; separators, and with drive letters. We can handle the
19427
# drive letters (cygwin fileutils understands them), so leave them,
19428
# especially as we might pass files found there to a mingw objdump,
19429
# which wouldn't understand a cygwinified path. Ahh.
19430
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19432
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19436
# pw32 DLLs use 'pw' prefix rather than 'lib'
19437
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19443
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19446
dynamic_linker='Win32 ld.exe'
19447
# FIXME: first we should search . and the directory the executable is in
19451
darwin* | rhapsody*)
19452
dynamic_linker="$host_os dyld"
19453
version_type=darwin
19456
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19457
soname_spec='${libname}${release}${major}$shared_ext'
19458
shlibpath_overrides_runpath=yes
19459
shlibpath_var=DYLD_LIBRARY_PATH
19460
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19462
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19470
soname_spec='${libname}${release}${shared_ext}$major'
19471
shlibpath_var=LD_LIBRARY_PATH
19478
freebsd* | dragonfly*)
19479
# DragonFly does not have aout. When/if they implement a new
19480
# versioning mechanism, adjust this.
19481
if test -x /usr/bin/objformat; then
19482
objformat=`/usr/bin/objformat`
19485
freebsd[123]*) objformat=aout ;;
19486
*) objformat=elf ;;
19489
version_type=freebsd-$objformat
19490
case $version_type in
19492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19497
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19501
shlibpath_var=LD_LIBRARY_PATH
19504
shlibpath_overrides_runpath=yes
19506
freebsd3.[01]* | freebsdelf3.[01]*)
19507
shlibpath_overrides_runpath=yes
19508
hardcode_into_libs=yes
19510
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19511
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19512
shlibpath_overrides_runpath=no
19513
hardcode_into_libs=yes
19515
*) # from 4.6 on, and DragonFly
19516
shlibpath_overrides_runpath=yes
19517
hardcode_into_libs=yes
19526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19527
soname_spec='${libname}${release}${shared_ext}$major'
19528
shlibpath_var=LD_LIBRARY_PATH
19529
hardcode_into_libs=yes
19532
hpux9* | hpux10* | hpux11*)
19533
# Give a soname corresponding to the major version so that dld.sl refuses to
19534
# link against other versions.
19541
hardcode_into_libs=yes
19542
dynamic_linker="$host_os dld.so"
19543
shlibpath_var=LD_LIBRARY_PATH
19544
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19546
soname_spec='${libname}${release}${shared_ext}$major'
19547
if test "X$HPUX_IA64_MODE" = X32; then
19548
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19550
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19552
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19556
hardcode_into_libs=yes
19557
dynamic_linker="$host_os dld.sl"
19558
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19559
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19561
soname_spec='${libname}${release}${shared_ext}$major'
19562
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19563
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19567
dynamic_linker="$host_os dld.sl"
19568
shlibpath_var=SHLIB_PATH
19569
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19571
soname_spec='${libname}${release}${shared_ext}$major'
19574
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19575
postinstall_cmds='chmod 555 $lib'
19582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19583
soname_spec='${libname}${release}${shared_ext}$major'
19584
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19585
shlibpath_var=LD_LIBRARY_PATH
19586
shlibpath_overrides_runpath=no
19587
hardcode_into_libs=yes
19590
irix5* | irix6* | nonstopux*)
19592
nonstopux*) version_type=nonstopux ;;
19594
if test "$lt_cv_prog_gnu_ld" = yes; then
19602
soname_spec='${libname}${release}${shared_ext}$major'
19603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19605
irix5* | nonstopux*)
19606
libsuff= shlibsuff=
19609
case $LD in # libtool.m4 will add one of these switches to LD
19610
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19611
libsuff= shlibsuff= libmagic=32-bit;;
19612
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19613
libsuff=32 shlibsuff=N32 libmagic=N32;;
19614
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19615
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19616
*) libsuff= shlibsuff= libmagic=never-match;;
19620
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19621
shlibpath_overrides_runpath=no
19622
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19623
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19624
hardcode_into_libs=yes
19627
# No shared lib support for Linux oldld, aout, or coff.
19628
linux*oldld* | linux*aout* | linux*coff*)
19632
# This must be Linux ELF.
19633
linux* | k*bsd*-gnu)
19637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19638
soname_spec='${libname}${release}${shared_ext}$major'
19639
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19640
shlibpath_var=LD_LIBRARY_PATH
19641
shlibpath_overrides_runpath=no
19642
# This implies no fast_install, which is unacceptable.
19643
# Some rework will be needed to allow for fast_install
19644
# before this can be enabled.
19645
hardcode_into_libs=yes
19647
# Append ld.so.conf contents to the search path
19648
if test -f /etc/ld.so.conf; then
19649
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' ' '`
19650
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19653
# We used to test for /lib/ld.so.1 and disable shared libraries on
19654
# powerpc, because MkLinux only supported shared libraries with the
19655
# GNU dynamic linker. Since this was broken with cross compilers,
19656
# most powerpc-linux boxes support dynamic linking these days and
19657
# people can always --disable-shared, the test was removed, and we
19658
# assume the GNU/Linux dynamic linker is in use.
19659
dynamic_linker='GNU/Linux ld.so'
19666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19667
soname_spec='${libname}${release}${shared_ext}$major'
19668
shlibpath_var=LD_LIBRARY_PATH
19669
shlibpath_overrides_runpath=no
19670
hardcode_into_libs=yes
19671
dynamic_linker='NetBSD ld.elf_so'
19678
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19680
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19681
dynamic_linker='NetBSD (a.out) ld.so'
19683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19684
soname_spec='${libname}${release}${shared_ext}$major'
19685
dynamic_linker='NetBSD ld.elf_so'
19687
shlibpath_var=LD_LIBRARY_PATH
19688
shlibpath_overrides_runpath=yes
19689
hardcode_into_libs=yes
19694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19695
shlibpath_var=LD_LIBRARY_PATH
19696
shlibpath_overrides_runpath=yes
19703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19704
soname_spec='${libname}${release}${shared_ext}$major'
19705
shlibpath_var=LD_LIBRARY_PATH
19706
shlibpath_overrides_runpath=yes
19711
sys_lib_dlsearch_path_spec="/usr/lib"
19713
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19715
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19716
*) need_version=no ;;
19718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19719
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19720
shlibpath_var=LD_LIBRARY_PATH
19721
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19723
openbsd2.[89] | openbsd2.[89].*)
19724
shlibpath_overrides_runpath=no
19727
shlibpath_overrides_runpath=yes
19731
shlibpath_overrides_runpath=yes
19736
libname_spec='$name'
19739
library_names_spec='$libname${shared_ext} $libname.a'
19740
dynamic_linker='OS/2 ld.exe'
19741
shlibpath_var=LIBPATH
19744
osf3* | osf4* | osf5*)
19748
soname_spec='${libname}${release}${shared_ext}$major'
19749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19750
shlibpath_var=LD_LIBRARY_PATH
19751
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19752
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19764
soname_spec='${libname}${release}${shared_ext}$major'
19765
shlibpath_var=LD_LIBRARY_PATH
19766
shlibpath_overrides_runpath=yes
19767
hardcode_into_libs=yes
19768
# ldd complains unless libraries are executable
19769
postinstall_cmds='chmod +x $lib'
19774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19775
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19776
shlibpath_var=LD_LIBRARY_PATH
19777
shlibpath_overrides_runpath=yes
19778
if test "$with_gnu_ld" = yes; then
19786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19787
soname_spec='${libname}${release}${shared_ext}$major'
19788
shlibpath_var=LD_LIBRARY_PATH
19789
case $host_vendor in
19791
shlibpath_overrides_runpath=no
19793
export_dynamic_flag_spec='${wl}-Blargedynsym'
19794
runpath_var=LD_RUN_PATH
19802
shlibpath_overrides_runpath=no
19803
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19809
if test -d /usr/nec ;then
19811
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19812
soname_spec='$libname${shared_ext}.$major'
19813
shlibpath_var=LD_LIBRARY_PATH
19817
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19818
version_type=freebsd-elf
19821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19822
soname_spec='${libname}${release}${shared_ext}$major'
19823
shlibpath_var=LD_LIBRARY_PATH
19824
hardcode_into_libs=yes
19825
if test "$with_gnu_ld" = yes; then
19826
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19827
shlibpath_overrides_runpath=no
19829
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19830
shlibpath_overrides_runpath=yes
19833
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19837
sys_lib_dlsearch_path_spec='/usr/lib'
19842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19843
soname_spec='${libname}${release}${shared_ext}$major'
19844
shlibpath_var=LD_LIBRARY_PATH
19851
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19852
echo "${ECHO_T}$dynamic_linker" >&6; }
19853
test "$dynamic_linker" = no && can_build_shared=no
19855
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19856
echo $ECHO_N "(cached) $ECHO_C" >&6
19858
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19861
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19862
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19863
echo $ECHO_N "(cached) $ECHO_C" >&6
19865
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19868
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19870
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19871
if test "$GCC" = yes; then
19872
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19875
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19876
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19877
hardcode_action_F77=
19878
if test -n "$hardcode_libdir_flag_spec_F77" || \
19879
test -n "$runpath_var_F77" || \
19880
test "X$hardcode_automatic_F77" = "Xyes" ; then
19882
# We can hardcode non-existant directories.
19883
if test "$hardcode_direct_F77" != no &&
19884
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19885
# have to relink, otherwise we might link with an installed library
19886
# when we should be linking with a yet-to-be-installed one
19887
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19888
test "$hardcode_minus_L_F77" != no; then
19889
# Linking always hardcodes the temporary library directory.
19890
hardcode_action_F77=relink
19892
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19893
hardcode_action_F77=immediate
19896
# We cannot hardcode anything, or else we can only hardcode existing
19898
hardcode_action_F77=unsupported
19900
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19901
echo "${ECHO_T}$hardcode_action_F77" >&6; }
19903
if test "$hardcode_action_F77" = relink; then
19904
# Fast installation is not supported
19905
enable_fast_install=no
19906
elif test "$shlibpath_overrides_runpath" = yes ||
19907
test "$enable_shared" = no; then
19908
# Fast installation is not necessary
19909
enable_fast_install=needless
19913
# The else clause should only fire when bootstrapping the
19914
# libtool distribution, otherwise you forgot to ship ltmain.sh
19915
# with your package, and you will get complaints that there are
19916
# no rules to generate ltmain.sh.
19917
if test -f "$ltmain"; then
19918
# See if we are running on zsh, and set the options which allow our commands through
19919
# without removal of \ escapes.
19920
if test -n "${ZSH_VERSION+set}" ; then
19921
setopt NO_GLOB_SUBST
19923
# Now quote all the things that may contain metacharacters while being
19924
# careful not to overquote the AC_SUBSTed values. We take copies of the
19925
# variables and quote the copies for generation of the libtool script.
19926
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19928
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19929
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19930
deplibs_check_method reload_flag reload_cmds need_locks \
19931
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19932
lt_cv_sys_global_symbol_to_c_name_address \
19933
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19934
old_postinstall_cmds old_postuninstall_cmds \
19938
lt_prog_compiler_wl_F77 \
19939
lt_prog_compiler_pic_F77 \
19940
lt_prog_compiler_static_F77 \
19941
lt_prog_compiler_no_builtin_flag_F77 \
19942
export_dynamic_flag_spec_F77 \
19943
thread_safe_flag_spec_F77 \
19944
whole_archive_flag_spec_F77 \
19945
enable_shared_with_static_runtimes_F77 \
19946
old_archive_cmds_F77 \
19947
old_archive_from_new_cmds_F77 \
19948
predep_objects_F77 \
19949
postdep_objects_F77 \
19952
compiler_lib_search_path_F77 \
19953
compiler_lib_search_dirs_F77 \
19955
archive_expsym_cmds_F77 \
19956
postinstall_cmds_F77 \
19957
postuninstall_cmds_F77 \
19958
old_archive_from_expsyms_cmds_F77 \
19959
allow_undefined_flag_F77 \
19960
no_undefined_flag_F77 \
19961
export_symbols_cmds_F77 \
19962
hardcode_libdir_flag_spec_F77 \
19963
hardcode_libdir_flag_spec_ld_F77 \
19964
hardcode_libdir_separator_F77 \
19965
hardcode_automatic_F77 \
19967
module_expsym_cmds_F77 \
19968
lt_cv_prog_compiler_c_o_F77 \
19969
fix_srcfile_path_F77 \
19970
exclude_expsyms_F77 \
19971
include_expsyms_F77; do
19974
old_archive_cmds_F77 | \
19975
old_archive_from_new_cmds_F77 | \
19976
archive_cmds_F77 | \
19977
archive_expsym_cmds_F77 | \
19978
module_cmds_F77 | \
19979
module_expsym_cmds_F77 | \
19980
old_archive_from_expsyms_cmds_F77 | \
19981
export_symbols_cmds_F77 | \
19982
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19983
postinstall_cmds | postuninstall_cmds | \
19984
old_postinstall_cmds | old_postuninstall_cmds | \
19985
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19986
# Double-quote double-evaled strings.
19987
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19990
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19996
*'\$0 --fallback-echo"')
19997
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20003
cat <<__EOF__ >> "$cfgfile"
20004
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20006
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20008
# Shell to use when invoking shell scripts.
20011
# Whether or not to build shared libraries.
20012
build_libtool_libs=$enable_shared
20014
# Whether or not to build static libraries.
20015
build_old_libs=$enable_static
20017
# Whether or not to add -lc for building shared libraries.
20018
build_libtool_need_lc=$archive_cmds_need_lc_F77
20020
# Whether or not to disallow shared libs when runtime libs are static
20021
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20023
# Whether or not to optimize for fast installation.
20024
fast_install=$enable_fast_install
20027
host_alias=$host_alias
20031
# The build system.
20032
build_alias=$build_alias
20036
# An echo program that does not interpret backslashes.
20041
AR_FLAGS=$lt_AR_FLAGS
20046
# LTCC compiler flags.
20047
LTCFLAGS=$lt_LTCFLAGS
20049
# A language-specific compiler.
20050
CC=$lt_compiler_F77
20052
# Is the compiler the GNU C compiler?
20058
# The linker used to build libraries.
20061
# Whether we need hard or soft links.
20064
# A BSD-compatible nm program.
20067
# A symbol stripping program
20070
# Used to examine libraries when file_magic_cmd begins "file"
20071
MAGIC_CMD=$MAGIC_CMD
20073
# Used on cygwin: DLL creation program.
20076
# Used on cygwin: object dumper.
20079
# Used on cygwin: assembler.
20082
# The name of the directory that contains temporary libtool files.
20085
# How to create reloadable object files.
20086
reload_flag=$lt_reload_flag
20087
reload_cmds=$lt_reload_cmds
20089
# How to pass a linker flag through the compiler.
20090
wl=$lt_lt_prog_compiler_wl_F77
20092
# Object file suffix (normally "o").
20093
objext="$ac_objext"
20095
# Old archive suffix (normally "a").
20098
# Shared library suffix (normally ".so").
20099
shrext_cmds='$shrext_cmds'
20101
# Executable file suffix (normally "").
20104
# Additional compiler flags for building library objects.
20105
pic_flag=$lt_lt_prog_compiler_pic_F77
20108
# What is the maximum length of a command?
20109
max_cmd_len=$lt_cv_sys_max_cmd_len
20111
# Does compiler simultaneously support -c and -o options?
20112
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20114
# Must we lock files when doing compilation?
20115
need_locks=$lt_need_locks
20117
# Do we need the lib prefix for modules?
20118
need_lib_prefix=$need_lib_prefix
20120
# Do we need a version for libraries?
20121
need_version=$need_version
20123
# Whether dlopen is supported.
20124
dlopen_support=$enable_dlopen
20126
# Whether dlopen of programs is supported.
20127
dlopen_self=$enable_dlopen_self
20129
# Whether dlopen of statically linked programs is supported.
20130
dlopen_self_static=$enable_dlopen_self_static
20132
# Compiler flag to prevent dynamic linking.
20133
link_static_flag=$lt_lt_prog_compiler_static_F77
20135
# Compiler flag to turn off builtin functions.
20136
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20138
# Compiler flag to allow reflexive dlopens.
20139
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20141
# Compiler flag to generate shared objects directly from archives.
20142
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20144
# Compiler flag to generate thread-safe objects.
20145
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20147
# Library versioning type.
20148
version_type=$version_type
20150
# Format of library name prefix.
20151
libname_spec=$lt_libname_spec
20153
# List of archive names. First name is the real one, the rest are links.
20154
# The last name is the one that the linker finds with -lNAME.
20155
library_names_spec=$lt_library_names_spec
20157
# The coded name of the library, if different from the real name.
20158
soname_spec=$lt_soname_spec
20160
# Commands used to build and install an old-style archive.
20162
old_archive_cmds=$lt_old_archive_cmds_F77
20163
old_postinstall_cmds=$lt_old_postinstall_cmds
20164
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20166
# Create an old-style archive from a shared archive.
20167
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20169
# Create a temporary old-style archive to link instead of a shared archive.
20170
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20172
# Commands used to build and install a shared archive.
20173
archive_cmds=$lt_archive_cmds_F77
20174
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20175
postinstall_cmds=$lt_postinstall_cmds
20176
postuninstall_cmds=$lt_postuninstall_cmds
20178
# Commands used to build a loadable module (assumed same as above if empty)
20179
module_cmds=$lt_module_cmds_F77
20180
module_expsym_cmds=$lt_module_expsym_cmds_F77
20182
# Commands to strip libraries.
20183
old_striplib=$lt_old_striplib
20184
striplib=$lt_striplib
20186
# Dependencies to place before the objects being linked to create a
20188
predep_objects=$lt_predep_objects_F77
20190
# Dependencies to place after the objects being linked to create a
20192
postdep_objects=$lt_postdep_objects_F77
20194
# Dependencies to place before the objects being linked to create a
20196
predeps=$lt_predeps_F77
20198
# Dependencies to place after the objects being linked to create a
20200
postdeps=$lt_postdeps_F77
20202
# The directories searched by this compiler when creating a shared
20204
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
20206
# The library search path used internally by the compiler when linking
20207
# a shared library.
20208
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20210
# Method to check whether dependent libraries are shared objects.
20211
deplibs_check_method=$lt_deplibs_check_method
20213
# Command to use when deplibs_check_method == file_magic.
20214
file_magic_cmd=$lt_file_magic_cmd
20216
# Flag that allows shared libraries with undefined symbols to be built.
20217
allow_undefined_flag=$lt_allow_undefined_flag_F77
20219
# Flag that forces no undefined symbols.
20220
no_undefined_flag=$lt_no_undefined_flag_F77
20222
# Commands used to finish a libtool library installation in a directory.
20223
finish_cmds=$lt_finish_cmds
20225
# Same as above, but a single script fragment to be evaled but not shown.
20226
finish_eval=$lt_finish_eval
20228
# Take the output of nm and produce a listing of raw symbols and C names.
20229
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20231
# Transform the output of nm in a proper C declaration
20232
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20234
# Transform the output of nm in a C name address pair
20235
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20237
# This is the shared library runtime path variable.
20238
runpath_var=$runpath_var
20240
# This is the shared library path variable.
20241
shlibpath_var=$shlibpath_var
20243
# Is shlibpath searched before the hard-coded library search path?
20244
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20246
# How to hardcode a shared library path into an executable.
20247
hardcode_action=$hardcode_action_F77
20249
# Whether we should hardcode library paths into libraries.
20250
hardcode_into_libs=$hardcode_into_libs
20252
# Flag to hardcode \$libdir into a binary during linking.
20253
# This must work even if \$libdir does not exist.
20254
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20256
# If ld is used when linking, flag to hardcode \$libdir into
20257
# a binary during linking. This must work even if \$libdir does
20259
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20261
# Whether we need a single -rpath flag with a separated argument.
20262
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20264
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20265
# resulting binary.
20266
hardcode_direct=$hardcode_direct_F77
20268
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20269
# resulting binary.
20270
hardcode_minus_L=$hardcode_minus_L_F77
20272
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20273
# the resulting binary.
20274
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20276
# Set to yes if building a shared library automatically hardcodes DIR into the library
20277
# and all subsequent libraries and executables linked against it.
20278
hardcode_automatic=$hardcode_automatic_F77
20280
# Variables whose values should be saved in libtool wrapper scripts and
20281
# restored at relink time.
20282
variables_saved_for_relink="$variables_saved_for_relink"
20284
# Whether libtool must link a program against all its dependency libraries.
20285
link_all_deplibs=$link_all_deplibs_F77
20287
# Compile-time system search path for libraries
20288
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20290
# Run-time system search path for libraries
20291
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20293
# Fix the shell variable \$srcfile for the compiler.
20294
fix_srcfile_path=$lt_fix_srcfile_path
20296
# Set to yes if exported symbols are required.
20297
always_export_symbols=$always_export_symbols_F77
20299
# The commands to list exported symbols.
20300
export_symbols_cmds=$lt_export_symbols_cmds_F77
20302
# The commands to extract the exported symbol list from a shared archive.
20303
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20305
# Symbols that should not be listed in the preloaded symbols.
20306
exclude_expsyms=$lt_exclude_expsyms_F77
20308
# Symbols that must always be exported.
20309
include_expsyms=$lt_include_expsyms_F77
20311
# ### END LIBTOOL TAG CONFIG: $tagname
20317
# If there is no Makefile yet, we rely on a make rule to execute
20318
# `config.status --recheck' to rerun these tests and create the
20319
# libtool script then.
20320
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20321
if test -f "$ltmain_in"; then
20322
test -f Makefile && make "$ltmain"
20328
ac_cpp='$CPP $CPPFLAGS'
20329
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20330
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20341
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20344
# Source file extension for Java test sources.
20347
# Object file extension for compiled Java test sources.
20351
# Code to be used in simple compile tests
20352
lt_simple_compile_test_code="class foo {}"
20354
# Code to be used in simple link tests
20355
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
20357
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20359
# If no C compiler was specified, use CC.
20362
# If no C compiler flags were specified, use CFLAGS.
20363
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20365
# Allow CC to be a program name with arguments.
20369
# save warnings/boilerplate of simple test code
20370
ac_outfile=conftest.$ac_objext
20371
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20372
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20373
_lt_compiler_boilerplate=`cat conftest.err`
20376
ac_outfile=conftest.$ac_objext
20377
echo "$lt_simple_link_test_code" >conftest.$ac_ext
20378
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20379
_lt_linker_boilerplate=`cat conftest.err`
20383
# Allow CC to be a program name with arguments.
20388
for cc_temp in $compiler""; do
20390
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20391
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20396
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20399
# GCJ did not exist at the time GCC didn't implicitly link libc in.
20400
archive_cmds_need_lc_GCJ=no
20402
old_archive_cmds_GCJ=$old_archive_cmds
20405
lt_prog_compiler_no_builtin_flag_GCJ=
20407
if test "$GCC" = yes; then
20408
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20411
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20412
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
20413
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20414
echo $ECHO_N "(cached) $ECHO_C" >&6
20416
lt_cv_prog_compiler_rtti_exceptions=no
20417
ac_outfile=conftest.$ac_objext
20418
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20419
lt_compiler_flag="-fno-rtti -fno-exceptions"
20420
# Insert the option either (1) after the last *FLAGS variable, or
20421
# (2) before a word containing "conftest.", or (3) at the end.
20422
# Note that $ac_compile itself does not contain backslashes and begins
20423
# with a dollar sign (not a hyphen), so the echo should work correctly.
20424
# The option is referenced via a variable to avoid confusing sed.
20425
lt_compile=`echo "$ac_compile" | $SED \
20426
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20427
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20428
-e 's:$: $lt_compiler_flag:'`
20429
(eval echo "\"\$as_me:20429: $lt_compile\"" >&5)
20430
(eval "$lt_compile" 2>conftest.err)
20432
cat conftest.err >&5
20433
echo "$as_me:20433: \$? = $ac_status" >&5
20434
if (exit $ac_status) && test -s "$ac_outfile"; then
20435
# The compiler can only warn and ignore the option if not recognized
20436
# So say no if there are warnings other than the usual output.
20437
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20438
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20439
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20440
lt_cv_prog_compiler_rtti_exceptions=yes
20446
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20447
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
20449
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20450
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20457
lt_prog_compiler_wl_GCJ=
20458
lt_prog_compiler_pic_GCJ=
20459
lt_prog_compiler_static_GCJ=
20461
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20462
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20464
if test "$GCC" = yes; then
20465
lt_prog_compiler_wl_GCJ='-Wl,'
20466
lt_prog_compiler_static_GCJ='-static'
20470
# All AIX code is PIC.
20471
if test "$host_cpu" = ia64; then
20472
# AIX 5 now supports IA64 processor
20473
lt_prog_compiler_static_GCJ='-Bstatic'
20478
# FIXME: we need at least 68020 code to build shared libraries, but
20479
# adding the `-m68020' flag to GCC prevents building anything better,
20481
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20484
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20485
# PIC is the default for these OSes.
20488
mingw* | cygwin* | pw32* | os2*)
20489
# This hack is so that the source file can tell whether it is being
20490
# built for inclusion in a dll (and should export symbols for example).
20491
# Although the cygwin gcc ignores -fPIC, still need this for old-style
20492
# (--disable-auto-import) libraries
20496
darwin* | rhapsody*)
20497
# PIC is the default on this platform
20498
# Common symbols not allowed in MH_DYLIB files
20499
lt_prog_compiler_pic_GCJ='-fno-common'
20503
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
20504
# Instead, we relocate shared libraries at runtime.
20508
# Just because we use GCC doesn't mean we suddenly get shared libraries
20509
# on systems that don't support them.
20510
lt_prog_compiler_can_build_shared_GCJ=no
20515
if test -d /usr/nec; then
20516
lt_prog_compiler_pic_GCJ=-Kconform_pic
20521
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20522
# not for PA HP-UX.
20528
lt_prog_compiler_pic_GCJ='-fPIC'
20534
lt_prog_compiler_pic_GCJ='-fPIC'
20538
# PORTME Check for flag to pass linker flags through the system compiler.
20541
lt_prog_compiler_wl_GCJ='-Wl,'
20542
if test "$host_cpu" = ia64; then
20543
# AIX 5 now supports IA64 processor
20544
lt_prog_compiler_static_GCJ='-Bstatic'
20546
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20550
# PIC is the default on this platform
20551
# Common symbols not allowed in MH_DYLIB files
20552
case $cc_basename in
20554
lt_prog_compiler_pic_GCJ='-qnocommon'
20555
lt_prog_compiler_wl_GCJ='-Wl,'
20560
mingw* | cygwin* | pw32* | os2*)
20561
# This hack is so that the source file can tell whether it is being
20562
# built for inclusion in a dll (and should export symbols for example).
20566
hpux9* | hpux10* | hpux11*)
20567
lt_prog_compiler_wl_GCJ='-Wl,'
20568
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20569
# not for PA HP-UX.
20575
lt_prog_compiler_pic_GCJ='+Z'
20578
# Is there a better lt_prog_compiler_static that works with the bundled CC?
20579
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20582
irix5* | irix6* | nonstopux*)
20583
lt_prog_compiler_wl_GCJ='-Wl,'
20584
# PIC (with -KPIC) is the default.
20585
lt_prog_compiler_static_GCJ='-non_shared'
20589
lt_prog_compiler_pic_GCJ='-KPIC'
20590
lt_prog_compiler_static_GCJ='-Bstatic'
20593
linux* | k*bsd*-gnu)
20594
case $cc_basename in
20596
lt_prog_compiler_wl_GCJ='-Wl,'
20597
lt_prog_compiler_pic_GCJ='-KPIC'
20598
lt_prog_compiler_static_GCJ='-static'
20600
pgcc* | pgf77* | pgf90* | pgf95*)
20601
# Portland Group compilers (*not* the Pentium gcc compiler,
20602
# which looks to be a dead project)
20603
lt_prog_compiler_wl_GCJ='-Wl,'
20604
lt_prog_compiler_pic_GCJ='-fpic'
20605
lt_prog_compiler_static_GCJ='-Bstatic'
20608
lt_prog_compiler_wl_GCJ='-Wl,'
20609
# All Alpha code is PIC.
20610
lt_prog_compiler_static_GCJ='-non_shared'
20613
case `$CC -V 2>&1 | sed 5q` in
20616
lt_prog_compiler_pic_GCJ='-KPIC'
20617
lt_prog_compiler_static_GCJ='-Bstatic'
20618
lt_prog_compiler_wl_GCJ='-Wl,'
20621
# Sun Fortran 8.3 passes all unrecognized flags to the linker
20622
lt_prog_compiler_pic_GCJ='-KPIC'
20623
lt_prog_compiler_static_GCJ='-Bstatic'
20624
lt_prog_compiler_wl_GCJ=''
20631
osf3* | osf4* | osf5*)
20632
lt_prog_compiler_wl_GCJ='-Wl,'
20633
# All OSF/1 code is PIC.
20634
lt_prog_compiler_static_GCJ='-non_shared'
20638
lt_prog_compiler_static_GCJ='-non_shared'
20642
lt_prog_compiler_pic_GCJ='-KPIC'
20643
lt_prog_compiler_static_GCJ='-Bstatic'
20644
case $cc_basename in
20645
f77* | f90* | f95*)
20646
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20648
lt_prog_compiler_wl_GCJ='-Wl,';;
20653
lt_prog_compiler_wl_GCJ='-Qoption ld '
20654
lt_prog_compiler_pic_GCJ='-PIC'
20655
lt_prog_compiler_static_GCJ='-Bstatic'
20658
sysv4 | sysv4.2uw2* | sysv4.3*)
20659
lt_prog_compiler_wl_GCJ='-Wl,'
20660
lt_prog_compiler_pic_GCJ='-KPIC'
20661
lt_prog_compiler_static_GCJ='-Bstatic'
20665
if test -d /usr/nec ;then
20666
lt_prog_compiler_pic_GCJ='-Kconform_pic'
20667
lt_prog_compiler_static_GCJ='-Bstatic'
20671
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20672
lt_prog_compiler_wl_GCJ='-Wl,'
20673
lt_prog_compiler_pic_GCJ='-KPIC'
20674
lt_prog_compiler_static_GCJ='-Bstatic'
20678
lt_prog_compiler_wl_GCJ='-Wl,'
20679
lt_prog_compiler_can_build_shared_GCJ=no
20683
lt_prog_compiler_pic_GCJ='-pic'
20684
lt_prog_compiler_static_GCJ='-Bstatic'
20688
lt_prog_compiler_can_build_shared_GCJ=no
20693
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20694
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
20697
# Check to make sure the PIC flag actually works.
20699
if test -n "$lt_prog_compiler_pic_GCJ"; then
20701
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20702
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
20703
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
20704
echo $ECHO_N "(cached) $ECHO_C" >&6
20706
lt_cv_prog_compiler_pic_works_GCJ=no
20707
ac_outfile=conftest.$ac_objext
20708
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20709
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20710
# Insert the option either (1) after the last *FLAGS variable, or
20711
# (2) before a word containing "conftest.", or (3) at the end.
20712
# Note that $ac_compile itself does not contain backslashes and begins
20713
# with a dollar sign (not a hyphen), so the echo should work correctly.
20714
# The option is referenced via a variable to avoid confusing sed.
20715
lt_compile=`echo "$ac_compile" | $SED \
20716
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20717
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20718
-e 's:$: $lt_compiler_flag:'`
20719
(eval echo "\"\$as_me:20719: $lt_compile\"" >&5)
20720
(eval "$lt_compile" 2>conftest.err)
20722
cat conftest.err >&5
20723
echo "$as_me:20723: \$? = $ac_status" >&5
20724
if (exit $ac_status) && test -s "$ac_outfile"; then
20725
# The compiler can only warn and ignore the option if not recognized
20726
# So say no if there are warnings other than the usual output.
20727
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20728
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20729
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20730
lt_cv_prog_compiler_pic_works_GCJ=yes
20736
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
20737
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
20739
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
20740
case $lt_prog_compiler_pic_GCJ in
20742
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20745
lt_prog_compiler_pic_GCJ=
20746
lt_prog_compiler_can_build_shared_GCJ=no
20751
# For platforms which do not support PIC, -DPIC is meaningless:
20753
lt_prog_compiler_pic_GCJ=
20756
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20761
# Check to make sure the static flag actually works.
20763
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20764
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20765
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20766
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20767
echo $ECHO_N "(cached) $ECHO_C" >&6
20769
lt_cv_prog_compiler_static_works_GCJ=no
20770
save_LDFLAGS="$LDFLAGS"
20771
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20772
echo "$lt_simple_link_test_code" > conftest.$ac_ext
20773
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20774
# The linker can only warn and ignore the option if not recognized
20775
# So say no if there are warnings
20776
if test -s conftest.err; then
20777
# Append any errors to the config.log.
20778
cat conftest.err 1>&5
20779
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20780
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20781
if diff conftest.exp conftest.er2 >/dev/null; then
20782
lt_cv_prog_compiler_static_works_GCJ=yes
20785
lt_cv_prog_compiler_static_works_GCJ=yes
20789
LDFLAGS="$save_LDFLAGS"
20792
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20793
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20795
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
20798
lt_prog_compiler_static_GCJ=
20802
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20803
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20804
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20805
echo $ECHO_N "(cached) $ECHO_C" >&6
20807
lt_cv_prog_compiler_c_o_GCJ=no
20808
$rm -r conftest 2>/dev/null
20812
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20814
lt_compiler_flag="-o out/conftest2.$ac_objext"
20815
# Insert the option either (1) after the last *FLAGS variable, or
20816
# (2) before a word containing "conftest.", or (3) at the end.
20817
# Note that $ac_compile itself does not contain backslashes and begins
20818
# with a dollar sign (not a hyphen), so the echo should work correctly.
20819
lt_compile=`echo "$ac_compile" | $SED \
20820
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20821
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20822
-e 's:$: $lt_compiler_flag:'`
20823
(eval echo "\"\$as_me:20823: $lt_compile\"" >&5)
20824
(eval "$lt_compile" 2>out/conftest.err)
20826
cat out/conftest.err >&5
20827
echo "$as_me:20827: \$? = $ac_status" >&5
20828
if (exit $ac_status) && test -s out/conftest2.$ac_objext
20830
# The compiler can only warn and ignore the option if not recognized
20831
# So say no if there are warnings
20832
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20833
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20834
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20835
lt_cv_prog_compiler_c_o_GCJ=yes
20840
# SGI C++ compiler will create directory out/ii_files/ for
20841
# template instantiation
20842
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20843
$rm out/* && rmdir out
20849
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20850
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20853
hard_links="nottested"
20854
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20855
# do not overwrite the value of need_locks provided by the user
20856
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20857
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
20862
ln conftest.a conftest.b 2>&5 || hard_links=no
20863
ln conftest.a conftest.b 2>/dev/null && hard_links=no
20864
{ echo "$as_me:$LINENO: result: $hard_links" >&5
20865
echo "${ECHO_T}$hard_links" >&6; }
20866
if test "$hard_links" = no; then
20867
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20868
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20875
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20876
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20879
allow_undefined_flag_GCJ=
20880
enable_shared_with_static_runtimes_GCJ=no
20882
archive_expsym_cmds_GCJ=
20883
old_archive_From_new_cmds_GCJ=
20884
old_archive_from_expsyms_cmds_GCJ=
20885
export_dynamic_flag_spec_GCJ=
20886
whole_archive_flag_spec_GCJ=
20887
thread_safe_flag_spec_GCJ=
20888
hardcode_libdir_flag_spec_GCJ=
20889
hardcode_libdir_flag_spec_ld_GCJ=
20890
hardcode_libdir_separator_GCJ=
20891
hardcode_direct_GCJ=no
20892
hardcode_minus_L_GCJ=no
20893
hardcode_shlibpath_var_GCJ=unsupported
20894
link_all_deplibs_GCJ=unknown
20895
hardcode_automatic_GCJ=no
20897
module_expsym_cmds_GCJ=
20898
always_export_symbols_GCJ=no
20899
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20900
# include_expsyms should be a list of space-separated symbols to be *always*
20901
# included in the symbol list
20902
include_expsyms_GCJ=
20903
# exclude_expsyms can be an extended regexp of symbols to exclude
20904
# it will be wrapped by ` (' and `)$', so one must not match beginning or
20905
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20906
# as well as any symbol that contains `d'.
20907
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20908
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20909
# platforms (ab)use it in PIC code, but their linkers get confused if
20910
# the symbol is explicitly referenced. Since portable code cannot
20911
# rely on this symbol name, it's probably fine to never include it in
20912
# preloaded symbol tables.
20913
# Exclude shared library initialization/finalization symbols.
20914
extract_expsyms_cmds=
20915
# Just being paranoid about ensuring that cc_basename is set.
20916
for cc_temp in $compiler""; do
20918
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20919
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20924
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20927
cygwin* | mingw* | pw32*)
20928
# FIXME: the MSVC++ port hasn't been tested in a loooong time
20929
# When not using gcc, we currently assume that we are using
20930
# Microsoft Visual C++.
20931
if test "$GCC" != yes; then
20936
# we just hope/assume this is gcc and not c89 (= MSVC++)
20945
if test "$with_gnu_ld" = yes; then
20946
# If archive_cmds runs LD, not CC, wlarc should be empty
20949
# Set some defaults for GNU ld with shared library support. These
20950
# are reset later if shared libraries are not supported. Putting them
20951
# here allows them to be overridden if necessary.
20952
runpath_var=LD_RUN_PATH
20953
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20954
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20955
# ancient GNU ld didn't support --whole-archive et. al.
20956
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20957
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20959
whole_archive_flag_spec_GCJ=
20961
supports_anon_versioning=no
20962
case `$LD -v 2>/dev/null` in
20963
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20964
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20965
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20966
*\ 2.11.*) ;; # other 2.11 versions
20967
*) supports_anon_versioning=yes ;;
20970
# See if GNU ld supports shared libraries.
20973
# On AIX/PPC, the GNU linker is very broken
20974
if test "$host_cpu" != ia64; then
20978
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20979
*** to be unable to reliably create shared libraries on AIX.
20980
*** Therefore, libtool is disabling shared libraries support. If you
20981
*** really care for shared libraries, you may want to modify your PATH
20982
*** so that a non-GNU linker is found, and then restart.
20989
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)'
20990
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20991
hardcode_minus_L_GCJ=yes
20993
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20994
# that the semantics of dynamic libraries on AmigaOS, at least up
20995
# to version 4, is to share data among multiple programs linked
20996
# with the same dynamic library. Since this doesn't match the
20997
# behavior of shared libraries on other platforms, we can't use
21003
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21004
allow_undefined_flag_GCJ=unsupported
21005
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21006
# support --undefined. This deserves some investigation. FIXME
21007
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21013
cygwin* | mingw* | pw32*)
21014
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21015
# as there is no search path for DLLs.
21016
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21017
allow_undefined_flag_GCJ=unsupported
21018
always_export_symbols_GCJ=no
21019
enable_shared_with_static_runtimes_GCJ=yes
21020
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21022
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21023
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21024
# If the export-symbols file already is a .def file (1st line
21025
# is EXPORTS), use it as is; otherwise, prepend...
21026
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21027
cp $export_symbols $output_objdir/$soname.def;
21029
echo EXPORTS > $output_objdir/$soname.def;
21030
cat $export_symbols >> $output_objdir/$soname.def;
21032
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21039
hardcode_direct_GCJ=no
21040
hardcode_shlibpath_var_GCJ=no
21041
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21042
export_dynamic_flag_spec_GCJ='${wl}-E'
21043
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21044
# Instead, shared libraries are loaded at an image base (0x10000000 by
21045
# default) and relocated if they conflict, which is a slow very memory
21046
# consuming and fragmenting process. To avoid this, we pick a random,
21047
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21048
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
21049
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'
21050
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'
21053
gnu* | linux* | k*bsd*-gnu)
21054
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21056
case $cc_basename,$host_cpu in
21057
pgcc*) # Portland Group C compiler
21058
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'
21059
tmp_addflag=' $pic_flag'
21061
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21062
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'
21063
tmp_addflag=' $pic_flag -Mnomain' ;;
21064
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21065
tmp_addflag=' -i_dynamic' ;;
21066
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21067
tmp_addflag=' -i_dynamic -nofor_main' ;;
21068
ifc* | ifort*) # Intel Fortran compiler
21069
tmp_addflag=' -nofor_main' ;;
21071
case `$CC -V 2>&1 | sed 5q` in
21072
*Sun\ C*) # Sun C 5.9
21073
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'
21074
tmp_sharedflag='-G' ;;
21075
*Sun\ F*) # Sun Fortran 8.3
21076
tmp_sharedflag='-G' ;;
21078
tmp_sharedflag='-shared' ;;
21080
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21082
if test $supports_anon_versioning = yes; then
21083
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21084
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21085
$echo "local: *; };" >> $output_objdir/$libname.ver~
21086
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21088
link_all_deplibs_GCJ=no
21094
netbsd* | netbsdelf*-gnu)
21095
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21096
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21099
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21100
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21105
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21109
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21110
*** create shared libraries on Solaris systems. Therefore, libtool
21111
*** is disabling shared libraries support. We urge you to upgrade GNU
21112
*** binutils to release 2.9.1 or newer. Another option is to modify
21113
*** your PATH or compiler configuration so that the native linker is
21114
*** used, and then restart.
21117
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21118
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21119
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21125
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21126
case `$LD -v 2>&1` in
21127
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21131
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21132
*** reliably create shared libraries on SCO systems. Therefore, libtool
21133
*** is disabling shared libraries support. We urge you to upgrade GNU
21134
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21135
*** your PATH or compiler configuration so that the native linker is
21136
*** used, and then restart.
21141
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21142
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21143
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21144
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21153
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21155
hardcode_direct_GCJ=yes
21156
hardcode_shlibpath_var_GCJ=no
21160
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21161
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21162
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21169
if test "$ld_shlibs_GCJ" = no; then
21171
hardcode_libdir_flag_spec_GCJ=
21172
export_dynamic_flag_spec_GCJ=
21173
whole_archive_flag_spec_GCJ=
21176
# PORTME fill in a description of your system's linker (not GNU ld)
21179
allow_undefined_flag_GCJ=unsupported
21180
always_export_symbols_GCJ=yes
21181
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'
21182
# Note: this linker hardcodes the directories in LIBPATH if there
21183
# are no directories specified by -L.
21184
hardcode_minus_L_GCJ=yes
21185
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21186
# Neither direct hardcoding nor static linking is supported with a
21188
hardcode_direct_GCJ=unsupported
21193
if test "$host_cpu" = ia64; then
21194
# On IA64, the linker does run time linking by default, so we don't
21195
# have to do anything special.
21196
aix_use_runtimelinking=no
21197
exp_sym_flag='-Bexport'
21200
# If we're using GNU nm, then we don't want the "-C" option.
21201
# -C means demangle to AIX nm, but means don't demangle with GNU nm
21202
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21203
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'
21205
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'
21207
aix_use_runtimelinking=no
21209
# Test if we are trying to use run time linking or normal
21210
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21211
# need to do runtime linking.
21212
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21213
for ld_flag in $LDFLAGS; do
21214
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21215
aix_use_runtimelinking=yes
21222
exp_sym_flag='-bexport'
21223
no_entry_flag='-bnoentry'
21226
# When large executables or shared objects are built, AIX ld can
21227
# have problems creating the table of contents. If linking a library
21228
# or program results in "error TOC overflow" add -mminimal-toc to
21229
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21230
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21232
archive_cmds_GCJ=''
21233
hardcode_direct_GCJ=yes
21234
hardcode_libdir_separator_GCJ=':'
21235
link_all_deplibs_GCJ=yes
21237
if test "$GCC" = yes; then
21238
case $host_os in aix4.[012]|aix4.[012].*)
21239
# We only want to do this on AIX 4.2 and lower, the check
21240
# below for broken collect2 doesn't work under 4.3+
21241
collect2name=`${CC} -print-prog-name=collect2`
21242
if test -f "$collect2name" && \
21243
strings "$collect2name" | grep resolve_lib_name >/dev/null
21245
# We have reworked collect2
21248
# We have old collect2
21249
hardcode_direct_GCJ=unsupported
21250
# It fails to find uninstalled libraries when the uninstalled
21251
# path is not listed in the libpath. Setting hardcode_minus_L
21252
# to unsupported forces relinking
21253
hardcode_minus_L_GCJ=yes
21254
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21255
hardcode_libdir_separator_GCJ=
21259
shared_flag='-shared'
21260
if test "$aix_use_runtimelinking" = yes; then
21261
shared_flag="$shared_flag "'${wl}-G'
21265
if test "$host_cpu" = ia64; then
21266
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21267
# chokes on -Wl,-G. The following line is correct:
21270
if test "$aix_use_runtimelinking" = yes; then
21271
shared_flag='${wl}-G'
21273
shared_flag='${wl}-bM:SRE'
21278
# It seems that -bexpall does not export symbols beginning with
21279
# underscore (_), so it is better to generate a list of symbols to export.
21280
always_export_symbols_GCJ=yes
21281
if test "$aix_use_runtimelinking" = yes; then
21282
# Warning - without using the other runtime loading flags (-brtl),
21283
# -berok will link without error, but may produce a broken library.
21284
allow_undefined_flag_GCJ='-berok'
21285
# Determine the default libpath from the value encoded in an empty executable.
21286
cat >conftest.$ac_ext <<_ACEOF
21289
cat confdefs.h >>conftest.$ac_ext
21290
cat >>conftest.$ac_ext <<_ACEOF
21291
/* end confdefs.h. */
21301
rm -f conftest.$ac_objext conftest$ac_exeext
21302
if { (ac_try="$ac_link"
21303
case "(($ac_try" in
21304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305
*) ac_try_echo=$ac_try;;
21307
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308
(eval "$ac_link") 2>conftest.er1
21310
grep -v '^ *+' conftest.er1 >conftest.err
21312
cat conftest.err >&5
21313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314
(exit $ac_status); } && {
21315
test -z "$ac_c_werror_flag" ||
21316
test ! -s conftest.err
21317
} && test -s conftest$ac_exeext &&
21318
$as_test_x conftest$ac_exeext; then
21320
lt_aix_libpath_sed='
21321
/Import File Strings/,/^$/ {
21327
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21328
# Check for a 64-bit object if we didn't find anything.
21329
if test -z "$aix_libpath"; then
21330
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21333
echo "$as_me: failed program was:" >&5
21334
sed 's/^/| /' conftest.$ac_ext >&5
21339
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340
conftest$ac_exeext conftest.$ac_ext
21341
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21343
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21344
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"
21346
if test "$host_cpu" = ia64; then
21347
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21348
allow_undefined_flag_GCJ="-z nodefs"
21349
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"
21351
# Determine the default libpath from the value encoded in an empty executable.
21352
cat >conftest.$ac_ext <<_ACEOF
21355
cat confdefs.h >>conftest.$ac_ext
21356
cat >>conftest.$ac_ext <<_ACEOF
21357
/* end confdefs.h. */
21367
rm -f conftest.$ac_objext conftest$ac_exeext
21368
if { (ac_try="$ac_link"
21369
case "(($ac_try" in
21370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371
*) ac_try_echo=$ac_try;;
21373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374
(eval "$ac_link") 2>conftest.er1
21376
grep -v '^ *+' conftest.er1 >conftest.err
21378
cat conftest.err >&5
21379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380
(exit $ac_status); } && {
21381
test -z "$ac_c_werror_flag" ||
21382
test ! -s conftest.err
21383
} && test -s conftest$ac_exeext &&
21384
$as_test_x conftest$ac_exeext; then
21386
lt_aix_libpath_sed='
21387
/Import File Strings/,/^$/ {
21393
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21394
# Check for a 64-bit object if we didn't find anything.
21395
if test -z "$aix_libpath"; then
21396
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21399
echo "$as_me: failed program was:" >&5
21400
sed 's/^/| /' conftest.$ac_ext >&5
21405
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21406
conftest$ac_exeext conftest.$ac_ext
21407
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21409
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21410
# Warning - without using the other run time loading flags,
21411
# -berok will link without error, but may produce a broken library.
21412
no_undefined_flag_GCJ=' ${wl}-bernotok'
21413
allow_undefined_flag_GCJ=' ${wl}-berok'
21414
# Exported symbols can be pulled into shared objects from archives
21415
whole_archive_flag_spec_GCJ='$convenience'
21416
archive_cmds_need_lc_GCJ=yes
21417
# This is similar to how AIX traditionally builds its shared libraries.
21418
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'
21424
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)'
21425
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21426
hardcode_minus_L_GCJ=yes
21427
# see comment about different semantics on the GNU ld section
21432
export_dynamic_flag_spec_GCJ=-rdynamic
21435
cygwin* | mingw* | pw32*)
21436
# When not using gcc, we currently assume that we are using
21437
# Microsoft Visual C++.
21438
# hardcode_libdir_flag_spec is actually meaningless, as there is
21439
# no search path for DLLs.
21440
hardcode_libdir_flag_spec_GCJ=' '
21441
allow_undefined_flag_GCJ=unsupported
21442
# Tell ltmain to make .lib files, not .a files.
21444
# Tell ltmain to make .dll files, not .so files.
21446
# FIXME: Setting linknames here is a bad hack.
21447
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21448
# The linker will automatically build a .lib file if we build a DLL.
21449
old_archive_From_new_cmds_GCJ='true'
21450
# FIXME: Should let the user specify the lib program.
21451
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
21452
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
21453
enable_shared_with_static_runtimes_GCJ=yes
21456
darwin* | rhapsody*)
21458
rhapsody* | darwin1.[012])
21459
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21462
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21463
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21465
case ${MACOSX_DEPLOYMENT_TARGET} in
21467
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21470
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21476
archive_cmds_need_lc_GCJ=no
21477
hardcode_direct_GCJ=no
21478
hardcode_automatic_GCJ=yes
21479
hardcode_shlibpath_var_GCJ=unsupported
21480
whole_archive_flag_spec_GCJ=''
21481
link_all_deplibs_GCJ=yes
21482
if test "$GCC" = yes ; then
21483
output_verbose_link_cmd='echo'
21484
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}"
21485
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21486
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}"
21487
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}"
21489
case $cc_basename in
21491
output_verbose_link_cmd='echo'
21492
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21493
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21494
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21495
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}'
21496
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}'
21506
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21507
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21508
hardcode_shlibpath_var_GCJ=no
21515
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21516
# support. Future versions do this automatically, but an explicit c++rt0.o
21517
# does not break anything, and helps significantly (at the cost of a little
21520
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21521
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21522
hardcode_direct_GCJ=yes
21523
hardcode_shlibpath_var_GCJ=no
21526
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
21528
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21529
hardcode_direct_GCJ=yes
21530
hardcode_minus_L_GCJ=yes
21531
hardcode_shlibpath_var_GCJ=no
21534
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21535
freebsd* | dragonfly*)
21536
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21537
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21538
hardcode_direct_GCJ=yes
21539
hardcode_shlibpath_var_GCJ=no
21543
if test "$GCC" = yes; then
21544
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'
21546
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'
21548
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21549
hardcode_libdir_separator_GCJ=:
21550
hardcode_direct_GCJ=yes
21552
# hardcode_minus_L: Not really in the search PATH,
21553
# but as the default location of the library.
21554
hardcode_minus_L_GCJ=yes
21555
export_dynamic_flag_spec_GCJ='${wl}-E'
21559
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21560
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21562
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21564
if test "$with_gnu_ld" = no; then
21565
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21566
hardcode_libdir_separator_GCJ=:
21568
hardcode_direct_GCJ=yes
21569
export_dynamic_flag_spec_GCJ='${wl}-E'
21571
# hardcode_minus_L: Not really in the search PATH,
21572
# but as the default location of the library.
21573
hardcode_minus_L_GCJ=yes
21578
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21581
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21584
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21587
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21593
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21596
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21599
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21603
if test "$with_gnu_ld" = no; then
21604
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21605
hardcode_libdir_separator_GCJ=:
21609
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21610
hardcode_direct_GCJ=no
21611
hardcode_shlibpath_var_GCJ=no
21614
hardcode_direct_GCJ=yes
21615
export_dynamic_flag_spec_GCJ='${wl}-E'
21617
# hardcode_minus_L: Not really in the search PATH,
21618
# but as the default location of the library.
21619
hardcode_minus_L_GCJ=yes
21625
irix5* | irix6* | nonstopux*)
21626
if test "$GCC" = yes; then
21627
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'
21629
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'
21630
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21632
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21633
hardcode_libdir_separator_GCJ=:
21634
link_all_deplibs_GCJ=yes
21637
netbsd* | netbsdelf*-gnu)
21638
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21639
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21641
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21643
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21644
hardcode_direct_GCJ=yes
21645
hardcode_shlibpath_var_GCJ=no
21649
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21650
hardcode_direct_GCJ=yes
21651
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21652
hardcode_libdir_separator_GCJ=:
21653
hardcode_shlibpath_var_GCJ=no
21657
if test -f /usr/libexec/ld.so; then
21658
hardcode_direct_GCJ=yes
21659
hardcode_shlibpath_var_GCJ=no
21660
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21661
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21662
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21663
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21664
export_dynamic_flag_spec_GCJ='${wl}-E'
21667
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21668
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21669
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21672
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21673
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21683
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21684
hardcode_minus_L_GCJ=yes
21685
allow_undefined_flag_GCJ=unsupported
21686
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'
21687
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21691
if test "$GCC" = yes; then
21692
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21693
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'
21695
allow_undefined_flag_GCJ=' -expect_unresolved \*'
21696
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'
21698
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21699
hardcode_libdir_separator_GCJ=:
21702
osf4* | osf5*) # as osf3* with the addition of -msym flag
21703
if test "$GCC" = yes; then
21704
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21705
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'
21706
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21708
allow_undefined_flag_GCJ=' -expect_unresolved \*'
21709
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'
21710
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~
21711
$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'
21713
# Both c and cxx compiler support -rpath directly
21714
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21716
hardcode_libdir_separator_GCJ=:
21720
no_undefined_flag_GCJ=' -z text'
21721
if test "$GCC" = yes; then
21723
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21724
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21725
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21728
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21729
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21730
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21732
hardcode_libdir_flag_spec_GCJ='-R$libdir'
21733
hardcode_shlibpath_var_GCJ=no
21735
solaris2.[0-5] | solaris2.[0-5].*) ;;
21737
# The compiler driver will combine and reorder linker options,
21738
# but understands `-z linker_flag'. GCC discards it without `$wl',
21739
# but is careful enough not to reorder.
21740
# Supported since Solaris 2.6 (maybe 2.5.1?)
21741
if test "$GCC" = yes; then
21742
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21744
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
21748
link_all_deplibs_GCJ=yes
21752
if test "x$host_vendor" = xsequent; then
21753
# Use $CC to link under sequent, because it throws in some extra .o
21754
# files that make .init and .fini sections work.
21755
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21757
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21759
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21760
hardcode_direct_GCJ=yes
21761
hardcode_minus_L_GCJ=yes
21762
hardcode_shlibpath_var_GCJ=no
21766
case $host_vendor in
21768
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21769
hardcode_direct_GCJ=yes # is this really true???
21772
## LD is ld it makes a PLAMLIB
21773
## CC just makes a GrossModule.
21774
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21775
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21776
hardcode_direct_GCJ=no
21779
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21780
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21783
runpath_var='LD_RUN_PATH'
21784
hardcode_shlibpath_var_GCJ=no
21788
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21789
hardcode_shlibpath_var_GCJ=no
21790
export_dynamic_flag_spec_GCJ='-Bexport'
21794
if test -d /usr/nec; then
21795
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21796
hardcode_shlibpath_var_GCJ=no
21797
runpath_var=LD_RUN_PATH
21798
hardcode_runpath_var=yes
21803
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21804
no_undefined_flag_GCJ='${wl}-z,text'
21805
archive_cmds_need_lc_GCJ=no
21806
hardcode_shlibpath_var_GCJ=no
21807
runpath_var='LD_RUN_PATH'
21809
if test "$GCC" = yes; then
21810
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21811
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21813
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21814
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21818
sysv5* | sco3.2v5* | sco5v6*)
21819
# Note: We can NOT use -z defs as we might desire, because we do not
21820
# link with -lc, and that would cause any symbols used from libc to
21821
# always be unresolved, which means just about no library would
21822
# ever link correctly. If we're not using GNU ld we use -z text
21823
# though, which does catch some bad symbols but isn't as heavy-handed
21825
no_undefined_flag_GCJ='${wl}-z,text'
21826
allow_undefined_flag_GCJ='${wl}-z,nodefs'
21827
archive_cmds_need_lc_GCJ=no
21828
hardcode_shlibpath_var_GCJ=no
21829
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21830
hardcode_libdir_separator_GCJ=':'
21831
link_all_deplibs_GCJ=yes
21832
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21833
runpath_var='LD_RUN_PATH'
21835
if test "$GCC" = yes; then
21836
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21837
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21839
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21840
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21845
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21846
hardcode_libdir_flag_spec_GCJ='-L$libdir'
21847
hardcode_shlibpath_var_GCJ=no
21856
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21857
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21858
test "$ld_shlibs_GCJ" = no && can_build_shared=no
21861
# Do we need to explicitly link libc?
21863
case "x$archive_cmds_need_lc_GCJ" in
21865
# Assume -lc should be added
21866
archive_cmds_need_lc_GCJ=yes
21868
if test "$enable_shared" = yes && test "$GCC" = yes; then
21869
case $archive_cmds_GCJ in
21871
# FIXME: we may have to deal with multi-command sequences.
21874
# Test whether the compiler implicitly links with -lc since on some
21875
# systems, -lgcc has to come before -lc. If gcc already passes -lc
21876
# to ld, don't add -lc before -lgcc.
21877
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21878
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21880
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21882
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883
(eval $ac_compile) 2>&5
21885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886
(exit $ac_status); } 2>conftest.err; then
21889
libobjs=conftest.$ac_objext
21891
wl=$lt_prog_compiler_wl_GCJ
21892
pic_flag=$lt_prog_compiler_pic_GCJ
21898
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21899
allow_undefined_flag_GCJ=
21900
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21901
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904
(exit $ac_status); }
21906
archive_cmds_need_lc_GCJ=no
21908
archive_cmds_need_lc_GCJ=yes
21910
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21912
cat conftest.err 1>&5
21915
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21916
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21923
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21924
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21925
library_names_spec=
21926
libname_spec='lib$name'
21930
postuninstall_cmds=
21934
shlibpath_overrides_runpath=unknown
21936
dynamic_linker="$host_os ld.so"
21937
sys_lib_dlsearch_path_spec="/lib /usr/lib"
21939
need_lib_prefix=unknown
21940
hardcode_into_libs=no
21942
# when you set need_version to no, make sure it does not cause -set_version
21943
# flags to be left without arguments
21944
need_version=unknown
21949
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21950
shlibpath_var=LIBPATH
21952
# AIX 3 has no versioning support, so we append a major version to the name.
21953
soname_spec='${libname}${release}${shared_ext}$major'
21960
hardcode_into_libs=yes
21961
if test "$host_cpu" = ia64; then
21962
# AIX 5 supports IA64
21963
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21964
shlibpath_var=LD_LIBRARY_PATH
21966
# With GCC up to 2.95.x, collect2 would create an import file
21967
# for dependence libraries. The import file would start with
21968
# the line `#! .'. This would cause the generated library to
21969
# depend on `.', always an invalid library. This was fixed in
21970
# development snapshots of GCC prior to 3.0.
21972
aix4 | aix4.[01] | aix4.[01].*)
21973
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21975
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21978
can_build_shared=no
21982
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21983
# soname into executable. Probably we can add versioning support to
21984
# collect2, so additional links can be useful in future.
21985
if test "$aix_use_runtimelinking" = yes; then
21986
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
21987
# instead of lib<name>.a to let people know that these are not
21988
# typical AIX shared libraries.
21989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21991
# We preserve .a as extension for shared libraries through AIX4.2
21992
# and later when we are not doing run time linking.
21993
library_names_spec='${libname}${release}.a $libname.a'
21994
soname_spec='${libname}${release}${shared_ext}$major'
21996
shlibpath_var=LIBPATH
22001
library_names_spec='$libname.ixlibrary $libname.a'
22002
# Create ${libname}_ixlibrary.a entries in /sys/libs.
22003
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'
22007
library_names_spec='${libname}${shared_ext}'
22008
dynamic_linker="$host_os ld.so"
22009
shlibpath_var=LIBRARY_PATH
22015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22016
soname_spec='${libname}${release}${shared_ext}$major'
22017
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22018
shlibpath_var=LD_LIBRARY_PATH
22019
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22020
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22021
# the default ld.so.conf also contains /usr/contrib/lib and
22022
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22023
# libtool to hard-code these into programs
22026
cygwin* | mingw* | pw32*)
22027
version_type=windows
22032
case $GCC,$host_os in
22033
yes,cygwin* | yes,mingw* | yes,pw32*)
22034
library_names_spec='$libname.dll.a'
22035
# DLL is installed to $(libdir)/../bin by postinstall_cmds
22036
postinstall_cmds='base_file=`basename \${file}`~
22037
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22038
dldir=$destdir/`dirname \$dlpath`~
22039
test -d \$dldir || mkdir -p \$dldir~
22040
$install_prog $dir/$dlname \$dldir/$dlname~
22041
chmod a+x \$dldir/$dlname'
22042
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22043
dlpath=$dir/\$dldll~
22045
shlibpath_overrides_runpath=yes
22049
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
22050
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22051
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22054
# MinGW DLLs use traditional 'lib' prefix
22055
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22056
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22057
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22058
# It is most probably a Windows format PATH printed by
22059
# mingw gcc, but we are running on Cygwin. Gcc prints its search
22060
# path with ; separators, and with drive letters. We can handle the
22061
# drive letters (cygwin fileutils understands them), so leave them,
22062
# especially as we might pass files found there to a mingw objdump,
22063
# which wouldn't understand a cygwinified path. Ahh.
22064
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22066
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22070
# pw32 DLLs use 'pw' prefix rather than 'lib'
22071
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22077
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22080
dynamic_linker='Win32 ld.exe'
22081
# FIXME: first we should search . and the directory the executable is in
22085
darwin* | rhapsody*)
22086
dynamic_linker="$host_os dyld"
22087
version_type=darwin
22090
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22091
soname_spec='${libname}${release}${major}$shared_ext'
22092
shlibpath_overrides_runpath=yes
22093
shlibpath_var=DYLD_LIBRARY_PATH
22094
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22096
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22104
soname_spec='${libname}${release}${shared_ext}$major'
22105
shlibpath_var=LD_LIBRARY_PATH
22112
freebsd* | dragonfly*)
22113
# DragonFly does not have aout. When/if they implement a new
22114
# versioning mechanism, adjust this.
22115
if test -x /usr/bin/objformat; then
22116
objformat=`/usr/bin/objformat`
22119
freebsd[123]*) objformat=aout ;;
22120
*) objformat=elf ;;
22123
version_type=freebsd-$objformat
22124
case $version_type in
22126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22131
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22135
shlibpath_var=LD_LIBRARY_PATH
22138
shlibpath_overrides_runpath=yes
22140
freebsd3.[01]* | freebsdelf3.[01]*)
22141
shlibpath_overrides_runpath=yes
22142
hardcode_into_libs=yes
22144
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22145
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22146
shlibpath_overrides_runpath=no
22147
hardcode_into_libs=yes
22149
*) # from 4.6 on, and DragonFly
22150
shlibpath_overrides_runpath=yes
22151
hardcode_into_libs=yes
22160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22161
soname_spec='${libname}${release}${shared_ext}$major'
22162
shlibpath_var=LD_LIBRARY_PATH
22163
hardcode_into_libs=yes
22166
hpux9* | hpux10* | hpux11*)
22167
# Give a soname corresponding to the major version so that dld.sl refuses to
22168
# link against other versions.
22175
hardcode_into_libs=yes
22176
dynamic_linker="$host_os dld.so"
22177
shlibpath_var=LD_LIBRARY_PATH
22178
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22180
soname_spec='${libname}${release}${shared_ext}$major'
22181
if test "X$HPUX_IA64_MODE" = X32; then
22182
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22184
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22186
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22190
hardcode_into_libs=yes
22191
dynamic_linker="$host_os dld.sl"
22192
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22193
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22195
soname_spec='${libname}${release}${shared_ext}$major'
22196
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22197
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22201
dynamic_linker="$host_os dld.sl"
22202
shlibpath_var=SHLIB_PATH
22203
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22205
soname_spec='${libname}${release}${shared_ext}$major'
22208
# HP-UX runs *really* slowly unless shared libraries are mode 555.
22209
postinstall_cmds='chmod 555 $lib'
22216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22217
soname_spec='${libname}${release}${shared_ext}$major'
22218
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22219
shlibpath_var=LD_LIBRARY_PATH
22220
shlibpath_overrides_runpath=no
22221
hardcode_into_libs=yes
22224
irix5* | irix6* | nonstopux*)
22226
nonstopux*) version_type=nonstopux ;;
22228
if test "$lt_cv_prog_gnu_ld" = yes; then
22236
soname_spec='${libname}${release}${shared_ext}$major'
22237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22239
irix5* | nonstopux*)
22240
libsuff= shlibsuff=
22243
case $LD in # libtool.m4 will add one of these switches to LD
22244
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22245
libsuff= shlibsuff= libmagic=32-bit;;
22246
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22247
libsuff=32 shlibsuff=N32 libmagic=N32;;
22248
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22249
libsuff=64 shlibsuff=64 libmagic=64-bit;;
22250
*) libsuff= shlibsuff= libmagic=never-match;;
22254
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22255
shlibpath_overrides_runpath=no
22256
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22257
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22258
hardcode_into_libs=yes
22261
# No shared lib support for Linux oldld, aout, or coff.
22262
linux*oldld* | linux*aout* | linux*coff*)
22266
# This must be Linux ELF.
22267
linux* | k*bsd*-gnu)
22271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22272
soname_spec='${libname}${release}${shared_ext}$major'
22273
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22274
shlibpath_var=LD_LIBRARY_PATH
22275
shlibpath_overrides_runpath=no
22276
# This implies no fast_install, which is unacceptable.
22277
# Some rework will be needed to allow for fast_install
22278
# before this can be enabled.
22279
hardcode_into_libs=yes
22281
# Append ld.so.conf contents to the search path
22282
if test -f /etc/ld.so.conf; then
22283
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' ' '`
22284
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22287
# We used to test for /lib/ld.so.1 and disable shared libraries on
22288
# powerpc, because MkLinux only supported shared libraries with the
22289
# GNU dynamic linker. Since this was broken with cross compilers,
22290
# most powerpc-linux boxes support dynamic linking these days and
22291
# people can always --disable-shared, the test was removed, and we
22292
# assume the GNU/Linux dynamic linker is in use.
22293
dynamic_linker='GNU/Linux ld.so'
22300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22301
soname_spec='${libname}${release}${shared_ext}$major'
22302
shlibpath_var=LD_LIBRARY_PATH
22303
shlibpath_overrides_runpath=no
22304
hardcode_into_libs=yes
22305
dynamic_linker='NetBSD ld.elf_so'
22312
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22314
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22315
dynamic_linker='NetBSD (a.out) ld.so'
22317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22318
soname_spec='${libname}${release}${shared_ext}$major'
22319
dynamic_linker='NetBSD ld.elf_so'
22321
shlibpath_var=LD_LIBRARY_PATH
22322
shlibpath_overrides_runpath=yes
22323
hardcode_into_libs=yes
22328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22329
shlibpath_var=LD_LIBRARY_PATH
22330
shlibpath_overrides_runpath=yes
22337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22338
soname_spec='${libname}${release}${shared_ext}$major'
22339
shlibpath_var=LD_LIBRARY_PATH
22340
shlibpath_overrides_runpath=yes
22345
sys_lib_dlsearch_path_spec="/usr/lib"
22347
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22349
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22350
*) need_version=no ;;
22352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22353
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22354
shlibpath_var=LD_LIBRARY_PATH
22355
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22357
openbsd2.[89] | openbsd2.[89].*)
22358
shlibpath_overrides_runpath=no
22361
shlibpath_overrides_runpath=yes
22365
shlibpath_overrides_runpath=yes
22370
libname_spec='$name'
22373
library_names_spec='$libname${shared_ext} $libname.a'
22374
dynamic_linker='OS/2 ld.exe'
22375
shlibpath_var=LIBPATH
22378
osf3* | osf4* | osf5*)
22382
soname_spec='${libname}${release}${shared_ext}$major'
22383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22384
shlibpath_var=LD_LIBRARY_PATH
22385
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22386
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398
soname_spec='${libname}${release}${shared_ext}$major'
22399
shlibpath_var=LD_LIBRARY_PATH
22400
shlibpath_overrides_runpath=yes
22401
hardcode_into_libs=yes
22402
# ldd complains unless libraries are executable
22403
postinstall_cmds='chmod +x $lib'
22408
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22409
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22410
shlibpath_var=LD_LIBRARY_PATH
22411
shlibpath_overrides_runpath=yes
22412
if test "$with_gnu_ld" = yes; then
22420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22421
soname_spec='${libname}${release}${shared_ext}$major'
22422
shlibpath_var=LD_LIBRARY_PATH
22423
case $host_vendor in
22425
shlibpath_overrides_runpath=no
22427
export_dynamic_flag_spec='${wl}-Blargedynsym'
22428
runpath_var=LD_RUN_PATH
22436
shlibpath_overrides_runpath=no
22437
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22443
if test -d /usr/nec ;then
22445
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22446
soname_spec='$libname${shared_ext}.$major'
22447
shlibpath_var=LD_LIBRARY_PATH
22451
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22452
version_type=freebsd-elf
22455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22456
soname_spec='${libname}${release}${shared_ext}$major'
22457
shlibpath_var=LD_LIBRARY_PATH
22458
hardcode_into_libs=yes
22459
if test "$with_gnu_ld" = yes; then
22460
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22461
shlibpath_overrides_runpath=no
22463
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22464
shlibpath_overrides_runpath=yes
22467
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22471
sys_lib_dlsearch_path_spec='/usr/lib'
22476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22477
soname_spec='${libname}${release}${shared_ext}$major'
22478
shlibpath_var=LD_LIBRARY_PATH
22485
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22486
echo "${ECHO_T}$dynamic_linker" >&6; }
22487
test "$dynamic_linker" = no && can_build_shared=no
22489
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22490
echo $ECHO_N "(cached) $ECHO_C" >&6
22492
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22495
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22496
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22497
echo $ECHO_N "(cached) $ECHO_C" >&6
22499
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22502
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22504
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22505
if test "$GCC" = yes; then
22506
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22509
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22510
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22511
hardcode_action_GCJ=
22512
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22513
test -n "$runpath_var_GCJ" || \
22514
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22516
# We can hardcode non-existant directories.
22517
if test "$hardcode_direct_GCJ" != no &&
22518
# If the only mechanism to avoid hardcoding is shlibpath_var, we
22519
# have to relink, otherwise we might link with an installed library
22520
# when we should be linking with a yet-to-be-installed one
22521
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22522
test "$hardcode_minus_L_GCJ" != no; then
22523
# Linking always hardcodes the temporary library directory.
22524
hardcode_action_GCJ=relink
22526
# We can link without hardcoding, and we can hardcode nonexisting dirs.
22527
hardcode_action_GCJ=immediate
22530
# We cannot hardcode anything, or else we can only hardcode existing
22532
hardcode_action_GCJ=unsupported
22534
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22535
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
22537
if test "$hardcode_action_GCJ" = relink; then
22538
# Fast installation is not supported
22539
enable_fast_install=no
22540
elif test "$shlibpath_overrides_runpath" = yes ||
22541
test "$enable_shared" = no; then
22542
# Fast installation is not necessary
22543
enable_fast_install=needless
22547
# The else clause should only fire when bootstrapping the
22548
# libtool distribution, otherwise you forgot to ship ltmain.sh
22549
# with your package, and you will get complaints that there are
22550
# no rules to generate ltmain.sh.
22551
if test -f "$ltmain"; then
22552
# See if we are running on zsh, and set the options which allow our commands through
22553
# without removal of \ escapes.
22554
if test -n "${ZSH_VERSION+set}" ; then
22555
setopt NO_GLOB_SUBST
22557
# Now quote all the things that may contain metacharacters while being
22558
# careful not to overquote the AC_SUBSTed values. We take copies of the
22559
# variables and quote the copies for generation of the libtool script.
22560
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22562
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22563
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22564
deplibs_check_method reload_flag reload_cmds need_locks \
22565
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22566
lt_cv_sys_global_symbol_to_c_name_address \
22567
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22568
old_postinstall_cmds old_postuninstall_cmds \
22572
lt_prog_compiler_wl_GCJ \
22573
lt_prog_compiler_pic_GCJ \
22574
lt_prog_compiler_static_GCJ \
22575
lt_prog_compiler_no_builtin_flag_GCJ \
22576
export_dynamic_flag_spec_GCJ \
22577
thread_safe_flag_spec_GCJ \
22578
whole_archive_flag_spec_GCJ \
22579
enable_shared_with_static_runtimes_GCJ \
22580
old_archive_cmds_GCJ \
22581
old_archive_from_new_cmds_GCJ \
22582
predep_objects_GCJ \
22583
postdep_objects_GCJ \
22586
compiler_lib_search_path_GCJ \
22587
compiler_lib_search_dirs_GCJ \
22589
archive_expsym_cmds_GCJ \
22590
postinstall_cmds_GCJ \
22591
postuninstall_cmds_GCJ \
22592
old_archive_from_expsyms_cmds_GCJ \
22593
allow_undefined_flag_GCJ \
22594
no_undefined_flag_GCJ \
22595
export_symbols_cmds_GCJ \
22596
hardcode_libdir_flag_spec_GCJ \
22597
hardcode_libdir_flag_spec_ld_GCJ \
22598
hardcode_libdir_separator_GCJ \
22599
hardcode_automatic_GCJ \
22601
module_expsym_cmds_GCJ \
22602
lt_cv_prog_compiler_c_o_GCJ \
22603
fix_srcfile_path_GCJ \
22604
exclude_expsyms_GCJ \
22605
include_expsyms_GCJ; do
22608
old_archive_cmds_GCJ | \
22609
old_archive_from_new_cmds_GCJ | \
22610
archive_cmds_GCJ | \
22611
archive_expsym_cmds_GCJ | \
22612
module_cmds_GCJ | \
22613
module_expsym_cmds_GCJ | \
22614
old_archive_from_expsyms_cmds_GCJ | \
22615
export_symbols_cmds_GCJ | \
22616
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22617
postinstall_cmds | postuninstall_cmds | \
22618
old_postinstall_cmds | old_postuninstall_cmds | \
22619
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22620
# Double-quote double-evaled strings.
22621
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22624
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22630
*'\$0 --fallback-echo"')
22631
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22637
cat <<__EOF__ >> "$cfgfile"
22638
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22640
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22642
# Shell to use when invoking shell scripts.
22645
# Whether or not to build shared libraries.
22646
build_libtool_libs=$enable_shared
22648
# Whether or not to build static libraries.
22649
build_old_libs=$enable_static
22651
# Whether or not to add -lc for building shared libraries.
22652
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22654
# Whether or not to disallow shared libs when runtime libs are static
22655
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22657
# Whether or not to optimize for fast installation.
22658
fast_install=$enable_fast_install
22661
host_alias=$host_alias
22665
# The build system.
22666
build_alias=$build_alias
22670
# An echo program that does not interpret backslashes.
22675
AR_FLAGS=$lt_AR_FLAGS
22680
# LTCC compiler flags.
22681
LTCFLAGS=$lt_LTCFLAGS
22683
# A language-specific compiler.
22684
CC=$lt_compiler_GCJ
22686
# Is the compiler the GNU C compiler?
22692
# The linker used to build libraries.
22695
# Whether we need hard or soft links.
22698
# A BSD-compatible nm program.
22701
# A symbol stripping program
22704
# Used to examine libraries when file_magic_cmd begins "file"
22705
MAGIC_CMD=$MAGIC_CMD
22707
# Used on cygwin: DLL creation program.
22710
# Used on cygwin: object dumper.
22713
# Used on cygwin: assembler.
22716
# The name of the directory that contains temporary libtool files.
22719
# How to create reloadable object files.
22720
reload_flag=$lt_reload_flag
22721
reload_cmds=$lt_reload_cmds
22723
# How to pass a linker flag through the compiler.
22724
wl=$lt_lt_prog_compiler_wl_GCJ
22726
# Object file suffix (normally "o").
22727
objext="$ac_objext"
22729
# Old archive suffix (normally "a").
22732
# Shared library suffix (normally ".so").
22733
shrext_cmds='$shrext_cmds'
22735
# Executable file suffix (normally "").
22738
# Additional compiler flags for building library objects.
22739
pic_flag=$lt_lt_prog_compiler_pic_GCJ
22742
# What is the maximum length of a command?
22743
max_cmd_len=$lt_cv_sys_max_cmd_len
22745
# Does compiler simultaneously support -c and -o options?
22746
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22748
# Must we lock files when doing compilation?
22749
need_locks=$lt_need_locks
22751
# Do we need the lib prefix for modules?
22752
need_lib_prefix=$need_lib_prefix
22754
# Do we need a version for libraries?
22755
need_version=$need_version
22757
# Whether dlopen is supported.
22758
dlopen_support=$enable_dlopen
22760
# Whether dlopen of programs is supported.
22761
dlopen_self=$enable_dlopen_self
22763
# Whether dlopen of statically linked programs is supported.
22764
dlopen_self_static=$enable_dlopen_self_static
22766
# Compiler flag to prevent dynamic linking.
22767
link_static_flag=$lt_lt_prog_compiler_static_GCJ
22769
# Compiler flag to turn off builtin functions.
22770
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22772
# Compiler flag to allow reflexive dlopens.
22773
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22775
# Compiler flag to generate shared objects directly from archives.
22776
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22778
# Compiler flag to generate thread-safe objects.
22779
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22781
# Library versioning type.
22782
version_type=$version_type
22784
# Format of library name prefix.
22785
libname_spec=$lt_libname_spec
22787
# List of archive names. First name is the real one, the rest are links.
22788
# The last name is the one that the linker finds with -lNAME.
22789
library_names_spec=$lt_library_names_spec
22791
# The coded name of the library, if different from the real name.
22792
soname_spec=$lt_soname_spec
22794
# Commands used to build and install an old-style archive.
22796
old_archive_cmds=$lt_old_archive_cmds_GCJ
22797
old_postinstall_cmds=$lt_old_postinstall_cmds
22798
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22800
# Create an old-style archive from a shared archive.
22801
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22803
# Create a temporary old-style archive to link instead of a shared archive.
22804
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22806
# Commands used to build and install a shared archive.
22807
archive_cmds=$lt_archive_cmds_GCJ
22808
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22809
postinstall_cmds=$lt_postinstall_cmds
22810
postuninstall_cmds=$lt_postuninstall_cmds
22812
# Commands used to build a loadable module (assumed same as above if empty)
22813
module_cmds=$lt_module_cmds_GCJ
22814
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22816
# Commands to strip libraries.
22817
old_striplib=$lt_old_striplib
22818
striplib=$lt_striplib
22820
# Dependencies to place before the objects being linked to create a
22822
predep_objects=$lt_predep_objects_GCJ
22824
# Dependencies to place after the objects being linked to create a
22826
postdep_objects=$lt_postdep_objects_GCJ
22828
# Dependencies to place before the objects being linked to create a
22830
predeps=$lt_predeps_GCJ
22832
# Dependencies to place after the objects being linked to create a
22834
postdeps=$lt_postdeps_GCJ
22836
# The directories searched by this compiler when creating a shared
22838
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22840
# The library search path used internally by the compiler when linking
22841
# a shared library.
22842
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22844
# Method to check whether dependent libraries are shared objects.
22845
deplibs_check_method=$lt_deplibs_check_method
22847
# Command to use when deplibs_check_method == file_magic.
22848
file_magic_cmd=$lt_file_magic_cmd
22850
# Flag that allows shared libraries with undefined symbols to be built.
22851
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22853
# Flag that forces no undefined symbols.
22854
no_undefined_flag=$lt_no_undefined_flag_GCJ
22856
# Commands used to finish a libtool library installation in a directory.
22857
finish_cmds=$lt_finish_cmds
22859
# Same as above, but a single script fragment to be evaled but not shown.
22860
finish_eval=$lt_finish_eval
22862
# Take the output of nm and produce a listing of raw symbols and C names.
22863
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22865
# Transform the output of nm in a proper C declaration
22866
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22868
# Transform the output of nm in a C name address pair
22869
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22871
# This is the shared library runtime path variable.
22872
runpath_var=$runpath_var
22874
# This is the shared library path variable.
22875
shlibpath_var=$shlibpath_var
22877
# Is shlibpath searched before the hard-coded library search path?
22878
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22880
# How to hardcode a shared library path into an executable.
22881
hardcode_action=$hardcode_action_GCJ
22883
# Whether we should hardcode library paths into libraries.
22884
hardcode_into_libs=$hardcode_into_libs
22886
# Flag to hardcode \$libdir into a binary during linking.
22887
# This must work even if \$libdir does not exist.
22888
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22890
# If ld is used when linking, flag to hardcode \$libdir into
22891
# a binary during linking. This must work even if \$libdir does
22893
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22895
# Whether we need a single -rpath flag with a separated argument.
22896
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22898
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22899
# resulting binary.
22900
hardcode_direct=$hardcode_direct_GCJ
22902
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22903
# resulting binary.
22904
hardcode_minus_L=$hardcode_minus_L_GCJ
22906
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22907
# the resulting binary.
22908
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22910
# Set to yes if building a shared library automatically hardcodes DIR into the library
22911
# and all subsequent libraries and executables linked against it.
22912
hardcode_automatic=$hardcode_automatic_GCJ
22914
# Variables whose values should be saved in libtool wrapper scripts and
22915
# restored at relink time.
22916
variables_saved_for_relink="$variables_saved_for_relink"
22918
# Whether libtool must link a program against all its dependency libraries.
22919
link_all_deplibs=$link_all_deplibs_GCJ
22921
# Compile-time system search path for libraries
22922
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22924
# Run-time system search path for libraries
22925
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22927
# Fix the shell variable \$srcfile for the compiler.
22928
fix_srcfile_path=$lt_fix_srcfile_path
22930
# Set to yes if exported symbols are required.
22931
always_export_symbols=$always_export_symbols_GCJ
22933
# The commands to list exported symbols.
22934
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22936
# The commands to extract the exported symbol list from a shared archive.
22937
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22939
# Symbols that should not be listed in the preloaded symbols.
22940
exclude_expsyms=$lt_exclude_expsyms_GCJ
22942
# Symbols that must always be exported.
22943
include_expsyms=$lt_include_expsyms_GCJ
22945
# ### END LIBTOOL TAG CONFIG: $tagname
22951
# If there is no Makefile yet, we rely on a make rule to execute
22952
# `config.status --recheck' to rerun these tests and create the
22953
# libtool script then.
22954
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22955
if test -f "$ltmain_in"; then
22956
test -f Makefile && make "$ltmain"
22962
ac_cpp='$CPP $CPPFLAGS'
22963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22977
# Source file extension for RC test sources.
22980
# Object file extension for compiled RC test sources.
22984
# Code to be used in simple compile tests
22985
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22987
# Code to be used in simple link tests
22988
lt_simple_link_test_code="$lt_simple_compile_test_code"
22990
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22992
# If no C compiler was specified, use CC.
22995
# If no C compiler flags were specified, use CFLAGS.
22996
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22998
# Allow CC to be a program name with arguments.
23002
# save warnings/boilerplate of simple test code
23003
ac_outfile=conftest.$ac_objext
23004
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23005
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23006
_lt_compiler_boilerplate=`cat conftest.err`
23009
ac_outfile=conftest.$ac_objext
23010
echo "$lt_simple_link_test_code" >conftest.$ac_ext
23011
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23012
_lt_linker_boilerplate=`cat conftest.err`
23016
# Allow CC to be a program name with arguments.
23021
for cc_temp in $compiler""; do
23023
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23024
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23029
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23031
lt_cv_prog_compiler_c_o_RC=yes
23033
# The else clause should only fire when bootstrapping the
23034
# libtool distribution, otherwise you forgot to ship ltmain.sh
23035
# with your package, and you will get complaints that there are
23036
# no rules to generate ltmain.sh.
23037
if test -f "$ltmain"; then
23038
# See if we are running on zsh, and set the options which allow our commands through
23039
# without removal of \ escapes.
23040
if test -n "${ZSH_VERSION+set}" ; then
23041
setopt NO_GLOB_SUBST
23043
# Now quote all the things that may contain metacharacters while being
23044
# careful not to overquote the AC_SUBSTed values. We take copies of the
23045
# variables and quote the copies for generation of the libtool script.
23046
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23048
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23049
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23050
deplibs_check_method reload_flag reload_cmds need_locks \
23051
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23052
lt_cv_sys_global_symbol_to_c_name_address \
23053
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23054
old_postinstall_cmds old_postuninstall_cmds \
23058
lt_prog_compiler_wl_RC \
23059
lt_prog_compiler_pic_RC \
23060
lt_prog_compiler_static_RC \
23061
lt_prog_compiler_no_builtin_flag_RC \
23062
export_dynamic_flag_spec_RC \
23063
thread_safe_flag_spec_RC \
23064
whole_archive_flag_spec_RC \
23065
enable_shared_with_static_runtimes_RC \
23066
old_archive_cmds_RC \
23067
old_archive_from_new_cmds_RC \
23068
predep_objects_RC \
23069
postdep_objects_RC \
23072
compiler_lib_search_path_RC \
23073
compiler_lib_search_dirs_RC \
23075
archive_expsym_cmds_RC \
23076
postinstall_cmds_RC \
23077
postuninstall_cmds_RC \
23078
old_archive_from_expsyms_cmds_RC \
23079
allow_undefined_flag_RC \
23080
no_undefined_flag_RC \
23081
export_symbols_cmds_RC \
23082
hardcode_libdir_flag_spec_RC \
23083
hardcode_libdir_flag_spec_ld_RC \
23084
hardcode_libdir_separator_RC \
23085
hardcode_automatic_RC \
23087
module_expsym_cmds_RC \
23088
lt_cv_prog_compiler_c_o_RC \
23089
fix_srcfile_path_RC \
23090
exclude_expsyms_RC \
23091
include_expsyms_RC; do
23094
old_archive_cmds_RC | \
23095
old_archive_from_new_cmds_RC | \
23096
archive_cmds_RC | \
23097
archive_expsym_cmds_RC | \
23099
module_expsym_cmds_RC | \
23100
old_archive_from_expsyms_cmds_RC | \
23101
export_symbols_cmds_RC | \
23102
extract_expsyms_cmds | reload_cmds | finish_cmds | \
23103
postinstall_cmds | postuninstall_cmds | \
23104
old_postinstall_cmds | old_postuninstall_cmds | \
23105
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23106
# Double-quote double-evaled strings.
23107
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23110
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23116
*'\$0 --fallback-echo"')
23117
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23123
cat <<__EOF__ >> "$cfgfile"
23124
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23126
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23128
# Shell to use when invoking shell scripts.
23131
# Whether or not to build shared libraries.
23132
build_libtool_libs=$enable_shared
23134
# Whether or not to build static libraries.
23135
build_old_libs=$enable_static
23137
# Whether or not to add -lc for building shared libraries.
23138
build_libtool_need_lc=$archive_cmds_need_lc_RC
23140
# Whether or not to disallow shared libs when runtime libs are static
23141
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23143
# Whether or not to optimize for fast installation.
23144
fast_install=$enable_fast_install
23147
host_alias=$host_alias
23151
# The build system.
23152
build_alias=$build_alias
23156
# An echo program that does not interpret backslashes.
23161
AR_FLAGS=$lt_AR_FLAGS
23166
# LTCC compiler flags.
23167
LTCFLAGS=$lt_LTCFLAGS
23169
# A language-specific compiler.
23172
# Is the compiler the GNU C compiler?
23178
# The linker used to build libraries.
23181
# Whether we need hard or soft links.
23184
# A BSD-compatible nm program.
23187
# A symbol stripping program
23190
# Used to examine libraries when file_magic_cmd begins "file"
23191
MAGIC_CMD=$MAGIC_CMD
23193
# Used on cygwin: DLL creation program.
23196
# Used on cygwin: object dumper.
23199
# Used on cygwin: assembler.
23202
# The name of the directory that contains temporary libtool files.
23205
# How to create reloadable object files.
23206
reload_flag=$lt_reload_flag
23207
reload_cmds=$lt_reload_cmds
23209
# How to pass a linker flag through the compiler.
23210
wl=$lt_lt_prog_compiler_wl_RC
23212
# Object file suffix (normally "o").
23213
objext="$ac_objext"
23215
# Old archive suffix (normally "a").
23218
# Shared library suffix (normally ".so").
23219
shrext_cmds='$shrext_cmds'
23221
# Executable file suffix (normally "").
23224
# Additional compiler flags for building library objects.
23225
pic_flag=$lt_lt_prog_compiler_pic_RC
23228
# What is the maximum length of a command?
23229
max_cmd_len=$lt_cv_sys_max_cmd_len
23231
# Does compiler simultaneously support -c and -o options?
23232
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
23234
# Must we lock files when doing compilation?
23235
need_locks=$lt_need_locks
23237
# Do we need the lib prefix for modules?
23238
need_lib_prefix=$need_lib_prefix
23240
# Do we need a version for libraries?
23241
need_version=$need_version
23243
# Whether dlopen is supported.
23244
dlopen_support=$enable_dlopen
23246
# Whether dlopen of programs is supported.
23247
dlopen_self=$enable_dlopen_self
23249
# Whether dlopen of statically linked programs is supported.
23250
dlopen_self_static=$enable_dlopen_self_static
23252
# Compiler flag to prevent dynamic linking.
23253
link_static_flag=$lt_lt_prog_compiler_static_RC
23255
# Compiler flag to turn off builtin functions.
23256
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
23258
# Compiler flag to allow reflexive dlopens.
23259
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
23261
# Compiler flag to generate shared objects directly from archives.
23262
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
23264
# Compiler flag to generate thread-safe objects.
23265
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
23267
# Library versioning type.
23268
version_type=$version_type
23270
# Format of library name prefix.
23271
libname_spec=$lt_libname_spec
23273
# List of archive names. First name is the real one, the rest are links.
23274
# The last name is the one that the linker finds with -lNAME.
23275
library_names_spec=$lt_library_names_spec
23277
# The coded name of the library, if different from the real name.
23278
soname_spec=$lt_soname_spec
23280
# Commands used to build and install an old-style archive.
23282
old_archive_cmds=$lt_old_archive_cmds_RC
23283
old_postinstall_cmds=$lt_old_postinstall_cmds
23284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
23286
# Create an old-style archive from a shared archive.
23287
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
23289
# Create a temporary old-style archive to link instead of a shared archive.
23290
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
23292
# Commands used to build and install a shared archive.
23293
archive_cmds=$lt_archive_cmds_RC
23294
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
23295
postinstall_cmds=$lt_postinstall_cmds
23296
postuninstall_cmds=$lt_postuninstall_cmds
23298
# Commands used to build a loadable module (assumed same as above if empty)
23299
module_cmds=$lt_module_cmds_RC
23300
module_expsym_cmds=$lt_module_expsym_cmds_RC
23302
# Commands to strip libraries.
23303
old_striplib=$lt_old_striplib
23304
striplib=$lt_striplib
23306
# Dependencies to place before the objects being linked to create a
23308
predep_objects=$lt_predep_objects_RC
23310
# Dependencies to place after the objects being linked to create a
23312
postdep_objects=$lt_postdep_objects_RC
23314
# Dependencies to place before the objects being linked to create a
23316
predeps=$lt_predeps_RC
23318
# Dependencies to place after the objects being linked to create a
23320
postdeps=$lt_postdeps_RC
23322
# The directories searched by this compiler when creating a shared
23324
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
23326
# The library search path used internally by the compiler when linking
23327
# a shared library.
23328
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
23330
# Method to check whether dependent libraries are shared objects.
23331
deplibs_check_method=$lt_deplibs_check_method
23333
# Command to use when deplibs_check_method == file_magic.
23334
file_magic_cmd=$lt_file_magic_cmd
23336
# Flag that allows shared libraries with undefined symbols to be built.
23337
allow_undefined_flag=$lt_allow_undefined_flag_RC
23339
# Flag that forces no undefined symbols.
23340
no_undefined_flag=$lt_no_undefined_flag_RC
23342
# Commands used to finish a libtool library installation in a directory.
23343
finish_cmds=$lt_finish_cmds
23345
# Same as above, but a single script fragment to be evaled but not shown.
23346
finish_eval=$lt_finish_eval
23348
# Take the output of nm and produce a listing of raw symbols and C names.
23349
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23351
# Transform the output of nm in a proper C declaration
23352
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23354
# Transform the output of nm in a C name address pair
23355
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23357
# This is the shared library runtime path variable.
23358
runpath_var=$runpath_var
23360
# This is the shared library path variable.
23361
shlibpath_var=$shlibpath_var
23363
# Is shlibpath searched before the hard-coded library search path?
23364
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23366
# How to hardcode a shared library path into an executable.
23367
hardcode_action=$hardcode_action_RC
23369
# Whether we should hardcode library paths into libraries.
23370
hardcode_into_libs=$hardcode_into_libs
23372
# Flag to hardcode \$libdir into a binary during linking.
23373
# This must work even if \$libdir does not exist.
23374
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
23376
# If ld is used when linking, flag to hardcode \$libdir into
23377
# a binary during linking. This must work even if \$libdir does
23379
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
23381
# Whether we need a single -rpath flag with a separated argument.
23382
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
23384
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23385
# resulting binary.
23386
hardcode_direct=$hardcode_direct_RC
23388
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23389
# resulting binary.
23390
hardcode_minus_L=$hardcode_minus_L_RC
23392
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23393
# the resulting binary.
23394
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
23396
# Set to yes if building a shared library automatically hardcodes DIR into the library
23397
# and all subsequent libraries and executables linked against it.
23398
hardcode_automatic=$hardcode_automatic_RC
23400
# Variables whose values should be saved in libtool wrapper scripts and
23401
# restored at relink time.
23402
variables_saved_for_relink="$variables_saved_for_relink"
23404
# Whether libtool must link a program against all its dependency libraries.
23405
link_all_deplibs=$link_all_deplibs_RC
23407
# Compile-time system search path for libraries
23408
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23410
# Run-time system search path for libraries
23411
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23413
# Fix the shell variable \$srcfile for the compiler.
23414
fix_srcfile_path=$lt_fix_srcfile_path
23416
# Set to yes if exported symbols are required.
23417
always_export_symbols=$always_export_symbols_RC
23419
# The commands to list exported symbols.
23420
export_symbols_cmds=$lt_export_symbols_cmds_RC
23422
# The commands to extract the exported symbol list from a shared archive.
23423
extract_expsyms_cmds=$lt_extract_expsyms_cmds
23425
# Symbols that should not be listed in the preloaded symbols.
23426
exclude_expsyms=$lt_exclude_expsyms_RC
23428
# Symbols that must always be exported.
23429
include_expsyms=$lt_include_expsyms_RC
23431
# ### END LIBTOOL TAG CONFIG: $tagname
23437
# If there is no Makefile yet, we rely on a make rule to execute
23438
# `config.status --recheck' to rerun these tests and create the
23439
# libtool script then.
23440
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23441
if test -f "$ltmain_in"; then
23442
test -f Makefile && make "$ltmain"
23448
ac_cpp='$CPP $CPPFLAGS'
23449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23458
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
23459
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
23460
{ (exit 1); exit 1; }; }
23464
# Append the new tag name to the list of available tags.
23465
if test -n "$tagname" ; then
23466
available_tags="$available_tags $tagname"
23472
# Now substitute the updated list of available tags.
23473
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
23474
mv "${ofile}T" "$ofile"
23478
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
23479
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
23480
{ (exit 1); exit 1; }; }
23486
# This can be used to rebuild libtool when needed
23487
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
23489
# Always use our own libtool.
23490
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
23492
# Prevent multiple expansion
15058
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15059
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15060
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15061
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15062
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15063
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15064
$as_echo "yes" >&6; }
15066
# FIXME - insert some real tests, host_os isn't really good enough
15069
if test -n "$STRIP" ; then
15070
striplib="$STRIP -x"
15071
old_striplib="$STRIP -S"
15072
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15073
$as_echo "yes" >&6; }
15075
{ $as_echo "$as_me:$LINENO: result: no" >&5
15076
$as_echo "no" >&6; }
15080
{ $as_echo "$as_me:$LINENO: result: no" >&5
15081
$as_echo "no" >&6; }
15097
# Report which library types will actually be built
15098
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15099
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15100
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15101
$as_echo "$can_build_shared" >&6; }
15103
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15104
$as_echo_n "checking whether to build shared libraries... " >&6; }
15105
test "$can_build_shared" = "no" && enable_shared=no
15107
# On AIX, shared libraries and static libraries use the same namespace, and
15108
# are all built from PIC.
15111
test "$enable_shared" = yes && enable_static=no
15112
if test -n "$RANLIB"; then
15113
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15114
postinstall_cmds='$RANLIB $lib'
15119
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15120
test "$enable_shared" = yes && enable_static=no
15124
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15125
$as_echo "$enable_shared" >&6; }
15127
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15128
$as_echo_n "checking whether to build static libraries... " >&6; }
15129
# Make sure either enable_shared or enable_static is yes.
15130
test "$enable_shared" = yes || enable_static=yes
15131
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15132
$as_echo "$enable_static" >&6; }
15139
ac_cpp='$CPP $CPPFLAGS'
15140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15158
ac_config_commands="$ac_config_commands libtool"
15163
# Only expand once:
15167
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
15168
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
15170
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
15174
# Check whether --with-gconf-source was given.
15175
if test "${with_gconf_source+set}" = set; then
15176
withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
15181
{ $as_echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
15182
$as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
15184
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
15185
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
15189
# Check whether --with-gconf-schema-file-dir was given.
15190
if test "${with_gconf_schema_file_dir+set}" = set; then
15191
withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
15196
{ $as_echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
15197
$as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
15199
# Check whether --enable-schemas-install was given.
15200
if test "${enable_schemas_install+set}" = set; then
15201
enableval=$enable_schemas_install; case ${enableval} in
15203
*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-schemas-install" >&5
15204
$as_echo "$as_me: error: bad value ${enableval} for --enable-schemas-install" >&2;}
15205
{ (exit 1); exit 1; }; } ;;
15211
if test "$enable_schemas_install" != no; then
15212
GCONF_SCHEMAS_INSTALL_TRUE=
15213
GCONF_SCHEMAS_INSTALL_FALSE='#'
15215
GCONF_SCHEMAS_INSTALL_TRUE='#'
15216
GCONF_SCHEMAS_INSTALL_FALSE=
15220
# Extract the first word of "glib-mkenums", so it can be a program name with args.
15221
set dummy glib-mkenums; ac_word=$2
15222
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15223
$as_echo_n "checking for $ac_word... " >&6; }
15224
if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then
15225
$as_echo_n "(cached) " >&6
15227
case $GLIB_MKENUMS in
15229
ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
15232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233
for as_dir in $PATH
15236
test -z "$as_dir" && as_dir=.
15237
for ac_exec_ext in '' $ac_executable_extensions; do
15238
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15239
ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
15240
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15250
GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
15251
if test -n "$GLIB_MKENUMS"; then
15252
{ $as_echo "$as_me:$LINENO: result: $GLIB_MKENUMS" >&5
15253
$as_echo "$GLIB_MKENUMS" >&6; }
15255
{ $as_echo "$as_me:$LINENO: result: no" >&5
15256
$as_echo "no" >&6; }