10222
# Report which library types will actually be built
10223
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10224
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10225
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10226
echo "${ECHO_T}$can_build_shared" >&6
10228
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10229
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10230
test "$can_build_shared" = "no" && enable_shared=no
10232
# On AIX, shared libraries and static libraries use the same namespace, and
10233
# are all built from PIC.
10236
test "$enable_shared" = yes && enable_static=no
10237
if test -n "$RANLIB"; then
10238
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10239
postinstall_cmds='$RANLIB $lib'
10244
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10245
test "$enable_shared" = yes && enable_static=no
10249
echo "$as_me:$LINENO: result: $enable_shared" >&5
10250
echo "${ECHO_T}$enable_shared" >&6
10252
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10253
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10254
# Make sure either enable_shared or enable_static is yes.
10255
test "$enable_shared" = yes || enable_static=yes
10256
echo "$as_me:$LINENO: result: $enable_static" >&5
10257
echo "${ECHO_T}$enable_static" >&6
10259
# The else clause should only fire when bootstrapping the
10260
# libtool distribution, otherwise you forgot to ship ltmain.sh
10261
# with your package, and you will get complaints that there are
10262
# no rules to generate ltmain.sh.
10263
if test -f "$ltmain"; then
10264
# See if we are running on zsh, and set the options which allow our commands through
10265
# without removal of \ escapes.
10266
if test -n "${ZSH_VERSION+set}" ; then
10267
setopt NO_GLOB_SUBST
10269
# Now quote all the things that may contain metacharacters while being
10270
# careful not to overquote the AC_SUBSTed values. We take copies of the
10271
# variables and quote the copies for generation of the libtool script.
10272
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10274
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10275
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10276
deplibs_check_method reload_flag reload_cmds need_locks \
10277
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10278
lt_cv_sys_global_symbol_to_c_name_address \
10279
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10280
old_postinstall_cmds old_postuninstall_cmds \
10284
lt_prog_compiler_wl \
10285
lt_prog_compiler_pic \
10286
lt_prog_compiler_static \
10287
lt_prog_compiler_no_builtin_flag \
10288
export_dynamic_flag_spec \
10289
thread_safe_flag_spec \
10290
whole_archive_flag_spec \
10291
enable_shared_with_static_runtimes \
10293
old_archive_from_new_cmds \
10298
compiler_lib_search_path \
10300
archive_expsym_cmds \
10302
postuninstall_cmds \
10303
old_archive_from_expsyms_cmds \
10304
allow_undefined_flag \
10305
no_undefined_flag \
10306
export_symbols_cmds \
10307
hardcode_libdir_flag_spec \
10308
hardcode_libdir_flag_spec_ld \
10309
hardcode_libdir_separator \
10310
hardcode_automatic \
10312
module_expsym_cmds \
10313
lt_cv_prog_compiler_c_o \
10315
include_expsyms; do
10318
old_archive_cmds | \
10319
old_archive_from_new_cmds | \
10321
archive_expsym_cmds | \
10323
module_expsym_cmds | \
10324
old_archive_from_expsyms_cmds | \
10325
export_symbols_cmds | \
10326
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10327
postinstall_cmds | postuninstall_cmds | \
10328
old_postinstall_cmds | old_postuninstall_cmds | \
10329
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10330
# Double-quote double-evaled strings.
10331
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10334
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10340
*'\$0 --fallback-echo"')
10341
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10345
cfgfile="${ofile}T"
10346
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10348
{ echo "$as_me:$LINENO: creating $ofile" >&5
10349
echo "$as_me: creating $ofile" >&6;}
10351
cat <<__EOF__ >> "$cfgfile"
10354
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10355
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10356
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10358
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10359
# Free Software Foundation, Inc.
10361
# This file is part of GNU Libtool:
10362
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10364
# This program is free software; you can redistribute it and/or modify
10365
# it under the terms of the GNU General Public License as published by
10366
# the Free Software Foundation; either version 2 of the License, or
10367
# (at your option) any later version.
10369
# This program is distributed in the hope that it will be useful, but
10370
# WITHOUT ANY WARRANTY; without even the implied warranty of
10371
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10372
# General Public License for more details.
10374
# You should have received a copy of the GNU General Public License
10375
# along with this program; if not, write to the Free Software
10376
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10378
# As a special exception to the GNU General Public License, if you
10379
# distribute this file as part of a program that contains a
10380
# configuration script generated by Autoconf, you may include it under
10381
# the same distribution terms that you use for the rest of that program.
10383
# A sed program that does not truncate output.
10386
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10387
Xsed="$SED -e 1s/^X//"
10389
# The HP-UX ksh and POSIX shell print the target directory to stdout
10390
# if CDPATH is set.
10391
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10393
# The names of the tagged configurations supported by this script.
10396
# ### BEGIN LIBTOOL CONFIG
10398
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10400
# Shell to use when invoking shell scripts.
10403
# Whether or not to build shared libraries.
10404
build_libtool_libs=$enable_shared
10406
# Whether or not to build static libraries.
10407
build_old_libs=$enable_static
10409
# Whether or not to add -lc for building shared libraries.
10410
build_libtool_need_lc=$archive_cmds_need_lc
10412
# Whether or not to disallow shared libs when runtime libs are static
10413
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10415
# Whether or not to optimize for fast installation.
10416
fast_install=$enable_fast_install
10419
host_alias=$host_alias
10423
# The build system.
10424
build_alias=$build_alias
10428
# An echo program that does not interpret backslashes.
10433
AR_FLAGS=$lt_AR_FLAGS
10438
# LTCC compiler flags.
10439
LTCFLAGS=$lt_LTCFLAGS
10441
# A language-specific compiler.
10444
# Is the compiler the GNU C compiler?
10447
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10448
gcc_ver=\`gcc -dumpversion\`
10453
# The linker used to build libraries.
10456
# Whether we need hard or soft links.
10459
# A BSD-compatible nm program.
10462
# A symbol stripping program
10465
# Used to examine libraries when file_magic_cmd begins "file"
10466
MAGIC_CMD=$MAGIC_CMD
10468
# Used on cygwin: DLL creation program.
10471
# Used on cygwin: object dumper.
10474
# Used on cygwin: assembler.
10477
# The name of the directory that contains temporary libtool files.
10480
# How to create reloadable object files.
10481
reload_flag=$lt_reload_flag
10482
reload_cmds=$lt_reload_cmds
10484
# How to pass a linker flag through the compiler.
10485
wl=$lt_lt_prog_compiler_wl
10487
# Object file suffix (normally "o").
10488
objext="$ac_objext"
10490
# Old archive suffix (normally "a").
10493
# Shared library suffix (normally ".so").
10494
shrext_cmds='$shrext_cmds'
10496
# Executable file suffix (normally "").
10499
# Additional compiler flags for building library objects.
10500
pic_flag=$lt_lt_prog_compiler_pic
10503
# What is the maximum length of a command?
10504
max_cmd_len=$lt_cv_sys_max_cmd_len
10506
# Does compiler simultaneously support -c and -o options?
10507
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10509
# Must we lock files when doing compilation?
10510
need_locks=$lt_need_locks
10512
# Do we need the lib prefix for modules?
10513
need_lib_prefix=$need_lib_prefix
10515
# Do we need a version for libraries?
10516
need_version=$need_version
10518
# Whether dlopen is supported.
10519
dlopen_support=$enable_dlopen
10521
# Whether dlopen of programs is supported.
10522
dlopen_self=$enable_dlopen_self
10524
# Whether dlopen of statically linked programs is supported.
10525
dlopen_self_static=$enable_dlopen_self_static
10527
# Compiler flag to prevent dynamic linking.
10528
link_static_flag=$lt_lt_prog_compiler_static
10530
# Compiler flag to turn off builtin functions.
10531
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10533
# Compiler flag to allow reflexive dlopens.
10534
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10536
# Compiler flag to generate shared objects directly from archives.
10537
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10539
# Compiler flag to generate thread-safe objects.
10540
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10542
# Library versioning type.
10543
version_type=$version_type
10545
# Format of library name prefix.
10546
libname_spec=$lt_libname_spec
10548
# List of archive names. First name is the real one, the rest are links.
10549
# The last name is the one that the linker finds with -lNAME.
10550
library_names_spec=$lt_library_names_spec
10552
# The coded name of the library, if different from the real name.
10553
soname_spec=$lt_soname_spec
10555
# Commands used to build and install an old-style archive.
10557
old_archive_cmds=$lt_old_archive_cmds
10558
old_postinstall_cmds=$lt_old_postinstall_cmds
10559
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10561
# Create an old-style archive from a shared archive.
10562
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10564
# Create a temporary old-style archive to link instead of a shared archive.
10565
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10567
# Commands used to build and install a shared archive.
10568
archive_cmds=$lt_archive_cmds
10569
archive_expsym_cmds=$lt_archive_expsym_cmds
10570
postinstall_cmds=$lt_postinstall_cmds
10571
postuninstall_cmds=$lt_postuninstall_cmds
10573
# Commands used to build a loadable module (assumed same as above if empty)
10574
module_cmds=$lt_module_cmds
10575
module_expsym_cmds=$lt_module_expsym_cmds
10577
# Commands to strip libraries.
10578
old_striplib=$lt_old_striplib
10579
striplib=$lt_striplib
10581
# Dependencies to place before the objects being linked to create a
10583
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10585
# Dependencies to place after the objects being linked to create a
10587
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10589
# Dependencies to place before the objects being linked to create a
10591
predeps=$lt_predeps
10593
# Dependencies to place after the objects being linked to create a
10595
postdeps=$lt_postdeps
10597
# The library search path used internally by the compiler when linking
10598
# a shared library.
10599
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10601
# Method to check whether dependent libraries are shared objects.
10602
deplibs_check_method=$lt_deplibs_check_method
10604
# Command to use when deplibs_check_method == file_magic.
10605
file_magic_cmd=$lt_file_magic_cmd
10607
# Flag that allows shared libraries with undefined symbols to be built.
10608
allow_undefined_flag=$lt_allow_undefined_flag
10610
# Flag that forces no undefined symbols.
10611
no_undefined_flag=$lt_no_undefined_flag
10613
# Commands used to finish a libtool library installation in a directory.
10614
finish_cmds=$lt_finish_cmds
10616
# Same as above, but a single script fragment to be evaled but not shown.
10617
finish_eval=$lt_finish_eval
10619
# Take the output of nm and produce a listing of raw symbols and C names.
10620
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10622
# Transform the output of nm in a proper C declaration
10623
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10625
# Transform the output of nm in a C name address pair
10626
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10628
# This is the shared library runtime path variable.
10629
runpath_var=$runpath_var
10631
# This is the shared library path variable.
10632
shlibpath_var=$shlibpath_var
10634
# Is shlibpath searched before the hard-coded library search path?
10635
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10637
# How to hardcode a shared library path into an executable.
10638
hardcode_action=$hardcode_action
10640
# Whether we should hardcode library paths into libraries.
10641
hardcode_into_libs=$hardcode_into_libs
10643
# Flag to hardcode \$libdir into a binary during linking.
10644
# This must work even if \$libdir does not exist.
10645
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10647
# If ld is used when linking, flag to hardcode \$libdir into
10648
# a binary during linking. This must work even if \$libdir does
10650
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10652
# Whether we need a single -rpath flag with a separated argument.
10653
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10655
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10656
# resulting binary.
10657
hardcode_direct=$hardcode_direct
10659
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10660
# resulting binary.
10661
hardcode_minus_L=$hardcode_minus_L
10663
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10664
# the resulting binary.
10665
hardcode_shlibpath_var=$hardcode_shlibpath_var
10667
# Set to yes if building a shared library automatically hardcodes DIR into the library
10668
# and all subsequent libraries and executables linked against it.
10669
hardcode_automatic=$hardcode_automatic
10671
# Variables whose values should be saved in libtool wrapper scripts and
10672
# restored at relink time.
10673
variables_saved_for_relink="$variables_saved_for_relink"
10675
# Whether libtool must link a program against all its dependency libraries.
10676
link_all_deplibs=$link_all_deplibs
10678
# Compile-time system search path for libraries
10679
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10681
# Run-time system search path for libraries
10682
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10684
# Fix the shell variable \$srcfile for the compiler.
10685
fix_srcfile_path="$fix_srcfile_path"
10687
# Set to yes if exported symbols are required.
10688
always_export_symbols=$always_export_symbols
10690
# The commands to list exported symbols.
10691
export_symbols_cmds=$lt_export_symbols_cmds
10693
# The commands to extract the exported symbol list from a shared archive.
10694
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10696
# Symbols that should not be listed in the preloaded symbols.
10697
exclude_expsyms=$lt_exclude_expsyms
10699
# Symbols that must always be exported.
10700
include_expsyms=$lt_include_expsyms
10702
# ### END LIBTOOL CONFIG
10709
cat <<\EOF >> "$cfgfile"
10711
# AIX sometimes has problems with the GCC collect2 program. For some
10712
# reason, if we set the COLLECT_NAMES environment variable, the problems
10713
# vanish in a puff of smoke.
10714
if test "X${COLLECT_NAMES+set}" != Xset; then
10716
export COLLECT_NAMES
10722
# We use sed instead of cat because bash on DJGPP gets confused if
10723
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10724
# text mode, it properly converts lines to CR/LF. This bash problem
10725
# is reportedly fixed, but why not run on old versions too?
10726
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10728
mv -f "$cfgfile" "$ofile" || \
10729
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10733
# If there is no Makefile yet, we rely on a make rule to execute
10734
# `config.status --recheck' to rerun these tests and create the
10735
# libtool script then.
10736
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10737
if test -f "$ltmain_in"; then
10738
test -f Makefile && make "$ltmain"
10744
ac_cpp='$CPP $CPPFLAGS'
10745
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10752
# Check whether --with-tags or --without-tags was given.
10753
if test "${with_tags+set}" = set; then
10754
withval="$with_tags"
10755
tagnames="$withval"
10758
if test -f "$ltmain" && test -n "$tagnames"; then
10759
if test ! -f "${ofile}"; then
10760
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10761
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10764
if test -z "$LTCC"; then
10765
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10766
if test -z "$LTCC"; then
10767
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10768
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10770
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10771
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10774
if test -z "$LTCFLAGS"; then
10775
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10778
# Extract list of available tagged configurations in $ofile.
10779
# Note that this assumes the entire list is on one line.
10780
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10782
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10783
for tagname in $tagnames; do
10785
# Check whether tagname contains only valid characters
10786
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10788
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10789
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10790
{ (exit 1); exit 1; }; }
10794
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10796
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10797
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10798
{ (exit 1); exit 1; }; }
10801
# Update the list of available tags.
10802
if test -n "$tagname"; then
10803
echo appending configuration tag \"$tagname\" to $ofile
10807
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10808
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10809
(test "X$CXX" != "Xg++"))) ; then
10811
ac_cpp='$CXXCPP $CPPFLAGS'
10812
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10813
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10814
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10819
archive_cmds_need_lc_CXX=no
10820
allow_undefined_flag_CXX=
10821
always_export_symbols_CXX=no
10822
archive_expsym_cmds_CXX=
10823
export_dynamic_flag_spec_CXX=
10824
hardcode_direct_CXX=no
10825
hardcode_libdir_flag_spec_CXX=
10826
hardcode_libdir_flag_spec_ld_CXX=
10827
hardcode_libdir_separator_CXX=
10828
hardcode_minus_L_CXX=no
10829
hardcode_shlibpath_var_CXX=unsupported
10830
hardcode_automatic_CXX=no
10832
module_expsym_cmds_CXX=
10833
link_all_deplibs_CXX=unknown
10834
old_archive_cmds_CXX=$old_archive_cmds
10835
no_undefined_flag_CXX=
10836
whole_archive_flag_spec_CXX=
10837
enable_shared_with_static_runtimes_CXX=no
10839
# Dependencies to place before and after the object being linked:
10840
predep_objects_CXX=
10841
postdep_objects_CXX=
10844
compiler_lib_search_path_CXX=
10846
# Source file extension for C++ test sources.
10849
# Object file extension for compiled C++ test sources.
10853
# Code to be used in simple compile tests
10854
lt_simple_compile_test_code="int some_variable = 0;\n"
10856
# Code to be used in simple link tests
10857
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10859
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10861
# If no C compiler was specified, use CC.
10864
# If no C compiler flags were specified, use CFLAGS.
10865
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10867
# Allow CC to be a program name with arguments.
10871
# save warnings/boilerplate of simple test code
10872
ac_outfile=conftest.$ac_objext
10873
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10874
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10875
_lt_compiler_boilerplate=`cat conftest.err`
10878
ac_outfile=conftest.$ac_objext
10879
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10880
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10881
_lt_linker_boilerplate=`cat conftest.err`
10885
# Allow CC to be a program name with arguments.
10890
lt_save_with_gnu_ld=$with_gnu_ld
10891
lt_save_path_LD=$lt_cv_path_LD
10892
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10893
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10895
$as_unset lt_cv_prog_gnu_ld
10897
if test -n "${lt_cv_path_LDCXX+set}"; then
10898
lt_cv_path_LD=$lt_cv_path_LDCXX
10900
$as_unset lt_cv_path_LD
10902
test -z "${LDCXX+set}" || LD=$LDCXX
10906
for cc_temp in $compiler""; do
10908
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10909
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10914
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10917
# We don't want -fno-exception wen compiling C++ code, so set the
10918
# no_builtin_flag separately
10919
if test "$GXX" = yes; then
10920
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10922
lt_prog_compiler_no_builtin_flag_CXX=
10925
if test "$GXX" = yes; then
10926
# Set up default GNU C++ configuration
10929
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10930
if test "${with_gnu_ld+set}" = set; then
10931
withval="$with_gnu_ld"
10932
test "$withval" = no || with_gnu_ld=yes
10937
if test "$GCC" = yes; then
10938
# Check if gcc -print-prog-name=ld gives a path.
10939
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10940
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10943
# gcc leaves a trailing carriage return which upsets mingw
10944
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10946
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10949
# Accept absolute paths.
10951
re_direlt='/[^/][^/]*/\.\./'
10952
# Canonicalize the pathname of ld
10953
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10954
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10955
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10957
test -z "$LD" && LD="$ac_prog"
10960
# If it fails, then pretend we aren't using GCC.
10964
# If it is relative, then search for the first ld in PATH.
10965
with_gnu_ld=unknown
10968
elif test "$with_gnu_ld" = yes; then
10969
echo "$as_me:$LINENO: checking for GNU ld" >&5
10970
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10972
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10973
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10975
if test "${lt_cv_path_LD+set}" = set; then
10976
echo $ECHO_N "(cached) $ECHO_C" >&6
10978
if test -z "$LD"; then
10979
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10980
for ac_dir in $PATH; do
10982
test -z "$ac_dir" && ac_dir=.
10983
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10984
lt_cv_path_LD="$ac_dir/$ac_prog"
10985
# Check to see if the program is GNU ld. I'd rather use --version,
10986
# but apparently some variants of GNU ld only accept -v.
10987
# Break only if it was the GNU/non-GNU ld that we prefer.
10988
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10989
*GNU* | *'with BFD'*)
10990
test "$with_gnu_ld" != no && break
10993
test "$with_gnu_ld" != yes && break
11000
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11004
LD="$lt_cv_path_LD"
11005
if test -n "$LD"; then
11006
echo "$as_me:$LINENO: result: $LD" >&5
11007
echo "${ECHO_T}$LD" >&6
11009
echo "$as_me:$LINENO: result: no" >&5
11010
echo "${ECHO_T}no" >&6
11012
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11013
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11014
{ (exit 1); exit 1; }; }
11015
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11016
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11017
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11018
echo $ECHO_N "(cached) $ECHO_C" >&6
11020
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11021
case `$LD -v 2>&1 </dev/null` in
11022
*GNU* | *'with BFD'*)
11023
lt_cv_prog_gnu_ld=yes
11026
lt_cv_prog_gnu_ld=no
11030
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11031
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11032
with_gnu_ld=$lt_cv_prog_gnu_ld
11036
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11037
# archiving commands below assume that GNU ld is being used.
11038
if test "$with_gnu_ld" = yes; then
11039
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040
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'
11042
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11043
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11045
# If archive_cmds runs LD, not CC, wlarc should be empty
11046
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11047
# investigate it a little bit more. (MM)
11050
# ancient GNU ld didn't support --whole-archive et. al.
11051
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11052
grep 'no-whole-archive' > /dev/null; then
11053
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11055
whole_archive_flag_spec_CXX=
11061
# A generic and very simple default shared library creation
11062
# command for GNU C++ for the case where it uses the native
11063
# linker, instead of GNU ld. If possible, this setting should
11064
# overridden to take advantage of the native linker features on
11065
# the platform it is being used on.
11066
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11069
# Commands to make compiler produce verbose output that lists
11070
# what "hidden" libraries, object files and flags are used when
11071
# linking a shared library.
11072
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11080
# PORTME: fill in a description of your system's C++ link characteristics
11081
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11082
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11086
# FIXME: insert proper C++ library support
11090
if test "$host_cpu" = ia64; then
11091
# On IA64, the linker does run time linking by default, so we don't
11092
# have to do anything special.
11093
aix_use_runtimelinking=no
11094
exp_sym_flag='-Bexport'
11097
aix_use_runtimelinking=no
11099
# Test if we are trying to use run time linking or normal
11100
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11101
# need to do runtime linking.
11102
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11103
for ld_flag in $LDFLAGS; do
11106
aix_use_runtimelinking=yes
11114
exp_sym_flag='-bexport'
11115
no_entry_flag='-bnoentry'
11118
# When large executables or shared objects are built, AIX ld can
11119
# have problems creating the table of contents. If linking a library
11120
# or program results in "error TOC overflow" add -mminimal-toc to
11121
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11122
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11124
archive_cmds_CXX=''
11125
hardcode_direct_CXX=yes
11126
hardcode_libdir_separator_CXX=':'
11127
link_all_deplibs_CXX=yes
11129
if test "$GXX" = yes; then
11130
case $host_os in aix4.[012]|aix4.[012].*)
11131
# We only want to do this on AIX 4.2 and lower, the check
11132
# below for broken collect2 doesn't work under 4.3+
11133
collect2name=`${CC} -print-prog-name=collect2`
11134
if test -f "$collect2name" && \
11135
strings "$collect2name" | grep resolve_lib_name >/dev/null
11137
# We have reworked collect2
11138
hardcode_direct_CXX=yes
11140
# We have old collect2
11141
hardcode_direct_CXX=unsupported
11142
# It fails to find uninstalled libraries when the uninstalled
11143
# path is not listed in the libpath. Setting hardcode_minus_L
11144
# to unsupported forces relinking
11145
hardcode_minus_L_CXX=yes
11146
hardcode_libdir_flag_spec_CXX='-L$libdir'
11147
hardcode_libdir_separator_CXX=
11151
shared_flag='-shared'
11152
if test "$aix_use_runtimelinking" = yes; then
11153
shared_flag="$shared_flag "'${wl}-G'
11157
if test "$host_cpu" = ia64; then
11158
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11159
# chokes on -Wl,-G. The following line is correct:
11162
if test "$aix_use_runtimelinking" = yes; then
11163
shared_flag='${wl}-G'
11165
shared_flag='${wl}-bM:SRE'
11170
# It seems that -bexpall does not export symbols beginning with
11171
# underscore (_), so it is better to generate a list of symbols to export.
11172
always_export_symbols_CXX=yes
11173
if test "$aix_use_runtimelinking" = yes; then
11174
# Warning - without using the other runtime loading flags (-brtl),
11175
# -berok will link without error, but may produce a broken library.
11176
allow_undefined_flag_CXX='-berok'
11177
# Determine the default libpath from the value encoded in an empty executable.
11178
cat >conftest.$ac_ext <<_ACEOF
11181
cat confdefs.h >>conftest.$ac_ext
11182
cat >>conftest.$ac_ext <<_ACEOF
11183
/* end confdefs.h. */
11193
rm -f conftest.$ac_objext conftest$ac_exeext
11194
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11195
(eval $ac_link) 2>conftest.er1
11197
grep -v '^ *+' conftest.er1 >conftest.err
11199
cat conftest.err >&5
11200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
(exit $ac_status); } &&
11202
{ ac_try='test -z "$ac_cxx_werror_flag"
11203
|| test ! -s conftest.err'
11204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205
(eval $ac_try) 2>&5
11207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208
(exit $ac_status); }; } &&
11209
{ ac_try='test -s conftest$ac_exeext'
11210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211
(eval $ac_try) 2>&5
11213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214
(exit $ac_status); }; }; then
11216
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11218
# Check for a 64-bit object if we didn't find anything.
11219
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11222
echo "$as_me: failed program was:" >&5
11223
sed 's/^/| /' conftest.$ac_ext >&5
11226
rm -f conftest.err conftest.$ac_objext \
11227
conftest$ac_exeext conftest.$ac_ext
11228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11230
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11232
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"
11234
if test "$host_cpu" = ia64; then
11235
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11236
allow_undefined_flag_CXX="-z nodefs"
11237
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"
11239
# Determine the default libpath from the value encoded in an empty executable.
11240
cat >conftest.$ac_ext <<_ACEOF
11243
cat confdefs.h >>conftest.$ac_ext
11244
cat >>conftest.$ac_ext <<_ACEOF
11245
/* end confdefs.h. */
11255
rm -f conftest.$ac_objext conftest$ac_exeext
11256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257
(eval $ac_link) 2>conftest.er1
11259
grep -v '^ *+' conftest.er1 >conftest.err
11261
cat conftest.err >&5
11262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263
(exit $ac_status); } &&
11264
{ ac_try='test -z "$ac_cxx_werror_flag"
11265
|| test ! -s conftest.err'
11266
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267
(eval $ac_try) 2>&5
11269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270
(exit $ac_status); }; } &&
11271
{ ac_try='test -s conftest$ac_exeext'
11272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273
(eval $ac_try) 2>&5
11275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276
(exit $ac_status); }; }; then
11278
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11280
# Check for a 64-bit object if we didn't find anything.
11281
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11284
echo "$as_me: failed program was:" >&5
11285
sed 's/^/| /' conftest.$ac_ext >&5
11288
rm -f conftest.err conftest.$ac_objext \
11289
conftest$ac_exeext conftest.$ac_ext
11290
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11292
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11293
# Warning - without using the other run time loading flags,
11294
# -berok will link without error, but may produce a broken library.
11295
no_undefined_flag_CXX=' ${wl}-bernotok'
11296
allow_undefined_flag_CXX=' ${wl}-berok'
11297
# Exported symbols can be pulled into shared objects from archives
11298
whole_archive_flag_spec_CXX='$convenience'
11299
archive_cmds_need_lc_CXX=yes
11300
# This is similar to how AIX traditionally builds its shared libraries.
11301
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'
11307
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11308
allow_undefined_flag_CXX=unsupported
11309
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11310
# support --undefined. This deserves some investigation. FIXME
11311
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11318
case $cc_basename in
11320
# FIXME: insert proper C++ library support
11326
cygwin* | mingw* | pw32*)
11327
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11328
# as there is no search path for DLLs.
11329
hardcode_libdir_flag_spec_CXX='-L$libdir'
11330
allow_undefined_flag_CXX=unsupported
11331
always_export_symbols_CXX=no
11332
enable_shared_with_static_runtimes_CXX=yes
11334
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11335
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'
11336
# If the export-symbols file already is a .def file (1st line
11337
# is EXPORTS), use it as is; otherwise, prepend...
11338
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11339
cp $export_symbols $output_objdir/$soname.def;
11341
echo EXPORTS > $output_objdir/$soname.def;
11342
cat $export_symbols >> $output_objdir/$soname.def;
11344
$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'
11349
darwin* | rhapsody*)
11351
rhapsody* | darwin1.[012])
11352
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11355
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11356
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11358
case ${MACOSX_DEPLOYMENT_TARGET} in
11360
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11363
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11369
archive_cmds_need_lc_CXX=no
11370
hardcode_direct_CXX=no
11371
hardcode_automatic_CXX=yes
11372
hardcode_shlibpath_var_CXX=unsupported
11373
whole_archive_flag_spec_CXX=''
11374
link_all_deplibs_CXX=yes
11376
if test "$GXX" = yes ; then
11377
lt_int_apple_cc_single_mod=no
11378
output_verbose_link_cmd='echo'
11379
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11380
lt_int_apple_cc_single_mod=yes
11382
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11383
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11385
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'
11387
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11388
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11389
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11390
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11392
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11394
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}'
11396
case $cc_basename in
11398
output_verbose_link_cmd='echo'
11399
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11400
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11401
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11402
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11403
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}'
11413
case $cc_basename in
11415
# FIXME: insert proper C++ library support
11419
# Green Hills C++ Compiler
11420
# FIXME: insert proper C++ library support
11424
# FIXME: insert proper C++ library support
11430
# C++ shared libraries reported to be fairly broken before switch to ELF
11434
archive_cmds_need_lc_CXX=no
11436
freebsd* | kfreebsd*-gnu | dragonfly*)
11437
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11444
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11445
hardcode_libdir_separator_CXX=:
11446
export_dynamic_flag_spec_CXX='${wl}-E'
11447
hardcode_direct_CXX=yes
11448
hardcode_minus_L_CXX=yes # Not in the search PATH,
11449
# but as the default
11450
# location of the library.
11452
case $cc_basename in
11454
# FIXME: insert proper C++ library support
11458
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'
11459
# Commands to make compiler produce verbose output that lists
11460
# what "hidden" libraries, object files and flags are used when
11461
# linking a shared library.
11463
# There doesn't appear to be a way to prevent this compiler from
11464
# explicitly linking system object files so we need to strip them
11465
# from the output so that they don't get included in the library
11467
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'
11470
if test "$GXX" = yes; then
11471
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'
11473
# FIXME: insert proper C++ library support
11480
if test $with_gnu_ld = no; then
11481
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11482
hardcode_libdir_separator_CXX=:
11486
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11489
export_dynamic_flag_spec_CXX='${wl}-E'
11495
hardcode_direct_CXX=no
11496
hardcode_shlibpath_var_CXX=no
11499
hardcode_direct_CXX=yes
11500
hardcode_minus_L_CXX=yes # Not in the search PATH,
11501
# but as the default
11502
# location of the library.
11506
case $cc_basename in
11508
# FIXME: insert proper C++ library support
11514
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11520
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11523
# Commands to make compiler produce verbose output that lists
11524
# what "hidden" libraries, object files and flags are used when
11525
# linking a shared library.
11527
# There doesn't appear to be a way to prevent this compiler from
11528
# explicitly linking system object files so we need to strip them
11529
# from the output so that they don't get included in the library
11531
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'
11534
if test "$GXX" = yes; then
11535
if test $with_gnu_ld = no; then
11538
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11541
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11544
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'
11549
# FIXME: insert proper C++ library support
11556
hardcode_direct_CXX=no
11557
hardcode_shlibpath_var_CXX=no
11558
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559
export_dynamic_flag_spec_CXX='${wl}-E'
11560
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11561
# Instead, shared libraries are loaded at an image base (0x10000000 by
11562
# default) and relocated if they conflict, which is a slow very memory
11563
# consuming and fragmenting process. To avoid this, we pick a random,
11564
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11565
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11566
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'
11567
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'
11570
case $cc_basename in
11573
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'
11575
# Archives containing C++ object files must be created using
11576
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11577
# necessary to make sure instantiated templates are included
11579
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11582
if test "$GXX" = yes; then
11583
if test "$with_gnu_ld" = no; then
11584
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'
11586
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'
11589
link_all_deplibs_CXX=yes
11592
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593
hardcode_libdir_separator_CXX=:
11596
case $cc_basename in
11598
# Kuck and Associates, Inc. (KAI) C++ Compiler
11600
# KCC will only create a shared library if the output file
11601
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11602
# to its proper name (with version) after linking.
11603
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'
11604
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'
11605
# Commands to make compiler produce verbose output that lists
11606
# what "hidden" libraries, object files and flags are used when
11607
# linking a shared library.
11609
# There doesn't appear to be a way to prevent this compiler from
11610
# explicitly linking system object files so we need to strip them
11611
# from the output so that they don't get included in the library
11613
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'
11615
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11616
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11618
# Archives containing C++ object files must be created using
11619
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11620
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11625
# version 8.0 and above of icpc choke on multiply defined symbols
11626
# if we add $predep_objects and $postdep_objects, however 7.1 and
11627
# earlier do not add the objects themselves.
11628
case `$CC -V 2>&1` in
11630
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11631
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'
11633
*) # Version 8.0 or newer
11636
ia64*) tmp_idyn=' -i_dynamic';;
11638
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11639
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'
11642
archive_cmds_need_lc_CXX=no
11643
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11644
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11645
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11648
# Portland Group C++ compiler
11649
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11650
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'
11652
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11653
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11654
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'
11658
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11659
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'
11661
runpath_var=LD_RUN_PATH
11662
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11663
hardcode_libdir_separator_CXX=:
11665
# Commands to make compiler produce verbose output that lists
11666
# what "hidden" libraries, object files and flags are used when
11667
# linking a shared library.
11669
# There doesn't appear to be a way to prevent this compiler from
11670
# explicitly linking system object files so we need to strip them
11671
# from the output so that they don't get included in the library
11673
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'
11678
# FIXME: insert proper C++ library support
11682
# FIXME: insert proper C++ library support
11686
case $cc_basename in
11688
# FIXME: insert proper C++ library support
11692
# FIXME: insert proper C++ library support
11698
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11699
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11701
hardcode_libdir_flag_spec_CXX='-R$libdir'
11702
hardcode_direct_CXX=yes
11703
hardcode_shlibpath_var_CXX=no
11705
# Workaround some broken pre-1.5 toolchains
11706
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11709
# C++ shared libraries are fairly broken
11713
hardcode_direct_CXX=yes
11714
hardcode_shlibpath_var_CXX=no
11715
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11716
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11718
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11719
export_dynamic_flag_spec_CXX='${wl}-E'
11720
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11722
output_verbose_link_cmd='echo'
11725
case $cc_basename in
11727
# Kuck and Associates, Inc. (KAI) C++ Compiler
11729
# KCC will only create a shared library if the output file
11730
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11731
# to its proper name (with version) after linking.
11732
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'
11734
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11735
hardcode_libdir_separator_CXX=:
11737
# Archives containing C++ object files must be created using
11738
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11739
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11743
# Rational C++ 2.4.1
11744
# FIXME: insert proper C++ library support
11748
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749
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'
11751
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752
hardcode_libdir_separator_CXX=:
11754
# Commands to make compiler produce verbose output that lists
11755
# what "hidden" libraries, object files and flags are used when
11756
# linking a shared library.
11758
# There doesn't appear to be a way to prevent this compiler from
11759
# explicitly linking system object files so we need to strip them
11760
# from the output so that they don't get included in the library
11762
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'
11765
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11766
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11767
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'
11769
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11770
hardcode_libdir_separator_CXX=:
11772
# Commands to make compiler produce verbose output that lists
11773
# what "hidden" libraries, object files and flags are used when
11774
# linking a shared library.
11775
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11778
# FIXME: insert proper C++ library support
11785
case $cc_basename in
11787
# Kuck and Associates, Inc. (KAI) C++ Compiler
11789
# KCC will only create a shared library if the output file
11790
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11791
# to its proper name (with version) after linking.
11792
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'
11794
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795
hardcode_libdir_separator_CXX=:
11797
# Archives containing C++ object files must be created using
11798
# the KAI C++ compiler.
11799
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11802
# Rational C++ 2.4.1
11803
# FIXME: insert proper C++ library support
11807
allow_undefined_flag_CXX=' -expect_unresolved \*'
11808
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'
11809
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11810
echo "-hidden">> $lib.exp~
11811
$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~
11814
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11815
hardcode_libdir_separator_CXX=:
11817
# Commands to make compiler produce verbose output that lists
11818
# what "hidden" libraries, object files and flags are used when
11819
# linking a shared library.
11821
# There doesn't appear to be a way to prevent this compiler from
11822
# explicitly linking system object files so we need to strip them
11823
# from the output so that they don't get included in the library
11825
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'
11828
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830
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'
11832
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833
hardcode_libdir_separator_CXX=:
11835
# Commands to make compiler produce verbose output that lists
11836
# what "hidden" libraries, object files and flags are used when
11837
# linking a shared library.
11838
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11841
# FIXME: insert proper C++ library support
11848
# FIXME: insert proper C++ library support
11852
case $cc_basename in
11855
# FIXME: insert proper C++ library support
11860
# FIXME: insert proper C++ library support
11864
# FIXME: insert proper C++ library support
11870
case $cc_basename in
11872
# Sun C++ 4.2, 5.x and Centerline C++
11873
archive_cmds_need_lc_CXX=yes
11874
no_undefined_flag_CXX=' -zdefs'
11875
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11876
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11877
$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'
11879
hardcode_libdir_flag_spec_CXX='-R$libdir'
11880
hardcode_shlibpath_var_CXX=no
11882
solaris2.[0-5] | solaris2.[0-5].*) ;;
11884
# The C++ compiler is used as linker so we must use $wl
11885
# flag to pass the commands to the underlying system
11886
# linker. We must also pass each convience library through
11887
# to the system linker between allextract/defaultextract.
11888
# The C++ compiler will combine linker options so we
11889
# cannot just pass the convience library names through
11891
# Supported since Solaris 2.6 (maybe 2.5.1?)
11892
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11895
link_all_deplibs_CXX=yes
11897
output_verbose_link_cmd='echo'
11899
# Archives containing C++ object files must be created using
11900
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11901
# necessary to make sure instantiated templates are included
11903
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11906
# Green Hills C++ Compiler
11907
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11909
# The C++ compiler must be used to create the archive.
11910
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11913
# GNU C++ compiler with Solaris linker
11914
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11915
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11916
if $CC --version | grep -v '^2\.7' > /dev/null; then
11917
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11918
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11919
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11921
# Commands to make compiler produce verbose output that lists
11922
# what "hidden" libraries, object files and flags are used when
11923
# linking a shared library.
11924
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11926
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11928
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11929
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11930
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11932
# Commands to make compiler produce verbose output that lists
11933
# what "hidden" libraries, object files and flags are used when
11934
# linking a shared library.
11935
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11938
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11943
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11944
no_undefined_flag_CXX='${wl}-z,text'
11945
archive_cmds_need_lc_CXX=no
11946
hardcode_shlibpath_var_CXX=no
11947
runpath_var='LD_RUN_PATH'
11949
case $cc_basename in
11951
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960
sysv5* | sco3.2v5* | sco5v6*)
11961
# Note: We can NOT use -z defs as we might desire, because we do not
11962
# link with -lc, and that would cause any symbols used from libc to
11963
# always be unresolved, which means just about no library would
11964
# ever link correctly. If we're not using GNU ld we use -z text
11965
# though, which does catch some bad symbols but isn't as heavy-handed
11967
# For security reasons, it is highly recommended that you always
11968
# use absolute paths for naming shared libraries, and exclude the
11969
# DT_RUNPATH tag from executables and libraries. But doing so
11970
# requires that you compile everything twice, which is a pain.
11971
# So that behaviour is only enabled if SCOABSPATH is set to a
11972
# non-empty value in the environment. Most likely only useful for
11973
# creating official distributions of packages.
11974
# This is a hack until libtool officially supports absolute path
11975
# names for shared libraries.
11976
no_undefined_flag_CXX='${wl}-z,text'
11977
allow_undefined_flag_CXX='${wl}-z,nodefs'
11978
archive_cmds_need_lc_CXX=no
11979
hardcode_shlibpath_var_CXX=no
11980
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11981
hardcode_libdir_separator_CXX=':'
11982
link_all_deplibs_CXX=yes
11983
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11984
runpath_var='LD_RUN_PATH'
11986
case $cc_basename in
11988
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11989
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11992
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11998
case $cc_basename in
12000
# NonStop-UX NCC 3.20
12001
# FIXME: insert proper C++ library support
12005
# FIXME: insert proper C++ library support
12011
# FIXME: insert proper C++ library support
12015
# FIXME: insert proper C++ library support
12019
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12020
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12021
test "$ld_shlibs_CXX" = no && can_build_shared=no
12027
cat > conftest.$ac_ext <<EOF
12031
Foo (void) { a = 0; }
12037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038
(eval $ac_compile) 2>&5
12040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041
(exit $ac_status); }; then
12042
# Parse the compiler output and extract the necessary
12043
# objects, libraries and library flags.
12045
# Sentinel used to keep track of whether or not we are before
12046
# the conftest object file.
12047
pre_test_object_deps_done=no
12049
# The `*' in the case matches for architectures that use `case' in
12050
# $output_verbose_cmd can trigger glob expansion during the loop
12051
# eval without this substitution.
12052
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12054
for p in `eval $output_verbose_link_cmd`; do
12058
# Some compilers place space between "-{L,R}" and the path.
12059
# Remove the space.
12060
if test $p = "-L" \
12061
|| test $p = "-R"; then
12068
if test "$pre_test_object_deps_done" = no; then
12071
# Internal compiler library paths should come after those
12072
# provided the user. The postdeps already come after the
12073
# user supplied libs so there is no need to process them.
12074
if test -z "$compiler_lib_search_path_CXX"; then
12075
compiler_lib_search_path_CXX="${prev}${p}"
12077
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12080
# The "-l" case would never come before the object being
12081
# linked, so don't bother handling this case.
12084
if test -z "$postdeps_CXX"; then
12085
postdeps_CXX="${prev}${p}"
12087
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12093
# This assumes that the test object file only shows up
12094
# once in the compiler output.
12095
if test "$p" = "conftest.$objext"; then
12096
pre_test_object_deps_done=yes
12100
if test "$pre_test_object_deps_done" = no; then
12101
if test -z "$predep_objects_CXX"; then
12102
predep_objects_CXX="$p"
12104
predep_objects_CXX="$predep_objects_CXX $p"
12107
if test -z "$postdep_objects_CXX"; then
12108
postdep_objects_CXX="$p"
12110
postdep_objects_CXX="$postdep_objects_CXX $p"
12115
*) ;; # Ignore the rest.
12123
echo "libtool.m4: error: problem compiling CXX test program"
12126
$rm -f confest.$objext
12128
# PORTME: override above test on systems where it is broken
12131
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12132
# hack all around it, let's just trust "g++" to DTRT.
12133
predep_objects_CXX=
12134
postdep_objects_CXX=
12139
case $cc_basename in
12141
# Adding this requires a known-good setup of shared libraries for
12142
# Sun compiler versions before 5.6, else PIC objects from an old
12143
# archive will be linked into the output, leading to subtle bugs.
12144
postdeps_CXX='-lCstd -lCrun'
12151
case " $postdeps_CXX " in
12152
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12155
lt_prog_compiler_wl_CXX=
12156
lt_prog_compiler_pic_CXX=
12157
lt_prog_compiler_static_CXX=
12159
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12160
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12162
# C++ specific cases for pic, static, wl, etc.
12163
if test "$GXX" = yes; then
12164
lt_prog_compiler_wl_CXX='-Wl,'
12165
lt_prog_compiler_static_CXX='-static'
12169
# All AIX code is PIC.
12170
if test "$host_cpu" = ia64; then
12171
# AIX 5 now supports IA64 processor
12172
lt_prog_compiler_static_CXX='-Bstatic'
12176
# FIXME: we need at least 68020 code to build shared libraries, but
12177
# adding the `-m68020' flag to GCC prevents building anything better,
12179
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12181
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12182
# PIC is the default for these OSes.
12184
mingw* | os2* | pw32*)
12185
# This hack is so that the source file can tell whether it is being
12186
# built for inclusion in a dll (and should export symbols for example).
12187
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12189
darwin* | rhapsody*)
12190
# PIC is the default on this platform
12191
# Common symbols not allowed in MH_DYLIB files
12192
lt_prog_compiler_pic_CXX='-fno-common'
12195
# DJGPP does not support shared libraries at all
12196
lt_prog_compiler_pic_CXX=
12199
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12200
# Instead, we relocate shared libraries at runtime.
12203
if test -d /usr/nec; then
12204
lt_prog_compiler_pic_CXX=-Kconform_pic
12208
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12209
# not for PA HP-UX.
12214
lt_prog_compiler_pic_CXX='-fPIC'
12219
lt_prog_compiler_pic_CXX='-fPIC'
12225
# All AIX code is PIC.
12226
if test "$host_cpu" = ia64; then
12227
# AIX 5 now supports IA64 processor
12228
lt_prog_compiler_static_CXX='-Bstatic'
12230
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12234
case $cc_basename in
12236
# Green Hills C++ Compiler
12237
# _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"
12242
# PIC is the default on this platform
12243
# Common symbols not allowed in MH_DYLIB files
12244
case $cc_basename in
12246
lt_prog_compiler_pic_CXX='-qnocommon'
12247
lt_prog_compiler_wl_CXX='-Wl,'
12252
case $cc_basename in
12254
lt_prog_compiler_pic_CXX='-KPIC'
12257
# Green Hills C++ Compiler
12258
lt_prog_compiler_pic_CXX='-pic'
12264
freebsd* | kfreebsd*-gnu | dragonfly*)
12265
# FreeBSD uses GNU C++
12267
hpux9* | hpux10* | hpux11*)
12268
case $cc_basename in
12270
lt_prog_compiler_wl_CXX='-Wl,'
12271
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12272
if test "$host_cpu" != ia64; then
12273
lt_prog_compiler_pic_CXX='+Z'
12277
lt_prog_compiler_wl_CXX='-Wl,'
12278
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12284
lt_prog_compiler_pic_CXX='+Z'
12293
# This is c89, which is MS Visual C++ (no shared libs)
12294
# Anyone wants to do a port?
12296
irix5* | irix6* | nonstopux*)
12297
case $cc_basename in
12299
lt_prog_compiler_wl_CXX='-Wl,'
12300
lt_prog_compiler_static_CXX='-non_shared'
12301
# CC pic flag -KPIC is the default.
12308
case $cc_basename in
12311
lt_prog_compiler_wl_CXX='--backend -Wl,'
12312
lt_prog_compiler_pic_CXX='-fPIC'
12316
lt_prog_compiler_wl_CXX='-Wl,'
12317
lt_prog_compiler_pic_CXX='-KPIC'
12318
lt_prog_compiler_static_CXX='-static'
12321
# Portland Group C++ compiler.
12322
lt_prog_compiler_wl_CXX='-Wl,'
12323
lt_prog_compiler_pic_CXX='-fpic'
12324
lt_prog_compiler_static_CXX='-Bstatic'
12328
# Make sure the PIC flag is empty. It appears that all Alpha
12329
# Linux and Compaq Tru64 Unix objects are PIC.
12330
lt_prog_compiler_pic_CXX=
12331
lt_prog_compiler_static_CXX='-non_shared'
12342
case $cc_basename in
12344
lt_prog_compiler_pic_CXX='-W c,exportall'
12352
osf3* | osf4* | osf5*)
12353
case $cc_basename in
12355
lt_prog_compiler_wl_CXX='--backend -Wl,'
12358
# Rational C++ 2.4.1
12359
lt_prog_compiler_pic_CXX='-pic'
12362
# Digital/Compaq C++
12363
lt_prog_compiler_wl_CXX='-Wl,'
12364
# Make sure the PIC flag is empty. It appears that all Alpha
12365
# Linux and Compaq Tru64 Unix objects are PIC.
12366
lt_prog_compiler_pic_CXX=
12367
lt_prog_compiler_static_CXX='-non_shared'
12376
case $cc_basename in
12378
# Sun C++ 4.2, 5.x and Centerline C++
12379
lt_prog_compiler_pic_CXX='-KPIC'
12380
lt_prog_compiler_static_CXX='-Bstatic'
12381
lt_prog_compiler_wl_CXX='-Qoption ld '
12384
# Green Hills C++ Compiler
12385
lt_prog_compiler_pic_CXX='-PIC'
12392
case $cc_basename in
12395
lt_prog_compiler_pic_CXX='-pic'
12396
lt_prog_compiler_static_CXX='-Bstatic'
12400
lt_prog_compiler_pic_CXX='-pic'
12407
case $cc_basename in
12409
# NonStop-UX NCC 3.20
12410
lt_prog_compiler_pic_CXX='-KPIC'
12416
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12417
case $cc_basename in
12419
lt_prog_compiler_wl_CXX='-Wl,'
12420
lt_prog_compiler_pic_CXX='-KPIC'
12421
lt_prog_compiler_static_CXX='-Bstatic'
12428
lt_prog_compiler_can_build_shared_CXX=no
12433
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12434
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12437
# Check to make sure the PIC flag actually works.
12439
if test -n "$lt_prog_compiler_pic_CXX"; then
12441
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12442
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12443
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12444
echo $ECHO_N "(cached) $ECHO_C" >&6
12446
lt_prog_compiler_pic_works_CXX=no
12447
ac_outfile=conftest.$ac_objext
12448
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12449
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12450
# Insert the option either (1) after the last *FLAGS variable, or
12451
# (2) before a word containing "conftest.", or (3) at the end.
12452
# Note that $ac_compile itself does not contain backslashes and begins
12453
# with a dollar sign (not a hyphen), so the echo should work correctly.
12454
# The option is referenced via a variable to avoid confusing sed.
12455
lt_compile=`echo "$ac_compile" | $SED \
12456
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458
-e 's:$: $lt_compiler_flag:'`
12459
(eval echo "\"\$as_me:12459: $lt_compile\"" >&5)
12460
(eval "$lt_compile" 2>conftest.err)
12462
cat conftest.err >&5
12463
echo "$as_me:12463: \$? = $ac_status" >&5
12464
if (exit $ac_status) && test -s "$ac_outfile"; then
12465
# The compiler can only warn and ignore the option if not recognized
12466
# So say no if there are warnings other than the usual output.
12467
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12468
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470
lt_prog_compiler_pic_works_CXX=yes
12476
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12477
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12479
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12480
case $lt_prog_compiler_pic_CXX in
12482
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12485
lt_prog_compiler_pic_CXX=
12486
lt_prog_compiler_can_build_shared_CXX=no
12491
# For platforms which do not support PIC, -DPIC is meaningless:
12493
lt_prog_compiler_pic_CXX=
12496
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12501
# Check to make sure the static flag actually works.
12503
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12504
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12505
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12506
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12507
echo $ECHO_N "(cached) $ECHO_C" >&6
12509
lt_prog_compiler_static_works_CXX=no
12510
save_LDFLAGS="$LDFLAGS"
12511
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12512
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12513
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12514
# The linker can only warn and ignore the option if not recognized
12515
# So say no if there are warnings
12516
if test -s conftest.err; then
12517
# Append any errors to the config.log.
12518
cat conftest.err 1>&5
12519
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12520
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12521
if diff conftest.exp conftest.er2 >/dev/null; then
12522
lt_prog_compiler_static_works_CXX=yes
12525
lt_prog_compiler_static_works_CXX=yes
12529
LDFLAGS="$save_LDFLAGS"
12532
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12533
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12535
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12538
lt_prog_compiler_static_CXX=
12542
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12543
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12544
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12545
echo $ECHO_N "(cached) $ECHO_C" >&6
12547
lt_cv_prog_compiler_c_o_CXX=no
12548
$rm -r conftest 2>/dev/null
12552
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12554
lt_compiler_flag="-o out/conftest2.$ac_objext"
12555
# Insert the option either (1) after the last *FLAGS variable, or
12556
# (2) before a word containing "conftest.", or (3) at the end.
12557
# Note that $ac_compile itself does not contain backslashes and begins
12558
# with a dollar sign (not a hyphen), so the echo should work correctly.
12559
lt_compile=`echo "$ac_compile" | $SED \
12560
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12561
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12562
-e 's:$: $lt_compiler_flag:'`
12563
(eval echo "\"\$as_me:12563: $lt_compile\"" >&5)
12564
(eval "$lt_compile" 2>out/conftest.err)
12566
cat out/conftest.err >&5
12567
echo "$as_me:12567: \$? = $ac_status" >&5
12568
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12570
# The compiler can only warn and ignore the option if not recognized
12571
# So say no if there are warnings
12572
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12573
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12574
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12575
lt_cv_prog_compiler_c_o_CXX=yes
12580
# SGI C++ compiler will create directory out/ii_files/ for
12581
# template instantiation
12582
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12583
$rm out/* && rmdir out
12589
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12590
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12593
hard_links="nottested"
12594
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12595
# do not overwrite the value of need_locks provided by the user
12596
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12597
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12600
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12602
ln conftest.a conftest.b 2>&5 || hard_links=no
12603
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12604
echo "$as_me:$LINENO: result: $hard_links" >&5
12605
echo "${ECHO_T}$hard_links" >&6
12606
if test "$hard_links" = no; then
12607
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12608
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12615
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12616
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12618
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12621
# If we're using GNU nm, then we don't want the "-C" option.
12622
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12623
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12624
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'
12626
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'
12630
export_symbols_cmds_CXX="$ltdll_cmds"
12633
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'
12636
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12640
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12641
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12642
test "$ld_shlibs_CXX" = no && can_build_shared=no
12645
# Do we need to explicitly link libc?
12647
case "x$archive_cmds_need_lc_CXX" in
12649
# Assume -lc should be added
12650
archive_cmds_need_lc_CXX=yes
12652
if test "$enable_shared" = yes && test "$GCC" = yes; then
12653
case $archive_cmds_CXX in
12655
# FIXME: we may have to deal with multi-command sequences.
12658
# Test whether the compiler implicitly links with -lc since on some
12659
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12660
# to ld, don't add -lc before -lgcc.
12661
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12662
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12664
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667
(eval $ac_compile) 2>&5
12669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670
(exit $ac_status); } 2>conftest.err; then
12673
libobjs=conftest.$ac_objext
12675
wl=$lt_prog_compiler_wl_CXX
12676
pic_flag=$lt_prog_compiler_pic_CXX
12682
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12683
allow_undefined_flag_CXX=
12684
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12685
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688
(exit $ac_status); }
12690
archive_cmds_need_lc_CXX=no
12692
archive_cmds_need_lc_CXX=yes
12694
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12696
cat conftest.err 1>&5
12699
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12700
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12707
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12708
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12709
library_names_spec=
12710
libname_spec='lib$name'
12714
postuninstall_cmds=
12718
shlibpath_overrides_runpath=unknown
12720
dynamic_linker="$host_os ld.so"
12721
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12722
if test "$GCC" = yes; then
12723
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12725
# if the path contains ";" then we assume it to be the separator
12726
# otherwise default to the standard path separator (i.e. ":") - it is
12727
# assumed that no part of a normal pathname contains ";" but that should
12728
# okay in the real world where ";" in dirpaths is itself problematic.
12729
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12731
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12734
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12736
need_lib_prefix=unknown
12737
hardcode_into_libs=no
12739
# when you set need_version to no, make sure it does not cause -set_version
12740
# flags to be left without arguments
12741
need_version=unknown
12746
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12747
shlibpath_var=LIBPATH
12749
# AIX 3 has no versioning support, so we append a major version to the name.
12750
soname_spec='${libname}${release}${shared_ext}$major'
12757
hardcode_into_libs=yes
12758
if test "$host_cpu" = ia64; then
12759
# AIX 5 supports IA64
12760
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12761
shlibpath_var=LD_LIBRARY_PATH
12763
# With GCC up to 2.95.x, collect2 would create an import file
12764
# for dependence libraries. The import file would start with
12765
# the line `#! .'. This would cause the generated library to
12766
# depend on `.', always an invalid library. This was fixed in
12767
# development snapshots of GCC prior to 3.0.
12769
aix4 | aix4.[01] | aix4.[01].*)
12770
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12772
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12775
can_build_shared=no
12779
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12780
# soname into executable. Probably we can add versioning support to
12781
# collect2, so additional links can be useful in future.
12782
if test "$aix_use_runtimelinking" = yes; then
12783
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12784
# instead of lib<name>.a to let people know that these are not
12785
# typical AIX shared libraries.
12786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788
# We preserve .a as extension for shared libraries through AIX4.2
12789
# and later when we are not doing run time linking.
12790
library_names_spec='${libname}${release}.a $libname.a'
12791
soname_spec='${libname}${release}${shared_ext}$major'
12793
shlibpath_var=LIBPATH
12798
library_names_spec='$libname.ixlibrary $libname.a'
12799
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12800
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'
12804
library_names_spec='${libname}${shared_ext}'
12805
dynamic_linker="$host_os ld.so"
12806
shlibpath_var=LIBRARY_PATH
12812
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12813
soname_spec='${libname}${release}${shared_ext}$major'
12814
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12815
shlibpath_var=LD_LIBRARY_PATH
12816
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12817
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12818
# the default ld.so.conf also contains /usr/contrib/lib and
12819
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12820
# libtool to hard-code these into programs
12823
cygwin* | mingw* | pw32*)
12824
version_type=windows
12829
case $GCC,$host_os in
12830
yes,cygwin* | yes,mingw* | yes,pw32*)
12831
library_names_spec='$libname.dll.a'
12832
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12833
postinstall_cmds='base_file=`basename \${file}`~
12834
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12835
dldir=$destdir/`dirname \$dlpath`~
12836
test -d \$dldir || mkdir -p \$dldir~
12837
$install_prog $dir/$dlname \$dldir/$dlname~
12838
chmod a+x \$dldir/$dlname'
12839
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12840
dlpath=$dir/\$dldll~
12842
shlibpath_overrides_runpath=yes
12846
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12847
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12848
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12851
# MinGW DLLs use traditional 'lib' prefix
12852
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12854
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12855
# It is most probably a Windows format PATH printed by
12856
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12857
# path with ; separators, and with drive letters. We can handle the
12858
# drive letters (cygwin fileutils understands them), so leave them,
12859
# especially as we might pass files found there to a mingw objdump,
12860
# which wouldn't understand a cygwinified path. Ahh.
12861
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12863
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12867
# pw32 DLLs use 'pw' prefix rather than 'lib'
12868
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12874
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12877
dynamic_linker='Win32 ld.exe'
12878
# FIXME: first we should search . and the directory the executable is in
12882
darwin* | rhapsody*)
12883
dynamic_linker="$host_os dyld"
12884
version_type=darwin
12887
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12888
soname_spec='${libname}${release}${major}$shared_ext'
12889
shlibpath_overrides_runpath=yes
12890
shlibpath_var=DYLD_LIBRARY_PATH
12891
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12892
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12893
if test "$GCC" = yes; then
12894
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12896
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12898
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12906
soname_spec='${libname}${release}${shared_ext}$major'
12907
shlibpath_var=LD_LIBRARY_PATH
12918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12919
soname_spec='${libname}${release}${shared_ext}$major'
12920
shlibpath_var=LD_LIBRARY_PATH
12921
shlibpath_overrides_runpath=no
12922
hardcode_into_libs=yes
12923
dynamic_linker='GNU ld.so'
12926
freebsd* | dragonfly*)
12927
# DragonFly does not have aout. When/if they implement a new
12928
# versioning mechanism, adjust this.
12929
if test -x /usr/bin/objformat; then
12930
objformat=`/usr/bin/objformat`
12933
freebsd[123]*) objformat=aout ;;
12934
*) objformat=elf ;;
12937
version_type=freebsd-$objformat
12938
case $version_type in
12940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12945
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12949
shlibpath_var=LD_LIBRARY_PATH
12952
shlibpath_overrides_runpath=yes
12954
freebsd3.[01]* | freebsdelf3.[01]*)
12955
shlibpath_overrides_runpath=yes
12956
hardcode_into_libs=yes
12958
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12959
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12960
shlibpath_overrides_runpath=no
12961
hardcode_into_libs=yes
12963
freebsd*) # from 4.6 on
12964
shlibpath_overrides_runpath=yes
12965
hardcode_into_libs=yes
12974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12975
soname_spec='${libname}${release}${shared_ext}$major'
12976
shlibpath_var=LD_LIBRARY_PATH
12977
hardcode_into_libs=yes
12980
hpux9* | hpux10* | hpux11*)
12981
# Give a soname corresponding to the major version so that dld.sl refuses to
12982
# link against other versions.
12989
hardcode_into_libs=yes
12990
dynamic_linker="$host_os dld.so"
12991
shlibpath_var=LD_LIBRARY_PATH
12992
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994
soname_spec='${libname}${release}${shared_ext}$major'
12995
if test "X$HPUX_IA64_MODE" = X32; then
12996
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12998
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13000
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13004
hardcode_into_libs=yes
13005
dynamic_linker="$host_os dld.sl"
13006
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13007
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009
soname_spec='${libname}${release}${shared_ext}$major'
13010
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13011
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13015
dynamic_linker="$host_os dld.sl"
13016
shlibpath_var=SHLIB_PATH
13017
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13019
soname_spec='${libname}${release}${shared_ext}$major'
13022
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13023
postinstall_cmds='chmod 555 $lib'
13030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13031
soname_spec='${libname}${release}${shared_ext}$major'
13032
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13033
shlibpath_var=LD_LIBRARY_PATH
13034
shlibpath_overrides_runpath=no
13035
hardcode_into_libs=yes
13038
irix5* | irix6* | nonstopux*)
13040
nonstopux*) version_type=nonstopux ;;
13042
if test "$lt_cv_prog_gnu_ld" = yes; then
13050
soname_spec='${libname}${release}${shared_ext}$major'
13051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13053
irix5* | nonstopux*)
13054
libsuff= shlibsuff=
13057
case $LD in # libtool.m4 will add one of these switches to LD
13058
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13059
libsuff= shlibsuff= libmagic=32-bit;;
13060
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13061
libsuff=32 shlibsuff=N32 libmagic=N32;;
13062
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13063
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13064
*) libsuff= shlibsuff= libmagic=never-match;;
13068
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13069
shlibpath_overrides_runpath=no
13070
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13071
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13072
hardcode_into_libs=yes
13075
# No shared lib support for Linux oldld, aout, or coff.
13076
linux*oldld* | linux*aout* | linux*coff*)
13080
# This must be Linux ELF.
13085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13086
soname_spec='${libname}${release}${shared_ext}$major'
13087
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13088
shlibpath_var=LD_LIBRARY_PATH
13089
shlibpath_overrides_runpath=no
13090
# This implies no fast_install, which is unacceptable.
13091
# Some rework will be needed to allow for fast_install
13092
# before this can be enabled.
13093
hardcode_into_libs=yes
13095
# find out which ABI we are using
13097
case "$host_cpu" in
13098
x86_64*|s390x*|powerpc64*)
13099
echo '#line 13099 "configure"' > conftest.$ac_ext
13100
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101
(eval $ac_compile) 2>&5
13103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104
(exit $ac_status); }; then
13105
case `/usr/bin/file conftest.$ac_objext` in
13108
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13116
# Append ld.so.conf contents to the search path
13117
if test -f /etc/ld.so.conf; then
13118
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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13119
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13122
# We used to test for /lib/ld.so.1 and disable shared libraries on
13123
# powerpc, because MkLinux only supported shared libraries with the
13124
# GNU dynamic linker. Since this was broken with cross compilers,
13125
# most powerpc-linux boxes support dynamic linking these days and
13126
# people can always --disable-shared, the test was removed, and we
13127
# assume the GNU/Linux dynamic linker is in use.
13128
dynamic_linker='GNU/Linux ld.so'
13135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13136
soname_spec='${libname}${release}${shared_ext}$major'
13137
shlibpath_var=LD_LIBRARY_PATH
13138
shlibpath_overrides_runpath=no
13139
hardcode_into_libs=yes
13140
dynamic_linker='GNU ld.so'
13147
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13149
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13150
dynamic_linker='NetBSD (a.out) ld.so'
13152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13153
soname_spec='${libname}${release}${shared_ext}$major'
13154
dynamic_linker='NetBSD ld.elf_so'
13156
shlibpath_var=LD_LIBRARY_PATH
13157
shlibpath_overrides_runpath=yes
13158
hardcode_into_libs=yes
13163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13164
shlibpath_var=LD_LIBRARY_PATH
13165
shlibpath_overrides_runpath=yes
13172
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13173
soname_spec='${libname}${release}${shared_ext}$major'
13174
shlibpath_var=LD_LIBRARY_PATH
13175
shlibpath_overrides_runpath=yes
13180
sys_lib_dlsearch_path_spec="/usr/lib"
13182
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13184
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13185
*) need_version=no ;;
13187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13188
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13189
shlibpath_var=LD_LIBRARY_PATH
13190
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13192
openbsd2.[89] | openbsd2.[89].*)
13193
shlibpath_overrides_runpath=no
13196
shlibpath_overrides_runpath=yes
13200
shlibpath_overrides_runpath=yes
13205
libname_spec='$name'
13208
library_names_spec='$libname${shared_ext} $libname.a'
13209
dynamic_linker='OS/2 ld.exe'
13210
shlibpath_var=LIBPATH
13213
osf3* | osf4* | osf5*)
13217
soname_spec='${libname}${release}${shared_ext}$major'
13218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219
shlibpath_var=LD_LIBRARY_PATH
13220
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13221
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229
soname_spec='${libname}${release}${shared_ext}$major'
13230
shlibpath_var=LD_LIBRARY_PATH
13231
shlibpath_overrides_runpath=yes
13232
hardcode_into_libs=yes
13233
# ldd complains unless libraries are executable
13234
postinstall_cmds='chmod +x $lib'
13239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13240
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13241
shlibpath_var=LD_LIBRARY_PATH
13242
shlibpath_overrides_runpath=yes
13243
if test "$with_gnu_ld" = yes; then
13251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252
soname_spec='${libname}${release}${shared_ext}$major'
13253
shlibpath_var=LD_LIBRARY_PATH
13254
case $host_vendor in
13256
shlibpath_overrides_runpath=no
13258
export_dynamic_flag_spec='${wl}-Blargedynsym'
13259
runpath_var=LD_RUN_PATH
13267
shlibpath_overrides_runpath=no
13268
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13274
if test -d /usr/nec ;then
13276
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13277
soname_spec='$libname${shared_ext}.$major'
13278
shlibpath_var=LD_LIBRARY_PATH
13282
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13283
version_type=freebsd-elf
13286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13287
soname_spec='${libname}${release}${shared_ext}$major'
13288
shlibpath_var=LD_LIBRARY_PATH
13289
hardcode_into_libs=yes
13290
if test "$with_gnu_ld" = yes; then
13291
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13292
shlibpath_overrides_runpath=no
13294
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13295
shlibpath_overrides_runpath=yes
13298
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13302
sys_lib_dlsearch_path_spec='/usr/lib'
13307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308
soname_spec='${libname}${release}${shared_ext}$major'
13309
shlibpath_var=LD_LIBRARY_PATH
13316
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13317
echo "${ECHO_T}$dynamic_linker" >&6
13318
test "$dynamic_linker" = no && can_build_shared=no
13320
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13321
if test "$GCC" = yes; then
13322
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13325
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13326
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13327
hardcode_action_CXX=
13328
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13329
test -n "$runpath_var_CXX" || \
13330
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13332
# We can hardcode non-existant directories.
13333
if test "$hardcode_direct_CXX" != no &&
13334
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13335
# have to relink, otherwise we might link with an installed library
13336
# when we should be linking with a yet-to-be-installed one
13337
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13338
test "$hardcode_minus_L_CXX" != no; then
13339
# Linking always hardcodes the temporary library directory.
13340
hardcode_action_CXX=relink
13342
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13343
hardcode_action_CXX=immediate
13346
# We cannot hardcode anything, or else we can only hardcode existing
13348
hardcode_action_CXX=unsupported
13350
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13351
echo "${ECHO_T}$hardcode_action_CXX" >&6
13353
if test "$hardcode_action_CXX" = relink; then
13354
# Fast installation is not supported
13355
enable_fast_install=no
13356
elif test "$shlibpath_overrides_runpath" = yes ||
13357
test "$enable_shared" = no; then
13358
# Fast installation is not necessary
13359
enable_fast_install=needless
13363
# The else clause should only fire when bootstrapping the
13364
# libtool distribution, otherwise you forgot to ship ltmain.sh
13365
# with your package, and you will get complaints that there are
13366
# no rules to generate ltmain.sh.
13367
if test -f "$ltmain"; then
13368
# See if we are running on zsh, and set the options which allow our commands through
13369
# without removal of \ escapes.
13370
if test -n "${ZSH_VERSION+set}" ; then
13371
setopt NO_GLOB_SUBST
13373
# Now quote all the things that may contain metacharacters while being
13374
# careful not to overquote the AC_SUBSTed values. We take copies of the
13375
# variables and quote the copies for generation of the libtool script.
13376
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13378
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13379
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13380
deplibs_check_method reload_flag reload_cmds need_locks \
13381
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13382
lt_cv_sys_global_symbol_to_c_name_address \
13383
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13384
old_postinstall_cmds old_postuninstall_cmds \
13388
lt_prog_compiler_wl_CXX \
13389
lt_prog_compiler_pic_CXX \
13390
lt_prog_compiler_static_CXX \
13391
lt_prog_compiler_no_builtin_flag_CXX \
13392
export_dynamic_flag_spec_CXX \
13393
thread_safe_flag_spec_CXX \
13394
whole_archive_flag_spec_CXX \
13395
enable_shared_with_static_runtimes_CXX \
13396
old_archive_cmds_CXX \
13397
old_archive_from_new_cmds_CXX \
13398
predep_objects_CXX \
13399
postdep_objects_CXX \
13402
compiler_lib_search_path_CXX \
13404
archive_expsym_cmds_CXX \
13405
postinstall_cmds_CXX \
13406
postuninstall_cmds_CXX \
13407
old_archive_from_expsyms_cmds_CXX \
13408
allow_undefined_flag_CXX \
13409
no_undefined_flag_CXX \
13410
export_symbols_cmds_CXX \
13411
hardcode_libdir_flag_spec_CXX \
13412
hardcode_libdir_flag_spec_ld_CXX \
13413
hardcode_libdir_separator_CXX \
13414
hardcode_automatic_CXX \
13416
module_expsym_cmds_CXX \
13417
lt_cv_prog_compiler_c_o_CXX \
13418
exclude_expsyms_CXX \
13419
include_expsyms_CXX; do
13422
old_archive_cmds_CXX | \
13423
old_archive_from_new_cmds_CXX | \
13424
archive_cmds_CXX | \
13425
archive_expsym_cmds_CXX | \
13426
module_cmds_CXX | \
13427
module_expsym_cmds_CXX | \
13428
old_archive_from_expsyms_cmds_CXX | \
13429
export_symbols_cmds_CXX | \
13430
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13431
postinstall_cmds | postuninstall_cmds | \
13432
old_postinstall_cmds | old_postuninstall_cmds | \
13433
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13434
# Double-quote double-evaled strings.
13435
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13438
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13444
*'\$0 --fallback-echo"')
13445
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13451
cat <<__EOF__ >> "$cfgfile"
13452
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13454
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13456
# Shell to use when invoking shell scripts.
13459
# Whether or not to build shared libraries.
13460
build_libtool_libs=$enable_shared
13462
# Whether or not to build static libraries.
13463
build_old_libs=$enable_static
13465
# Whether or not to add -lc for building shared libraries.
13466
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13468
# Whether or not to disallow shared libs when runtime libs are static
13469
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13471
# Whether or not to optimize for fast installation.
13472
fast_install=$enable_fast_install
13475
host_alias=$host_alias
13479
# The build system.
13480
build_alias=$build_alias
13484
# An echo program that does not interpret backslashes.
13489
AR_FLAGS=$lt_AR_FLAGS
13494
# LTCC compiler flags.
13495
LTCFLAGS=$lt_LTCFLAGS
13497
# A language-specific compiler.
13498
CC=$lt_compiler_CXX
13500
# Is the compiler the GNU C compiler?
13503
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13504
gcc_ver=\`gcc -dumpversion\`
13509
# The linker used to build libraries.
13512
# Whether we need hard or soft links.
13515
# A BSD-compatible nm program.
13518
# A symbol stripping program
13521
# Used to examine libraries when file_magic_cmd begins "file"
13522
MAGIC_CMD=$MAGIC_CMD
13524
# Used on cygwin: DLL creation program.
13527
# Used on cygwin: object dumper.
13530
# Used on cygwin: assembler.
13533
# The name of the directory that contains temporary libtool files.
13536
# How to create reloadable object files.
13537
reload_flag=$lt_reload_flag
13538
reload_cmds=$lt_reload_cmds
13540
# How to pass a linker flag through the compiler.
13541
wl=$lt_lt_prog_compiler_wl_CXX
13543
# Object file suffix (normally "o").
13544
objext="$ac_objext"
13546
# Old archive suffix (normally "a").
13549
# Shared library suffix (normally ".so").
13550
shrext_cmds='$shrext_cmds'
13552
# Executable file suffix (normally "").
13555
# Additional compiler flags for building library objects.
13556
pic_flag=$lt_lt_prog_compiler_pic_CXX
13559
# What is the maximum length of a command?
13560
max_cmd_len=$lt_cv_sys_max_cmd_len
13562
# Does compiler simultaneously support -c and -o options?
13563
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13565
# Must we lock files when doing compilation?
13566
need_locks=$lt_need_locks
13568
# Do we need the lib prefix for modules?
13569
need_lib_prefix=$need_lib_prefix
13571
# Do we need a version for libraries?
13572
need_version=$need_version
13574
# Whether dlopen is supported.
13575
dlopen_support=$enable_dlopen
13577
# Whether dlopen of programs is supported.
13578
dlopen_self=$enable_dlopen_self
13580
# Whether dlopen of statically linked programs is supported.
13581
dlopen_self_static=$enable_dlopen_self_static
13583
# Compiler flag to prevent dynamic linking.
13584
link_static_flag=$lt_lt_prog_compiler_static_CXX
13586
# Compiler flag to turn off builtin functions.
13587
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13589
# Compiler flag to allow reflexive dlopens.
13590
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13592
# Compiler flag to generate shared objects directly from archives.
13593
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13595
# Compiler flag to generate thread-safe objects.
13596
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13598
# Library versioning type.
13599
version_type=$version_type
13601
# Format of library name prefix.
13602
libname_spec=$lt_libname_spec
13604
# List of archive names. First name is the real one, the rest are links.
13605
# The last name is the one that the linker finds with -lNAME.
13606
library_names_spec=$lt_library_names_spec
13608
# The coded name of the library, if different from the real name.
13609
soname_spec=$lt_soname_spec
13611
# Commands used to build and install an old-style archive.
13613
old_archive_cmds=$lt_old_archive_cmds_CXX
13614
old_postinstall_cmds=$lt_old_postinstall_cmds
13615
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13617
# Create an old-style archive from a shared archive.
13618
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13620
# Create a temporary old-style archive to link instead of a shared archive.
13621
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13623
# Commands used to build and install a shared archive.
13624
archive_cmds=$lt_archive_cmds_CXX
13625
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13626
postinstall_cmds=$lt_postinstall_cmds
13627
postuninstall_cmds=$lt_postuninstall_cmds
13629
# Commands used to build a loadable module (assumed same as above if empty)
13630
module_cmds=$lt_module_cmds_CXX
13631
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13633
# Commands to strip libraries.
13634
old_striplib=$lt_old_striplib
13635
striplib=$lt_striplib
13637
# Dependencies to place before the objects being linked to create a
13639
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13641
# Dependencies to place after the objects being linked to create a
13643
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13645
# Dependencies to place before the objects being linked to create a
13647
predeps=$lt_predeps_CXX
13649
# Dependencies to place after the objects being linked to create a
13651
postdeps=$lt_postdeps_CXX
13653
# The library search path used internally by the compiler when linking
13654
# a shared library.
13655
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13657
# Method to check whether dependent libraries are shared objects.
13658
deplibs_check_method=$lt_deplibs_check_method
13660
# Command to use when deplibs_check_method == file_magic.
13661
file_magic_cmd=$lt_file_magic_cmd
13663
# Flag that allows shared libraries with undefined symbols to be built.
13664
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13666
# Flag that forces no undefined symbols.
13667
no_undefined_flag=$lt_no_undefined_flag_CXX
13669
# Commands used to finish a libtool library installation in a directory.
13670
finish_cmds=$lt_finish_cmds
13672
# Same as above, but a single script fragment to be evaled but not shown.
13673
finish_eval=$lt_finish_eval
13675
# Take the output of nm and produce a listing of raw symbols and C names.
13676
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13678
# Transform the output of nm in a proper C declaration
13679
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13681
# Transform the output of nm in a C name address pair
13682
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13684
# This is the shared library runtime path variable.
13685
runpath_var=$runpath_var
13687
# This is the shared library path variable.
13688
shlibpath_var=$shlibpath_var
13690
# Is shlibpath searched before the hard-coded library search path?
13691
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13693
# How to hardcode a shared library path into an executable.
13694
hardcode_action=$hardcode_action_CXX
13696
# Whether we should hardcode library paths into libraries.
13697
hardcode_into_libs=$hardcode_into_libs
13699
# Flag to hardcode \$libdir into a binary during linking.
13700
# This must work even if \$libdir does not exist.
13701
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13703
# If ld is used when linking, flag to hardcode \$libdir into
13704
# a binary during linking. This must work even if \$libdir does
13706
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13708
# Whether we need a single -rpath flag with a separated argument.
13709
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13711
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13712
# resulting binary.
13713
hardcode_direct=$hardcode_direct_CXX
13715
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13716
# resulting binary.
13717
hardcode_minus_L=$hardcode_minus_L_CXX
13719
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13720
# the resulting binary.
13721
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13723
# Set to yes if building a shared library automatically hardcodes DIR into the library
13724
# and all subsequent libraries and executables linked against it.
13725
hardcode_automatic=$hardcode_automatic_CXX
13727
# Variables whose values should be saved in libtool wrapper scripts and
13728
# restored at relink time.
13729
variables_saved_for_relink="$variables_saved_for_relink"
13731
# Whether libtool must link a program against all its dependency libraries.
13732
link_all_deplibs=$link_all_deplibs_CXX
13734
# Compile-time system search path for libraries
13735
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13737
# Run-time system search path for libraries
13738
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13740
# Fix the shell variable \$srcfile for the compiler.
13741
fix_srcfile_path="$fix_srcfile_path_CXX"
13743
# Set to yes if exported symbols are required.
13744
always_export_symbols=$always_export_symbols_CXX
13746
# The commands to list exported symbols.
13747
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13749
# The commands to extract the exported symbol list from a shared archive.
13750
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13752
# Symbols that should not be listed in the preloaded symbols.
13753
exclude_expsyms=$lt_exclude_expsyms_CXX
13755
# Symbols that must always be exported.
13756
include_expsyms=$lt_include_expsyms_CXX
13758
# ### END LIBTOOL TAG CONFIG: $tagname
13764
# If there is no Makefile yet, we rely on a make rule to execute
13765
# `config.status --recheck' to rerun these tests and create the
13766
# libtool script then.
13767
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13768
if test -f "$ltmain_in"; then
13769
test -f Makefile && make "$ltmain"
13775
ac_cpp='$CPP $CPPFLAGS'
13776
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13784
with_gnu_ldcxx=$with_gnu_ld
13785
with_gnu_ld=$lt_save_with_gnu_ld
13786
lt_cv_path_LDCXX=$lt_cv_path_LD
13787
lt_cv_path_LD=$lt_save_path_LD
13788
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13789
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13797
if test -n "$F77" && test "X$F77" != "Xno"; then
13800
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13801
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13802
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13805
archive_cmds_need_lc_F77=no
13806
allow_undefined_flag_F77=
13807
always_export_symbols_F77=no
13808
archive_expsym_cmds_F77=
13809
export_dynamic_flag_spec_F77=
13810
hardcode_direct_F77=no
13811
hardcode_libdir_flag_spec_F77=
13812
hardcode_libdir_flag_spec_ld_F77=
13813
hardcode_libdir_separator_F77=
13814
hardcode_minus_L_F77=no
13815
hardcode_automatic_F77=no
13817
module_expsym_cmds_F77=
13818
link_all_deplibs_F77=unknown
13819
old_archive_cmds_F77=$old_archive_cmds
13820
no_undefined_flag_F77=
13821
whole_archive_flag_spec_F77=
13822
enable_shared_with_static_runtimes_F77=no
13824
# Source file extension for f77 test sources.
13827
# Object file extension for compiled f77 test sources.
13831
# Code to be used in simple compile tests
13832
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13834
# Code to be used in simple link tests
13835
lt_simple_link_test_code=" program t\n end\n"
13837
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13839
# If no C compiler was specified, use CC.
13842
# If no C compiler flags were specified, use CFLAGS.
13843
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13845
# Allow CC to be a program name with arguments.
13849
# save warnings/boilerplate of simple test code
13850
ac_outfile=conftest.$ac_objext
13851
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13852
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13853
_lt_compiler_boilerplate=`cat conftest.err`
13856
ac_outfile=conftest.$ac_objext
13857
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13858
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13859
_lt_linker_boilerplate=`cat conftest.err`
13863
# Allow CC to be a program name with arguments.
13868
for cc_temp in $compiler""; do
13870
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13871
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13876
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13879
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13880
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13881
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13882
echo "${ECHO_T}$can_build_shared" >&6
13884
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13885
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13886
test "$can_build_shared" = "no" && enable_shared=no
13888
# On AIX, shared libraries and static libraries use the same namespace, and
13889
# are all built from PIC.
13892
test "$enable_shared" = yes && enable_static=no
13893
if test -n "$RANLIB"; then
13894
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13895
postinstall_cmds='$RANLIB $lib'
13899
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13900
test "$enable_shared" = yes && enable_static=no
13904
echo "$as_me:$LINENO: result: $enable_shared" >&5
13905
echo "${ECHO_T}$enable_shared" >&6
13907
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13908
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13909
# Make sure either enable_shared or enable_static is yes.
13910
test "$enable_shared" = yes || enable_static=yes
13911
echo "$as_me:$LINENO: result: $enable_static" >&5
13912
echo "${ECHO_T}$enable_static" >&6
13917
lt_prog_compiler_wl_F77=
13918
lt_prog_compiler_pic_F77=
13919
lt_prog_compiler_static_F77=
13921
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13922
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13924
if test "$GCC" = yes; then
13925
lt_prog_compiler_wl_F77='-Wl,'
13926
lt_prog_compiler_static_F77='-static'
13930
# All AIX code is PIC.
13931
if test "$host_cpu" = ia64; then
13932
# AIX 5 now supports IA64 processor
13933
lt_prog_compiler_static_F77='-Bstatic'
13938
# FIXME: we need at least 68020 code to build shared libraries, but
13939
# adding the `-m68020' flag to GCC prevents building anything better,
13941
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13944
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13945
# PIC is the default for these OSes.
13948
mingw* | pw32* | os2*)
13949
# This hack is so that the source file can tell whether it is being
13950
# built for inclusion in a dll (and should export symbols for example).
13951
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13954
darwin* | rhapsody*)
13955
# PIC is the default on this platform
13956
# Common symbols not allowed in MH_DYLIB files
13957
lt_prog_compiler_pic_F77='-fno-common'
13961
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13962
# Instead, we relocate shared libraries at runtime.
13966
# Just because we use GCC doesn't mean we suddenly get shared libraries
13967
# on systems that don't support them.
13968
lt_prog_compiler_can_build_shared_F77=no
13973
if test -d /usr/nec; then
13974
lt_prog_compiler_pic_F77=-Kconform_pic
13979
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13980
# not for PA HP-UX.
13986
lt_prog_compiler_pic_F77='-fPIC'
13992
lt_prog_compiler_pic_F77='-fPIC'
13996
# PORTME Check for flag to pass linker flags through the system compiler.
13999
lt_prog_compiler_wl_F77='-Wl,'
14000
if test "$host_cpu" = ia64; then
14001
# AIX 5 now supports IA64 processor
14002
lt_prog_compiler_static_F77='-Bstatic'
14004
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14008
# PIC is the default on this platform
14009
# Common symbols not allowed in MH_DYLIB files
14010
case $cc_basename in
14012
lt_prog_compiler_pic_F77='-qnocommon'
14013
lt_prog_compiler_wl_F77='-Wl,'
14018
mingw* | pw32* | os2*)
14019
# This hack is so that the source file can tell whether it is being
14020
# built for inclusion in a dll (and should export symbols for example).
14021
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14024
hpux9* | hpux10* | hpux11*)
14025
lt_prog_compiler_wl_F77='-Wl,'
14026
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14027
# not for PA HP-UX.
14033
lt_prog_compiler_pic_F77='+Z'
14036
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14037
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14040
irix5* | irix6* | nonstopux*)
14041
lt_prog_compiler_wl_F77='-Wl,'
14042
# PIC (with -KPIC) is the default.
14043
lt_prog_compiler_static_F77='-non_shared'
14047
lt_prog_compiler_pic_F77='-KPIC'
14048
lt_prog_compiler_static_F77='-Bstatic'
14052
case $cc_basename in
14054
lt_prog_compiler_wl_F77='-Wl,'
14055
lt_prog_compiler_pic_F77='-KPIC'
14056
lt_prog_compiler_static_F77='-static'
14058
pgcc* | pgf77* | pgf90* | pgf95*)
14059
# Portland Group compilers (*not* the Pentium gcc compiler,
14060
# which looks to be a dead project)
14061
lt_prog_compiler_wl_F77='-Wl,'
14062
lt_prog_compiler_pic_F77='-fpic'
14063
lt_prog_compiler_static_F77='-Bstatic'
14066
lt_prog_compiler_wl_F77='-Wl,'
14067
# All Alpha code is PIC.
14068
lt_prog_compiler_static_F77='-non_shared'
14073
osf3* | osf4* | osf5*)
14074
lt_prog_compiler_wl_F77='-Wl,'
14075
# All OSF/1 code is PIC.
14076
lt_prog_compiler_static_F77='-non_shared'
14080
lt_prog_compiler_pic_F77='-KPIC'
14081
lt_prog_compiler_static_F77='-Bstatic'
14082
case $cc_basename in
14083
f77* | f90* | f95*)
14084
lt_prog_compiler_wl_F77='-Qoption ld ';;
14086
lt_prog_compiler_wl_F77='-Wl,';;
14091
lt_prog_compiler_wl_F77='-Qoption ld '
14092
lt_prog_compiler_pic_F77='-PIC'
14093
lt_prog_compiler_static_F77='-Bstatic'
14096
sysv4 | sysv4.2uw2* | sysv4.3*)
14097
lt_prog_compiler_wl_F77='-Wl,'
14098
lt_prog_compiler_pic_F77='-KPIC'
14099
lt_prog_compiler_static_F77='-Bstatic'
14103
if test -d /usr/nec ;then
14104
lt_prog_compiler_pic_F77='-Kconform_pic'
14105
lt_prog_compiler_static_F77='-Bstatic'
14109
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14110
lt_prog_compiler_wl_F77='-Wl,'
14111
lt_prog_compiler_pic_F77='-KPIC'
14112
lt_prog_compiler_static_F77='-Bstatic'
14116
lt_prog_compiler_wl_F77='-Wl,'
14117
lt_prog_compiler_can_build_shared_F77=no
14121
lt_prog_compiler_pic_F77='-pic'
14122
lt_prog_compiler_static_F77='-Bstatic'
14126
lt_prog_compiler_can_build_shared_F77=no
14131
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14132
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14135
# Check to make sure the PIC flag actually works.
14137
if test -n "$lt_prog_compiler_pic_F77"; then
14139
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14140
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14141
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14142
echo $ECHO_N "(cached) $ECHO_C" >&6
14144
lt_prog_compiler_pic_works_F77=no
14145
ac_outfile=conftest.$ac_objext
14146
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14147
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14148
# Insert the option either (1) after the last *FLAGS variable, or
14149
# (2) before a word containing "conftest.", or (3) at the end.
14150
# Note that $ac_compile itself does not contain backslashes and begins
14151
# with a dollar sign (not a hyphen), so the echo should work correctly.
14152
# The option is referenced via a variable to avoid confusing sed.
14153
lt_compile=`echo "$ac_compile" | $SED \
14154
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14155
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14156
-e 's:$: $lt_compiler_flag:'`
14157
(eval echo "\"\$as_me:14157: $lt_compile\"" >&5)
14158
(eval "$lt_compile" 2>conftest.err)
14160
cat conftest.err >&5
14161
echo "$as_me:14161: \$? = $ac_status" >&5
14162
if (exit $ac_status) && test -s "$ac_outfile"; then
14163
# The compiler can only warn and ignore the option if not recognized
14164
# So say no if there are warnings other than the usual output.
14165
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14166
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14167
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14168
lt_prog_compiler_pic_works_F77=yes
14174
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14175
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14177
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14178
case $lt_prog_compiler_pic_F77 in
14180
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14183
lt_prog_compiler_pic_F77=
14184
lt_prog_compiler_can_build_shared_F77=no
14189
# For platforms which do not support PIC, -DPIC is meaningless:
14191
lt_prog_compiler_pic_F77=
14194
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14199
# Check to make sure the static flag actually works.
14201
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14202
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14203
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14204
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14205
echo $ECHO_N "(cached) $ECHO_C" >&6
14207
lt_prog_compiler_static_works_F77=no
14208
save_LDFLAGS="$LDFLAGS"
14209
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14210
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14211
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14212
# The linker can only warn and ignore the option if not recognized
14213
# So say no if there are warnings
14214
if test -s conftest.err; then
14215
# Append any errors to the config.log.
14216
cat conftest.err 1>&5
14217
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14218
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14219
if diff conftest.exp conftest.er2 >/dev/null; then
14220
lt_prog_compiler_static_works_F77=yes
14223
lt_prog_compiler_static_works_F77=yes
14227
LDFLAGS="$save_LDFLAGS"
14230
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14231
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14233
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14236
lt_prog_compiler_static_F77=
14240
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14241
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14242
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14243
echo $ECHO_N "(cached) $ECHO_C" >&6
14245
lt_cv_prog_compiler_c_o_F77=no
14246
$rm -r conftest 2>/dev/null
14250
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14252
lt_compiler_flag="-o out/conftest2.$ac_objext"
14253
# Insert the option either (1) after the last *FLAGS variable, or
14254
# (2) before a word containing "conftest.", or (3) at the end.
14255
# Note that $ac_compile itself does not contain backslashes and begins
14256
# with a dollar sign (not a hyphen), so the echo should work correctly.
14257
lt_compile=`echo "$ac_compile" | $SED \
14258
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14259
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14260
-e 's:$: $lt_compiler_flag:'`
14261
(eval echo "\"\$as_me:14261: $lt_compile\"" >&5)
14262
(eval "$lt_compile" 2>out/conftest.err)
14264
cat out/conftest.err >&5
14265
echo "$as_me:14265: \$? = $ac_status" >&5
14266
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14268
# The compiler can only warn and ignore the option if not recognized
14269
# So say no if there are warnings
14270
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14271
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14272
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14273
lt_cv_prog_compiler_c_o_F77=yes
14278
# SGI C++ compiler will create directory out/ii_files/ for
14279
# template instantiation
14280
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14281
$rm out/* && rmdir out
14287
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14288
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14291
hard_links="nottested"
14292
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14293
# do not overwrite the value of need_locks provided by the user
14294
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14295
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14298
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14300
ln conftest.a conftest.b 2>&5 || hard_links=no
14301
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14302
echo "$as_me:$LINENO: result: $hard_links" >&5
14303
echo "${ECHO_T}$hard_links" >&6
14304
if test "$hard_links" = no; then
14305
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14306
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14313
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14314
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14317
allow_undefined_flag_F77=
14318
enable_shared_with_static_runtimes_F77=no
14320
archive_expsym_cmds_F77=
14321
old_archive_From_new_cmds_F77=
14322
old_archive_from_expsyms_cmds_F77=
14323
export_dynamic_flag_spec_F77=
14324
whole_archive_flag_spec_F77=
14325
thread_safe_flag_spec_F77=
14326
hardcode_libdir_flag_spec_F77=
14327
hardcode_libdir_flag_spec_ld_F77=
14328
hardcode_libdir_separator_F77=
14329
hardcode_direct_F77=no
14330
hardcode_minus_L_F77=no
14331
hardcode_shlibpath_var_F77=unsupported
14332
link_all_deplibs_F77=unknown
14333
hardcode_automatic_F77=no
14335
module_expsym_cmds_F77=
14336
always_export_symbols_F77=no
14337
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14338
# include_expsyms should be a list of space-separated symbols to be *always*
14339
# included in the symbol list
14340
include_expsyms_F77=
14341
# exclude_expsyms can be an extended regexp of symbols to exclude
14342
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14343
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14344
# as well as any symbol that contains `d'.
14345
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14346
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14347
# platforms (ab)use it in PIC code, but their linkers get confused if
14348
# the symbol is explicitly referenced. Since portable code cannot
14349
# rely on this symbol name, it's probably fine to never include it in
14350
# preloaded symbol tables.
14351
extract_expsyms_cmds=
14352
# Just being paranoid about ensuring that cc_basename is set.
14353
for cc_temp in $compiler""; do
14355
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14356
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14361
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14364
cygwin* | mingw* | pw32*)
14365
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14366
# When not using gcc, we currently assume that we are using
14367
# Microsoft Visual C++.
14368
if test "$GCC" != yes; then
14373
# we just hope/assume this is gcc and not c89 (= MSVC++)
14382
if test "$with_gnu_ld" = yes; then
14383
# If archive_cmds runs LD, not CC, wlarc should be empty
14386
# Set some defaults for GNU ld with shared library support. These
14387
# are reset later if shared libraries are not supported. Putting them
14388
# here allows them to be overridden if necessary.
14389
runpath_var=LD_RUN_PATH
14390
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14391
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14392
# ancient GNU ld didn't support --whole-archive et. al.
14393
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14394
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14396
whole_archive_flag_spec_F77=
14398
supports_anon_versioning=no
14399
case `$LD -v 2>/dev/null` in
14400
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14401
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14402
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14403
*\ 2.11.*) ;; # other 2.11 versions
14404
*) supports_anon_versioning=yes ;;
14407
# See if GNU ld supports shared libraries.
14409
aix3* | aix4* | aix5*)
14410
# On AIX/PPC, the GNU linker is very broken
14411
if test "$host_cpu" != ia64; then
14415
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14416
*** to be unable to reliably create shared libraries on AIX.
14417
*** Therefore, libtool is disabling shared libraries support. If you
14418
*** really care for shared libraries, you may want to modify your PATH
14419
*** so that a non-GNU linker is found, and then restart.
14426
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)'
14427
hardcode_libdir_flag_spec_F77='-L$libdir'
14428
hardcode_minus_L_F77=yes
14430
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14431
# that the semantics of dynamic libraries on AmigaOS, at least up
14432
# to version 4, is to share data among multiple programs linked
14433
# with the same dynamic library. Since this doesn't match the
14434
# behavior of shared libraries on other platforms, we can't use
14440
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14441
allow_undefined_flag_F77=unsupported
14442
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14443
# support --undefined. This deserves some investigation. FIXME
14444
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14450
cygwin* | mingw* | pw32*)
14451
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14452
# as there is no search path for DLLs.
14453
hardcode_libdir_flag_spec_F77='-L$libdir'
14454
allow_undefined_flag_F77=unsupported
14455
always_export_symbols_F77=no
14456
enable_shared_with_static_runtimes_F77=yes
14457
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14459
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14460
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14461
# If the export-symbols file already is a .def file (1st line
14462
# is EXPORTS), use it as is; otherwise, prepend...
14463
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14464
cp $export_symbols $output_objdir/$soname.def;
14466
echo EXPORTS > $output_objdir/$soname.def;
14467
cat $export_symbols >> $output_objdir/$soname.def;
14469
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14476
hardcode_direct_F77=no
14477
hardcode_shlibpath_var_F77=no
14478
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14479
export_dynamic_flag_spec_F77='${wl}-E'
14480
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14481
# Instead, shared libraries are loaded at an image base (0x10000000 by
14482
# default) and relocated if they conflict, which is a slow very memory
14483
# consuming and fragmenting process. To avoid this, we pick a random,
14484
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14485
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14486
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'
14487
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'
14491
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493
case $cc_basename,$host_cpu in
14494
pgcc*) # Portland Group C compiler
14495
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'
14496
tmp_addflag=' $pic_flag'
14498
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14499
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'
14500
tmp_addflag=' $pic_flag -Mnomain' ;;
14501
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14502
tmp_addflag=' -i_dynamic' ;;
14503
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14504
tmp_addflag=' -i_dynamic -nofor_main' ;;
14505
ifc* | ifort*) # Intel Fortran compiler
14506
tmp_addflag=' -nofor_main' ;;
14508
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510
if test $supports_anon_versioning = yes; then
14511
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14512
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14513
$echo "local: *; };" >> $output_objdir/$libname.ver~
14514
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14522
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14523
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14526
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14527
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14532
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14536
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14537
*** create shared libraries on Solaris systems. Therefore, libtool
14538
*** is disabling shared libraries support. We urge you to upgrade GNU
14539
*** binutils to release 2.9.1 or newer. Another option is to modify
14540
*** your PATH or compiler configuration so that the native linker is
14541
*** used, and then restart.
14544
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14545
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14546
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14552
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14553
case `$LD -v 2>&1` in
14554
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14558
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14559
*** reliably create shared libraries on SCO systems. Therefore, libtool
14560
*** is disabling shared libraries support. We urge you to upgrade GNU
14561
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14562
*** your PATH or compiler configuration so that the native linker is
14563
*** used, and then restart.
14568
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14569
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14570
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14571
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14580
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14582
hardcode_direct_F77=yes
14583
hardcode_shlibpath_var_F77=no
14587
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14588
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14589
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14596
if test "$ld_shlibs_F77" = no; then
14598
hardcode_libdir_flag_spec_F77=
14599
export_dynamic_flag_spec_F77=
14600
whole_archive_flag_spec_F77=
14603
# PORTME fill in a description of your system's linker (not GNU ld)
14606
allow_undefined_flag_F77=unsupported
14607
always_export_symbols_F77=yes
14608
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'
14609
# Note: this linker hardcodes the directories in LIBPATH if there
14610
# are no directories specified by -L.
14611
hardcode_minus_L_F77=yes
14612
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14613
# Neither direct hardcoding nor static linking is supported with a
14615
hardcode_direct_F77=unsupported
14620
if test "$host_cpu" = ia64; then
14621
# On IA64, the linker does run time linking by default, so we don't
14622
# have to do anything special.
14623
aix_use_runtimelinking=no
14624
exp_sym_flag='-Bexport'
14627
# If we're using GNU nm, then we don't want the "-C" option.
14628
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14629
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14630
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'
14632
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'
14634
aix_use_runtimelinking=no
14636
# Test if we are trying to use run time linking or normal
14637
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14638
# need to do runtime linking.
14639
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14640
for ld_flag in $LDFLAGS; do
14641
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14642
aix_use_runtimelinking=yes
14649
exp_sym_flag='-bexport'
14650
no_entry_flag='-bnoentry'
14653
# When large executables or shared objects are built, AIX ld can
14654
# have problems creating the table of contents. If linking a library
14655
# or program results in "error TOC overflow" add -mminimal-toc to
14656
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14657
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14659
archive_cmds_F77=''
14660
hardcode_direct_F77=yes
14661
hardcode_libdir_separator_F77=':'
14662
link_all_deplibs_F77=yes
14664
if test "$GCC" = yes; then
14665
case $host_os in aix4.[012]|aix4.[012].*)
14666
# We only want to do this on AIX 4.2 and lower, the check
14667
# below for broken collect2 doesn't work under 4.3+
14668
collect2name=`${CC} -print-prog-name=collect2`
14669
if test -f "$collect2name" && \
14670
strings "$collect2name" | grep resolve_lib_name >/dev/null
14672
# We have reworked collect2
14673
hardcode_direct_F77=yes
14675
# We have old collect2
14676
hardcode_direct_F77=unsupported
14677
# It fails to find uninstalled libraries when the uninstalled
14678
# path is not listed in the libpath. Setting hardcode_minus_L
14679
# to unsupported forces relinking
14680
hardcode_minus_L_F77=yes
14681
hardcode_libdir_flag_spec_F77='-L$libdir'
14682
hardcode_libdir_separator_F77=
14686
shared_flag='-shared'
14687
if test "$aix_use_runtimelinking" = yes; then
14688
shared_flag="$shared_flag "'${wl}-G'
14692
if test "$host_cpu" = ia64; then
14693
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14694
# chokes on -Wl,-G. The following line is correct:
14697
if test "$aix_use_runtimelinking" = yes; then
14698
shared_flag='${wl}-G'
14700
shared_flag='${wl}-bM:SRE'
14705
# It seems that -bexpall does not export symbols beginning with
14706
# underscore (_), so it is better to generate a list of symbols to export.
14707
always_export_symbols_F77=yes
14708
if test "$aix_use_runtimelinking" = yes; then
14709
# Warning - without using the other runtime loading flags (-brtl),
14710
# -berok will link without error, but may produce a broken library.
14711
allow_undefined_flag_F77='-berok'
14712
# Determine the default libpath from the value encoded in an empty executable.
14713
cat >conftest.$ac_ext <<_ACEOF
14718
rm -f conftest.$ac_objext conftest$ac_exeext
14719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14720
(eval $ac_link) 2>conftest.er1
14722
grep -v '^ *+' conftest.er1 >conftest.err
14724
cat conftest.err >&5
14725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726
(exit $ac_status); } &&
14727
{ ac_try='test -z "$ac_f77_werror_flag"
14728
|| test ! -s conftest.err'
14729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730
(eval $ac_try) 2>&5
14732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733
(exit $ac_status); }; } &&
14734
{ ac_try='test -s conftest$ac_exeext'
14735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736
(eval $ac_try) 2>&5
14738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739
(exit $ac_status); }; }; then
14741
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14743
# Check for a 64-bit object if we didn't find anything.
14744
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14747
echo "$as_me: failed program was:" >&5
14748
sed 's/^/| /' conftest.$ac_ext >&5
14751
rm -f conftest.err conftest.$ac_objext \
14752
conftest$ac_exeext conftest.$ac_ext
14753
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14755
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14756
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"
14758
if test "$host_cpu" = ia64; then
14759
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14760
allow_undefined_flag_F77="-z nodefs"
14761
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"
14763
# Determine the default libpath from the value encoded in an empty executable.
14764
cat >conftest.$ac_ext <<_ACEOF
14769
rm -f conftest.$ac_objext conftest$ac_exeext
14770
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771
(eval $ac_link) 2>conftest.er1
14773
grep -v '^ *+' conftest.er1 >conftest.err
14775
cat conftest.err >&5
14776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777
(exit $ac_status); } &&
14778
{ ac_try='test -z "$ac_f77_werror_flag"
14779
|| test ! -s conftest.err'
14780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781
(eval $ac_try) 2>&5
14783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784
(exit $ac_status); }; } &&
14785
{ ac_try='test -s conftest$ac_exeext'
14786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787
(eval $ac_try) 2>&5
14789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790
(exit $ac_status); }; }; then
14792
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14794
# Check for a 64-bit object if we didn't find anything.
14795
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14798
echo "$as_me: failed program was:" >&5
14799
sed 's/^/| /' conftest.$ac_ext >&5
14802
rm -f conftest.err conftest.$ac_objext \
14803
conftest$ac_exeext conftest.$ac_ext
14804
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14806
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14807
# Warning - without using the other run time loading flags,
14808
# -berok will link without error, but may produce a broken library.
14809
no_undefined_flag_F77=' ${wl}-bernotok'
14810
allow_undefined_flag_F77=' ${wl}-berok'
14811
# Exported symbols can be pulled into shared objects from archives
14812
whole_archive_flag_spec_F77='$convenience'
14813
archive_cmds_need_lc_F77=yes
14814
# This is similar to how AIX traditionally builds its shared libraries.
14815
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'
14821
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)'
14822
hardcode_libdir_flag_spec_F77='-L$libdir'
14823
hardcode_minus_L_F77=yes
14824
# see comment about different semantics on the GNU ld section
14829
export_dynamic_flag_spec_F77=-rdynamic
14832
cygwin* | mingw* | pw32*)
14833
# When not using gcc, we currently assume that we are using
14834
# Microsoft Visual C++.
14835
# hardcode_libdir_flag_spec is actually meaningless, as there is
14836
# no search path for DLLs.
14837
hardcode_libdir_flag_spec_F77=' '
14838
allow_undefined_flag_F77=unsupported
14839
# Tell ltmain to make .lib files, not .a files.
14841
# Tell ltmain to make .dll files, not .so files.
14843
# FIXME: Setting linknames here is a bad hack.
14844
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14845
# The linker will automatically build a .lib file if we build a DLL.
14846
old_archive_From_new_cmds_F77='true'
14847
# FIXME: Should let the user specify the lib program.
14848
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14849
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14850
enable_shared_with_static_runtimes_F77=yes
14853
darwin* | rhapsody*)
14855
rhapsody* | darwin1.[012])
14856
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14859
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14860
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14862
case ${MACOSX_DEPLOYMENT_TARGET} in
14864
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14867
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14873
archive_cmds_need_lc_F77=no
14874
hardcode_direct_F77=no
14875
hardcode_automatic_F77=yes
14876
hardcode_shlibpath_var_F77=unsupported
14877
whole_archive_flag_spec_F77=''
14878
link_all_deplibs_F77=yes
14879
if test "$GCC" = yes ; then
14880
output_verbose_link_cmd='echo'
14881
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14882
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14883
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14884
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14885
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}'
14887
case $cc_basename in
14889
output_verbose_link_cmd='echo'
14890
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14891
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14892
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14893
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14894
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}'
14904
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14905
hardcode_libdir_flag_spec_F77='-L$libdir'
14906
hardcode_shlibpath_var_F77=no
14913
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14914
# support. Future versions do this automatically, but an explicit c++rt0.o
14915
# does not break anything, and helps significantly (at the cost of a little
14918
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14919
hardcode_libdir_flag_spec_F77='-R$libdir'
14920
hardcode_direct_F77=yes
14921
hardcode_shlibpath_var_F77=no
14924
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14926
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14927
hardcode_direct_F77=yes
14928
hardcode_minus_L_F77=yes
14929
hardcode_shlibpath_var_F77=no
14932
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14933
freebsd* | kfreebsd*-gnu | dragonfly*)
14934
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14935
hardcode_libdir_flag_spec_F77='-R$libdir'
14936
hardcode_direct_F77=yes
14937
hardcode_shlibpath_var_F77=no
14941
if test "$GCC" = yes; then
14942
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'
14944
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'
14946
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14947
hardcode_libdir_separator_F77=:
14948
hardcode_direct_F77=yes
14950
# hardcode_minus_L: Not really in the search PATH,
14951
# but as the default location of the library.
14952
hardcode_minus_L_F77=yes
14953
export_dynamic_flag_spec_F77='${wl}-E'
14957
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14958
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14960
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14962
if test "$with_gnu_ld" = no; then
14963
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14964
hardcode_libdir_separator_F77=:
14966
hardcode_direct_F77=yes
14967
export_dynamic_flag_spec_F77='${wl}-E'
14969
# hardcode_minus_L: Not really in the search PATH,
14970
# but as the default location of the library.
14971
hardcode_minus_L_F77=yes
14976
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14979
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14985
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14991
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14994
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14997
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15001
if test "$with_gnu_ld" = no; then
15002
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15003
hardcode_libdir_separator_F77=:
15007
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15008
hardcode_direct_F77=no
15009
hardcode_shlibpath_var_F77=no
15012
hardcode_direct_F77=yes
15013
export_dynamic_flag_spec_F77='${wl}-E'
15015
# hardcode_minus_L: Not really in the search PATH,
15016
# but as the default location of the library.
15017
hardcode_minus_L_F77=yes
15023
irix5* | irix6* | nonstopux*)
15024
if test "$GCC" = yes; then
15025
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'
15027
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'
15028
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15030
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15031
hardcode_libdir_separator_F77=:
15032
link_all_deplibs_F77=yes
15036
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15037
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15039
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15041
hardcode_libdir_flag_spec_F77='-R$libdir'
15042
hardcode_direct_F77=yes
15043
hardcode_shlibpath_var_F77=no
15047
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15048
hardcode_direct_F77=yes
15049
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15050
hardcode_libdir_separator_F77=:
15051
hardcode_shlibpath_var_F77=no
15055
hardcode_direct_F77=yes
15056
hardcode_shlibpath_var_F77=no
15057
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15058
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15059
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15060
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15061
export_dynamic_flag_spec_F77='${wl}-E'
15064
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15065
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15066
hardcode_libdir_flag_spec_F77='-R$libdir'
15069
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15070
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077
hardcode_libdir_flag_spec_F77='-L$libdir'
15078
hardcode_minus_L_F77=yes
15079
allow_undefined_flag_F77=unsupported
15080
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'
15081
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15085
if test "$GCC" = yes; then
15086
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15087
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'
15089
allow_undefined_flag_F77=' -expect_unresolved \*'
15090
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'
15092
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15093
hardcode_libdir_separator_F77=:
15096
osf4* | osf5*) # as osf3* with the addition of -msym flag
15097
if test "$GCC" = yes; then
15098
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15099
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'
15100
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15102
allow_undefined_flag_F77=' -expect_unresolved \*'
15103
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'
15104
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~
15105
$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'
15107
# Both c and cxx compiler support -rpath directly
15108
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15110
hardcode_libdir_separator_F77=:
15114
no_undefined_flag_F77=' -z text'
15115
if test "$GCC" = yes; then
15117
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15118
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15119
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15122
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15124
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15126
hardcode_libdir_flag_spec_F77='-R$libdir'
15127
hardcode_shlibpath_var_F77=no
15129
solaris2.[0-5] | solaris2.[0-5].*) ;;
15131
# The compiler driver will combine linker options so we
15132
# cannot just pass the convience library names through
15133
# without $wl, iff we do not link with $LD.
15134
# Luckily, gcc supports the same syntax we need for Sun Studio.
15135
# Supported since Solaris 2.6 (maybe 2.5.1?)
15138
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15140
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15143
link_all_deplibs_F77=yes
15147
if test "x$host_vendor" = xsequent; then
15148
# Use $CC to link under sequent, because it throws in some extra .o
15149
# files that make .init and .fini sections work.
15150
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15152
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15154
hardcode_libdir_flag_spec_F77='-L$libdir'
15155
hardcode_direct_F77=yes
15156
hardcode_minus_L_F77=yes
15157
hardcode_shlibpath_var_F77=no
15161
case $host_vendor in
15163
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164
hardcode_direct_F77=yes # is this really true???
15167
## LD is ld it makes a PLAMLIB
15168
## CC just makes a GrossModule.
15169
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15170
reload_cmds_F77='$CC -r -o $output$reload_objs'
15171
hardcode_direct_F77=no
15174
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15175
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15178
runpath_var='LD_RUN_PATH'
15179
hardcode_shlibpath_var_F77=no
15183
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15184
hardcode_shlibpath_var_F77=no
15185
export_dynamic_flag_spec_F77='-Bexport'
15189
if test -d /usr/nec; then
15190
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191
hardcode_shlibpath_var_F77=no
15192
runpath_var=LD_RUN_PATH
15193
hardcode_runpath_var=yes
15198
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15199
no_undefined_flag_F77='${wl}-z,text'
15200
archive_cmds_need_lc_F77=no
15201
hardcode_shlibpath_var_F77=no
15202
runpath_var='LD_RUN_PATH'
15204
if test "$GCC" = yes; then
15205
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15206
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15208
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15209
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15213
sysv5* | sco3.2v5* | sco5v6*)
15214
# Note: We can NOT use -z defs as we might desire, because we do not
15215
# link with -lc, and that would cause any symbols used from libc to
15216
# always be unresolved, which means just about no library would
15217
# ever link correctly. If we're not using GNU ld we use -z text
15218
# though, which does catch some bad symbols but isn't as heavy-handed
15220
no_undefined_flag_F77='${wl}-z,text'
15221
allow_undefined_flag_F77='${wl}-z,nodefs'
15222
archive_cmds_need_lc_F77=no
15223
hardcode_shlibpath_var_F77=no
15224
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15225
hardcode_libdir_separator_F77=':'
15226
link_all_deplibs_F77=yes
15227
export_dynamic_flag_spec_F77='${wl}-Bexport'
15228
runpath_var='LD_RUN_PATH'
15230
if test "$GCC" = yes; then
15231
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15232
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15234
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15235
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15241
hardcode_libdir_flag_spec_F77='-L$libdir'
15242
hardcode_shlibpath_var_F77=no
15251
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15252
echo "${ECHO_T}$ld_shlibs_F77" >&6
15253
test "$ld_shlibs_F77" = no && can_build_shared=no
15256
# Do we need to explicitly link libc?
15258
case "x$archive_cmds_need_lc_F77" in
15260
# Assume -lc should be added
15261
archive_cmds_need_lc_F77=yes
15263
if test "$enable_shared" = yes && test "$GCC" = yes; then
15264
case $archive_cmds_F77 in
15266
# FIXME: we may have to deal with multi-command sequences.
15269
# Test whether the compiler implicitly links with -lc since on some
15270
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15271
# to ld, don't add -lc before -lgcc.
15272
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15273
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15275
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278
(eval $ac_compile) 2>&5
15280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281
(exit $ac_status); } 2>conftest.err; then
15284
libobjs=conftest.$ac_objext
15286
wl=$lt_prog_compiler_wl_F77
15287
pic_flag=$lt_prog_compiler_pic_F77
15293
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15294
allow_undefined_flag_F77=
15295
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15296
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299
(exit $ac_status); }
15301
archive_cmds_need_lc_F77=no
15303
archive_cmds_need_lc_F77=yes
15305
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15307
cat conftest.err 1>&5
15310
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15311
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15318
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15319
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15320
library_names_spec=
15321
libname_spec='lib$name'
15325
postuninstall_cmds=
15329
shlibpath_overrides_runpath=unknown
15331
dynamic_linker="$host_os ld.so"
15332
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15333
if test "$GCC" = yes; then
15334
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15335
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15336
# if the path contains ";" then we assume it to be the separator
15337
# otherwise default to the standard path separator (i.e. ":") - it is
15338
# assumed that no part of a normal pathname contains ";" but that should
15339
# okay in the real world where ";" in dirpaths is itself problematic.
15340
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15342
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15345
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15347
need_lib_prefix=unknown
15348
hardcode_into_libs=no
15350
# when you set need_version to no, make sure it does not cause -set_version
15351
# flags to be left without arguments
15352
need_version=unknown
15357
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15358
shlibpath_var=LIBPATH
15360
# AIX 3 has no versioning support, so we append a major version to the name.
15361
soname_spec='${libname}${release}${shared_ext}$major'
15368
hardcode_into_libs=yes
15369
if test "$host_cpu" = ia64; then
15370
# AIX 5 supports IA64
15371
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15372
shlibpath_var=LD_LIBRARY_PATH
15374
# With GCC up to 2.95.x, collect2 would create an import file
15375
# for dependence libraries. The import file would start with
15376
# the line `#! .'. This would cause the generated library to
15377
# depend on `.', always an invalid library. This was fixed in
15378
# development snapshots of GCC prior to 3.0.
15380
aix4 | aix4.[01] | aix4.[01].*)
15381
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15383
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15386
can_build_shared=no
15390
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15391
# soname into executable. Probably we can add versioning support to
15392
# collect2, so additional links can be useful in future.
15393
if test "$aix_use_runtimelinking" = yes; then
15394
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15395
# instead of lib<name>.a to let people know that these are not
15396
# typical AIX shared libraries.
15397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399
# We preserve .a as extension for shared libraries through AIX4.2
15400
# and later when we are not doing run time linking.
15401
library_names_spec='${libname}${release}.a $libname.a'
15402
soname_spec='${libname}${release}${shared_ext}$major'
15404
shlibpath_var=LIBPATH
15409
library_names_spec='$libname.ixlibrary $libname.a'
15410
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15411
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'
15415
library_names_spec='${libname}${shared_ext}'
15416
dynamic_linker="$host_os ld.so"
15417
shlibpath_var=LIBRARY_PATH
15423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424
soname_spec='${libname}${release}${shared_ext}$major'
15425
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15426
shlibpath_var=LD_LIBRARY_PATH
15427
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15428
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15429
# the default ld.so.conf also contains /usr/contrib/lib and
15430
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15431
# libtool to hard-code these into programs
15434
cygwin* | mingw* | pw32*)
15435
version_type=windows
15440
case $GCC,$host_os in
15441
yes,cygwin* | yes,mingw* | yes,pw32*)
15442
library_names_spec='$libname.dll.a'
15443
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15444
postinstall_cmds='base_file=`basename \${file}`~
15445
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15446
dldir=$destdir/`dirname \$dlpath`~
15447
test -d \$dldir || mkdir -p \$dldir~
15448
$install_prog $dir/$dlname \$dldir/$dlname~
15449
chmod a+x \$dldir/$dlname'
15450
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15451
dlpath=$dir/\$dldll~
15453
shlibpath_overrides_runpath=yes
15457
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15458
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15459
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15462
# MinGW DLLs use traditional 'lib' prefix
15463
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15464
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15465
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15466
# It is most probably a Windows format PATH printed by
15467
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15468
# path with ; separators, and with drive letters. We can handle the
15469
# drive letters (cygwin fileutils understands them), so leave them,
15470
# especially as we might pass files found there to a mingw objdump,
15471
# which wouldn't understand a cygwinified path. Ahh.
15472
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15474
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15478
# pw32 DLLs use 'pw' prefix rather than 'lib'
15479
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15488
dynamic_linker='Win32 ld.exe'
15489
# FIXME: first we should search . and the directory the executable is in
15493
darwin* | rhapsody*)
15494
dynamic_linker="$host_os dyld"
15495
version_type=darwin
15498
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15499
soname_spec='${libname}${release}${major}$shared_ext'
15500
shlibpath_overrides_runpath=yes
15501
shlibpath_var=DYLD_LIBRARY_PATH
15502
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15503
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15504
if test "$GCC" = yes; then
15505
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15507
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15509
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15517
soname_spec='${libname}${release}${shared_ext}$major'
15518
shlibpath_var=LD_LIBRARY_PATH
15529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15530
soname_spec='${libname}${release}${shared_ext}$major'
15531
shlibpath_var=LD_LIBRARY_PATH
15532
shlibpath_overrides_runpath=no
15533
hardcode_into_libs=yes
15534
dynamic_linker='GNU ld.so'
15537
freebsd* | dragonfly*)
15538
# DragonFly does not have aout. When/if they implement a new
15539
# versioning mechanism, adjust this.
15540
if test -x /usr/bin/objformat; then
15541
objformat=`/usr/bin/objformat`
15544
freebsd[123]*) objformat=aout ;;
15545
*) objformat=elf ;;
15548
version_type=freebsd-$objformat
15549
case $version_type in
15551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15556
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15560
shlibpath_var=LD_LIBRARY_PATH
15563
shlibpath_overrides_runpath=yes
15565
freebsd3.[01]* | freebsdelf3.[01]*)
15566
shlibpath_overrides_runpath=yes
15567
hardcode_into_libs=yes
15569
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15570
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15571
shlibpath_overrides_runpath=no
15572
hardcode_into_libs=yes
15574
freebsd*) # from 4.6 on
15575
shlibpath_overrides_runpath=yes
15576
hardcode_into_libs=yes
15585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15586
soname_spec='${libname}${release}${shared_ext}$major'
15587
shlibpath_var=LD_LIBRARY_PATH
15588
hardcode_into_libs=yes
15591
hpux9* | hpux10* | hpux11*)
15592
# Give a soname corresponding to the major version so that dld.sl refuses to
15593
# link against other versions.
15600
hardcode_into_libs=yes
15601
dynamic_linker="$host_os dld.so"
15602
shlibpath_var=LD_LIBRARY_PATH
15603
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605
soname_spec='${libname}${release}${shared_ext}$major'
15606
if test "X$HPUX_IA64_MODE" = X32; then
15607
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15609
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15611
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15615
hardcode_into_libs=yes
15616
dynamic_linker="$host_os dld.sl"
15617
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15618
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620
soname_spec='${libname}${release}${shared_ext}$major'
15621
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15622
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15626
dynamic_linker="$host_os dld.sl"
15627
shlibpath_var=SHLIB_PATH
15628
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630
soname_spec='${libname}${release}${shared_ext}$major'
15633
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15634
postinstall_cmds='chmod 555 $lib'
15641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15642
soname_spec='${libname}${release}${shared_ext}$major'
15643
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15644
shlibpath_var=LD_LIBRARY_PATH
15645
shlibpath_overrides_runpath=no
15646
hardcode_into_libs=yes
15649
irix5* | irix6* | nonstopux*)
15651
nonstopux*) version_type=nonstopux ;;
15653
if test "$lt_cv_prog_gnu_ld" = yes; then
15661
soname_spec='${libname}${release}${shared_ext}$major'
15662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15664
irix5* | nonstopux*)
15665
libsuff= shlibsuff=
15668
case $LD in # libtool.m4 will add one of these switches to LD
15669
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15670
libsuff= shlibsuff= libmagic=32-bit;;
15671
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15672
libsuff=32 shlibsuff=N32 libmagic=N32;;
15673
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15674
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15675
*) libsuff= shlibsuff= libmagic=never-match;;
15679
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15680
shlibpath_overrides_runpath=no
15681
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15682
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15683
hardcode_into_libs=yes
15686
# No shared lib support for Linux oldld, aout, or coff.
15687
linux*oldld* | linux*aout* | linux*coff*)
15691
# This must be Linux ELF.
15696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697
soname_spec='${libname}${release}${shared_ext}$major'
15698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15699
shlibpath_var=LD_LIBRARY_PATH
15700
shlibpath_overrides_runpath=no
15701
# This implies no fast_install, which is unacceptable.
15702
# Some rework will be needed to allow for fast_install
15703
# before this can be enabled.
15704
hardcode_into_libs=yes
15706
# find out which ABI we are using
15708
case "$host_cpu" in
15709
x86_64*|s390x*|powerpc64*)
15710
echo '#line 15710 "configure"' > conftest.$ac_ext
15711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15712
(eval $ac_compile) 2>&5
15714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715
(exit $ac_status); }; then
15716
case `/usr/bin/file conftest.$ac_objext` in
15719
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15727
# Append ld.so.conf contents to the search path
15728
if test -f /etc/ld.so.conf; then
15729
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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15730
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15733
# We used to test for /lib/ld.so.1 and disable shared libraries on
15734
# powerpc, because MkLinux only supported shared libraries with the
15735
# GNU dynamic linker. Since this was broken with cross compilers,
15736
# most powerpc-linux boxes support dynamic linking these days and
15737
# people can always --disable-shared, the test was removed, and we
15738
# assume the GNU/Linux dynamic linker is in use.
15739
dynamic_linker='GNU/Linux ld.so'
15746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15747
soname_spec='${libname}${release}${shared_ext}$major'
15748
shlibpath_var=LD_LIBRARY_PATH
15749
shlibpath_overrides_runpath=no
15750
hardcode_into_libs=yes
15751
dynamic_linker='GNU ld.so'
15758
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15760
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15761
dynamic_linker='NetBSD (a.out) ld.so'
15763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15764
soname_spec='${libname}${release}${shared_ext}$major'
15765
dynamic_linker='NetBSD ld.elf_so'
15767
shlibpath_var=LD_LIBRARY_PATH
15768
shlibpath_overrides_runpath=yes
15769
hardcode_into_libs=yes
15774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775
shlibpath_var=LD_LIBRARY_PATH
15776
shlibpath_overrides_runpath=yes
15783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784
soname_spec='${libname}${release}${shared_ext}$major'
15785
shlibpath_var=LD_LIBRARY_PATH
15786
shlibpath_overrides_runpath=yes
15791
sys_lib_dlsearch_path_spec="/usr/lib"
15793
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15795
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15796
*) need_version=no ;;
15798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15799
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15800
shlibpath_var=LD_LIBRARY_PATH
15801
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15803
openbsd2.[89] | openbsd2.[89].*)
15804
shlibpath_overrides_runpath=no
15807
shlibpath_overrides_runpath=yes
15811
shlibpath_overrides_runpath=yes
15816
libname_spec='$name'
15819
library_names_spec='$libname${shared_ext} $libname.a'
15820
dynamic_linker='OS/2 ld.exe'
15821
shlibpath_var=LIBPATH
15824
osf3* | osf4* | osf5*)
15828
soname_spec='${libname}${release}${shared_ext}$major'
15829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830
shlibpath_var=LD_LIBRARY_PATH
15831
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15832
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840
soname_spec='${libname}${release}${shared_ext}$major'
15841
shlibpath_var=LD_LIBRARY_PATH
15842
shlibpath_overrides_runpath=yes
15843
hardcode_into_libs=yes
15844
# ldd complains unless libraries are executable
15845
postinstall_cmds='chmod +x $lib'
15850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15851
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15852
shlibpath_var=LD_LIBRARY_PATH
15853
shlibpath_overrides_runpath=yes
15854
if test "$with_gnu_ld" = yes; then
15862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863
soname_spec='${libname}${release}${shared_ext}$major'
15864
shlibpath_var=LD_LIBRARY_PATH
15865
case $host_vendor in
15867
shlibpath_overrides_runpath=no
15869
export_dynamic_flag_spec='${wl}-Blargedynsym'
15870
runpath_var=LD_RUN_PATH
15878
shlibpath_overrides_runpath=no
15879
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15885
if test -d /usr/nec ;then
15887
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15888
soname_spec='$libname${shared_ext}.$major'
15889
shlibpath_var=LD_LIBRARY_PATH
15893
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15894
version_type=freebsd-elf
15897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15898
soname_spec='${libname}${release}${shared_ext}$major'
15899
shlibpath_var=LD_LIBRARY_PATH
15900
hardcode_into_libs=yes
15901
if test "$with_gnu_ld" = yes; then
15902
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15903
shlibpath_overrides_runpath=no
15905
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15906
shlibpath_overrides_runpath=yes
15909
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15913
sys_lib_dlsearch_path_spec='/usr/lib'
15918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919
soname_spec='${libname}${release}${shared_ext}$major'
15920
shlibpath_var=LD_LIBRARY_PATH
15927
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15928
echo "${ECHO_T}$dynamic_linker" >&6
15929
test "$dynamic_linker" = no && can_build_shared=no
15931
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15932
if test "$GCC" = yes; then
15933
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15936
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15937
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15938
hardcode_action_F77=
15939
if test -n "$hardcode_libdir_flag_spec_F77" || \
15940
test -n "$runpath_var_F77" || \
15941
test "X$hardcode_automatic_F77" = "Xyes" ; then
15943
# We can hardcode non-existant directories.
15944
if test "$hardcode_direct_F77" != no &&
15945
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15946
# have to relink, otherwise we might link with an installed library
15947
# when we should be linking with a yet-to-be-installed one
15948
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15949
test "$hardcode_minus_L_F77" != no; then
15950
# Linking always hardcodes the temporary library directory.
15951
hardcode_action_F77=relink
15953
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15954
hardcode_action_F77=immediate
15957
# We cannot hardcode anything, or else we can only hardcode existing
15959
hardcode_action_F77=unsupported
15961
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15962
echo "${ECHO_T}$hardcode_action_F77" >&6
15964
if test "$hardcode_action_F77" = relink; then
15965
# Fast installation is not supported
15966
enable_fast_install=no
15967
elif test "$shlibpath_overrides_runpath" = yes ||
15968
test "$enable_shared" = no; then
15969
# Fast installation is not necessary
15970
enable_fast_install=needless
15974
# The else clause should only fire when bootstrapping the
15975
# libtool distribution, otherwise you forgot to ship ltmain.sh
15976
# with your package, and you will get complaints that there are
15977
# no rules to generate ltmain.sh.
15978
if test -f "$ltmain"; then
15979
# See if we are running on zsh, and set the options which allow our commands through
15980
# without removal of \ escapes.
15981
if test -n "${ZSH_VERSION+set}" ; then
15982
setopt NO_GLOB_SUBST
15984
# Now quote all the things that may contain metacharacters while being
15985
# careful not to overquote the AC_SUBSTed values. We take copies of the
15986
# variables and quote the copies for generation of the libtool script.
15987
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15989
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15990
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15991
deplibs_check_method reload_flag reload_cmds need_locks \
15992
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15993
lt_cv_sys_global_symbol_to_c_name_address \
15994
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15995
old_postinstall_cmds old_postuninstall_cmds \
15999
lt_prog_compiler_wl_F77 \
16000
lt_prog_compiler_pic_F77 \
16001
lt_prog_compiler_static_F77 \
16002
lt_prog_compiler_no_builtin_flag_F77 \
16003
export_dynamic_flag_spec_F77 \
16004
thread_safe_flag_spec_F77 \
16005
whole_archive_flag_spec_F77 \
16006
enable_shared_with_static_runtimes_F77 \
16007
old_archive_cmds_F77 \
16008
old_archive_from_new_cmds_F77 \
16009
predep_objects_F77 \
16010
postdep_objects_F77 \
16013
compiler_lib_search_path_F77 \
16015
archive_expsym_cmds_F77 \
16016
postinstall_cmds_F77 \
16017
postuninstall_cmds_F77 \
16018
old_archive_from_expsyms_cmds_F77 \
16019
allow_undefined_flag_F77 \
16020
no_undefined_flag_F77 \
16021
export_symbols_cmds_F77 \
16022
hardcode_libdir_flag_spec_F77 \
16023
hardcode_libdir_flag_spec_ld_F77 \
16024
hardcode_libdir_separator_F77 \
16025
hardcode_automatic_F77 \
16027
module_expsym_cmds_F77 \
16028
lt_cv_prog_compiler_c_o_F77 \
16029
exclude_expsyms_F77 \
16030
include_expsyms_F77; do
16033
old_archive_cmds_F77 | \
16034
old_archive_from_new_cmds_F77 | \
16035
archive_cmds_F77 | \
16036
archive_expsym_cmds_F77 | \
16037
module_cmds_F77 | \
16038
module_expsym_cmds_F77 | \
16039
old_archive_from_expsyms_cmds_F77 | \
16040
export_symbols_cmds_F77 | \
16041
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16042
postinstall_cmds | postuninstall_cmds | \
16043
old_postinstall_cmds | old_postuninstall_cmds | \
16044
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16045
# Double-quote double-evaled strings.
16046
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16049
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16055
*'\$0 --fallback-echo"')
16056
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16062
cat <<__EOF__ >> "$cfgfile"
16063
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16065
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16067
# Shell to use when invoking shell scripts.
16070
# Whether or not to build shared libraries.
16071
build_libtool_libs=$enable_shared
16073
# Whether or not to build static libraries.
16074
build_old_libs=$enable_static
16076
# Whether or not to add -lc for building shared libraries.
16077
build_libtool_need_lc=$archive_cmds_need_lc_F77
16079
# Whether or not to disallow shared libs when runtime libs are static
16080
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16082
# Whether or not to optimize for fast installation.
16083
fast_install=$enable_fast_install
16086
host_alias=$host_alias
16090
# The build system.
16091
build_alias=$build_alias
16095
# An echo program that does not interpret backslashes.
16100
AR_FLAGS=$lt_AR_FLAGS
16105
# LTCC compiler flags.
16106
LTCFLAGS=$lt_LTCFLAGS
16108
# A language-specific compiler.
16109
CC=$lt_compiler_F77
16111
# Is the compiler the GNU C compiler?
16114
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16115
gcc_ver=\`gcc -dumpversion\`
16120
# The linker used to build libraries.
16123
# Whether we need hard or soft links.
16126
# A BSD-compatible nm program.
16129
# A symbol stripping program
16132
# Used to examine libraries when file_magic_cmd begins "file"
16133
MAGIC_CMD=$MAGIC_CMD
16135
# Used on cygwin: DLL creation program.
16138
# Used on cygwin: object dumper.
16141
# Used on cygwin: assembler.
16144
# The name of the directory that contains temporary libtool files.
16147
# How to create reloadable object files.
16148
reload_flag=$lt_reload_flag
16149
reload_cmds=$lt_reload_cmds
16151
# How to pass a linker flag through the compiler.
16152
wl=$lt_lt_prog_compiler_wl_F77
16154
# Object file suffix (normally "o").
16155
objext="$ac_objext"
16157
# Old archive suffix (normally "a").
16160
# Shared library suffix (normally ".so").
16161
shrext_cmds='$shrext_cmds'
16163
# Executable file suffix (normally "").
16166
# Additional compiler flags for building library objects.
16167
pic_flag=$lt_lt_prog_compiler_pic_F77
16170
# What is the maximum length of a command?
16171
max_cmd_len=$lt_cv_sys_max_cmd_len
16173
# Does compiler simultaneously support -c and -o options?
16174
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16176
# Must we lock files when doing compilation?
16177
need_locks=$lt_need_locks
16179
# Do we need the lib prefix for modules?
16180
need_lib_prefix=$need_lib_prefix
16182
# Do we need a version for libraries?
16183
need_version=$need_version
16185
# Whether dlopen is supported.
16186
dlopen_support=$enable_dlopen
16188
# Whether dlopen of programs is supported.
16189
dlopen_self=$enable_dlopen_self
16191
# Whether dlopen of statically linked programs is supported.
16192
dlopen_self_static=$enable_dlopen_self_static
16194
# Compiler flag to prevent dynamic linking.
16195
link_static_flag=$lt_lt_prog_compiler_static_F77
16197
# Compiler flag to turn off builtin functions.
16198
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16200
# Compiler flag to allow reflexive dlopens.
16201
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16203
# Compiler flag to generate shared objects directly from archives.
16204
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16206
# Compiler flag to generate thread-safe objects.
16207
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16209
# Library versioning type.
16210
version_type=$version_type
16212
# Format of library name prefix.
16213
libname_spec=$lt_libname_spec
16215
# List of archive names. First name is the real one, the rest are links.
16216
# The last name is the one that the linker finds with -lNAME.
16217
library_names_spec=$lt_library_names_spec
16219
# The coded name of the library, if different from the real name.
16220
soname_spec=$lt_soname_spec
16222
# Commands used to build and install an old-style archive.
16224
old_archive_cmds=$lt_old_archive_cmds_F77
16225
old_postinstall_cmds=$lt_old_postinstall_cmds
16226
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16228
# Create an old-style archive from a shared archive.
16229
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16231
# Create a temporary old-style archive to link instead of a shared archive.
16232
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16234
# Commands used to build and install a shared archive.
16235
archive_cmds=$lt_archive_cmds_F77
16236
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16237
postinstall_cmds=$lt_postinstall_cmds
16238
postuninstall_cmds=$lt_postuninstall_cmds
16240
# Commands used to build a loadable module (assumed same as above if empty)
16241
module_cmds=$lt_module_cmds_F77
16242
module_expsym_cmds=$lt_module_expsym_cmds_F77
16244
# Commands to strip libraries.
16245
old_striplib=$lt_old_striplib
16246
striplib=$lt_striplib
16248
# Dependencies to place before the objects being linked to create a
16250
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16252
# Dependencies to place after the objects being linked to create a
16254
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16256
# Dependencies to place before the objects being linked to create a
16258
predeps=$lt_predeps_F77
16260
# Dependencies to place after the objects being linked to create a
16262
postdeps=$lt_postdeps_F77
16264
# The library search path used internally by the compiler when linking
16265
# a shared library.
16266
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16268
# Method to check whether dependent libraries are shared objects.
16269
deplibs_check_method=$lt_deplibs_check_method
16271
# Command to use when deplibs_check_method == file_magic.
16272
file_magic_cmd=$lt_file_magic_cmd
16274
# Flag that allows shared libraries with undefined symbols to be built.
16275
allow_undefined_flag=$lt_allow_undefined_flag_F77
16277
# Flag that forces no undefined symbols.
16278
no_undefined_flag=$lt_no_undefined_flag_F77
16280
# Commands used to finish a libtool library installation in a directory.
16281
finish_cmds=$lt_finish_cmds
16283
# Same as above, but a single script fragment to be evaled but not shown.
16284
finish_eval=$lt_finish_eval
16286
# Take the output of nm and produce a listing of raw symbols and C names.
16287
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16289
# Transform the output of nm in a proper C declaration
16290
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16292
# Transform the output of nm in a C name address pair
16293
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16295
# This is the shared library runtime path variable.
16296
runpath_var=$runpath_var
16298
# This is the shared library path variable.
16299
shlibpath_var=$shlibpath_var
16301
# Is shlibpath searched before the hard-coded library search path?
16302
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16304
# How to hardcode a shared library path into an executable.
16305
hardcode_action=$hardcode_action_F77
16307
# Whether we should hardcode library paths into libraries.
16308
hardcode_into_libs=$hardcode_into_libs
16310
# Flag to hardcode \$libdir into a binary during linking.
16311
# This must work even if \$libdir does not exist.
16312
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16314
# If ld is used when linking, flag to hardcode \$libdir into
16315
# a binary during linking. This must work even if \$libdir does
16317
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16319
# Whether we need a single -rpath flag with a separated argument.
16320
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16322
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16323
# resulting binary.
16324
hardcode_direct=$hardcode_direct_F77
16326
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16327
# resulting binary.
16328
hardcode_minus_L=$hardcode_minus_L_F77
16330
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16331
# the resulting binary.
16332
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16334
# Set to yes if building a shared library automatically hardcodes DIR into the library
16335
# and all subsequent libraries and executables linked against it.
16336
hardcode_automatic=$hardcode_automatic_F77
16338
# Variables whose values should be saved in libtool wrapper scripts and
16339
# restored at relink time.
16340
variables_saved_for_relink="$variables_saved_for_relink"
16342
# Whether libtool must link a program against all its dependency libraries.
16343
link_all_deplibs=$link_all_deplibs_F77
16345
# Compile-time system search path for libraries
16346
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16348
# Run-time system search path for libraries
16349
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16351
# Fix the shell variable \$srcfile for the compiler.
16352
fix_srcfile_path="$fix_srcfile_path_F77"
16354
# Set to yes if exported symbols are required.
16355
always_export_symbols=$always_export_symbols_F77
16357
# The commands to list exported symbols.
16358
export_symbols_cmds=$lt_export_symbols_cmds_F77
16360
# The commands to extract the exported symbol list from a shared archive.
16361
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16363
# Symbols that should not be listed in the preloaded symbols.
16364
exclude_expsyms=$lt_exclude_expsyms_F77
16366
# Symbols that must always be exported.
16367
include_expsyms=$lt_include_expsyms_F77
16369
# ### END LIBTOOL TAG CONFIG: $tagname
16375
# If there is no Makefile yet, we rely on a make rule to execute
16376
# `config.status --recheck' to rerun these tests and create the
16377
# libtool script then.
16378
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16379
if test -f "$ltmain_in"; then
16380
test -f Makefile && make "$ltmain"
16386
ac_cpp='$CPP $CPPFLAGS'
16387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16399
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16403
# Source file extension for Java test sources.
16406
# Object file extension for compiled Java test sources.
16410
# Code to be used in simple compile tests
16411
lt_simple_compile_test_code="class foo {}\n"
16413
# Code to be used in simple link tests
16414
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16416
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16418
# If no C compiler was specified, use CC.
16421
# If no C compiler flags were specified, use CFLAGS.
16422
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16424
# Allow CC to be a program name with arguments.
16428
# save warnings/boilerplate of simple test code
16429
ac_outfile=conftest.$ac_objext
16430
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16431
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16432
_lt_compiler_boilerplate=`cat conftest.err`
16435
ac_outfile=conftest.$ac_objext
16436
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16437
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16438
_lt_linker_boilerplate=`cat conftest.err`
16442
# Allow CC to be a program name with arguments.
16447
for cc_temp in $compiler""; do
16449
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16450
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16455
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16458
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16459
archive_cmds_need_lc_GCJ=no
16461
old_archive_cmds_GCJ=$old_archive_cmds
16464
lt_prog_compiler_no_builtin_flag_GCJ=
16466
if test "$GCC" = yes; then
16467
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16470
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16471
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16472
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16473
echo $ECHO_N "(cached) $ECHO_C" >&6
16475
lt_cv_prog_compiler_rtti_exceptions=no
16476
ac_outfile=conftest.$ac_objext
16477
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16478
lt_compiler_flag="-fno-rtti -fno-exceptions"
16479
# Insert the option either (1) after the last *FLAGS variable, or
16480
# (2) before a word containing "conftest.", or (3) at the end.
16481
# Note that $ac_compile itself does not contain backslashes and begins
16482
# with a dollar sign (not a hyphen), so the echo should work correctly.
16483
# The option is referenced via a variable to avoid confusing sed.
16484
lt_compile=`echo "$ac_compile" | $SED \
16485
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487
-e 's:$: $lt_compiler_flag:'`
16488
(eval echo "\"\$as_me:16488: $lt_compile\"" >&5)
16489
(eval "$lt_compile" 2>conftest.err)
16491
cat conftest.err >&5
16492
echo "$as_me:16492: \$? = $ac_status" >&5
16493
if (exit $ac_status) && test -s "$ac_outfile"; then
16494
# The compiler can only warn and ignore the option if not recognized
16495
# So say no if there are warnings other than the usual output.
16496
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16497
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16498
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16499
lt_cv_prog_compiler_rtti_exceptions=yes
16505
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16506
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16508
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16509
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16516
lt_prog_compiler_wl_GCJ=
16517
lt_prog_compiler_pic_GCJ=
16518
lt_prog_compiler_static_GCJ=
16520
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16521
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16523
if test "$GCC" = yes; then
16524
lt_prog_compiler_wl_GCJ='-Wl,'
16525
lt_prog_compiler_static_GCJ='-static'
16529
# All AIX code is PIC.
16530
if test "$host_cpu" = ia64; then
16531
# AIX 5 now supports IA64 processor
16532
lt_prog_compiler_static_GCJ='-Bstatic'
16537
# FIXME: we need at least 68020 code to build shared libraries, but
16538
# adding the `-m68020' flag to GCC prevents building anything better,
16540
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16543
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16544
# PIC is the default for these OSes.
16547
mingw* | pw32* | os2*)
16548
# This hack is so that the source file can tell whether it is being
16549
# built for inclusion in a dll (and should export symbols for example).
16550
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16553
darwin* | rhapsody*)
16554
# PIC is the default on this platform
16555
# Common symbols not allowed in MH_DYLIB files
16556
lt_prog_compiler_pic_GCJ='-fno-common'
16560
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16561
# Instead, we relocate shared libraries at runtime.
16565
# Just because we use GCC doesn't mean we suddenly get shared libraries
16566
# on systems that don't support them.
16567
lt_prog_compiler_can_build_shared_GCJ=no
16572
if test -d /usr/nec; then
16573
lt_prog_compiler_pic_GCJ=-Kconform_pic
16578
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16579
# not for PA HP-UX.
16585
lt_prog_compiler_pic_GCJ='-fPIC'
16591
lt_prog_compiler_pic_GCJ='-fPIC'
16595
# PORTME Check for flag to pass linker flags through the system compiler.
16598
lt_prog_compiler_wl_GCJ='-Wl,'
16599
if test "$host_cpu" = ia64; then
16600
# AIX 5 now supports IA64 processor
16601
lt_prog_compiler_static_GCJ='-Bstatic'
16603
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16607
# PIC is the default on this platform
16608
# Common symbols not allowed in MH_DYLIB files
16609
case $cc_basename in
16611
lt_prog_compiler_pic_GCJ='-qnocommon'
16612
lt_prog_compiler_wl_GCJ='-Wl,'
16617
mingw* | pw32* | os2*)
16618
# This hack is so that the source file can tell whether it is being
16619
# built for inclusion in a dll (and should export symbols for example).
16620
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16623
hpux9* | hpux10* | hpux11*)
16624
lt_prog_compiler_wl_GCJ='-Wl,'
16625
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16626
# not for PA HP-UX.
16632
lt_prog_compiler_pic_GCJ='+Z'
16635
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16636
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16639
irix5* | irix6* | nonstopux*)
16640
lt_prog_compiler_wl_GCJ='-Wl,'
16641
# PIC (with -KPIC) is the default.
16642
lt_prog_compiler_static_GCJ='-non_shared'
16646
lt_prog_compiler_pic_GCJ='-KPIC'
16647
lt_prog_compiler_static_GCJ='-Bstatic'
16651
case $cc_basename in
16653
lt_prog_compiler_wl_GCJ='-Wl,'
16654
lt_prog_compiler_pic_GCJ='-KPIC'
16655
lt_prog_compiler_static_GCJ='-static'
16657
pgcc* | pgf77* | pgf90* | pgf95*)
16658
# Portland Group compilers (*not* the Pentium gcc compiler,
16659
# which looks to be a dead project)
16660
lt_prog_compiler_wl_GCJ='-Wl,'
16661
lt_prog_compiler_pic_GCJ='-fpic'
16662
lt_prog_compiler_static_GCJ='-Bstatic'
16665
lt_prog_compiler_wl_GCJ='-Wl,'
16666
# All Alpha code is PIC.
16667
lt_prog_compiler_static_GCJ='-non_shared'
16672
osf3* | osf4* | osf5*)
16673
lt_prog_compiler_wl_GCJ='-Wl,'
16674
# All OSF/1 code is PIC.
16675
lt_prog_compiler_static_GCJ='-non_shared'
16679
lt_prog_compiler_pic_GCJ='-KPIC'
16680
lt_prog_compiler_static_GCJ='-Bstatic'
16681
case $cc_basename in
16682
f77* | f90* | f95*)
16683
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16685
lt_prog_compiler_wl_GCJ='-Wl,';;
16690
lt_prog_compiler_wl_GCJ='-Qoption ld '
16691
lt_prog_compiler_pic_GCJ='-PIC'
16692
lt_prog_compiler_static_GCJ='-Bstatic'
16695
sysv4 | sysv4.2uw2* | sysv4.3*)
16696
lt_prog_compiler_wl_GCJ='-Wl,'
16697
lt_prog_compiler_pic_GCJ='-KPIC'
16698
lt_prog_compiler_static_GCJ='-Bstatic'
16702
if test -d /usr/nec ;then
16703
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16704
lt_prog_compiler_static_GCJ='-Bstatic'
16708
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16709
lt_prog_compiler_wl_GCJ='-Wl,'
16710
lt_prog_compiler_pic_GCJ='-KPIC'
16711
lt_prog_compiler_static_GCJ='-Bstatic'
16715
lt_prog_compiler_wl_GCJ='-Wl,'
16716
lt_prog_compiler_can_build_shared_GCJ=no
16720
lt_prog_compiler_pic_GCJ='-pic'
16721
lt_prog_compiler_static_GCJ='-Bstatic'
16725
lt_prog_compiler_can_build_shared_GCJ=no
16730
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16731
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16734
# Check to make sure the PIC flag actually works.
16736
if test -n "$lt_prog_compiler_pic_GCJ"; then
16738
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16739
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16740
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16741
echo $ECHO_N "(cached) $ECHO_C" >&6
16743
lt_prog_compiler_pic_works_GCJ=no
16744
ac_outfile=conftest.$ac_objext
16745
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16746
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16747
# Insert the option either (1) after the last *FLAGS variable, or
16748
# (2) before a word containing "conftest.", or (3) at the end.
16749
# Note that $ac_compile itself does not contain backslashes and begins
16750
# with a dollar sign (not a hyphen), so the echo should work correctly.
16751
# The option is referenced via a variable to avoid confusing sed.
16752
lt_compile=`echo "$ac_compile" | $SED \
16753
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16754
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16755
-e 's:$: $lt_compiler_flag:'`
16756
(eval echo "\"\$as_me:16756: $lt_compile\"" >&5)
16757
(eval "$lt_compile" 2>conftest.err)
16759
cat conftest.err >&5
16760
echo "$as_me:16760: \$? = $ac_status" >&5
16761
if (exit $ac_status) && test -s "$ac_outfile"; then
16762
# The compiler can only warn and ignore the option if not recognized
16763
# So say no if there are warnings other than the usual output.
16764
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16765
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16766
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16767
lt_prog_compiler_pic_works_GCJ=yes
16773
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16774
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16776
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16777
case $lt_prog_compiler_pic_GCJ in
16779
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16782
lt_prog_compiler_pic_GCJ=
16783
lt_prog_compiler_can_build_shared_GCJ=no
16788
# For platforms which do not support PIC, -DPIC is meaningless:
16790
lt_prog_compiler_pic_GCJ=
16793
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16798
# Check to make sure the static flag actually works.
16800
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16801
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16802
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16803
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16804
echo $ECHO_N "(cached) $ECHO_C" >&6
16806
lt_prog_compiler_static_works_GCJ=no
16807
save_LDFLAGS="$LDFLAGS"
16808
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16809
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16810
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16811
# The linker can only warn and ignore the option if not recognized
16812
# So say no if there are warnings
16813
if test -s conftest.err; then
16814
# Append any errors to the config.log.
16815
cat conftest.err 1>&5
16816
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16817
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16818
if diff conftest.exp conftest.er2 >/dev/null; then
16819
lt_prog_compiler_static_works_GCJ=yes
16822
lt_prog_compiler_static_works_GCJ=yes
16826
LDFLAGS="$save_LDFLAGS"
16829
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16830
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16832
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16835
lt_prog_compiler_static_GCJ=
16839
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16840
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16841
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16842
echo $ECHO_N "(cached) $ECHO_C" >&6
16844
lt_cv_prog_compiler_c_o_GCJ=no
16845
$rm -r conftest 2>/dev/null
16849
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16851
lt_compiler_flag="-o out/conftest2.$ac_objext"
16852
# Insert the option either (1) after the last *FLAGS variable, or
16853
# (2) before a word containing "conftest.", or (3) at the end.
16854
# Note that $ac_compile itself does not contain backslashes and begins
16855
# with a dollar sign (not a hyphen), so the echo should work correctly.
16856
lt_compile=`echo "$ac_compile" | $SED \
16857
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16858
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16859
-e 's:$: $lt_compiler_flag:'`
16860
(eval echo "\"\$as_me:16860: $lt_compile\"" >&5)
16861
(eval "$lt_compile" 2>out/conftest.err)
16863
cat out/conftest.err >&5
16864
echo "$as_me:16864: \$? = $ac_status" >&5
16865
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16867
# The compiler can only warn and ignore the option if not recognized
16868
# So say no if there are warnings
16869
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16870
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16871
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16872
lt_cv_prog_compiler_c_o_GCJ=yes
16877
# SGI C++ compiler will create directory out/ii_files/ for
16878
# template instantiation
16879
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16880
$rm out/* && rmdir out
16886
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16887
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16890
hard_links="nottested"
16891
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16892
# do not overwrite the value of need_locks provided by the user
16893
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16894
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16897
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16899
ln conftest.a conftest.b 2>&5 || hard_links=no
16900
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16901
echo "$as_me:$LINENO: result: $hard_links" >&5
16902
echo "${ECHO_T}$hard_links" >&6
16903
if test "$hard_links" = no; then
16904
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16905
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16912
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16913
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16916
allow_undefined_flag_GCJ=
16917
enable_shared_with_static_runtimes_GCJ=no
16919
archive_expsym_cmds_GCJ=
16920
old_archive_From_new_cmds_GCJ=
16921
old_archive_from_expsyms_cmds_GCJ=
16922
export_dynamic_flag_spec_GCJ=
16923
whole_archive_flag_spec_GCJ=
16924
thread_safe_flag_spec_GCJ=
16925
hardcode_libdir_flag_spec_GCJ=
16926
hardcode_libdir_flag_spec_ld_GCJ=
16927
hardcode_libdir_separator_GCJ=
16928
hardcode_direct_GCJ=no
16929
hardcode_minus_L_GCJ=no
16930
hardcode_shlibpath_var_GCJ=unsupported
16931
link_all_deplibs_GCJ=unknown
16932
hardcode_automatic_GCJ=no
16934
module_expsym_cmds_GCJ=
16935
always_export_symbols_GCJ=no
16936
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16937
# include_expsyms should be a list of space-separated symbols to be *always*
16938
# included in the symbol list
16939
include_expsyms_GCJ=
16940
# exclude_expsyms can be an extended regexp of symbols to exclude
16941
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16942
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16943
# as well as any symbol that contains `d'.
16944
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16945
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16946
# platforms (ab)use it in PIC code, but their linkers get confused if
16947
# the symbol is explicitly referenced. Since portable code cannot
16948
# rely on this symbol name, it's probably fine to never include it in
16949
# preloaded symbol tables.
16950
extract_expsyms_cmds=
16951
# Just being paranoid about ensuring that cc_basename is set.
16952
for cc_temp in $compiler""; do
16954
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16955
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16960
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16963
cygwin* | mingw* | pw32*)
16964
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16965
# When not using gcc, we currently assume that we are using
16966
# Microsoft Visual C++.
16967
if test "$GCC" != yes; then
16972
# we just hope/assume this is gcc and not c89 (= MSVC++)
16981
if test "$with_gnu_ld" = yes; then
16982
# If archive_cmds runs LD, not CC, wlarc should be empty
16985
# Set some defaults for GNU ld with shared library support. These
16986
# are reset later if shared libraries are not supported. Putting them
16987
# here allows them to be overridden if necessary.
16988
runpath_var=LD_RUN_PATH
16989
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16990
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16991
# ancient GNU ld didn't support --whole-archive et. al.
16992
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16993
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16995
whole_archive_flag_spec_GCJ=
16997
supports_anon_versioning=no
16998
case `$LD -v 2>/dev/null` in
16999
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17000
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17001
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17002
*\ 2.11.*) ;; # other 2.11 versions
17003
*) supports_anon_versioning=yes ;;
17006
# See if GNU ld supports shared libraries.
17008
aix3* | aix4* | aix5*)
17009
# On AIX/PPC, the GNU linker is very broken
17010
if test "$host_cpu" != ia64; then
17014
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17015
*** to be unable to reliably create shared libraries on AIX.
17016
*** Therefore, libtool is disabling shared libraries support. If you
17017
*** really care for shared libraries, you may want to modify your PATH
17018
*** so that a non-GNU linker is found, and then restart.
17025
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)'
17026
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17027
hardcode_minus_L_GCJ=yes
17029
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17030
# that the semantics of dynamic libraries on AmigaOS, at least up
17031
# to version 4, is to share data among multiple programs linked
17032
# with the same dynamic library. Since this doesn't match the
17033
# behavior of shared libraries on other platforms, we can't use
17039
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040
allow_undefined_flag_GCJ=unsupported
17041
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17042
# support --undefined. This deserves some investigation. FIXME
17043
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049
cygwin* | mingw* | pw32*)
17050
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17051
# as there is no search path for DLLs.
17052
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053
allow_undefined_flag_GCJ=unsupported
17054
always_export_symbols_GCJ=no
17055
enable_shared_with_static_runtimes_GCJ=yes
17056
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17058
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17059
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17060
# If the export-symbols file already is a .def file (1st line
17061
# is EXPORTS), use it as is; otherwise, prepend...
17062
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17063
cp $export_symbols $output_objdir/$soname.def;
17065
echo EXPORTS > $output_objdir/$soname.def;
17066
cat $export_symbols >> $output_objdir/$soname.def;
17068
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17075
hardcode_direct_GCJ=no
17076
hardcode_shlibpath_var_GCJ=no
17077
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17078
export_dynamic_flag_spec_GCJ='${wl}-E'
17079
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17080
# Instead, shared libraries are loaded at an image base (0x10000000 by
17081
# default) and relocated if they conflict, which is a slow very memory
17082
# consuming and fragmenting process. To avoid this, we pick a random,
17083
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17084
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17085
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'
17086
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'
17090
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092
case $cc_basename,$host_cpu in
17093
pgcc*) # Portland Group C compiler
17094
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'
17095
tmp_addflag=' $pic_flag'
17097
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17098
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'
17099
tmp_addflag=' $pic_flag -Mnomain' ;;
17100
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17101
tmp_addflag=' -i_dynamic' ;;
17102
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17103
tmp_addflag=' -i_dynamic -nofor_main' ;;
17104
ifc* | ifort*) # Intel Fortran compiler
17105
tmp_addflag=' -nofor_main' ;;
17107
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17109
if test $supports_anon_versioning = yes; then
17110
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17111
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17112
$echo "local: *; };" >> $output_objdir/$libname.ver~
17113
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17121
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17122
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17125
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17126
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17131
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17135
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17136
*** create shared libraries on Solaris systems. Therefore, libtool
17137
*** is disabling shared libraries support. We urge you to upgrade GNU
17138
*** binutils to release 2.9.1 or newer. Another option is to modify
17139
*** your PATH or compiler configuration so that the native linker is
17140
*** used, and then restart.
17143
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17144
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17145
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17151
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17152
case `$LD -v 2>&1` in
17153
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17157
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17158
*** reliably create shared libraries on SCO systems. Therefore, libtool
17159
*** is disabling shared libraries support. We urge you to upgrade GNU
17160
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17161
*** your PATH or compiler configuration so that the native linker is
17162
*** used, and then restart.
17167
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17168
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17169
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17170
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17179
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17181
hardcode_direct_GCJ=yes
17182
hardcode_shlibpath_var_GCJ=no
17186
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17187
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17188
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17195
if test "$ld_shlibs_GCJ" = no; then
17197
hardcode_libdir_flag_spec_GCJ=
17198
export_dynamic_flag_spec_GCJ=
17199
whole_archive_flag_spec_GCJ=
17202
# PORTME fill in a description of your system's linker (not GNU ld)
17205
allow_undefined_flag_GCJ=unsupported
17206
always_export_symbols_GCJ=yes
17207
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'
17208
# Note: this linker hardcodes the directories in LIBPATH if there
17209
# are no directories specified by -L.
17210
hardcode_minus_L_GCJ=yes
17211
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17212
# Neither direct hardcoding nor static linking is supported with a
17214
hardcode_direct_GCJ=unsupported
17219
if test "$host_cpu" = ia64; then
17220
# On IA64, the linker does run time linking by default, so we don't
17221
# have to do anything special.
17222
aix_use_runtimelinking=no
17223
exp_sym_flag='-Bexport'
17226
# If we're using GNU nm, then we don't want the "-C" option.
17227
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17228
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17229
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'
17231
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'
17233
aix_use_runtimelinking=no
17235
# Test if we are trying to use run time linking or normal
17236
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17237
# need to do runtime linking.
17238
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17239
for ld_flag in $LDFLAGS; do
17240
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17241
aix_use_runtimelinking=yes
17248
exp_sym_flag='-bexport'
17249
no_entry_flag='-bnoentry'
17252
# When large executables or shared objects are built, AIX ld can
17253
# have problems creating the table of contents. If linking a library
17254
# or program results in "error TOC overflow" add -mminimal-toc to
17255
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17256
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17258
archive_cmds_GCJ=''
17259
hardcode_direct_GCJ=yes
17260
hardcode_libdir_separator_GCJ=':'
17261
link_all_deplibs_GCJ=yes
17263
if test "$GCC" = yes; then
17264
case $host_os in aix4.[012]|aix4.[012].*)
17265
# We only want to do this on AIX 4.2 and lower, the check
17266
# below for broken collect2 doesn't work under 4.3+
17267
collect2name=`${CC} -print-prog-name=collect2`
17268
if test -f "$collect2name" && \
17269
strings "$collect2name" | grep resolve_lib_name >/dev/null
17271
# We have reworked collect2
17272
hardcode_direct_GCJ=yes
17274
# We have old collect2
17275
hardcode_direct_GCJ=unsupported
17276
# It fails to find uninstalled libraries when the uninstalled
17277
# path is not listed in the libpath. Setting hardcode_minus_L
17278
# to unsupported forces relinking
17279
hardcode_minus_L_GCJ=yes
17280
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17281
hardcode_libdir_separator_GCJ=
17285
shared_flag='-shared'
17286
if test "$aix_use_runtimelinking" = yes; then
17287
shared_flag="$shared_flag "'${wl}-G'
17291
if test "$host_cpu" = ia64; then
17292
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17293
# chokes on -Wl,-G. The following line is correct:
17296
if test "$aix_use_runtimelinking" = yes; then
17297
shared_flag='${wl}-G'
17299
shared_flag='${wl}-bM:SRE'
17304
# It seems that -bexpall does not export symbols beginning with
17305
# underscore (_), so it is better to generate a list of symbols to export.
17306
always_export_symbols_GCJ=yes
17307
if test "$aix_use_runtimelinking" = yes; then
17308
# Warning - without using the other runtime loading flags (-brtl),
17309
# -berok will link without error, but may produce a broken library.
17310
allow_undefined_flag_GCJ='-berok'
17311
# Determine the default libpath from the value encoded in an empty executable.
17312
cat >conftest.$ac_ext <<_ACEOF
17315
cat confdefs.h >>conftest.$ac_ext
17316
cat >>conftest.$ac_ext <<_ACEOF
17317
/* end confdefs.h. */
17327
rm -f conftest.$ac_objext conftest$ac_exeext
17328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329
(eval $ac_link) 2>conftest.er1
17331
grep -v '^ *+' conftest.er1 >conftest.err
17333
cat conftest.err >&5
17334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335
(exit $ac_status); } &&
17336
{ ac_try='test -z "$ac_c_werror_flag"
17337
|| test ! -s conftest.err'
17338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339
(eval $ac_try) 2>&5
17341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342
(exit $ac_status); }; } &&
17343
{ ac_try='test -s conftest$ac_exeext'
17344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345
(eval $ac_try) 2>&5
17347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348
(exit $ac_status); }; }; then
17350
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17352
# Check for a 64-bit object if we didn't find anything.
17353
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17356
echo "$as_me: failed program was:" >&5
17357
sed 's/^/| /' conftest.$ac_ext >&5
17360
rm -f conftest.err conftest.$ac_objext \
17361
conftest$ac_exeext conftest.$ac_ext
17362
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17364
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17365
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"
17367
if test "$host_cpu" = ia64; then
17368
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17369
allow_undefined_flag_GCJ="-z nodefs"
17370
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"
17372
# Determine the default libpath from the value encoded in an empty executable.
17373
cat >conftest.$ac_ext <<_ACEOF
17376
cat confdefs.h >>conftest.$ac_ext
17377
cat >>conftest.$ac_ext <<_ACEOF
17378
/* end confdefs.h. */
17388
rm -f conftest.$ac_objext conftest$ac_exeext
17389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390
(eval $ac_link) 2>conftest.er1
17392
grep -v '^ *+' conftest.er1 >conftest.err
17394
cat conftest.err >&5
17395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396
(exit $ac_status); } &&
17397
{ ac_try='test -z "$ac_c_werror_flag"
17398
|| test ! -s conftest.err'
17399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400
(eval $ac_try) 2>&5
17402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403
(exit $ac_status); }; } &&
17404
{ ac_try='test -s conftest$ac_exeext'
17405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406
(eval $ac_try) 2>&5
17408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409
(exit $ac_status); }; }; then
17411
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17413
# Check for a 64-bit object if we didn't find anything.
17414
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17417
echo "$as_me: failed program was:" >&5
17418
sed 's/^/| /' conftest.$ac_ext >&5
17421
rm -f conftest.err conftest.$ac_objext \
17422
conftest$ac_exeext conftest.$ac_ext
17423
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17425
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17426
# Warning - without using the other run time loading flags,
17427
# -berok will link without error, but may produce a broken library.
17428
no_undefined_flag_GCJ=' ${wl}-bernotok'
17429
allow_undefined_flag_GCJ=' ${wl}-berok'
17430
# Exported symbols can be pulled into shared objects from archives
17431
whole_archive_flag_spec_GCJ='$convenience'
17432
archive_cmds_need_lc_GCJ=yes
17433
# This is similar to how AIX traditionally builds its shared libraries.
17434
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'
17440
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)'
17441
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17442
hardcode_minus_L_GCJ=yes
17443
# see comment about different semantics on the GNU ld section
17448
export_dynamic_flag_spec_GCJ=-rdynamic
17451
cygwin* | mingw* | pw32*)
17452
# When not using gcc, we currently assume that we are using
17453
# Microsoft Visual C++.
17454
# hardcode_libdir_flag_spec is actually meaningless, as there is
17455
# no search path for DLLs.
17456
hardcode_libdir_flag_spec_GCJ=' '
17457
allow_undefined_flag_GCJ=unsupported
17458
# Tell ltmain to make .lib files, not .a files.
17460
# Tell ltmain to make .dll files, not .so files.
17462
# FIXME: Setting linknames here is a bad hack.
17463
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17464
# The linker will automatically build a .lib file if we build a DLL.
17465
old_archive_From_new_cmds_GCJ='true'
17466
# FIXME: Should let the user specify the lib program.
17467
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17468
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17469
enable_shared_with_static_runtimes_GCJ=yes
17472
darwin* | rhapsody*)
17474
rhapsody* | darwin1.[012])
17475
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17478
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17479
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17481
case ${MACOSX_DEPLOYMENT_TARGET} in
17483
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17486
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17492
archive_cmds_need_lc_GCJ=no
17493
hardcode_direct_GCJ=no
17494
hardcode_automatic_GCJ=yes
17495
hardcode_shlibpath_var_GCJ=unsupported
17496
whole_archive_flag_spec_GCJ=''
17497
link_all_deplibs_GCJ=yes
17498
if test "$GCC" = yes ; then
17499
output_verbose_link_cmd='echo'
17500
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17501
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17502
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17503
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17504
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}'
17506
case $cc_basename in
17508
output_verbose_link_cmd='echo'
17509
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17510
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17511
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17512
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17513
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}'
17523
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17525
hardcode_shlibpath_var_GCJ=no
17532
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17533
# support. Future versions do this automatically, but an explicit c++rt0.o
17534
# does not break anything, and helps significantly (at the cost of a little
17537
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17538
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539
hardcode_direct_GCJ=yes
17540
hardcode_shlibpath_var_GCJ=no
17543
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17545
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17546
hardcode_direct_GCJ=yes
17547
hardcode_minus_L_GCJ=yes
17548
hardcode_shlibpath_var_GCJ=no
17551
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17552
freebsd* | kfreebsd*-gnu | dragonfly*)
17553
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17554
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17555
hardcode_direct_GCJ=yes
17556
hardcode_shlibpath_var_GCJ=no
17560
if test "$GCC" = yes; then
17561
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'
17563
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'
17565
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17566
hardcode_libdir_separator_GCJ=:
17567
hardcode_direct_GCJ=yes
17569
# hardcode_minus_L: Not really in the search PATH,
17570
# but as the default location of the library.
17571
hardcode_minus_L_GCJ=yes
17572
export_dynamic_flag_spec_GCJ='${wl}-E'
17576
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17577
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17579
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17581
if test "$with_gnu_ld" = no; then
17582
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17583
hardcode_libdir_separator_GCJ=:
17585
hardcode_direct_GCJ=yes
17586
export_dynamic_flag_spec_GCJ='${wl}-E'
17588
# hardcode_minus_L: Not really in the search PATH,
17589
# but as the default location of the library.
17590
hardcode_minus_L_GCJ=yes
17595
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17598
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17601
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17604
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17610
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17616
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17620
if test "$with_gnu_ld" = no; then
17621
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17622
hardcode_libdir_separator_GCJ=:
17626
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17627
hardcode_direct_GCJ=no
17628
hardcode_shlibpath_var_GCJ=no
17631
hardcode_direct_GCJ=yes
17632
export_dynamic_flag_spec_GCJ='${wl}-E'
17634
# hardcode_minus_L: Not really in the search PATH,
17635
# but as the default location of the library.
17636
hardcode_minus_L_GCJ=yes
17642
irix5* | irix6* | nonstopux*)
17643
if test "$GCC" = yes; then
17644
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'
17646
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'
17647
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17649
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17650
hardcode_libdir_separator_GCJ=:
17651
link_all_deplibs_GCJ=yes
17655
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17656
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17658
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17660
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17661
hardcode_direct_GCJ=yes
17662
hardcode_shlibpath_var_GCJ=no
17666
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667
hardcode_direct_GCJ=yes
17668
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17669
hardcode_libdir_separator_GCJ=:
17670
hardcode_shlibpath_var_GCJ=no
17674
hardcode_direct_GCJ=yes
17675
hardcode_shlibpath_var_GCJ=no
17676
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17677
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17678
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17679
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17680
export_dynamic_flag_spec_GCJ='${wl}-E'
17683
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17684
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17685
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17688
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17689
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17696
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17697
hardcode_minus_L_GCJ=yes
17698
allow_undefined_flag_GCJ=unsupported
17699
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'
17700
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17704
if test "$GCC" = yes; then
17705
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17706
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'
17708
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17709
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'
17711
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17712
hardcode_libdir_separator_GCJ=:
17715
osf4* | osf5*) # as osf3* with the addition of -msym flag
17716
if test "$GCC" = yes; then
17717
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17718
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'
17719
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17721
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17722
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'
17723
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~
17724
$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'
17726
# Both c and cxx compiler support -rpath directly
17727
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17729
hardcode_libdir_separator_GCJ=:
17733
no_undefined_flag_GCJ=' -z text'
17734
if test "$GCC" = yes; then
17736
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17737
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17738
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17741
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17743
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17745
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17746
hardcode_shlibpath_var_GCJ=no
17748
solaris2.[0-5] | solaris2.[0-5].*) ;;
17750
# The compiler driver will combine linker options so we
17751
# cannot just pass the convience library names through
17752
# without $wl, iff we do not link with $LD.
17753
# Luckily, gcc supports the same syntax we need for Sun Studio.
17754
# Supported since Solaris 2.6 (maybe 2.5.1?)
17757
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17759
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17762
link_all_deplibs_GCJ=yes
17766
if test "x$host_vendor" = xsequent; then
17767
# Use $CC to link under sequent, because it throws in some extra .o
17768
# files that make .init and .fini sections work.
17769
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17771
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17773
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17774
hardcode_direct_GCJ=yes
17775
hardcode_minus_L_GCJ=yes
17776
hardcode_shlibpath_var_GCJ=no
17780
case $host_vendor in
17782
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783
hardcode_direct_GCJ=yes # is this really true???
17786
## LD is ld it makes a PLAMLIB
17787
## CC just makes a GrossModule.
17788
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17789
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17790
hardcode_direct_GCJ=no
17793
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17797
runpath_var='LD_RUN_PATH'
17798
hardcode_shlibpath_var_GCJ=no
17802
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17803
hardcode_shlibpath_var_GCJ=no
17804
export_dynamic_flag_spec_GCJ='-Bexport'
17808
if test -d /usr/nec; then
17809
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810
hardcode_shlibpath_var_GCJ=no
17811
runpath_var=LD_RUN_PATH
17812
hardcode_runpath_var=yes
17817
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17818
no_undefined_flag_GCJ='${wl}-z,text'
17819
archive_cmds_need_lc_GCJ=no
17820
hardcode_shlibpath_var_GCJ=no
17821
runpath_var='LD_RUN_PATH'
17823
if test "$GCC" = yes; then
17824
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17825
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17827
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17828
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832
sysv5* | sco3.2v5* | sco5v6*)
17833
# Note: We can NOT use -z defs as we might desire, because we do not
17834
# link with -lc, and that would cause any symbols used from libc to
17835
# always be unresolved, which means just about no library would
17836
# ever link correctly. If we're not using GNU ld we use -z text
17837
# though, which does catch some bad symbols but isn't as heavy-handed
17839
no_undefined_flag_GCJ='${wl}-z,text'
17840
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17841
archive_cmds_need_lc_GCJ=no
17842
hardcode_shlibpath_var_GCJ=no
17843
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17844
hardcode_libdir_separator_GCJ=':'
17845
link_all_deplibs_GCJ=yes
17846
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17847
runpath_var='LD_RUN_PATH'
17849
if test "$GCC" = yes; then
17850
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17851
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17853
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17854
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17860
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17861
hardcode_shlibpath_var_GCJ=no
17870
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17871
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17872
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17875
# Do we need to explicitly link libc?
17877
case "x$archive_cmds_need_lc_GCJ" in
17879
# Assume -lc should be added
17880
archive_cmds_need_lc_GCJ=yes
17882
if test "$enable_shared" = yes && test "$GCC" = yes; then
17883
case $archive_cmds_GCJ in
17885
# FIXME: we may have to deal with multi-command sequences.
17888
# Test whether the compiler implicitly links with -lc since on some
17889
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17890
# to ld, don't add -lc before -lgcc.
17891
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17892
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17894
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17896
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897
(eval $ac_compile) 2>&5
17899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900
(exit $ac_status); } 2>conftest.err; then
17903
libobjs=conftest.$ac_objext
17905
wl=$lt_prog_compiler_wl_GCJ
17906
pic_flag=$lt_prog_compiler_pic_GCJ
17912
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17913
allow_undefined_flag_GCJ=
17914
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17915
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918
(exit $ac_status); }
17920
archive_cmds_need_lc_GCJ=no
17922
archive_cmds_need_lc_GCJ=yes
17924
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17926
cat conftest.err 1>&5
17929
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17930
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17937
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17938
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17939
library_names_spec=
17940
libname_spec='lib$name'
17944
postuninstall_cmds=
17948
shlibpath_overrides_runpath=unknown
17950
dynamic_linker="$host_os ld.so"
17951
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17952
if test "$GCC" = yes; then
17953
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17954
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17955
# if the path contains ";" then we assume it to be the separator
17956
# otherwise default to the standard path separator (i.e. ":") - it is
17957
# assumed that no part of a normal pathname contains ";" but that should
17958
# okay in the real world where ";" in dirpaths is itself problematic.
17959
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17961
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17964
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17966
need_lib_prefix=unknown
17967
hardcode_into_libs=no
17969
# when you set need_version to no, make sure it does not cause -set_version
17970
# flags to be left without arguments
17971
need_version=unknown
17976
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17977
shlibpath_var=LIBPATH
17979
# AIX 3 has no versioning support, so we append a major version to the name.
17980
soname_spec='${libname}${release}${shared_ext}$major'
17987
hardcode_into_libs=yes
17988
if test "$host_cpu" = ia64; then
17989
# AIX 5 supports IA64
17990
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17991
shlibpath_var=LD_LIBRARY_PATH
17993
# With GCC up to 2.95.x, collect2 would create an import file
17994
# for dependence libraries. The import file would start with
17995
# the line `#! .'. This would cause the generated library to
17996
# depend on `.', always an invalid library. This was fixed in
17997
# development snapshots of GCC prior to 3.0.
17999
aix4 | aix4.[01] | aix4.[01].*)
18000
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18002
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18005
can_build_shared=no
18009
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18010
# soname into executable. Probably we can add versioning support to
18011
# collect2, so additional links can be useful in future.
18012
if test "$aix_use_runtimelinking" = yes; then
18013
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18014
# instead of lib<name>.a to let people know that these are not
18015
# typical AIX shared libraries.
18016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018
# We preserve .a as extension for shared libraries through AIX4.2
18019
# and later when we are not doing run time linking.
18020
library_names_spec='${libname}${release}.a $libname.a'
18021
soname_spec='${libname}${release}${shared_ext}$major'
18023
shlibpath_var=LIBPATH
18028
library_names_spec='$libname.ixlibrary $libname.a'
18029
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18030
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'
18034
library_names_spec='${libname}${shared_ext}'
18035
dynamic_linker="$host_os ld.so"
18036
shlibpath_var=LIBRARY_PATH
18042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043
soname_spec='${libname}${release}${shared_ext}$major'
18044
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18045
shlibpath_var=LD_LIBRARY_PATH
18046
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18047
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18048
# the default ld.so.conf also contains /usr/contrib/lib and
18049
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18050
# libtool to hard-code these into programs
18053
cygwin* | mingw* | pw32*)
18054
version_type=windows
18059
case $GCC,$host_os in
18060
yes,cygwin* | yes,mingw* | yes,pw32*)
18061
library_names_spec='$libname.dll.a'
18062
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18063
postinstall_cmds='base_file=`basename \${file}`~
18064
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18065
dldir=$destdir/`dirname \$dlpath`~
18066
test -d \$dldir || mkdir -p \$dldir~
18067
$install_prog $dir/$dlname \$dldir/$dlname~
18068
chmod a+x \$dldir/$dlname'
18069
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18070
dlpath=$dir/\$dldll~
18072
shlibpath_overrides_runpath=yes
18076
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18077
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18078
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18081
# MinGW DLLs use traditional 'lib' prefix
18082
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18083
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18084
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18085
# It is most probably a Windows format PATH printed by
18086
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18087
# path with ; separators, and with drive letters. We can handle the
18088
# drive letters (cygwin fileutils understands them), so leave them,
18089
# especially as we might pass files found there to a mingw objdump,
18090
# which wouldn't understand a cygwinified path. Ahh.
18091
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18093
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18097
# pw32 DLLs use 'pw' prefix rather than 'lib'
18098
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18104
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18107
dynamic_linker='Win32 ld.exe'
18108
# FIXME: first we should search . and the directory the executable is in
18112
darwin* | rhapsody*)
18113
dynamic_linker="$host_os dyld"
18114
version_type=darwin
18117
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18118
soname_spec='${libname}${release}${major}$shared_ext'
18119
shlibpath_overrides_runpath=yes
18120
shlibpath_var=DYLD_LIBRARY_PATH
18121
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18122
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18123
if test "$GCC" = yes; then
18124
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18126
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18128
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18136
soname_spec='${libname}${release}${shared_ext}$major'
18137
shlibpath_var=LD_LIBRARY_PATH
18148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149
soname_spec='${libname}${release}${shared_ext}$major'
18150
shlibpath_var=LD_LIBRARY_PATH
18151
shlibpath_overrides_runpath=no
18152
hardcode_into_libs=yes
18153
dynamic_linker='GNU ld.so'
18156
freebsd* | dragonfly*)
18157
# DragonFly does not have aout. When/if they implement a new
18158
# versioning mechanism, adjust this.
18159
if test -x /usr/bin/objformat; then
18160
objformat=`/usr/bin/objformat`
18163
freebsd[123]*) objformat=aout ;;
18164
*) objformat=elf ;;
18167
version_type=freebsd-$objformat
18168
case $version_type in
18170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18175
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18179
shlibpath_var=LD_LIBRARY_PATH
18182
shlibpath_overrides_runpath=yes
18184
freebsd3.[01]* | freebsdelf3.[01]*)
18185
shlibpath_overrides_runpath=yes
18186
hardcode_into_libs=yes
18188
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18189
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18190
shlibpath_overrides_runpath=no
18191
hardcode_into_libs=yes
18193
freebsd*) # from 4.6 on
18194
shlibpath_overrides_runpath=yes
18195
hardcode_into_libs=yes
18204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18205
soname_spec='${libname}${release}${shared_ext}$major'
18206
shlibpath_var=LD_LIBRARY_PATH
18207
hardcode_into_libs=yes
18210
hpux9* | hpux10* | hpux11*)
18211
# Give a soname corresponding to the major version so that dld.sl refuses to
18212
# link against other versions.
18219
hardcode_into_libs=yes
18220
dynamic_linker="$host_os dld.so"
18221
shlibpath_var=LD_LIBRARY_PATH
18222
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224
soname_spec='${libname}${release}${shared_ext}$major'
18225
if test "X$HPUX_IA64_MODE" = X32; then
18226
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18228
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18230
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18234
hardcode_into_libs=yes
18235
dynamic_linker="$host_os dld.sl"
18236
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18237
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239
soname_spec='${libname}${release}${shared_ext}$major'
18240
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18241
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18245
dynamic_linker="$host_os dld.sl"
18246
shlibpath_var=SHLIB_PATH
18247
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249
soname_spec='${libname}${release}${shared_ext}$major'
18252
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18253
postinstall_cmds='chmod 555 $lib'
18260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18261
soname_spec='${libname}${release}${shared_ext}$major'
18262
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18263
shlibpath_var=LD_LIBRARY_PATH
18264
shlibpath_overrides_runpath=no
18265
hardcode_into_libs=yes
18268
irix5* | irix6* | nonstopux*)
18270
nonstopux*) version_type=nonstopux ;;
18272
if test "$lt_cv_prog_gnu_ld" = yes; then
18280
soname_spec='${libname}${release}${shared_ext}$major'
18281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18283
irix5* | nonstopux*)
18284
libsuff= shlibsuff=
18287
case $LD in # libtool.m4 will add one of these switches to LD
18288
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18289
libsuff= shlibsuff= libmagic=32-bit;;
18290
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18291
libsuff=32 shlibsuff=N32 libmagic=N32;;
18292
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18293
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18294
*) libsuff= shlibsuff= libmagic=never-match;;
18298
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18299
shlibpath_overrides_runpath=no
18300
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18301
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18302
hardcode_into_libs=yes
18305
# No shared lib support for Linux oldld, aout, or coff.
18306
linux*oldld* | linux*aout* | linux*coff*)
18310
# This must be Linux ELF.
18315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316
soname_spec='${libname}${release}${shared_ext}$major'
18317
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18318
shlibpath_var=LD_LIBRARY_PATH
18319
shlibpath_overrides_runpath=no
18320
# This implies no fast_install, which is unacceptable.
18321
# Some rework will be needed to allow for fast_install
18322
# before this can be enabled.
18323
hardcode_into_libs=yes
18325
# find out which ABI we are using
18327
case "$host_cpu" in
18328
x86_64*|s390x*|powerpc64*)
18329
echo '#line 18329 "configure"' > conftest.$ac_ext
18330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331
(eval $ac_compile) 2>&5
18333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334
(exit $ac_status); }; then
18335
case `/usr/bin/file conftest.$ac_objext` in
18338
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18346
# Append ld.so.conf contents to the search path
18347
if test -f /etc/ld.so.conf; then
18348
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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18349
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18352
# We used to test for /lib/ld.so.1 and disable shared libraries on
18353
# powerpc, because MkLinux only supported shared libraries with the
18354
# GNU dynamic linker. Since this was broken with cross compilers,
18355
# most powerpc-linux boxes support dynamic linking these days and
18356
# people can always --disable-shared, the test was removed, and we
18357
# assume the GNU/Linux dynamic linker is in use.
18358
dynamic_linker='GNU/Linux ld.so'
18365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18366
soname_spec='${libname}${release}${shared_ext}$major'
18367
shlibpath_var=LD_LIBRARY_PATH
18368
shlibpath_overrides_runpath=no
18369
hardcode_into_libs=yes
18370
dynamic_linker='GNU ld.so'
18377
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18379
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18380
dynamic_linker='NetBSD (a.out) ld.so'
18382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18383
soname_spec='${libname}${release}${shared_ext}$major'
18384
dynamic_linker='NetBSD ld.elf_so'
18386
shlibpath_var=LD_LIBRARY_PATH
18387
shlibpath_overrides_runpath=yes
18388
hardcode_into_libs=yes
18393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394
shlibpath_var=LD_LIBRARY_PATH
18395
shlibpath_overrides_runpath=yes
18402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403
soname_spec='${libname}${release}${shared_ext}$major'
18404
shlibpath_var=LD_LIBRARY_PATH
18405
shlibpath_overrides_runpath=yes
18410
sys_lib_dlsearch_path_spec="/usr/lib"
18412
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18414
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18415
*) need_version=no ;;
18417
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18418
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18419
shlibpath_var=LD_LIBRARY_PATH
18420
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18422
openbsd2.[89] | openbsd2.[89].*)
18423
shlibpath_overrides_runpath=no
18426
shlibpath_overrides_runpath=yes
18430
shlibpath_overrides_runpath=yes
18435
libname_spec='$name'
18438
library_names_spec='$libname${shared_ext} $libname.a'
18439
dynamic_linker='OS/2 ld.exe'
18440
shlibpath_var=LIBPATH
18443
osf3* | osf4* | osf5*)
18447
soname_spec='${libname}${release}${shared_ext}$major'
18448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449
shlibpath_var=LD_LIBRARY_PATH
18450
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18451
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18459
soname_spec='${libname}${release}${shared_ext}$major'
18460
shlibpath_var=LD_LIBRARY_PATH
18461
shlibpath_overrides_runpath=yes
18462
hardcode_into_libs=yes
18463
# ldd complains unless libraries are executable
18464
postinstall_cmds='chmod +x $lib'
18469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18470
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18471
shlibpath_var=LD_LIBRARY_PATH
18472
shlibpath_overrides_runpath=yes
18473
if test "$with_gnu_ld" = yes; then
18481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18482
soname_spec='${libname}${release}${shared_ext}$major'
18483
shlibpath_var=LD_LIBRARY_PATH
18484
case $host_vendor in
18486
shlibpath_overrides_runpath=no
18488
export_dynamic_flag_spec='${wl}-Blargedynsym'
18489
runpath_var=LD_RUN_PATH
18497
shlibpath_overrides_runpath=no
18498
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18504
if test -d /usr/nec ;then
18506
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18507
soname_spec='$libname${shared_ext}.$major'
18508
shlibpath_var=LD_LIBRARY_PATH
18512
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18513
version_type=freebsd-elf
18516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18517
soname_spec='${libname}${release}${shared_ext}$major'
18518
shlibpath_var=LD_LIBRARY_PATH
18519
hardcode_into_libs=yes
18520
if test "$with_gnu_ld" = yes; then
18521
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18522
shlibpath_overrides_runpath=no
18524
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18525
shlibpath_overrides_runpath=yes
18528
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18532
sys_lib_dlsearch_path_spec='/usr/lib'
18537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538
soname_spec='${libname}${release}${shared_ext}$major'
18539
shlibpath_var=LD_LIBRARY_PATH
18546
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18547
echo "${ECHO_T}$dynamic_linker" >&6
18548
test "$dynamic_linker" = no && can_build_shared=no
18550
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18551
if test "$GCC" = yes; then
18552
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18555
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18556
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18557
hardcode_action_GCJ=
18558
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18559
test -n "$runpath_var_GCJ" || \
18560
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18562
# We can hardcode non-existant directories.
18563
if test "$hardcode_direct_GCJ" != no &&
18564
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18565
# have to relink, otherwise we might link with an installed library
18566
# when we should be linking with a yet-to-be-installed one
18567
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18568
test "$hardcode_minus_L_GCJ" != no; then
18569
# Linking always hardcodes the temporary library directory.
18570
hardcode_action_GCJ=relink
18572
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18573
hardcode_action_GCJ=immediate
18576
# We cannot hardcode anything, or else we can only hardcode existing
18578
hardcode_action_GCJ=unsupported
18580
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18581
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18583
if test "$hardcode_action_GCJ" = relink; then
18584
# Fast installation is not supported
18585
enable_fast_install=no
18586
elif test "$shlibpath_overrides_runpath" = yes ||
18587
test "$enable_shared" = no; then
18588
# Fast installation is not necessary
18589
enable_fast_install=needless
18593
# The else clause should only fire when bootstrapping the
18594
# libtool distribution, otherwise you forgot to ship ltmain.sh
18595
# with your package, and you will get complaints that there are
18596
# no rules to generate ltmain.sh.
18597
if test -f "$ltmain"; then
18598
# See if we are running on zsh, and set the options which allow our commands through
18599
# without removal of \ escapes.
18600
if test -n "${ZSH_VERSION+set}" ; then
18601
setopt NO_GLOB_SUBST
18603
# Now quote all the things that may contain metacharacters while being
18604
# careful not to overquote the AC_SUBSTed values. We take copies of the
18605
# variables and quote the copies for generation of the libtool script.
18606
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18608
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18609
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18610
deplibs_check_method reload_flag reload_cmds need_locks \
18611
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18612
lt_cv_sys_global_symbol_to_c_name_address \
18613
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18614
old_postinstall_cmds old_postuninstall_cmds \
18618
lt_prog_compiler_wl_GCJ \
18619
lt_prog_compiler_pic_GCJ \
18620
lt_prog_compiler_static_GCJ \
18621
lt_prog_compiler_no_builtin_flag_GCJ \
18622
export_dynamic_flag_spec_GCJ \
18623
thread_safe_flag_spec_GCJ \
18624
whole_archive_flag_spec_GCJ \
18625
enable_shared_with_static_runtimes_GCJ \
18626
old_archive_cmds_GCJ \
18627
old_archive_from_new_cmds_GCJ \
18628
predep_objects_GCJ \
18629
postdep_objects_GCJ \
18632
compiler_lib_search_path_GCJ \
18634
archive_expsym_cmds_GCJ \
18635
postinstall_cmds_GCJ \
18636
postuninstall_cmds_GCJ \
18637
old_archive_from_expsyms_cmds_GCJ \
18638
allow_undefined_flag_GCJ \
18639
no_undefined_flag_GCJ \
18640
export_symbols_cmds_GCJ \
18641
hardcode_libdir_flag_spec_GCJ \
18642
hardcode_libdir_flag_spec_ld_GCJ \
18643
hardcode_libdir_separator_GCJ \
18644
hardcode_automatic_GCJ \
18646
module_expsym_cmds_GCJ \
18647
lt_cv_prog_compiler_c_o_GCJ \
18648
exclude_expsyms_GCJ \
18649
include_expsyms_GCJ; do
18652
old_archive_cmds_GCJ | \
18653
old_archive_from_new_cmds_GCJ | \
18654
archive_cmds_GCJ | \
18655
archive_expsym_cmds_GCJ | \
18656
module_cmds_GCJ | \
18657
module_expsym_cmds_GCJ | \
18658
old_archive_from_expsyms_cmds_GCJ | \
18659
export_symbols_cmds_GCJ | \
18660
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18661
postinstall_cmds | postuninstall_cmds | \
18662
old_postinstall_cmds | old_postuninstall_cmds | \
18663
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18664
# Double-quote double-evaled strings.
18665
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18668
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18674
*'\$0 --fallback-echo"')
18675
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18681
cat <<__EOF__ >> "$cfgfile"
18682
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18684
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18686
# Shell to use when invoking shell scripts.
18689
# Whether or not to build shared libraries.
18690
build_libtool_libs=$enable_shared
18692
# Whether or not to build static libraries.
18693
build_old_libs=$enable_static
18695
# Whether or not to add -lc for building shared libraries.
18696
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18698
# Whether or not to disallow shared libs when runtime libs are static
18699
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18701
# Whether or not to optimize for fast installation.
18702
fast_install=$enable_fast_install
18705
host_alias=$host_alias
18709
# The build system.
18710
build_alias=$build_alias
18714
# An echo program that does not interpret backslashes.
18719
AR_FLAGS=$lt_AR_FLAGS
18724
# LTCC compiler flags.
18725
LTCFLAGS=$lt_LTCFLAGS
18727
# A language-specific compiler.
18728
CC=$lt_compiler_GCJ
18730
# Is the compiler the GNU C compiler?
18733
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18734
gcc_ver=\`gcc -dumpversion\`
18739
# The linker used to build libraries.
18742
# Whether we need hard or soft links.
18745
# A BSD-compatible nm program.
18748
# A symbol stripping program
18751
# Used to examine libraries when file_magic_cmd begins "file"
18752
MAGIC_CMD=$MAGIC_CMD
18754
# Used on cygwin: DLL creation program.
18757
# Used on cygwin: object dumper.
18760
# Used on cygwin: assembler.
18763
# The name of the directory that contains temporary libtool files.
18766
# How to create reloadable object files.
18767
reload_flag=$lt_reload_flag
18768
reload_cmds=$lt_reload_cmds
18770
# How to pass a linker flag through the compiler.
18771
wl=$lt_lt_prog_compiler_wl_GCJ
18773
# Object file suffix (normally "o").
18774
objext="$ac_objext"
18776
# Old archive suffix (normally "a").
18779
# Shared library suffix (normally ".so").
18780
shrext_cmds='$shrext_cmds'
18782
# Executable file suffix (normally "").
18785
# Additional compiler flags for building library objects.
18786
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18789
# What is the maximum length of a command?
18790
max_cmd_len=$lt_cv_sys_max_cmd_len
18792
# Does compiler simultaneously support -c and -o options?
18793
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18795
# Must we lock files when doing compilation?
18796
need_locks=$lt_need_locks
18798
# Do we need the lib prefix for modules?
18799
need_lib_prefix=$need_lib_prefix
18801
# Do we need a version for libraries?
18802
need_version=$need_version
18804
# Whether dlopen is supported.
18805
dlopen_support=$enable_dlopen
18807
# Whether dlopen of programs is supported.
18808
dlopen_self=$enable_dlopen_self
18810
# Whether dlopen of statically linked programs is supported.
18811
dlopen_self_static=$enable_dlopen_self_static
18813
# Compiler flag to prevent dynamic linking.
18814
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18816
# Compiler flag to turn off builtin functions.
18817
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18819
# Compiler flag to allow reflexive dlopens.
18820
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18822
# Compiler flag to generate shared objects directly from archives.
18823
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18825
# Compiler flag to generate thread-safe objects.
18826
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18828
# Library versioning type.
18829
version_type=$version_type
18831
# Format of library name prefix.
18832
libname_spec=$lt_libname_spec
18834
# List of archive names. First name is the real one, the rest are links.
18835
# The last name is the one that the linker finds with -lNAME.
18836
library_names_spec=$lt_library_names_spec
18838
# The coded name of the library, if different from the real name.
18839
soname_spec=$lt_soname_spec
18841
# Commands used to build and install an old-style archive.
18843
old_archive_cmds=$lt_old_archive_cmds_GCJ
18844
old_postinstall_cmds=$lt_old_postinstall_cmds
18845
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18847
# Create an old-style archive from a shared archive.
18848
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18850
# Create a temporary old-style archive to link instead of a shared archive.
18851
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18853
# Commands used to build and install a shared archive.
18854
archive_cmds=$lt_archive_cmds_GCJ
18855
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18856
postinstall_cmds=$lt_postinstall_cmds
18857
postuninstall_cmds=$lt_postuninstall_cmds
18859
# Commands used to build a loadable module (assumed same as above if empty)
18860
module_cmds=$lt_module_cmds_GCJ
18861
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18863
# Commands to strip libraries.
18864
old_striplib=$lt_old_striplib
18865
striplib=$lt_striplib
18867
# Dependencies to place before the objects being linked to create a
18869
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18871
# Dependencies to place after the objects being linked to create a
18873
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18875
# Dependencies to place before the objects being linked to create a
18877
predeps=$lt_predeps_GCJ
18879
# Dependencies to place after the objects being linked to create a
18881
postdeps=$lt_postdeps_GCJ
18883
# The library search path used internally by the compiler when linking
18884
# a shared library.
18885
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18887
# Method to check whether dependent libraries are shared objects.
18888
deplibs_check_method=$lt_deplibs_check_method
18890
# Command to use when deplibs_check_method == file_magic.
18891
file_magic_cmd=$lt_file_magic_cmd
18893
# Flag that allows shared libraries with undefined symbols to be built.
18894
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18896
# Flag that forces no undefined symbols.
18897
no_undefined_flag=$lt_no_undefined_flag_GCJ
18899
# Commands used to finish a libtool library installation in a directory.
18900
finish_cmds=$lt_finish_cmds
18902
# Same as above, but a single script fragment to be evaled but not shown.
18903
finish_eval=$lt_finish_eval
18905
# Take the output of nm and produce a listing of raw symbols and C names.
18906
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18908
# Transform the output of nm in a proper C declaration
18909
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18911
# Transform the output of nm in a C name address pair
18912
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18914
# This is the shared library runtime path variable.
18915
runpath_var=$runpath_var
18917
# This is the shared library path variable.
18918
shlibpath_var=$shlibpath_var
18920
# Is shlibpath searched before the hard-coded library search path?
18921
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18923
# How to hardcode a shared library path into an executable.
18924
hardcode_action=$hardcode_action_GCJ
18926
# Whether we should hardcode library paths into libraries.
18927
hardcode_into_libs=$hardcode_into_libs
18929
# Flag to hardcode \$libdir into a binary during linking.
18930
# This must work even if \$libdir does not exist.
18931
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18933
# If ld is used when linking, flag to hardcode \$libdir into
18934
# a binary during linking. This must work even if \$libdir does
18936
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18938
# Whether we need a single -rpath flag with a separated argument.
18939
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18941
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18942
# resulting binary.
18943
hardcode_direct=$hardcode_direct_GCJ
18945
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18946
# resulting binary.
18947
hardcode_minus_L=$hardcode_minus_L_GCJ
18949
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18950
# the resulting binary.
18951
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18953
# Set to yes if building a shared library automatically hardcodes DIR into the library
18954
# and all subsequent libraries and executables linked against it.
18955
hardcode_automatic=$hardcode_automatic_GCJ
18957
# Variables whose values should be saved in libtool wrapper scripts and
18958
# restored at relink time.
18959
variables_saved_for_relink="$variables_saved_for_relink"
18961
# Whether libtool must link a program against all its dependency libraries.
18962
link_all_deplibs=$link_all_deplibs_GCJ
18964
# Compile-time system search path for libraries
18965
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18967
# Run-time system search path for libraries
18968
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18970
# Fix the shell variable \$srcfile for the compiler.
18971
fix_srcfile_path="$fix_srcfile_path_GCJ"
18973
# Set to yes if exported symbols are required.
18974
always_export_symbols=$always_export_symbols_GCJ
18976
# The commands to list exported symbols.
18977
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18979
# The commands to extract the exported symbol list from a shared archive.
18980
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18982
# Symbols that should not be listed in the preloaded symbols.
18983
exclude_expsyms=$lt_exclude_expsyms_GCJ
18985
# Symbols that must always be exported.
18986
include_expsyms=$lt_include_expsyms_GCJ
18988
# ### END LIBTOOL TAG CONFIG: $tagname
18994
# If there is no Makefile yet, we rely on a make rule to execute
18995
# `config.status --recheck' to rerun these tests and create the
18996
# libtool script then.
18997
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18998
if test -f "$ltmain_in"; then
18999
test -f Makefile && make "$ltmain"
19005
ac_cpp='$CPP $CPPFLAGS'
19006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021
# Source file extension for RC test sources.
19024
# Object file extension for compiled RC test sources.
19028
# Code to be used in simple compile tests
19029
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19031
# Code to be used in simple link tests
19032
lt_simple_link_test_code="$lt_simple_compile_test_code"
19034
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19036
# If no C compiler was specified, use CC.
19039
# If no C compiler flags were specified, use CFLAGS.
19040
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19042
# Allow CC to be a program name with arguments.
19046
# save warnings/boilerplate of simple test code
19047
ac_outfile=conftest.$ac_objext
19048
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19049
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19050
_lt_compiler_boilerplate=`cat conftest.err`
19053
ac_outfile=conftest.$ac_objext
19054
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19055
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19056
_lt_linker_boilerplate=`cat conftest.err`
19060
# Allow CC to be a program name with arguments.
19065
for cc_temp in $compiler""; do
19067
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19068
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19073
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19075
lt_cv_prog_compiler_c_o_RC=yes
19077
# The else clause should only fire when bootstrapping the
19078
# libtool distribution, otherwise you forgot to ship ltmain.sh
19079
# with your package, and you will get complaints that there are
19080
# no rules to generate ltmain.sh.
19081
if test -f "$ltmain"; then
19082
# See if we are running on zsh, and set the options which allow our commands through
19083
# without removal of \ escapes.
19084
if test -n "${ZSH_VERSION+set}" ; then
19085
setopt NO_GLOB_SUBST
19087
# Now quote all the things that may contain metacharacters while being
19088
# careful not to overquote the AC_SUBSTed values. We take copies of the
19089
# variables and quote the copies for generation of the libtool script.
19090
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19092
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19093
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19094
deplibs_check_method reload_flag reload_cmds need_locks \
19095
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19096
lt_cv_sys_global_symbol_to_c_name_address \
19097
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19098
old_postinstall_cmds old_postuninstall_cmds \
19102
lt_prog_compiler_wl_RC \
19103
lt_prog_compiler_pic_RC \
19104
lt_prog_compiler_static_RC \
19105
lt_prog_compiler_no_builtin_flag_RC \
19106
export_dynamic_flag_spec_RC \
19107
thread_safe_flag_spec_RC \
19108
whole_archive_flag_spec_RC \
19109
enable_shared_with_static_runtimes_RC \
19110
old_archive_cmds_RC \
19111
old_archive_from_new_cmds_RC \
19112
predep_objects_RC \
19113
postdep_objects_RC \
19116
compiler_lib_search_path_RC \
19118
archive_expsym_cmds_RC \
19119
postinstall_cmds_RC \
19120
postuninstall_cmds_RC \
19121
old_archive_from_expsyms_cmds_RC \
19122
allow_undefined_flag_RC \
19123
no_undefined_flag_RC \
19124
export_symbols_cmds_RC \
19125
hardcode_libdir_flag_spec_RC \
19126
hardcode_libdir_flag_spec_ld_RC \
19127
hardcode_libdir_separator_RC \
19128
hardcode_automatic_RC \
19130
module_expsym_cmds_RC \
19131
lt_cv_prog_compiler_c_o_RC \
19132
exclude_expsyms_RC \
19133
include_expsyms_RC; do
19136
old_archive_cmds_RC | \
19137
old_archive_from_new_cmds_RC | \
19138
archive_cmds_RC | \
19139
archive_expsym_cmds_RC | \
19141
module_expsym_cmds_RC | \
19142
old_archive_from_expsyms_cmds_RC | \
19143
export_symbols_cmds_RC | \
19144
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19145
postinstall_cmds | postuninstall_cmds | \
19146
old_postinstall_cmds | old_postuninstall_cmds | \
19147
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19148
# Double-quote double-evaled strings.
19149
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19152
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19158
*'\$0 --fallback-echo"')
19159
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19165
cat <<__EOF__ >> "$cfgfile"
19166
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19170
# Shell to use when invoking shell scripts.
19173
# Whether or not to build shared libraries.
19174
build_libtool_libs=$enable_shared
19176
# Whether or not to build static libraries.
19177
build_old_libs=$enable_static
19179
# Whether or not to add -lc for building shared libraries.
19180
build_libtool_need_lc=$archive_cmds_need_lc_RC
19182
# Whether or not to disallow shared libs when runtime libs are static
19183
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19185
# Whether or not to optimize for fast installation.
19186
fast_install=$enable_fast_install
19189
host_alias=$host_alias
19193
# The build system.
19194
build_alias=$build_alias
19198
# An echo program that does not interpret backslashes.
19203
AR_FLAGS=$lt_AR_FLAGS
19208
# LTCC compiler flags.
19209
LTCFLAGS=$lt_LTCFLAGS
19211
# A language-specific compiler.
19214
# Is the compiler the GNU C compiler?
19217
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19218
gcc_ver=\`gcc -dumpversion\`
19223
# The linker used to build libraries.
19226
# Whether we need hard or soft links.
19229
# A BSD-compatible nm program.
19232
# A symbol stripping program
19235
# Used to examine libraries when file_magic_cmd begins "file"
19236
MAGIC_CMD=$MAGIC_CMD
19238
# Used on cygwin: DLL creation program.
19241
# Used on cygwin: object dumper.
19244
# Used on cygwin: assembler.
19247
# The name of the directory that contains temporary libtool files.
19250
# How to create reloadable object files.
19251
reload_flag=$lt_reload_flag
19252
reload_cmds=$lt_reload_cmds
19254
# How to pass a linker flag through the compiler.
19255
wl=$lt_lt_prog_compiler_wl_RC
19257
# Object file suffix (normally "o").
19258
objext="$ac_objext"
19260
# Old archive suffix (normally "a").
19263
# Shared library suffix (normally ".so").
19264
shrext_cmds='$shrext_cmds'
19266
# Executable file suffix (normally "").
19269
# Additional compiler flags for building library objects.
19270
pic_flag=$lt_lt_prog_compiler_pic_RC
19273
# What is the maximum length of a command?
19274
max_cmd_len=$lt_cv_sys_max_cmd_len
19276
# Does compiler simultaneously support -c and -o options?
19277
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19279
# Must we lock files when doing compilation?
19280
need_locks=$lt_need_locks
19282
# Do we need the lib prefix for modules?
19283
need_lib_prefix=$need_lib_prefix
19285
# Do we need a version for libraries?
19286
need_version=$need_version
19288
# Whether dlopen is supported.
19289
dlopen_support=$enable_dlopen
19291
# Whether dlopen of programs is supported.
19292
dlopen_self=$enable_dlopen_self
19294
# Whether dlopen of statically linked programs is supported.
19295
dlopen_self_static=$enable_dlopen_self_static
19297
# Compiler flag to prevent dynamic linking.
19298
link_static_flag=$lt_lt_prog_compiler_static_RC
19300
# Compiler flag to turn off builtin functions.
19301
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19303
# Compiler flag to allow reflexive dlopens.
19304
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19306
# Compiler flag to generate shared objects directly from archives.
19307
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19309
# Compiler flag to generate thread-safe objects.
19310
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19312
# Library versioning type.
19313
version_type=$version_type
19315
# Format of library name prefix.
19316
libname_spec=$lt_libname_spec
19318
# List of archive names. First name is the real one, the rest are links.
19319
# The last name is the one that the linker finds with -lNAME.
19320
library_names_spec=$lt_library_names_spec
19322
# The coded name of the library, if different from the real name.
19323
soname_spec=$lt_soname_spec
19325
# Commands used to build and install an old-style archive.
19327
old_archive_cmds=$lt_old_archive_cmds_RC
19328
old_postinstall_cmds=$lt_old_postinstall_cmds
19329
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19331
# Create an old-style archive from a shared archive.
19332
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19334
# Create a temporary old-style archive to link instead of a shared archive.
19335
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19337
# Commands used to build and install a shared archive.
19338
archive_cmds=$lt_archive_cmds_RC
19339
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19340
postinstall_cmds=$lt_postinstall_cmds
19341
postuninstall_cmds=$lt_postuninstall_cmds
19343
# Commands used to build a loadable module (assumed same as above if empty)
19344
module_cmds=$lt_module_cmds_RC
19345
module_expsym_cmds=$lt_module_expsym_cmds_RC
19347
# Commands to strip libraries.
19348
old_striplib=$lt_old_striplib
19349
striplib=$lt_striplib
19351
# Dependencies to place before the objects being linked to create a
19353
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19355
# Dependencies to place after the objects being linked to create a
19357
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19359
# Dependencies to place before the objects being linked to create a
19361
predeps=$lt_predeps_RC
19363
# Dependencies to place after the objects being linked to create a
19365
postdeps=$lt_postdeps_RC
19367
# The library search path used internally by the compiler when linking
19368
# a shared library.
19369
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19371
# Method to check whether dependent libraries are shared objects.
19372
deplibs_check_method=$lt_deplibs_check_method
19374
# Command to use when deplibs_check_method == file_magic.
19375
file_magic_cmd=$lt_file_magic_cmd
19377
# Flag that allows shared libraries with undefined symbols to be built.
19378
allow_undefined_flag=$lt_allow_undefined_flag_RC
19380
# Flag that forces no undefined symbols.
19381
no_undefined_flag=$lt_no_undefined_flag_RC
19383
# Commands used to finish a libtool library installation in a directory.
19384
finish_cmds=$lt_finish_cmds
19386
# Same as above, but a single script fragment to be evaled but not shown.
19387
finish_eval=$lt_finish_eval
19389
# Take the output of nm and produce a listing of raw symbols and C names.
19390
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19392
# Transform the output of nm in a proper C declaration
19393
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19395
# Transform the output of nm in a C name address pair
19396
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19398
# This is the shared library runtime path variable.
19399
runpath_var=$runpath_var
19401
# This is the shared library path variable.
19402
shlibpath_var=$shlibpath_var
19404
# Is shlibpath searched before the hard-coded library search path?
19405
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19407
# How to hardcode a shared library path into an executable.
19408
hardcode_action=$hardcode_action_RC
19410
# Whether we should hardcode library paths into libraries.
19411
hardcode_into_libs=$hardcode_into_libs
19413
# Flag to hardcode \$libdir into a binary during linking.
19414
# This must work even if \$libdir does not exist.
19415
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19417
# If ld is used when linking, flag to hardcode \$libdir into
19418
# a binary during linking. This must work even if \$libdir does
19420
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19422
# Whether we need a single -rpath flag with a separated argument.
19423
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19425
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19426
# resulting binary.
19427
hardcode_direct=$hardcode_direct_RC
19429
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19430
# resulting binary.
19431
hardcode_minus_L=$hardcode_minus_L_RC
19433
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19434
# the resulting binary.
19435
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19437
# Set to yes if building a shared library automatically hardcodes DIR into the library
19438
# and all subsequent libraries and executables linked against it.
19439
hardcode_automatic=$hardcode_automatic_RC
19441
# Variables whose values should be saved in libtool wrapper scripts and
19442
# restored at relink time.
19443
variables_saved_for_relink="$variables_saved_for_relink"
19445
# Whether libtool must link a program against all its dependency libraries.
19446
link_all_deplibs=$link_all_deplibs_RC
19448
# Compile-time system search path for libraries
19449
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19451
# Run-time system search path for libraries
19452
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19454
# Fix the shell variable \$srcfile for the compiler.
19455
fix_srcfile_path="$fix_srcfile_path_RC"
19457
# Set to yes if exported symbols are required.
19458
always_export_symbols=$always_export_symbols_RC
19460
# The commands to list exported symbols.
19461
export_symbols_cmds=$lt_export_symbols_cmds_RC
19463
# The commands to extract the exported symbol list from a shared archive.
19464
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19466
# Symbols that should not be listed in the preloaded symbols.
19467
exclude_expsyms=$lt_exclude_expsyms_RC
19469
# Symbols that must always be exported.
19470
include_expsyms=$lt_include_expsyms_RC
19472
# ### END LIBTOOL TAG CONFIG: $tagname
19478
# If there is no Makefile yet, we rely on a make rule to execute
19479
# `config.status --recheck' to rerun these tests and create the
19480
# libtool script then.
19481
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19482
if test -f "$ltmain_in"; then
19483
test -f Makefile && make "$ltmain"
19489
ac_cpp='$CPP $CPPFLAGS'
19490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19499
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19500
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19501
{ (exit 1); exit 1; }; }
19505
# Append the new tag name to the list of available tags.
19506
if test -n "$tagname" ; then
19507
available_tags="$available_tags $tagname"
19513
# Now substitute the updated list of available tags.
19514
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19515
mv "${ofile}T" "$ofile"
19519
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19520
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19521
{ (exit 1); exit 1; }; }
19527
# This can be used to rebuild libtool when needed
19528
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19530
# Always use our own libtool.
19531
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19533
# Prevent multiple expansion
11957
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11958
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11959
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11960
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11961
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11962
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11963
$as_echo "yes" >&6; }
11965
# FIXME - insert some real tests, host_os isn't really good enough
11968
if test -n "$STRIP" ; then
11969
striplib="$STRIP -x"
11970
old_striplib="$STRIP -S"
11971
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11972
$as_echo "yes" >&6; }
11974
{ $as_echo "$as_me:$LINENO: result: no" >&5
11975
$as_echo "no" >&6; }
11979
{ $as_echo "$as_me:$LINENO: result: no" >&5
11980
$as_echo "no" >&6; }
11996
# Report which library types will actually be built
11997
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11998
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11999
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12000
$as_echo "$can_build_shared" >&6; }
12002
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12003
$as_echo_n "checking whether to build shared libraries... " >&6; }
12004
test "$can_build_shared" = "no" && enable_shared=no
12006
# On AIX, shared libraries and static libraries use the same namespace, and
12007
# are all built from PIC.
12010
test "$enable_shared" = yes && enable_static=no
12011
if test -n "$RANLIB"; then
12012
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12013
postinstall_cmds='$RANLIB $lib'
12018
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12019
test "$enable_shared" = yes && enable_static=no
12023
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12024
$as_echo "$enable_shared" >&6; }
12026
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12027
$as_echo_n "checking whether to build static libraries... " >&6; }
12028
# Make sure either enable_shared or enable_static is yes.
12029
test "$enable_shared" = yes || enable_static=yes
12030
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12031
$as_echo "$enable_static" >&6; }
12038
ac_cpp='$CPP $CPPFLAGS'
12039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12057
ac_config_commands="$ac_config_commands libtool"
12062
# Only expand once:
28955
22168
# Have a temporary directory for convenience. Make it in the build tree
28956
# simply because there is no reason to put it here, and in addition,
22169
# simply because there is no reason against having it here, and in addition,
28957
22170
# creating and moving files from /tmp can sometimes cause problems.
28958
# Create a temporary directory, and hook for its removal unless debugging.
22171
# Hook for its removal unless debugging.
22172
# Note that there is a small window in which the directory will not be cleaned:
22173
# after its creation but before its name has been assigned to `$tmp'.
28961
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22177
trap 'exit_status=$?
22178
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28962
22180
trap '{ (exit 1); exit 1; }' 1 2 13 15
28965
22182
# Create a (secure) tmp directory for tmp files.
28968
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22185
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28969
22186
test -n "$tmp" && test -d "$tmp"
28972
tmp=./confstat$$-$RANDOM
28973
(umask 077 && mkdir $tmp)
22189
tmp=./conf$$-$RANDOM
22190
(umask 077 && mkdir "$tmp")
28976
echo "$me: cannot create a temporary directory in ." >&2
22193
$as_echo "$as_me: cannot create a temporary directory in ." >&2
28977
22194
{ (exit 1); exit 1; }
28982
cat >>$CONFIG_STATUS <<_ACEOF
28985
# CONFIG_FILES section.
28988
# No need to generate the scripts if there are no CONFIG_FILES.
28989
# This happens for instance when ./config.status config.h
28990
if test -n "\$CONFIG_FILES"; then
28991
# Protect against being on the right side of a sed subst in config.status.
28992
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28993
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28994
s,@SHELL@,$SHELL,;t t
28995
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28996
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28997
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28998
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28999
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29000
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29001
s,@exec_prefix@,$exec_prefix,;t t
29002
s,@prefix@,$prefix,;t t
29003
s,@program_transform_name@,$program_transform_name,;t t
29004
s,@bindir@,$bindir,;t t
29005
s,@sbindir@,$sbindir,;t t
29006
s,@libexecdir@,$libexecdir,;t t
29007
s,@datadir@,$datadir,;t t
29008
s,@sysconfdir@,$sysconfdir,;t t
29009
s,@sharedstatedir@,$sharedstatedir,;t t
29010
s,@localstatedir@,$localstatedir,;t t
29011
s,@libdir@,$libdir,;t t
29012
s,@includedir@,$includedir,;t t
29013
s,@oldincludedir@,$oldincludedir,;t t
29014
s,@infodir@,$infodir,;t t
29015
s,@mandir@,$mandir,;t t
29016
s,@build_alias@,$build_alias,;t t
29017
s,@host_alias@,$host_alias,;t t
29018
s,@target_alias@,$target_alias,;t t
29019
s,@DEFS@,$DEFS,;t t
29020
s,@ECHO_C@,$ECHO_C,;t t
29021
s,@ECHO_N@,$ECHO_N,;t t
29022
s,@ECHO_T@,$ECHO_T,;t t
29023
s,@LIBS@,$LIBS,;t t
29024
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29025
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29026
s,@MAINT@,$MAINT,;t t
29027
s,@build@,$build,;t t
29028
s,@build_cpu@,$build_cpu,;t t
29029
s,@build_vendor@,$build_vendor,;t t
29030
s,@build_os@,$build_os,;t t
29031
s,@host@,$host,;t t
29032
s,@host_cpu@,$host_cpu,;t t
29033
s,@host_vendor@,$host_vendor,;t t
29034
s,@host_os@,$host_os,;t t
29035
s,@target@,$target,;t t
29036
s,@target_cpu@,$target_cpu,;t t
29037
s,@target_vendor@,$target_vendor,;t t
29038
s,@target_os@,$target_os,;t t
29039
s,@CURRENT@,$CURRENT,;t t
29040
s,@REVISION@,$REVISION,;t t
29042
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29043
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29044
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29045
s,@CYGPATH_W@,$CYGPATH_W,;t t
29046
s,@PACKAGE@,$PACKAGE,;t t
29047
s,@VERSION@,$VERSION,;t t
29048
s,@ACLOCAL@,$ACLOCAL,;t t
29049
s,@AUTOCONF@,$AUTOCONF,;t t
29050
s,@AUTOMAKE@,$AUTOMAKE,;t t
29051
s,@AUTOHEADER@,$AUTOHEADER,;t t
29052
s,@MAKEINFO@,$MAKEINFO,;t t
29053
s,@install_sh@,$install_sh,;t t
29054
s,@STRIP@,$STRIP,;t t
29055
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29056
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29057
s,@mkdir_p@,$mkdir_p,;t t
29059
s,@SET_MAKE@,$SET_MAKE,;t t
29060
s,@am__leading_dot@,$am__leading_dot,;t t
29061
s,@AMTAR@,$AMTAR,;t t
29062
s,@am__tar@,$am__tar,;t t
29063
s,@am__untar@,$am__untar,;t t
29065
s,@CFLAGS@,$CFLAGS,;t t
29066
s,@LDFLAGS@,$LDFLAGS,;t t
29067
s,@CPPFLAGS@,$CPPFLAGS,;t t
29068
s,@ac_ct_CC@,$ac_ct_CC,;t t
29069
s,@EXEEXT@,$EXEEXT,;t t
29070
s,@OBJEXT@,$OBJEXT,;t t
29071
s,@DEPDIR@,$DEPDIR,;t t
29072
s,@am__include@,$am__include,;t t
29073
s,@am__quote@,$am__quote,;t t
29074
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29075
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29076
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29077
s,@CCDEPMODE@,$CCDEPMODE,;t t
29078
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29079
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29082
s,@EGREP@,$EGREP,;t t
29083
s,@LN_S@,$LN_S,;t t
29084
s,@ECHO@,$ECHO,;t t
29086
s,@ac_ct_AR@,$ac_ct_AR,;t t
29087
s,@RANLIB@,$RANLIB,;t t
29088
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29090
s,@CXXFLAGS@,$CXXFLAGS,;t t
29091
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29092
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29093
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29094
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29095
s,@CXXCPP@,$CXXCPP,;t t
29097
s,@FFLAGS@,$FFLAGS,;t t
29098
s,@ac_ct_F77@,$ac_ct_F77,;t t
29099
s,@LIBTOOL@,$LIBTOOL,;t t
29100
s,@YACC@,$YACC,;t t
29102
s,@LEXLIB@,$LEXLIB,;t t
29103
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
29104
s,@X_CFLAGS@,$X_CFLAGS,;t t
29105
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29106
s,@X_LIBS@,$X_LIBS,;t t
29107
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29108
s,@X_XMU@,$X_XMU,;t t
29109
s,@OM_XMU_TRUE@,$OM_XMU_TRUE,;t t
29110
s,@OM_XMU_FALSE@,$OM_XMU_FALSE,;t t
29111
s,@ALLOCA@,$ALLOCA,;t t
29112
s,@LIBOBJS@,$LIBOBJS,;t t
29113
s,@MessageCatalog_TRUE@,$MessageCatalog_TRUE,;t t
29114
s,@MessageCatalog_FALSE@,$MessageCatalog_FALSE,;t t
29115
s,@XMTHEME_DIST@,$XMTHEME_DIST,;t t
29116
s,@OM_XMTHEMES_TRUE@,$OM_XMTHEMES_TRUE,;t t
29117
s,@OM_XMTHEMES_FALSE@,$OM_XMTHEMES_FALSE,;t t
29118
s,@CDE_INSTALLATION_TOP@,$CDE_INSTALLATION_TOP,;t t
29119
s,@CDE_CONFIGURATION_TOP@,$CDE_CONFIGURATION_TOP,;t t
29120
s,@LIBDIR@,$LIBDIR,;t t
29121
s,@INCDIR@,$INCDIR,;t t
29122
s,@XMBINDDIR_FALLBACK@,$XMBINDDIR_FALLBACK,;t t
29123
s,@OM22_COMPATIBILITY_FALSE@,$OM22_COMPATIBILITY_FALSE,;t t
29124
s,@OM22_COMPATIBILITY_TRUE@,$OM22_COMPATIBILITY_TRUE,;t t
29125
s,@ft_config@,$ft_config,;t t
29126
s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
29127
s,@FC_DEFAULT_FONTS@,$FC_DEFAULT_FONTS,;t t
29128
s,@confdir@,$confdir,;t t
29129
s,@CONFDIR@,$CONFDIR,;t t
29130
s,@XRENDER_CFLAGS@,$XRENDER_CFLAGS,;t t
29131
s,@XRENDER_LIBS@,$XRENDER_LIBS,;t t
29132
s,@fc_config@,$fc_config,;t t
29133
s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
29134
s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
29135
s,@OM_LIBJPEG_TRUE@,$OM_LIBJPEG_TRUE,;t t
29136
s,@OM_LIBJPEG_FALSE@,$OM_LIBJPEG_FALSE,;t t
29137
s,@OM_LIBPNG_TRUE@,$OM_LIBPNG_TRUE,;t t
29138
s,@OM_LIBPNG_FALSE@,$OM_LIBPNG_FALSE,;t t
29139
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29144
cat >>$CONFIG_STATUS <<\_ACEOF
29145
# Split the substitutions into bite-sized pieces for seds with
29146
# small command number limits, like on Digital OSF/1 and HP-UX.
29147
ac_max_sed_lines=48
29148
ac_sed_frag=1 # Number of current file.
29149
ac_beg=1 # First line for current file.
29150
ac_end=$ac_max_sed_lines # Line after last line for current file.
29153
while $ac_more_lines; do
29154
if test $ac_beg -gt 1; then
29155
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29157
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29159
if test ! -s $tmp/subs.frag; then
29160
ac_more_lines=false
29162
# The purpose of the label and of the branching condition is to
29163
# speed up the sed processing (if there are no `@' at all, there
29164
# is no need to browse any of the substitutions).
29165
# These are the two extra sed commands mentioned above.
29167
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29168
if test -z "$ac_sed_cmds"; then
29169
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29171
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29173
ac_sed_frag=`expr $ac_sed_frag + 1`
29175
ac_end=`expr $ac_end + $ac_max_sed_lines`
29178
if test -z "$ac_sed_cmds"; then
22197
# Set up the scripts for CONFIG_FILES section.
22198
# No need to generate them if there are no CONFIG_FILES.
22199
# This happens for instance with `./config.status config.h'.
22200
if test -n "$CONFIG_FILES"; then
22204
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22205
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22208
ac_cs_awk_cr=$ac_cr
22211
echo 'BEGIN {' >"$tmp/subs1.awk" &&
22216
echo "cat >conf$$subs.awk <<_ACEOF" &&
22217
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22219
} >conf$$subs.sh ||
22220
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22221
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22222
{ (exit 1); exit 1; }; }
22223
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22225
for ac_last_try in false false false false false :; do
22226
. ./conf$$subs.sh ||
22227
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22228
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22229
{ (exit 1); exit 1; }; }
22231
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22232
if test $ac_delim_n = $ac_delim_num; then
22234
elif $ac_last_try; then
22235
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22236
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22237
{ (exit 1); exit 1; }; }
22239
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22242
rm -f conf$$subs.sh
22244
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22245
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22249
s/^/S["/; s/!.*/"]=/
22259
s/\(.\{148\}\).*/\1/
22261
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22266
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22273
s/\(.\{148\}\).*/\1/
22275
s/["\\]/\\&/g; s/^/"/; s/$/"/
22279
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22284
' <conf$$subs.awk | sed '
22289
' >>$CONFIG_STATUS || ac_write_fail=1
22290
rm -f conf$$subs.awk
22291
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22293
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22294
for (key in S) S_is_set[key] = 1
22300
nfields = split(line, field, "@")
22302
len = length(field[1])
22303
for (i = 2; i < nfields; i++) {
22305
keylen = length(key)
22306
if (S_is_set[key]) {
22308
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22309
len += length(value) + length(field[++i])
22320
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22321
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22322
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22325
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22326
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22327
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22328
{ (exit 1); exit 1; }; }
22331
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22332
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22333
# trailing colons and then remove the whole line if VPATH becomes empty
22334
# (actually we leave an empty line to preserve line numbers).
22335
if test "x$srcdir" = x.; then
22336
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22337
s/:*\$(srcdir):*/:/
22338
s/:*\${srcdir}:*/:/
22340
s/^\([^=]*=[ ]*\):*/\1/
22346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29181
22347
fi # test -n "$CONFIG_FILES"
29184
cat >>$CONFIG_STATUS <<\_ACEOF
29185
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29186
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29188
- | *:- | *:-:* ) # input from stdin
29190
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29191
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29192
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29193
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29194
* ) ac_file_in=$ac_file.in ;;
29197
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29198
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22349
# Set up the scripts for CONFIG_HEADERS section.
22350
# No need to generate them if there are no CONFIG_HEADERS.
22351
# This happens for instance with `./config.status Makefile'.
22352
if test -n "$CONFIG_HEADERS"; then
22353
cat >"$tmp/defines.awk" <<\_ACAWK ||
22357
# Transform confdefs.h into an awk script `defines.awk', embedded as
22358
# here-document in config.status, that substitutes the proper values into
22359
# config.h.in to produce config.h.
22361
# Create a delimiter string that does not exist in confdefs.h, to ease
22362
# handling of long lines.
22364
for ac_last_try in false false :; do
22365
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22366
if test -z "$ac_t"; then
22368
elif $ac_last_try; then
22369
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22370
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22371
{ (exit 1); exit 1; }; }
22373
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22377
# For the awk script, D is an array of macro values keyed by name,
22378
# likewise P contains macro parameters if any. Preserve backslash
22379
# newline sequences.
22381
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22383
s/.\{148\}/&'"$ac_delim"'/g
22386
s/^[ ]*#[ ]*define[ ][ ]*/ /
22393
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22395
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22399
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22400
D["\1"]=" \3\\\\\\n"\\/p
22402
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22407
s/.\{148\}/&'"$ac_delim"'/g
22412
s/["\\]/\\&/g; s/^/"/; s/$/"/p
22415
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22417
' <confdefs.h | sed '
22418
s/'"$ac_delim"'/"\\\
22419
"/g' >>$CONFIG_STATUS || ac_write_fail=1
22421
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22422
for (key in D) D_is_set[key] = 1
22425
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22427
split(line, arg, " ")
22428
if (arg[1] == "#") {
22432
defundef = substr(arg[1], 2)
22435
split(mac1, mac2, "(") #)
22437
prefix = substr(line, 1, index(line, defundef) - 1)
22438
if (D_is_set[macro]) {
22439
# Preserve the white space surrounding the "#".
22440
print prefix "define", macro P[macro] D[macro]
22443
# Replace #undef with comments. This is necessary, for example,
22444
# in the case of _POSIX_SOURCE, which is predefined and required
22445
# on some systems where configure will not decide to define it.
22446
if (defundef == "undef") {
22447
print "/*", prefix defundef, macro, "*/"
22455
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22456
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22457
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22458
{ (exit 1); exit 1; }; }
22459
fi # test -n "$CONFIG_HEADERS"
22462
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22467
:[FHLC]) ac_mode=$ac_tag; continue;;
22469
case $ac_mode$ac_tag in
22471
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22472
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22473
{ (exit 1); exit 1; }; };;
22474
:[FH]-) ac_tag=-:-;;
22475
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22492
-) ac_f="$tmp/stdin";;
22493
*) # Look for the file first in the build tree, then in the source tree
22494
# (if the path is not absolute). The absolute path cannot be DOS-style,
22495
# because $ac_f cannot contain `:'.
22499
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22501
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22502
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22503
{ (exit 1); exit 1; }; };;
22505
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22506
ac_file_inputs="$ac_file_inputs '$ac_f'"
22509
# Let's still pretend it is `configure' which instantiates (i.e., don't
22510
# use $as_me), people would be surprised to read:
22511
# /* config.h. Generated by config.status. */
22512
configure_input='Generated from '`
22513
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22515
if test x"$ac_file" != x-; then
22516
configure_input="$ac_file. $configure_input"
22517
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22518
$as_echo "$as_me: creating $ac_file" >&6;}
22520
# Neutralize special characters interpreted by sed in replacement strings.
22521
case $configure_input in #(
22522
*\&* | *\|* | *\\* )
22523
ac_sed_conf_input=`$as_echo "$configure_input" |
22524
sed 's/[\\\\&|]/\\\\&/g'`;; #(
22525
*) ac_sed_conf_input=$configure_input;;
22529
*:-:* | *:-) cat >"$tmp/stdin" \
22530
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22531
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22532
{ (exit 1); exit 1; }; } ;;
22537
ac_dir=`$as_dirname -- "$ac_file" ||
29199
22538
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29200
22539
X"$ac_file" : 'X\(//\)[^/]' \| \
29201
22540
X"$ac_file" : 'X\(//\)$' \| \
29202
X"$ac_file" : 'X\(/\)' \| \
29203
. : '\(.\)' 2>/dev/null ||
29205
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29206
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29207
/^X\(\/\/\)$/{ s//\1/; q; }
29208
/^X\(\/\).*/{ s//\1/; q; }
29210
{ if $as_mkdir_p; then
22541
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22542
$as_echo X"$ac_file" |
22543
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22547
/^X\(\/\/\)[^/].*/{
22562
-*) as_dir=./$as_dir;;
22564
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29215
while test ! -d "$as_dir"; do
29216
as_dirs="$as_dir $as_dirs"
29217
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22568
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22569
*) as_qdir=$as_dir;;
22571
as_dirs="'$as_qdir' $as_dirs"
22572
as_dir=`$as_dirname -- "$as_dir" ||
29218
22573
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29219
22574
X"$as_dir" : 'X\(//\)[^/]' \| \
29220
22575
X"$as_dir" : 'X\(//\)$' \| \
29221
X"$as_dir" : 'X\(/\)' \| \
29222
. : '\(.\)' 2>/dev/null ||
29224
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29225
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29226
/^X\(\/\/\)$/{ s//\1/; q; }
29227
/^X\(\/\).*/{ s//\1/; q; }
22576
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22577
$as_echo X"$as_dir" |
22578
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22582
/^X\(\/\/\)[^/].*/{
22595
test -d "$as_dir" && break
29230
test ! -n "$as_dirs" || mkdir $as_dirs
29231
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29232
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22597
test -z "$as_dirs" || eval "mkdir $as_dirs"
22598
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22599
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29233
22600
{ (exit 1); exit 1; }; }; }
29235
22601
ac_builddir=.
29237
if test "$ac_dir" != .; then
29238
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29239
# A "../" for each directory in $ac_dir_suffix.
29240
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29242
ac_dir_suffix= ac_top_builddir=
22604
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22606
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22607
# A ".." for each directory in $ac_dir_suffix.
22608
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22609
case $ac_top_builddir_sub in
22610
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22611
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22614
ac_abs_top_builddir=$ac_pwd
22615
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22616
# for backward compatibility:
22617
ac_top_builddir=$ac_top_build_prefix
29245
22619
case $srcdir in
29246
.) # No --srcdir option. We are building in place.
22620
.) # We are building in place.
29248
if test -z "$ac_top_builddir"; then
29251
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29253
[\\/]* | ?:[\\/]* ) # Absolute path.
22622
ac_top_srcdir=$ac_top_builddir_sub
22623
ac_abs_top_srcdir=$ac_pwd ;;
22624
[\\/]* | ?:[\\/]* ) # Absolute name.
29254
22625
ac_srcdir=$srcdir$ac_dir_suffix;
29255
ac_top_srcdir=$srcdir ;;
29256
*) # Relative path.
29257
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29258
ac_top_srcdir=$ac_top_builddir$srcdir ;;
29261
# Do not use `cd foo && pwd` to compute absolute paths, because
29262
# the directories may not exist.
29264
.) ac_abs_builddir="$ac_dir";;
29267
.) ac_abs_builddir=`pwd`;;
29268
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29269
*) ac_abs_builddir=`pwd`/"$ac_dir";;
29272
case $ac_abs_builddir in
29273
.) ac_abs_top_builddir=${ac_top_builddir}.;;
29275
case ${ac_top_builddir}. in
29276
.) ac_abs_top_builddir=$ac_abs_builddir;;
29277
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29278
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29281
case $ac_abs_builddir in
29282
.) ac_abs_srcdir=$ac_srcdir;;
29285
.) ac_abs_srcdir=$ac_abs_builddir;;
29286
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29287
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29290
case $ac_abs_builddir in
29291
.) ac_abs_top_srcdir=$ac_top_srcdir;;
29293
case $ac_top_srcdir in
29294
.) ac_abs_top_srcdir=$ac_abs_builddir;;
29295
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29296
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22626
ac_top_srcdir=$srcdir
22627
ac_abs_top_srcdir=$srcdir ;;
22628
*) # Relative name.
22629
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22630
ac_top_srcdir=$ac_top_build_prefix$srcdir
22631
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22633
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29301
22642
case $INSTALL in
29302
22643
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29303
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29306
if test x"$ac_file" != x-; then
29307
{ echo "$as_me:$LINENO: creating $ac_file" >&5
29308
echo "$as_me: creating $ac_file" >&6;}
29311
# Let's still pretend it is `configure' which instantiates (i.e., don't
29312
# use $as_me), people would be surprised to read:
29313
# /* config.h. Generated by config.status. */
29314
if test x"$ac_file" = x-; then
29317
configure_input="$ac_file. "
29319
configure_input=$configure_input"Generated from `echo $ac_file_in |
29320
sed 's,.*/,,'` by configure."
29322
# First look for the input files in the build tree, otherwise in the
29324
ac_file_inputs=`IFS=:
29325
for f in $ac_file_in; do
29327
-) echo $tmp/stdin ;;
29329
# Absolute (can't be DOS-style, as IFS=:)
29330
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29331
echo "$as_me: error: cannot find input file: $f" >&2;}
29332
{ (exit 1); exit 1; }; }
29335
if test -f "$f"; then
29338
elif test -f "$srcdir/$f"; then
29343
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29344
echo "$as_me: error: cannot find input file: $f" >&2;}
29345
{ (exit 1); exit 1; }; }
29348
done` || { (exit 1); exit 1; }
29350
cat >>$CONFIG_STATUS <<_ACEOF
22644
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22646
ac_MKDIR_P=$MKDIR_P
22648
[\\/$]* | ?:[\\/]* ) ;;
22649
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22653
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22654
# If the template does not know about datarootdir, expand it.
22655
# FIXME: This hack should be removed a few years after 2.60.
22656
ac_datarootdir_hack=; ac_datarootdir_seen=
22669
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22670
*datarootdir*) ac_datarootdir_seen=yes;;
22671
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22672
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22673
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22675
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22676
ac_datarootdir_hack='
22677
s&@datadir@&$datadir&g
22678
s&@docdir@&$docdir&g
22679
s&@infodir@&$infodir&g
22680
s&@localedir@&$localedir&g
22681
s&@mandir@&$mandir&g
22682
s&\\\${datarootdir}&$datarootdir&g' ;;
22686
# Neutralize VPATH when `$srcdir' = `.'.
22687
# Shell code in configure.ac might set extrasub.
22688
# FIXME: do we really want to maintain this feature?
22689
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22690
ac_sed_extra="$ac_vpsub
29354
cat >>$CONFIG_STATUS <<\_ACEOF
22693
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29356
22695
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29357
s,@configure_input@,$configure_input,;t t
29358
s,@srcdir@,$ac_srcdir,;t t
29359
s,@abs_srcdir@,$ac_abs_srcdir,;t t
29360
s,@top_srcdir@,$ac_top_srcdir,;t t
29361
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29362
s,@builddir@,$ac_builddir,;t t
29363
s,@abs_builddir@,$ac_abs_builddir,;t t
29364
s,@top_builddir@,$ac_top_builddir,;t t
29365
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29366
s,@INSTALL@,$ac_INSTALL,;t t
29367
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29369
if test x"$ac_file" != x-; then
29370
mv $tmp/out $ac_file
29378
cat >>$CONFIG_STATUS <<\_ACEOF
29381
# CONFIG_HEADER section.
29384
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29385
# NAME is the cpp macro being defined and VALUE is the value it is being given.
29387
# ac_d sets the value in "#define NAME VALUE" lines.
29388
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29389
ac_dB='[ ].*$,\1#\2'
29392
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29393
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29394
ac_uB='$,\1#\2define\3'
29398
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29399
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22696
s|@configure_input@|$ac_sed_conf_input|;t t
22697
s&@top_builddir@&$ac_top_builddir_sub&;t t
22698
s&@top_build_prefix@&$ac_top_build_prefix&;t t
22699
s&@srcdir@&$ac_srcdir&;t t
22700
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22701
s&@top_srcdir@&$ac_top_srcdir&;t t
22702
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22703
s&@builddir@&$ac_builddir&;t t
22704
s&@abs_builddir@&$ac_abs_builddir&;t t
22705
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22706
s&@INSTALL@&$ac_INSTALL&;t t
22707
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22708
$ac_datarootdir_hack
22710
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22711
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22712
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22713
{ (exit 1); exit 1; }; }
22715
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22716
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22717
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22718
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22719
which seems to be undefined. Please make sure it is defined." >&5
22720
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22721
which seems to be undefined. Please make sure it is defined." >&2;}
29400
22724
case $ac_file in
29401
- | *:- | *:-:* ) # input from stdin
29403
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29404
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29405
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29406
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29407
* ) ac_file_in=$ac_file.in ;;
29410
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29411
echo "$as_me: creating $ac_file" >&6;}
29413
# First look for the input files in the build tree, otherwise in the
29415
ac_file_inputs=`IFS=:
29416
for f in $ac_file_in; do
29418
-) echo $tmp/stdin ;;
29420
# Absolute (can't be DOS-style, as IFS=:)
29421
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29422
echo "$as_me: error: cannot find input file: $f" >&2;}
29423
{ (exit 1); exit 1; }; }
29424
# Do quote $f, to prevent DOS paths from being IFS'd.
29427
if test -f "$f"; then
29430
elif test -f "$srcdir/$f"; then
29435
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29436
echo "$as_me: error: cannot find input file: $f" >&2;}
29437
{ (exit 1); exit 1; }; }
29440
done` || { (exit 1); exit 1; }
29441
# Remove the trailing spaces.
29442
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29446
# Transform confdefs.h into two sed scripts, `conftest.defines' and
29447
# `conftest.undefs', that substitutes the proper values into
29448
# config.h.in to produce config.h. The first handles `#define'
29449
# templates, and the second `#undef' templates.
29450
# And first: Protect against being on the right side of a sed subst in
29451
# config.status. Protect against being in an unquoted here document
29452
# in config.status.
29453
rm -f conftest.defines conftest.undefs
29454
# Using a here document instead of a string reduces the quoting nightmare.
29455
# Putting comments in sed scripts is not portable.
29457
# `end' is used to avoid that the second main sed command (meant for
29458
# 0-ary CPP macros) applies to n-ary macro definitions.
29459
# See the Autoconf documentation for `clear'.
29460
cat >confdef2sed.sed <<\_ACEOF
29465
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29467
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29470
# If some macros were called several times there might be several times
29471
# the same #defines, which is useless. Nevertheless, we may not want to
29472
# sort them, since we want the *last* AC-DEFINE to be honored.
29473
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29474
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29475
rm -f confdef2sed.sed
29477
# This sed command replaces #undef with comments. This is necessary, for
29478
# example, in the case of _POSIX_SOURCE, which is predefined and required
29479
# on some systems where configure will not decide to define it.
29480
cat >>conftest.undefs <<\_ACEOF
29481
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29484
# Break up conftest.defines because some shells have a limit on the size
29485
# of here documents, and old seds have small limits too (100 cmds).
29486
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29487
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29488
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29489
echo ' :' >>$CONFIG_STATUS
29490
rm -f conftest.tail
29491
while grep . conftest.defines >/dev/null
29493
# Write a limited-size here document to $tmp/defines.sed.
29494
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29495
# Speed up: don't consider the non `#define' lines.
29496
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29497
# Work around the forget-to-reset-the-flag bug.
29498
echo 't clr' >>$CONFIG_STATUS
29499
echo ': clr' >>$CONFIG_STATUS
29500
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29502
sed -f $tmp/defines.sed $tmp/in >$tmp/out
29504
mv $tmp/out $tmp/in
29506
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29507
rm -f conftest.defines
29508
mv conftest.tail conftest.defines
29510
rm -f conftest.defines
29511
echo ' fi # grep' >>$CONFIG_STATUS
29512
echo >>$CONFIG_STATUS
29514
# Break up conftest.undefs because some shells have a limit on the size
29515
# of here documents, and old seds have small limits too (100 cmds).
29516
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29517
rm -f conftest.tail
29518
while grep . conftest.undefs >/dev/null
29520
# Write a limited-size here document to $tmp/undefs.sed.
29521
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29522
# Speed up: don't consider the non `#undef'
29523
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29524
# Work around the forget-to-reset-the-flag bug.
29525
echo 't clr' >>$CONFIG_STATUS
29526
echo ': clr' >>$CONFIG_STATUS
29527
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29529
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29531
mv $tmp/out $tmp/in
29533
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29534
rm -f conftest.undefs
29535
mv conftest.tail conftest.undefs
29537
rm -f conftest.undefs
29539
cat >>$CONFIG_STATUS <<\_ACEOF
29540
# Let's still pretend it is `configure' which instantiates (i.e., don't
29541
# use $as_me), people would be surprised to read:
29542
# /* config.h. Generated by config.status. */
29543
if test x"$ac_file" = x-; then
29544
echo "/* Generated by configure. */" >$tmp/config.h
29546
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29548
cat $tmp/in >>$tmp/config.h
22725
-) cat "$tmp/out" && rm -f "$tmp/out";;
22726
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22728
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22729
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22730
{ (exit 1); exit 1; }; }
29550
22736
if test x"$ac_file" != x-; then
29551
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29552
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29553
echo "$as_me: $ac_file is unchanged" >&6;}
22738
$as_echo "/* $configure_input */" \
22739
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22740
} >"$tmp/config.h" \
22741
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22742
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22743
{ (exit 1); exit 1; }; }
22744
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22745
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22746
$as_echo "$as_me: $ac_file is unchanged" >&6;}
29555
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29556
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29557
X"$ac_file" : 'X\(//\)[^/]' \| \
29558
X"$ac_file" : 'X\(//\)$' \| \
29559
X"$ac_file" : 'X\(/\)' \| \
29560
. : '\(.\)' 2>/dev/null ||
29562
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29563
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29564
/^X\(\/\/\)$/{ s//\1/; q; }
29565
/^X\(\/\).*/{ s//\1/; q; }
29567
{ if $as_mkdir_p; then
29572
while test ! -d "$as_dir"; do
29573
as_dirs="$as_dir $as_dirs"
29574
as_dir=`(dirname "$as_dir") 2>/dev/null ||
29575
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29576
X"$as_dir" : 'X\(//\)[^/]' \| \
29577
X"$as_dir" : 'X\(//\)$' \| \
29578
X"$as_dir" : 'X\(/\)' \| \
29579
. : '\(.\)' 2>/dev/null ||
29581
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29582
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29583
/^X\(\/\/\)$/{ s//\1/; q; }
29584
/^X\(\/\).*/{ s//\1/; q; }
29587
test ! -n "$as_dirs" || mkdir $as_dirs
29588
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29589
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29590
{ (exit 1); exit 1; }; }; }
29593
mv $tmp/config.h $ac_file
22749
mv "$tmp/config.h" "$ac_file" \
22750
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22751
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22752
{ (exit 1); exit 1; }; }
29597
rm -f $tmp/config.h
22755
$as_echo "/* $configure_input */" \
22756
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22757
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22758
$as_echo "$as_me: error: could not create -" >&2;}
22759
{ (exit 1); exit 1; }; }
29599
# Compute $ac_file's index in $config_headers.
22761
# Compute "$ac_file"'s index in $config_headers.
29600
22763
_am_stamp_count=1
29601
22764
for _am_header in $config_headers :; do
29602
22765
case $_am_header in
29603
$ac_file | $ac_file:* )
22766
$_am_arg | $_am_arg:* )
29606
22769
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
29609
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29610
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29611
X$ac_file : 'X\(//\)[^/]' \| \
29612
X$ac_file : 'X\(//\)$' \| \
29613
X$ac_file : 'X\(/\)' \| \
29614
. : '\(.\)' 2>/dev/null ||
29616
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29617
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29618
/^X\(\/\/\)$/{ s//\1/; q; }
29619
/^X\(\/\).*/{ s//\1/; q; }
29620
s/.*/./; q'`/stamp-h$_am_stamp_count
29623
cat >>$CONFIG_STATUS <<\_ACEOF
29626
# CONFIG_COMMANDS section.
29628
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29629
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29630
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29631
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29632
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29633
X"$ac_dest" : 'X\(//\)[^/]' \| \
29634
X"$ac_dest" : 'X\(//\)$' \| \
29635
X"$ac_dest" : 'X\(/\)' \| \
29636
. : '\(.\)' 2>/dev/null ||
29638
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29639
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29640
/^X\(\/\/\)$/{ s//\1/; q; }
29641
/^X\(\/\).*/{ s//\1/; q; }
29643
{ if $as_mkdir_p; then
29648
while test ! -d "$as_dir"; do
29649
as_dirs="$as_dir $as_dirs"
29650
as_dir=`(dirname "$as_dir") 2>/dev/null ||
29651
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29652
X"$as_dir" : 'X\(//\)[^/]' \| \
29653
X"$as_dir" : 'X\(//\)$' \| \
29654
X"$as_dir" : 'X\(/\)' \| \
29655
. : '\(.\)' 2>/dev/null ||
29657
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29658
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29659
/^X\(\/\/\)$/{ s//\1/; q; }
29660
/^X\(\/\).*/{ s//\1/; q; }
29663
test ! -n "$as_dirs" || mkdir $as_dirs
29664
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29665
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29666
{ (exit 1); exit 1; }; }; }
29670
if test "$ac_dir" != .; then
29671
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29672
# A "../" for each directory in $ac_dir_suffix.
29673
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29675
ac_dir_suffix= ac_top_builddir=
29679
.) # No --srcdir option. We are building in place.
29681
if test -z "$ac_top_builddir"; then
29684
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29686
[\\/]* | ?:[\\/]* ) # Absolute path.
29687
ac_srcdir=$srcdir$ac_dir_suffix;
29688
ac_top_srcdir=$srcdir ;;
29689
*) # Relative path.
29690
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29691
ac_top_srcdir=$ac_top_builddir$srcdir ;;
29694
# Do not use `cd foo && pwd` to compute absolute paths, because
29695
# the directories may not exist.
29697
.) ac_abs_builddir="$ac_dir";;
29700
.) ac_abs_builddir=`pwd`;;
29701
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29702
*) ac_abs_builddir=`pwd`/"$ac_dir";;
29705
case $ac_abs_builddir in
29706
.) ac_abs_top_builddir=${ac_top_builddir}.;;
29708
case ${ac_top_builddir}. in
29709
.) ac_abs_top_builddir=$ac_abs_builddir;;
29710
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29711
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29714
case $ac_abs_builddir in
29715
.) ac_abs_srcdir=$ac_srcdir;;
29718
.) ac_abs_srcdir=$ac_abs_builddir;;
29719
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29720
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29723
case $ac_abs_builddir in
29724
.) ac_abs_top_srcdir=$ac_top_srcdir;;
29726
case $ac_top_srcdir in
29727
.) ac_abs_top_srcdir=$ac_abs_builddir;;
29728
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29729
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29734
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29735
echo "$as_me: executing $ac_dest commands" >&6;}
29737
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29738
# Strip MF so we end up with the name of the file.
29739
mf=`echo "$mf" | sed -e 's/:.*$//'`
29740
# Check whether this is an Automake generated Makefile or not.
29741
# We used to match only the files named `Makefile.in', but
29742
# some people rename them; so instead we look at the file content.
29743
# Grep'ing the first line is not enough: some people post-process
29744
# each Makefile.in and add a new line on top of each file to say so.
29745
# So let's grep whole file.
29746
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29747
dirpart=`(dirname "$mf") 2>/dev/null ||
22772
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22773
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22774
X"$_am_arg" : 'X\(//\)[^/]' \| \
22775
X"$_am_arg" : 'X\(//\)$' \| \
22776
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22777
$as_echo X"$_am_arg" |
22778
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22782
/^X\(\/\/\)[^/].*/{
22794
s/.*/./; q'`/stamp-h$_am_stamp_count
22797
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22798
$as_echo "$as_me: executing $ac_file commands" >&6;}
22803
case $ac_file$ac_mode in
22804
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22805
# Autoconf 2.62 quotes --file arguments for eval, but not when files
22806
# are listed without --file. Let's play safe and only enable the eval
22807
# if we detect the quoting.
22808
case $CONFIG_FILES in
22809
*\'*) eval set x "$CONFIG_FILES" ;;
22810
*) set x $CONFIG_FILES ;;
22815
# Strip MF so we end up with the name of the file.
22816
mf=`echo "$mf" | sed -e 's/:.*$//'`
22817
# Check whether this is an Automake generated Makefile or not.
22818
# We used to match only the files named `Makefile.in', but
22819
# some people rename them; so instead we look at the file content.
22820
# Grep'ing the first line is not enough: some people post-process
22821
# each Makefile.in and add a new line on top of each file to say so.
22822
# Grep'ing the whole file is not good either: AIX grep has a line
22823
# limit of 2048, but all sed's we know have understand at least 4000.
22824
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22825
dirpart=`$as_dirname -- "$mf" ||
29748
22826
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29749
22827
X"$mf" : 'X\(//\)[^/]' \| \
29750
22828
X"$mf" : 'X\(//\)$' \| \
29751
X"$mf" : 'X\(/\)' \| \
29752
. : '\(.\)' 2>/dev/null ||
29754
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29755
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29756
/^X\(\/\/\)$/{ s//\1/; q; }
29757
/^X\(\/\).*/{ s//\1/; q; }
29762
# Extract the definition of DEPDIR, am__include, and am__quote
29763
# from the Makefile without running `make'.
29764
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29765
test -z "$DEPDIR" && continue
29766
am__include=`sed -n 's/^am__include = //p' < "$mf"`
29767
test -z "am__include" && continue
29768
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29769
# When using ansi2knr, U may be empty or an underscore; expand it
29770
U=`sed -n 's/^U = //p' < "$mf"`
29771
# Find all dependency output files, they are included files with
29772
# $(DEPDIR) in their names. We invoke sed twice because it is the
29773
# simplest approach to changing $(DEPDIR) to its actual value in the
29775
for file in `sed -n "
29776
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29777
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29778
# Make sure the directory exists.
29779
test -f "$dirpart/$file" && continue
29780
fdir=`(dirname "$file") 2>/dev/null ||
22829
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22831
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22835
/^X\(\/\/\)[^/].*/{
22851
# Extract the definition of DEPDIR, am__include, and am__quote
22852
# from the Makefile without running `make'.
22853
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22854
test -z "$DEPDIR" && continue
22855
am__include=`sed -n 's/^am__include = //p' < "$mf"`
22856
test -z "am__include" && continue
22857
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22858
# When using ansi2knr, U may be empty or an underscore; expand it
22859
U=`sed -n 's/^U = //p' < "$mf"`
22860
# Find all dependency output files, they are included files with
22861
# $(DEPDIR) in their names. We invoke sed twice because it is the
22862
# simplest approach to changing $(DEPDIR) to its actual value in the
22864
for file in `sed -n "
22865
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22866
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22867
# Make sure the directory exists.
22868
test -f "$dirpart/$file" && continue
22869
fdir=`$as_dirname -- "$file" ||
29781
22870
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29782
22871
X"$file" : 'X\(//\)[^/]' \| \
29783
22872
X"$file" : 'X\(//\)$' \| \
29784
X"$file" : 'X\(/\)' \| \
29785
. : '\(.\)' 2>/dev/null ||
29787
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29788
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29789
/^X\(\/\/\)$/{ s//\1/; q; }
29790
/^X\(\/\).*/{ s//\1/; q; }
29792
{ if $as_mkdir_p; then
29793
mkdir -p $dirpart/$fdir
29795
as_dir=$dirpart/$fdir
22873
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22874
$as_echo X"$file" |
22875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22879
/^X\(\/\/\)[^/].*/{
22892
{ as_dir=$dirpart/$fdir
22894
-*) as_dir=./$as_dir;;
22896
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29797
while test ! -d "$as_dir"; do
29798
as_dirs="$as_dir $as_dirs"
29799
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22900
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22901
*) as_qdir=$as_dir;;
22903
as_dirs="'$as_qdir' $as_dirs"
22904
as_dir=`$as_dirname -- "$as_dir" ||
29800
22905
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29801
22906
X"$as_dir" : 'X\(//\)[^/]' \| \
29802
22907
X"$as_dir" : 'X\(//\)$' \| \
29803
X"$as_dir" : 'X\(/\)' \| \
29804
. : '\(.\)' 2>/dev/null ||
29806
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29807
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
29808
/^X\(\/\/\)$/{ s//\1/; q; }
29809
/^X\(\/\).*/{ s//\1/; q; }
22908
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22909
$as_echo X"$as_dir" |
22910
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22914
/^X\(\/\/\)[^/].*/{
22927
test -d "$as_dir" && break
29812
test ! -n "$as_dirs" || mkdir $as_dirs
29813
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29814
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22929
test -z "$as_dirs" || eval "mkdir $as_dirs"
22930
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22931
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29815
22932
{ (exit 1); exit 1; }; }; }
29817
# echo "creating $dirpart/$file"
29818
echo '# dummy' > "$dirpart/$file"
22933
# echo "creating $dirpart/$file"
22934
echo '# dummy' > "$dirpart/$file"
29826
cat >>$CONFIG_STATUS <<\_ACEOF
22941
# See if we are running on zsh, and set the options which allow our
22942
# commands through without removal of \ escapes.
22943
if test -n "${ZSH_VERSION+set}" ; then
22944
setopt NO_GLOB_SUBST
22947
cfgfile="${ofile}T"
22948
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22951
cat <<_LT_EOF >> "$cfgfile"
22954
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22955
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22956
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22957
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22959
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22960
# 2006, 2007, 2008 Free Software Foundation, Inc.
22961
# Written by Gordon Matzigkeit, 1996
22963
# This file is part of GNU Libtool.
22965
# GNU Libtool is free software; you can redistribute it and/or
22966
# modify it under the terms of the GNU General Public License as
22967
# published by the Free Software Foundation; either version 2 of
22968
# the License, or (at your option) any later version.
22970
# As a special exception to the GNU General Public License,
22971
# if you distribute this file as part of a program or library that
22972
# is built using GNU Libtool, you may include this file under the
22973
# same distribution terms that you use for the rest of that program.
22975
# GNU Libtool is distributed in the hope that it will be useful,
22976
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22977
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22978
# GNU General Public License for more details.
22980
# You should have received a copy of the GNU General Public License
22981
# along with GNU Libtool; see the file COPYING. If not, a copy
22982
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22983
# obtained by writing to the Free Software Foundation, Inc.,
22984
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22987
# The names of the tagged configurations supported by this script.
22990
# ### BEGIN LIBTOOL CONFIG
22992
# Which release of libtool.m4 was used?
22993
macro_version=$macro_version
22994
macro_revision=$macro_revision
22996
# Whether or not to build shared libraries.
22997
build_libtool_libs=$enable_shared
22999
# Whether or not to build static libraries.
23000
build_old_libs=$enable_static
23002
# What type of objects to build.
23005
# Whether or not to optimize for fast installation.
23006
fast_install=$enable_fast_install
23009
host_alias=$host_alias
23013
# The build system.
23014
build_alias=$build_alias
23018
# A sed program that does not truncate output.
23021
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23022
Xsed="\$SED -e 1s/^X//"
23024
# A grep program that handles long lines.
23030
# A literal string matcher.
23033
# A BSD- or MS-compatible name lister.
23036
# Whether we need soft or hard links.
23039
# What is the maximum length of a command?
23040
max_cmd_len=$max_cmd_len
23042
# Object file suffix (normally "o").
23045
# Executable file suffix (normally "").
23048
# whether the shell understands "unset".
23051
# turn spaces into newlines.
23054
# turn newlines into spaces.
23057
# How to create reloadable object files.
23058
reload_flag=$lt_reload_flag
23059
reload_cmds=$lt_reload_cmds
23061
# An object symbol dumper.
23062
OBJDUMP=$lt_OBJDUMP
23064
# Method to check whether dependent libraries are shared objects.
23065
deplibs_check_method=$lt_deplibs_check_method
23067
# Command to use when deplibs_check_method == "file_magic".
23068
file_magic_cmd=$lt_file_magic_cmd
23072
AR_FLAGS=$lt_AR_FLAGS
23074
# A symbol stripping program.
23077
# Commands used to install an old-style archive.
23079
old_postinstall_cmds=$lt_old_postinstall_cmds
23080
old_postuninstall_cmds=$lt_old_postuninstall_cmds
23085
# LTCC compiler flags.
23086
LTCFLAGS=$lt_CFLAGS
23088
# Take the output of nm and produce a listing of raw symbols and C names.
23089
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23091
# Transform the output of nm in a proper C declaration.
23092
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23094
# Transform the output of nm in a C name address pair.
23095
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23097
# Transform the output of nm in a C name address pair when lib prefix is needed.
23098
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23100
# The name of the directory that contains temporary libtool files.
23103
# Shell to use when invoking shell scripts.
23106
# An echo program that does not interpret backslashes.
23109
# Used to examine libraries when file_magic_cmd begins with "file".
23110
MAGIC_CMD=$MAGIC_CMD
23112
# Must we lock files when doing compilation?
23113
need_locks=$lt_need_locks
23115
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23116
DSYMUTIL=$lt_DSYMUTIL
23118
# Tool to change global to local symbols on Mac OS X.
23121
# Tool to manipulate fat objects and archives on Mac OS X.
23124
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23127
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23128
OTOOL64=$lt_OTOOL64
23130
# Old archive suffix (normally "a").
23133
# Shared library suffix (normally ".so").
23134
shrext_cmds=$lt_shrext_cmds
23136
# The commands to extract the exported symbol list from a shared archive.
23137
extract_expsyms_cmds=$lt_extract_expsyms_cmds
23139
# Variables whose values should be saved in libtool wrapper scripts and
23140
# restored at link time.
23141
variables_saved_for_relink=$lt_variables_saved_for_relink
23143
# Do we need the "lib" prefix for modules?
23144
need_lib_prefix=$need_lib_prefix
23146
# Do we need a version for libraries?
23147
need_version=$need_version
23149
# Library versioning type.
23150
version_type=$version_type
23152
# Shared library runtime path variable.
23153
runpath_var=$runpath_var
23155
# Shared library path variable.
23156
shlibpath_var=$shlibpath_var
23158
# Is shlibpath searched before the hard-coded library search path?
23159
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23161
# Format of library name prefix.
23162
libname_spec=$lt_libname_spec
23164
# List of archive names. First name is the real one, the rest are links.
23165
# The last name is the one that the linker finds with -lNAME
23166
library_names_spec=$lt_library_names_spec
23168
# The coded name of the library, if different from the real name.
23169
soname_spec=$lt_soname_spec
23171
# Command to use after installation of a shared archive.
23172
postinstall_cmds=$lt_postinstall_cmds
23174
# Command to use after uninstallation of a shared archive.
23175
postuninstall_cmds=$lt_postuninstall_cmds
23177
# Commands used to finish a libtool library installation in a directory.
23178
finish_cmds=$lt_finish_cmds
23180
# As "finish_cmds", except a single script fragment to be evaled but
23182
finish_eval=$lt_finish_eval
23184
# Whether we should hardcode library paths into libraries.
23185
hardcode_into_libs=$hardcode_into_libs
23187
# Compile-time system search path for libraries.
23188
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23190
# Run-time system search path for libraries.
23191
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23193
# Whether dlopen is supported.
23194
dlopen_support=$enable_dlopen
23196
# Whether dlopen of programs is supported.
23197
dlopen_self=$enable_dlopen_self
23199
# Whether dlopen of statically linked programs is supported.
23200
dlopen_self_static=$enable_dlopen_self_static
23202
# Commands to strip libraries.
23203
old_striplib=$lt_old_striplib
23204
striplib=$lt_striplib
23207
# The linker used to build libraries.
23210
# Commands used to build an old-style archive.
23211
old_archive_cmds=$lt_old_archive_cmds
23213
# A language specific compiler.
23216
# Is the compiler the GNU compiler?
23219
# Compiler flag to turn off builtin functions.
23220
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23222
# How to pass a linker flag through the compiler.
23223
wl=$lt_lt_prog_compiler_wl
23225
# Additional compiler flags for building library objects.
23226
pic_flag=$lt_lt_prog_compiler_pic
23228
# Compiler flag to prevent dynamic linking.
23229
link_static_flag=$lt_lt_prog_compiler_static
23231
# Does compiler simultaneously support -c and -o options?
23232
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23234
# Whether or not to add -lc for building shared libraries.
23235
build_libtool_need_lc=$archive_cmds_need_lc
23237
# Whether or not to disallow shared libs when runtime libs are static.
23238
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23240
# Compiler flag to allow reflexive dlopens.
23241
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23243
# Compiler flag to generate shared objects directly from archives.
23244
whole_archive_flag_spec=$lt_whole_archive_flag_spec
23246
# Whether the compiler copes with passing no objects directly.
23247
compiler_needs_object=$lt_compiler_needs_object
23249
# Create an old-style archive from a shared archive.
23250
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23252
# Create a temporary old-style archive to link instead of a shared archive.
23253
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23255
# Commands used to build a shared archive.
23256
archive_cmds=$lt_archive_cmds
23257
archive_expsym_cmds=$lt_archive_expsym_cmds
23259
# Commands used to build a loadable module if different from building
23260
# a shared archive.
23261
module_cmds=$lt_module_cmds
23262
module_expsym_cmds=$lt_module_expsym_cmds
23264
# Whether we are building with GNU ld or not.
23265
with_gnu_ld=$lt_with_gnu_ld
23267
# Flag that allows shared libraries with undefined symbols to be built.
23268
allow_undefined_flag=$lt_allow_undefined_flag
23270
# Flag that enforces no undefined symbols.
23271
no_undefined_flag=$lt_no_undefined_flag
23273
# Flag to hardcode \$libdir into a binary during linking.
23274
# This must work even if \$libdir does not exist
23275
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23277
# If ld is used when linking, flag to hardcode \$libdir into a binary
23278
# during linking. This must work even if \$libdir does not exist.
23279
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23281
# Whether we need a single "-rpath" flag with a separated argument.
23282
hardcode_libdir_separator=$lt_hardcode_libdir_separator
23284
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23285
# DIR into the resulting binary.
23286
hardcode_direct=$hardcode_direct
23288
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23289
# DIR into the resulting binary and the resulting library dependency is
23290
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23291
# library is relocated.
23292
hardcode_direct_absolute=$hardcode_direct_absolute
23294
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23295
# into the resulting binary.
23296
hardcode_minus_L=$hardcode_minus_L
23298
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23299
# into the resulting binary.
23300
hardcode_shlibpath_var=$hardcode_shlibpath_var
23302
# Set to "yes" if building a shared library automatically hardcodes DIR
23303
# into the library and all subsequent libraries and executables linked
23305
hardcode_automatic=$hardcode_automatic
23307
# Set to yes if linker adds runtime paths of dependent libraries
23308
# to runtime path list.
23309
inherit_rpath=$inherit_rpath
23311
# Whether libtool must link a program against all its dependency libraries.
23312
link_all_deplibs=$link_all_deplibs
23314
# Fix the shell variable \$srcfile for the compiler.
23315
fix_srcfile_path=$lt_fix_srcfile_path
23317
# Set to "yes" if exported symbols are required.
23318
always_export_symbols=$always_export_symbols
23320
# The commands to list exported symbols.
23321
export_symbols_cmds=$lt_export_symbols_cmds
23323
# Symbols that should not be listed in the preloaded symbols.
23324
exclude_expsyms=$lt_exclude_expsyms
23326
# Symbols that must always be exported.
23327
include_expsyms=$lt_include_expsyms
23329
# Commands necessary for linking programs (against libraries) with templates.
23330
prelink_cmds=$lt_prelink_cmds
23332
# Specify filename containing input files.
23333
file_list_spec=$lt_file_list_spec
23335
# How to hardcode a shared library path into an executable.
23336
hardcode_action=$hardcode_action
23338
# ### END LIBTOOL CONFIG
23344
cat <<\_LT_EOF >> "$cfgfile"
23345
# AIX sometimes has problems with the GCC collect2 program. For some
23346
# reason, if we set the COLLECT_NAMES environment variable, the problems
23347
# vanish in a puff of smoke.
23348
if test "X${COLLECT_NAMES+set}" != Xset; then
23350
export COLLECT_NAMES
23357
ltmain="$ac_aux_dir/ltmain.sh"
23360
# We use sed instead of cat because bash on DJGPP gets confused if
23361
# if finds mixed CR/LF and LF-only lines. Since sed operates in
23362
# text mode, it properly converts lines to CR/LF. This bash problem
23363
# is reportedly fixed, but why not run on old versions too?
23364
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23365
|| (rm -f "$cfgfile"; exit 1)
23369
cat << \_LT_EOF >> "$cfgfile"
23371
# func_dirname file append nondir_replacement
23372
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23373
# otherwise set result to NONDIR_REPLACEMENT.
23377
*/*) func_dirname_result="${1%/*}${2}" ;;
23378
* ) func_dirname_result="${3}" ;;
23382
# func_basename file
23385
func_basename_result="${1##*/}"
23388
# func_dirname_and_basename file append nondir_replacement
23389
# perform func_basename and func_dirname in a single function
23391
# dirname: Compute the dirname of FILE. If nonempty,
23392
# add APPEND to the result, otherwise set result
23393
# to NONDIR_REPLACEMENT.
23394
# value returned in "$func_dirname_result"
23395
# basename: Compute filename of FILE.
23396
# value retuned in "$func_basename_result"
23397
# Implementation must be kept synchronized with func_dirname
23398
# and func_basename. For efficiency, we do not delegate to
23399
# those functions but instead duplicate the functionality here.
23400
func_dirname_and_basename ()
23403
*/*) func_dirname_result="${1%/*}${2}" ;;
23404
* ) func_dirname_result="${3}" ;;
23406
func_basename_result="${1##*/}"
23409
# func_stripname prefix suffix name
23410
# strip PREFIX and SUFFIX off of NAME.
23411
# PREFIX and SUFFIX must not contain globbing or regex special
23412
# characters, hashes, percent signs, but SUFFIX may contain a leading
23413
# dot (in which case that matches only a dot).
23416
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23417
# positional parameters, so assign one to ordinary parameter first.
23418
func_stripname_result=${3}
23419
func_stripname_result=${func_stripname_result#"${1}"}
23420
func_stripname_result=${func_stripname_result%"${2}"}
23426
func_opt_split_opt=${1%%=*}
23427
func_opt_split_arg=${1#*=}
23434
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23435
*) func_lo2o_result=${1} ;;
23439
# func_xform libobj-or-source
23442
func_xform_result=${1%.*}.lo
23445
# func_arith arithmetic-term...
23448
func_arith_result=$(( $* ))
23452
# STRING may not start with a hyphen.
23455
func_len_result=${#1}
23460
*) # Bourne compatible functions.
23461
cat << \_LT_EOF >> "$cfgfile"
23463
# func_dirname file append nondir_replacement
23464
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23465
# otherwise set result to NONDIR_REPLACEMENT.
23468
# Extract subdirectory from the argument.
23469
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23470
if test "X$func_dirname_result" = "X${1}"; then
23471
func_dirname_result="${3}"
23473
func_dirname_result="$func_dirname_result${2}"
23477
# func_basename file
23480
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23484
# func_stripname prefix suffix name
23485
# strip PREFIX and SUFFIX off of NAME.
23486
# PREFIX and SUFFIX must not contain globbing or regex special
23487
# characters, hashes, percent signs, but SUFFIX may contain a leading
23488
# dot (in which case that matches only a dot).
23489
# func_strip_suffix prefix name
23493
.*) func_stripname_result=`$ECHO "X${3}" \
23494
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23495
*) func_stripname_result=`$ECHO "X${3}" \
23496
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23501
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23502
my_sed_long_arg='1s/^-[^=]*=//'
23507
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23508
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23514
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23517
# func_xform libobj-or-source
23520
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23523
# func_arith arithmetic-term...
23526
func_arith_result=`expr "$@"`
23530
# STRING may not start with a hyphen.
23533
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23539
case $lt_shell_append in
23541
cat << \_LT_EOF >> "$cfgfile"
23543
# func_append var value
23544
# Append VALUE to the end of shell variable VAR.
23552
cat << \_LT_EOF >> "$cfgfile"
23554
# func_append var value
23555
# Append VALUE to the end of shell variable VAR.
23566
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23567
|| (rm -f "$cfgfile"; exit 1)
23569
mv -f "$cfgfile" "$ofile" ||
23570
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29828
23579
{ (exit 0); exit 0; }
29830
23581
chmod +x $CONFIG_STATUS
29831
23582
ac_clean_files=$ac_clean_files_save
23584
test $ac_write_fail = 0 ||
23585
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23586
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23587
{ (exit 1); exit 1; }; }
29834
23590
# configure is writing to config.log, and then calls config.status.
29835
23591
# config.status does its own redirection, appending to config.log.