12079
ac_cpp='$CXXCPP $CPPFLAGS'
12080
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12083
if test -z "$CXX"; then
12084
if test -n "$CCC"; then
12087
if test -n "$ac_tool_prefix"; then
12088
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12090
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12091
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093
$as_echo_n "checking for $ac_word... " >&6; }
12094
if ${ac_cv_prog_CXX+:} false; then :
12095
$as_echo_n "(cached) " >&6
12097
if test -n "$CXX"; then
12098
ac_cv_prog_CXX="$CXX" # Let the user override the test.
12100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101
for as_dir in $PATH
12104
test -z "$as_dir" && as_dir=.
12105
for ac_exec_ext in '' $ac_executable_extensions; do
12106
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12107
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12108
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117
CXX=$ac_cv_prog_CXX
12118
if test -n "$CXX"; then
12119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12120
$as_echo "$CXX" >&6; }
12122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123
$as_echo "no" >&6; }
12127
test -n "$CXX" && break
12130
if test -z "$CXX"; then
12132
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12134
# Extract the first word of "$ac_prog", so it can be a program name with args.
12135
set dummy $ac_prog; ac_word=$2
12136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137
$as_echo_n "checking for $ac_word... " >&6; }
12138
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12139
$as_echo_n "(cached) " >&6
12141
if test -n "$ac_ct_CXX"; then
12142
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145
for as_dir in $PATH
12148
test -z "$as_dir" && as_dir=.
12149
for ac_exec_ext in '' $ac_executable_extensions; do
12150
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151
ac_cv_prog_ac_ct_CXX="$ac_prog"
12152
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12162
if test -n "$ac_ct_CXX"; then
12163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12164
$as_echo "$ac_ct_CXX" >&6; }
12166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167
$as_echo "no" >&6; }
12171
test -n "$ac_ct_CXX" && break
12174
if test "x$ac_ct_CXX" = x; then
12177
case $cross_compiling:$ac_tool_warned in
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181
ac_tool_warned=yes ;;
12189
# Provide some information about the compiler.
12190
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12193
for ac_option in --version -v -V -qversion; do
12194
{ { ac_try="$ac_compiler $ac_option >&5"
12195
case "(($ac_try" in
12196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197
*) ac_try_echo=$ac_try;;
12199
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12200
$as_echo "$ac_try_echo"; } >&5
12201
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
12203
if test -s conftest.err; then
12205
... rest of stderr output deleted ...
12206
10q' conftest.err >conftest.er1
12207
cat conftest.er1 >&5
12209
rm -f conftest.er1 conftest.err
12210
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211
test $ac_status = 0; }
12214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12215
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12216
if ${ac_cv_cxx_compiler_gnu+:} false; then :
12217
$as_echo_n "(cached) " >&6
12219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220
/* end confdefs.h. */
12233
if ac_fn_cxx_try_compile "$LINENO"; then :
12234
ac_compiler_gnu=yes
12238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12243
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12244
if test $ac_compiler_gnu = yes; then
12249
ac_test_CXXFLAGS=${CXXFLAGS+set}
12250
ac_save_CXXFLAGS=$CXXFLAGS
12251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12252
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12253
if ${ac_cv_prog_cxx_g+:} false; then :
12254
$as_echo_n "(cached) " >&6
12256
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12257
ac_cxx_werror_flag=yes
12258
ac_cv_prog_cxx_g=no
12260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261
/* end confdefs.h. */
12271
if ac_fn_cxx_try_compile "$LINENO"; then :
12272
ac_cv_prog_cxx_g=yes
12275
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276
/* end confdefs.h. */
12286
if ac_fn_cxx_try_compile "$LINENO"; then :
12289
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12291
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292
/* end confdefs.h. */
12302
if ac_fn_cxx_try_compile "$LINENO"; then :
12303
ac_cv_prog_cxx_g=yes
12305
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12313
$as_echo "$ac_cv_prog_cxx_g" >&6; }
12314
if test "$ac_test_CXXFLAGS" = set; then
12315
CXXFLAGS=$ac_save_CXXFLAGS
12316
elif test $ac_cv_prog_cxx_g = yes; then
12317
if test "$GXX" = yes; then
12323
if test "$GXX" = yes; then
12330
ac_cpp='$CPP $CPPFLAGS'
12331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335
depcc="$CXX" am_compiler_list=
12337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12338
$as_echo_n "checking dependency style of $depcc... " >&6; }
12339
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12340
$as_echo_n "(cached) " >&6
12342
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12343
# We make a subdir and do the tests there. Otherwise we can end up
12344
# making bogus files that we don't know about and never remove. For
12345
# instance it was reported that on HP-UX the gcc test will end up
12346
# making a dummy file named `D' -- because `-MD' means `put the output
12349
# Copy depcomp to subdir because otherwise we won't find it if we're
12350
# using a relative directory.
12351
cp "$am_depcomp" conftest.dir
12353
# We will build objects and dependencies in a subdirectory because
12354
# it helps to detect inapplicable dependency modes. For instance
12355
# both Tru64's cc and ICC support -MD to output dependencies as a
12356
# side effect of compilation, but ICC will put the dependencies in
12357
# the current directory while Tru64 will put them in the object
12361
am_cv_CXX_dependencies_compiler_type=none
12362
if test "$am_compiler_list" = ""; then
12363
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12365
am__universal=false
12366
case " $depcc " in #(
12367
*\ -arch\ *\ -arch\ *) am__universal=true ;;
12370
for depmode in $am_compiler_list; do
12371
# Setup a source with many dependencies, because some compilers
12372
# like to wrap large dependency lists on column 80 (with \), and
12373
# we should not choose a depcomp mode which is confused by this.
12375
# We need to recreate these files for each test, as the compiler may
12376
# overwrite some of them when testing with obscure command lines.
12377
# This happens at least with the AIX C compiler.
12379
for i in 1 2 3 4 5 6; do
12380
echo '#include "conftst'$i'.h"' >> sub/conftest.c
12381
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12382
# Solaris 8's {/usr,}/bin/sh.
12383
touch sub/conftst$i.h
12385
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12387
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12388
# mode. It turns out that the SunPro C++ compiler does not properly
12389
# handle `-M -o', and we need to detect this. Also, some Intel
12390
# versions had trouble with output in subdirs
12391
am__obj=sub/conftest.${OBJEXT-o}
12392
am__minus_obj="-o $am__obj"
12395
# This depmode causes a compiler race in universal mode.
12396
test "$am__universal" = false || continue
12399
# after this tag, mechanisms are not by side-effect, so they'll
12400
# only be used when explicitly requested
12401
if test "x$enable_dependency_tracking" = xyes; then
12407
msvisualcpp | msvcmsys)
12408
# This compiler won't grok `-c -o', but also, the minuso test has
12409
# not run yet. These depmodes are late enough in the game, and
12410
# so weak that their functioning should not be impacted.
12411
am__obj=conftest.${OBJEXT-o}
12416
if depmode=$depmode \
12417
source=sub/conftest.c object=$am__obj \
12418
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12419
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12420
>/dev/null 2>conftest.err &&
12421
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12422
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12423
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12424
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12425
# icc doesn't choke on unknown options, it will just issue warnings
12426
# or remarks (even with -Werror). So we grep stderr for any message
12427
# that says an option was ignored or not supported.
12428
# When given -MP, icc 7.0 and 7.1 complain thusly:
12429
# icc: Command line warning: ignoring option '-M'; no argument required
12430
# The diagnosis changed in icc 8.0:
12431
# icc: Command line remark: option '-MP' not supported
12432
if (grep 'ignoring option' conftest.err ||
12433
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12434
am_cv_CXX_dependencies_compiler_type=$depmode
12441
rm -rf conftest.dir
12443
am_cv_CXX_dependencies_compiler_type=none
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12448
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12449
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12452
test "x$enable_dependency_tracking" != xno \
12453
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12454
am__fastdepCXX_TRUE=
12455
am__fastdepCXX_FALSE='#'
12457
am__fastdepCXX_TRUE='#'
12458
am__fastdepCXX_FALSE=
12464
func_stripname_cnf ()
12467
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12468
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12470
} # func_stripname_cnf
12472
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12473
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12474
(test "X$CXX" != "Xg++"))) ; then
12476
ac_cpp='$CXXCPP $CPPFLAGS'
12477
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12481
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12482
if test -z "$CXXCPP"; then
12483
if ${ac_cv_prog_CXXCPP+:} false; then :
12484
$as_echo_n "(cached) " >&6
12486
# Double quotes because CXXCPP needs to be expanded
12487
for CXXCPP in "$CXX -E" "/lib/cpp"
12489
ac_preproc_ok=false
12490
for ac_cxx_preproc_warn_flag in '' yes
12492
# Use a header file that comes with gcc, so configuring glibc
12493
# with a fresh cross-compiler works.
12494
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495
# <limits.h> exists even on freestanding compilers.
12496
# On the NeXT, cc -E runs the code through the compiler's parser,
12497
# not just through cpp. "Syntax error" is here to catch this case.
12498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499
/* end confdefs.h. */
12501
# include <limits.h>
12503
# include <assert.h>
12507
if ac_fn_cxx_try_cpp "$LINENO"; then :
12510
# Broken: fails on valid input.
12513
rm -f conftest.err conftest.i conftest.$ac_ext
12515
# OK, works on sane cases. Now check whether nonexistent headers
12516
# can be detected and how.
12517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518
/* end confdefs.h. */
12519
#include <ac_nonexistent.h>
12521
if ac_fn_cxx_try_cpp "$LINENO"; then :
12522
# Broken: success on invalid input.
12525
# Passes both tests.
12529
rm -f conftest.err conftest.i conftest.$ac_ext
12532
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12533
rm -f conftest.i conftest.err conftest.$ac_ext
12534
if $ac_preproc_ok; then :
12539
ac_cv_prog_CXXCPP=$CXXCPP
12542
CXXCPP=$ac_cv_prog_CXXCPP
12544
ac_cv_prog_CXXCPP=$CXXCPP
12546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12547
$as_echo "$CXXCPP" >&6; }
12548
ac_preproc_ok=false
12549
for ac_cxx_preproc_warn_flag in '' yes
12551
# Use a header file that comes with gcc, so configuring glibc
12552
# with a fresh cross-compiler works.
12553
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554
# <limits.h> exists even on freestanding compilers.
12555
# On the NeXT, cc -E runs the code through the compiler's parser,
12556
# not just through cpp. "Syntax error" is here to catch this case.
12557
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558
/* end confdefs.h. */
12560
# include <limits.h>
12562
# include <assert.h>
12566
if ac_fn_cxx_try_cpp "$LINENO"; then :
12569
# Broken: fails on valid input.
12572
rm -f conftest.err conftest.i conftest.$ac_ext
12574
# OK, works on sane cases. Now check whether nonexistent headers
12575
# can be detected and how.
12576
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577
/* end confdefs.h. */
12578
#include <ac_nonexistent.h>
12580
if ac_fn_cxx_try_cpp "$LINENO"; then :
12581
# Broken: success on invalid input.
12584
# Passes both tests.
12588
rm -f conftest.err conftest.i conftest.$ac_ext
12591
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12592
rm -f conftest.i conftest.err conftest.$ac_ext
12593
if $ac_preproc_ok; then :
12596
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12599
See \`config.log' for more details" "$LINENO" 5; }
12603
ac_cpp='$CPP $CPPFLAGS'
12604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609
_lt_caught_CXX_error=yes
12613
ac_cpp='$CXXCPP $CPPFLAGS'
12614
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12618
archive_cmds_need_lc_CXX=no
12619
allow_undefined_flag_CXX=
12620
always_export_symbols_CXX=no
12621
archive_expsym_cmds_CXX=
12622
compiler_needs_object_CXX=no
12623
export_dynamic_flag_spec_CXX=
12624
hardcode_direct_CXX=no
12625
hardcode_direct_absolute_CXX=no
12626
hardcode_libdir_flag_spec_CXX=
12627
hardcode_libdir_flag_spec_ld_CXX=
12628
hardcode_libdir_separator_CXX=
12629
hardcode_minus_L_CXX=no
12630
hardcode_shlibpath_var_CXX=unsupported
12631
hardcode_automatic_CXX=no
12632
inherit_rpath_CXX=no
12634
module_expsym_cmds_CXX=
12635
link_all_deplibs_CXX=unknown
12636
old_archive_cmds_CXX=$old_archive_cmds
12637
reload_flag_CXX=$reload_flag
12638
reload_cmds_CXX=$reload_cmds
12639
no_undefined_flag_CXX=
12640
whole_archive_flag_spec_CXX=
12641
enable_shared_with_static_runtimes_CXX=no
12643
# Source file extension for C++ test sources.
12646
# Object file extension for compiled C++ test sources.
12650
# No sense in running all these tests if we already determined that
12651
# the CXX compiler isn't working. Some variables (like enable_shared)
12652
# are currently assumed to apply to all compilers on this platform,
12653
# and will be corrupted by setting them based on a non-working compiler.
12654
if test "$_lt_caught_CXX_error" != yes; then
12655
# Code to be used in simple compile tests
12656
lt_simple_compile_test_code="int some_variable = 0;"
12658
# Code to be used in simple link tests
12659
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12661
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12668
# If no C compiler was specified, use CC.
12671
# If no C compiler flags were specified, use CFLAGS.
12672
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12674
# Allow CC to be a program name with arguments.
12678
# save warnings/boilerplate of simple test code
12679
ac_outfile=conftest.$ac_objext
12680
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12681
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12682
_lt_compiler_boilerplate=`cat conftest.err`
12685
ac_outfile=conftest.$ac_objext
12686
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12687
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12688
_lt_linker_boilerplate=`cat conftest.err`
12692
# Allow CC to be a program name with arguments.
12694
lt_save_CFLAGS=$CFLAGS
12698
lt_save_with_gnu_ld=$with_gnu_ld
12699
lt_save_path_LD=$lt_cv_path_LD
12700
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12701
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12703
$as_unset lt_cv_prog_gnu_ld
12705
if test -n "${lt_cv_path_LDCXX+set}"; then
12706
lt_cv_path_LD=$lt_cv_path_LDCXX
12708
$as_unset lt_cv_path_LD
12710
test -z "${LDCXX+set}" || LD=$LDCXX
12715
for cc_temp in $compiler""; do
12717
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12718
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12723
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12726
if test -n "$compiler"; then
12727
# We don't want -fno-exception when compiling C++ code, so set the
12728
# no_builtin_flag separately
12729
if test "$GXX" = yes; then
12730
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12732
lt_prog_compiler_no_builtin_flag_CXX=
12735
if test "$GXX" = yes; then
12736
# Set up default GNU C++ configuration
12740
# Check whether --with-gnu-ld was given.
12741
if test "${with_gnu_ld+set}" = set; then :
12742
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12748
if test "$GCC" = yes; then
12749
# Check if gcc -print-prog-name=ld gives a path.
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12751
$as_echo_n "checking for ld used by $CC... " >&6; }
12754
# gcc leaves a trailing carriage return which upsets mingw
12755
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12757
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12760
# Accept absolute paths.
12762
re_direlt='/[^/][^/]*/\.\./'
12763
# Canonicalize the pathname of ld
12764
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12765
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12766
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12768
test -z "$LD" && LD="$ac_prog"
12771
# If it fails, then pretend we aren't using GCC.
12775
# If it is relative, then search for the first ld in PATH.
12776
with_gnu_ld=unknown
12779
elif test "$with_gnu_ld" = yes; then
12780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12781
$as_echo_n "checking for GNU ld... " >&6; }
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12784
$as_echo_n "checking for non-GNU ld... " >&6; }
12786
if ${lt_cv_path_LD+:} false; then :
12787
$as_echo_n "(cached) " >&6
12789
if test -z "$LD"; then
12790
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12791
for ac_dir in $PATH; do
12793
test -z "$ac_dir" && ac_dir=.
12794
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12795
lt_cv_path_LD="$ac_dir/$ac_prog"
12796
# Check to see if the program is GNU ld. I'd rather use --version,
12797
# but apparently some variants of GNU ld only accept -v.
12798
# Break only if it was the GNU/non-GNU ld that we prefer.
12799
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12800
*GNU* | *'with BFD'*)
12801
test "$with_gnu_ld" != no && break
12804
test "$with_gnu_ld" != yes && break
12811
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12815
LD="$lt_cv_path_LD"
12816
if test -n "$LD"; then
12817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12818
$as_echo "$LD" >&6; }
12820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821
$as_echo "no" >&6; }
12823
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12825
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12826
if ${lt_cv_prog_gnu_ld+:} false; then :
12827
$as_echo_n "(cached) " >&6
12829
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12830
case `$LD -v 2>&1 </dev/null` in
12831
*GNU* | *'with BFD'*)
12832
lt_cv_prog_gnu_ld=yes
12835
lt_cv_prog_gnu_ld=no
12839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12840
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12841
with_gnu_ld=$lt_cv_prog_gnu_ld
12849
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12850
# archiving commands below assume that GNU ld is being used.
12851
if test "$with_gnu_ld" = yes; then
12852
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12855
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12856
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12858
# If archive_cmds runs LD, not CC, wlarc should be empty
12859
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12860
# investigate it a little bit more. (MM)
12863
# ancient GNU ld didn't support --whole-archive et. al.
12864
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12865
$GREP 'no-whole-archive' > /dev/null; then
12866
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12868
whole_archive_flag_spec_CXX=
12874
# A generic and very simple default shared library creation
12875
# command for GNU C++ for the case where it uses the native
12876
# linker, instead of GNU ld. If possible, this setting should
12877
# overridden to take advantage of the native linker features on
12878
# the platform it is being used on.
12879
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12882
# Commands to make compiler produce verbose output that lists
12883
# what "hidden" libraries, object files and flags are used when
12884
# linking a shared library.
12885
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12893
# PORTME: fill in a description of your system's C++ link characteristics
12894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12895
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12899
# FIXME: insert proper C++ library support
12903
if test "$host_cpu" = ia64; then
12904
# On IA64, the linker does run time linking by default, so we don't
12905
# have to do anything special.
12906
aix_use_runtimelinking=no
12907
exp_sym_flag='-Bexport'
12910
aix_use_runtimelinking=no
12912
# Test if we are trying to use run time linking or normal
12913
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12914
# need to do runtime linking.
12915
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12916
for ld_flag in $LDFLAGS; do
12919
aix_use_runtimelinking=yes
12927
exp_sym_flag='-bexport'
12928
no_entry_flag='-bnoentry'
12931
# When large executables or shared objects are built, AIX ld can
12932
# have problems creating the table of contents. If linking a library
12933
# or program results in "error TOC overflow" add -mminimal-toc to
12934
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12935
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12937
archive_cmds_CXX=''
12938
hardcode_direct_CXX=yes
12939
hardcode_direct_absolute_CXX=yes
12940
hardcode_libdir_separator_CXX=':'
12941
link_all_deplibs_CXX=yes
12942
file_list_spec_CXX='${wl}-f,'
12944
if test "$GXX" = yes; then
12945
case $host_os in aix4.[012]|aix4.[012].*)
12946
# We only want to do this on AIX 4.2 and lower, the check
12947
# below for broken collect2 doesn't work under 4.3+
12948
collect2name=`${CC} -print-prog-name=collect2`
12949
if test -f "$collect2name" &&
12950
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12952
# We have reworked collect2
12955
# We have old collect2
12956
hardcode_direct_CXX=unsupported
12957
# It fails to find uninstalled libraries when the uninstalled
12958
# path is not listed in the libpath. Setting hardcode_minus_L
12959
# to unsupported forces relinking
12960
hardcode_minus_L_CXX=yes
12961
hardcode_libdir_flag_spec_CXX='-L$libdir'
12962
hardcode_libdir_separator_CXX=
12965
shared_flag='-shared'
12966
if test "$aix_use_runtimelinking" = yes; then
12967
shared_flag="$shared_flag "'${wl}-G'
12971
if test "$host_cpu" = ia64; then
12972
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12973
# chokes on -Wl,-G. The following line is correct:
12976
if test "$aix_use_runtimelinking" = yes; then
12977
shared_flag='${wl}-G'
12979
shared_flag='${wl}-bM:SRE'
12984
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12985
# It seems that -bexpall does not export symbols beginning with
12986
# underscore (_), so it is better to generate a list of symbols to
12988
always_export_symbols_CXX=yes
12989
if test "$aix_use_runtimelinking" = yes; then
12990
# Warning - without using the other runtime loading flags (-brtl),
12991
# -berok will link without error, but may produce a broken library.
12992
allow_undefined_flag_CXX='-berok'
12993
# Determine the default libpath from the value encoded in an empty
12995
if test "${lt_cv_aix_libpath+set}" = set; then
12996
aix_libpath=$lt_cv_aix_libpath
12998
if ${lt_cv_aix_libpath__CXX+:} false; then :
12999
$as_echo_n "(cached) " >&6
13001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002
/* end confdefs.h. */
13012
if ac_fn_cxx_try_link "$LINENO"; then :
13014
lt_aix_libpath_sed='
13015
/Import File Strings/,/^$/ {
13017
s/^0 *\([^ ]*\) *$/\1/
13021
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022
# Check for a 64-bit object if we didn't find anything.
13023
if test -z "$lt_cv_aix_libpath__CXX"; then
13024
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027
rm -f core conftest.err conftest.$ac_objext \
13028
conftest$ac_exeext conftest.$ac_ext
13029
if test -z "$lt_cv_aix_libpath__CXX"; then
13030
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13035
aix_libpath=$lt_cv_aix_libpath__CXX
13038
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13040
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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13042
if test "$host_cpu" = ia64; then
13043
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13044
allow_undefined_flag_CXX="-z nodefs"
13045
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"
13047
# Determine the default libpath from the value encoded in an
13048
# empty executable.
13049
if test "${lt_cv_aix_libpath+set}" = set; then
13050
aix_libpath=$lt_cv_aix_libpath
13052
if ${lt_cv_aix_libpath__CXX+:} false; then :
13053
$as_echo_n "(cached) " >&6
13055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056
/* end confdefs.h. */
13066
if ac_fn_cxx_try_link "$LINENO"; then :
13068
lt_aix_libpath_sed='
13069
/Import File Strings/,/^$/ {
13071
s/^0 *\([^ ]*\) *$/\1/
13075
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13076
# Check for a 64-bit object if we didn't find anything.
13077
if test -z "$lt_cv_aix_libpath__CXX"; then
13078
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13081
rm -f core conftest.err conftest.$ac_objext \
13082
conftest$ac_exeext conftest.$ac_ext
13083
if test -z "$lt_cv_aix_libpath__CXX"; then
13084
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13089
aix_libpath=$lt_cv_aix_libpath__CXX
13092
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13093
# Warning - without using the other run time loading flags,
13094
# -berok will link without error, but may produce a broken library.
13095
no_undefined_flag_CXX=' ${wl}-bernotok'
13096
allow_undefined_flag_CXX=' ${wl}-berok'
13097
if test "$with_gnu_ld" = yes; then
13098
# We only use this code for GNU lds that support --whole-archive.
13099
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13101
# Exported symbols can be pulled into shared objects from archives
13102
whole_archive_flag_spec_CXX='$convenience'
13104
archive_cmds_need_lc_CXX=yes
13105
# This is similar to how AIX traditionally builds its shared
13107
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'
13113
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13114
allow_undefined_flag_CXX=unsupported
13115
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13116
# support --undefined. This deserves some investigation. FIXME
13117
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124
case $cc_basename in
13126
# FIXME: insert proper C++ library support
13132
cygwin* | mingw* | pw32* | cegcc*)
13133
case $GXX,$cc_basename in
13136
# hardcode_libdir_flag_spec is actually meaningless, as there is
13137
# no search path for DLLs.
13138
hardcode_libdir_flag_spec_CXX=' '
13139
allow_undefined_flag_CXX=unsupported
13140
always_export_symbols_CXX=yes
13141
file_list_spec_CXX='@'
13142
# Tell ltmain to make .lib files, not .a files.
13144
# Tell ltmain to make .dll files, not .so files.
13146
# FIXME: Setting linknames here is a bad hack.
13147
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13148
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13149
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13151
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13153
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13155
# The linker will not automatically build a static lib if we build a DLL.
13156
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13157
enable_shared_with_static_runtimes_CXX=yes
13159
old_postinstall_cmds_CXX='chmod 644 $oldlib'
13160
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13161
lt_tool_outputfile="@TOOL_OUTPUT@"~
13162
case $lt_outputfile in
13165
lt_outputfile="$lt_outputfile.exe"
13166
lt_tool_outputfile="$lt_tool_outputfile.exe"
13169
func_to_tool_file "$lt_outputfile"~
13170
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13171
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13172
$RM "$lt_outputfile.manifest";
13177
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13178
# as there is no search path for DLLs.
13179
hardcode_libdir_flag_spec_CXX='-L$libdir'
13180
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13181
allow_undefined_flag_CXX=unsupported
13182
always_export_symbols_CXX=no
13183
enable_shared_with_static_runtimes_CXX=yes
13185
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13186
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'
13187
# If the export-symbols file already is a .def file (1st line
13188
# is EXPORTS), use it as is; otherwise, prepend...
13189
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13190
cp $export_symbols $output_objdir/$soname.def;
13192
echo EXPORTS > $output_objdir/$soname.def;
13193
cat $export_symbols >> $output_objdir/$soname.def;
13195
$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'
13202
darwin* | rhapsody*)
13205
archive_cmds_need_lc_CXX=no
13206
hardcode_direct_CXX=no
13207
hardcode_automatic_CXX=yes
13208
hardcode_shlibpath_var_CXX=unsupported
13209
if test "$lt_cv_ld_force_load" = "yes"; then
13210
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13212
whole_archive_flag_spec_CXX=''
13214
link_all_deplibs_CXX=yes
13215
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13216
case $cc_basename in
13217
ifort*) _lt_dar_can_shared=yes ;;
13218
*) _lt_dar_can_shared=$GCC ;;
13220
if test "$_lt_dar_can_shared" = "yes"; then
13221
output_verbose_link_cmd=func_echo_all
13222
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13223
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13224
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13225
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13226
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13227
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13228
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13238
case $cc_basename in
13240
# FIXME: insert proper C++ library support
13244
# Green Hills C++ Compiler
13245
# FIXME: insert proper C++ library support
13249
# FIXME: insert proper C++ library support
13256
# C++ shared libraries reported to be fairly broken before
13262
archive_cmds_need_lc_CXX=no
13265
freebsd* | dragonfly*)
13266
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13275
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276
link_all_deplibs_CXX=yes
13280
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13281
hardcode_libdir_separator_CXX=:
13282
export_dynamic_flag_spec_CXX='${wl}-E'
13283
hardcode_direct_CXX=yes
13284
hardcode_minus_L_CXX=yes # Not in the search PATH,
13285
# but as the default
13286
# location of the library.
13288
case $cc_basename in
13290
# FIXME: insert proper C++ library support
13294
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'
13295
# Commands to make compiler produce verbose output that lists
13296
# what "hidden" libraries, object files and flags are used when
13297
# linking a shared library.
13299
# There doesn't appear to be a way to prevent this compiler from
13300
# explicitly linking system object files so we need to strip them
13301
# from the output so that they don't get included in the library
13303
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13306
if test "$GXX" = yes; then
13307
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13309
# FIXME: insert proper C++ library support
13317
if test $with_gnu_ld = no; then
13318
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13319
hardcode_libdir_separator_CXX=:
13325
export_dynamic_flag_spec_CXX='${wl}-E'
13331
hardcode_direct_CXX=no
13332
hardcode_shlibpath_var_CXX=no
13335
hardcode_direct_CXX=yes
13336
hardcode_direct_absolute_CXX=yes
13337
hardcode_minus_L_CXX=yes # Not in the search PATH,
13338
# but as the default
13339
# location of the library.
13343
case $cc_basename in
13345
# FIXME: insert proper C++ library support
13351
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13357
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13360
# Commands to make compiler produce verbose output that lists
13361
# what "hidden" libraries, object files and flags are used when
13362
# linking a shared library.
13364
# There doesn't appear to be a way to prevent this compiler from
13365
# explicitly linking system object files so we need to strip them
13366
# from the output so that they don't get included in the library
13368
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; func_echo_all "$list"'
13371
if test "$GXX" = yes; then
13372
if test $with_gnu_ld = no; then
13375
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13381
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386
# FIXME: insert proper C++ library support
13394
hardcode_direct_CXX=no
13395
hardcode_shlibpath_var_CXX=no
13396
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13397
export_dynamic_flag_spec_CXX='${wl}-E'
13398
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13399
# Instead, shared libraries are loaded at an image base (0x10000000 by
13400
# default) and relocated if they conflict, which is a slow very memory
13401
# consuming and fragmenting process. To avoid this, we pick a random,
13402
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13403
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13404
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'
13405
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'
13408
case $cc_basename in
13411
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13413
# Archives containing C++ object files must be created using
13414
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13415
# necessary to make sure instantiated templates are included
13417
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13420
if test "$GXX" = yes; then
13421
if test "$with_gnu_ld" = no; then
13422
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13424
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13427
link_all_deplibs_CXX=yes
13430
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13431
hardcode_libdir_separator_CXX=:
13432
inherit_rpath_CXX=yes
13435
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13436
case $cc_basename in
13438
# Kuck and Associates, Inc. (KAI) C++ Compiler
13440
# KCC will only create a shared library if the output file
13441
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13442
# to its proper name (with version) after linking.
13443
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'
13444
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'
13445
# Commands to make compiler produce verbose output that lists
13446
# what "hidden" libraries, object files and flags are used when
13447
# linking a shared library.
13449
# There doesn't appear to be a way to prevent this compiler from
13450
# explicitly linking system object files so we need to strip them
13451
# from the output so that they don't get included in the library
13453
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; func_echo_all "$list"'
13455
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13456
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458
# Archives containing C++ object files must be created using
13459
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13460
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13465
# version 8.0 and above of icpc choke on multiply defined symbols
13466
# if we add $predep_objects and $postdep_objects, however 7.1 and
13467
# earlier do not add the objects themselves.
13468
case `$CC -V 2>&1` in
13470
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471
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'
13473
*) # Version 8.0 or newer
13476
ia64*) tmp_idyn=' -i_dynamic';;
13478
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479
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'
13482
archive_cmds_need_lc_CXX=no
13483
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13484
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13485
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13488
# Portland Group C++ compiler
13490
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13491
prelink_cmds_CXX='tpldir=Template.dir~
13493
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13494
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13495
old_archive_cmds_CXX='tpldir=Template.dir~
13497
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13498
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13500
archive_cmds_CXX='tpldir=Template.dir~
13502
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13503
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13504
archive_expsym_cmds_CXX='tpldir=Template.dir~
13506
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13507
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13509
*) # Version 6 and above use weak symbols
13510
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13511
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'
13515
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13516
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13517
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13521
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522
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'
13524
runpath_var=LD_RUN_PATH
13525
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13526
hardcode_libdir_separator_CXX=:
13528
# Commands to make compiler produce verbose output that lists
13529
# what "hidden" libraries, object files and flags are used when
13530
# linking a shared library.
13532
# There doesn't appear to be a way to prevent this compiler from
13533
# explicitly linking system object files so we need to strip them
13534
# from the output so that they don't get included in the library
13536
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13538
xl* | mpixl* | bgxl*)
13539
# IBM XL 8.0 on PPC, with GNU ld
13540
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13541
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13542
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543
if test "x$supports_anon_versioning" = xyes; then
13544
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13545
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13546
echo "local: *; };" >> $output_objdir/$libname.ver~
13547
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13551
case `$CC -V 2>&1 | sed 5q` in
13554
no_undefined_flag_CXX=' -zdefs'
13555
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13556
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13557
hardcode_libdir_flag_spec_CXX='-R$libdir'
13558
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13559
compiler_needs_object_CXX=yes
13561
# Not sure whether something based on
13562
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13564
output_verbose_link_cmd='func_echo_all'
13566
# Archives containing C++ object files must be created using
13567
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13568
# necessary to make sure instantiated templates are included
13570
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13578
# FIXME: insert proper C++ library support
13583
# FIXME: insert proper C++ library support
13588
case $cc_basename in
13590
# FIXME: insert proper C++ library support
13594
# FIXME: insert proper C++ library support
13601
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13602
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13604
hardcode_libdir_flag_spec_CXX='-R$libdir'
13605
hardcode_direct_CXX=yes
13606
hardcode_shlibpath_var_CXX=no
13608
# Workaround some broken pre-1.5 toolchains
13609
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13617
# C++ shared libraries are fairly broken
13622
if test -f /usr/libexec/ld.so; then
13623
hardcode_direct_CXX=yes
13624
hardcode_shlibpath_var_CXX=no
13625
hardcode_direct_absolute_CXX=yes
13626
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13627
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13628
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13629
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13630
export_dynamic_flag_spec_CXX='${wl}-E'
13631
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13633
output_verbose_link_cmd=func_echo_all
13639
osf3* | osf4* | osf5*)
13640
case $cc_basename in
13642
# Kuck and Associates, Inc. (KAI) C++ Compiler
13644
# KCC will only create a shared library if the output file
13645
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13646
# to its proper name (with version) after linking.
13647
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'
13649
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13650
hardcode_libdir_separator_CXX=:
13652
# Archives containing C++ object files must be created using
13653
# the KAI C++ compiler.
13655
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13656
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13660
# Rational C++ 2.4.1
13661
# FIXME: insert proper C++ library support
13667
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13668
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13669
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672
allow_undefined_flag_CXX=' -expect_unresolved \*'
13673
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13674
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13675
echo "-hidden">> $lib.exp~
13676
$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~
13678
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13682
hardcode_libdir_separator_CXX=:
13684
# Commands to make compiler produce verbose output that lists
13685
# what "hidden" libraries, object files and flags are used when
13686
# linking a shared library.
13688
# There doesn't appear to be a way to prevent this compiler from
13689
# explicitly linking system object files so we need to strip them
13690
# from the output so that they don't get included in the library
13692
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13695
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13699
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13702
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13706
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13707
hardcode_libdir_separator_CXX=:
13709
# Commands to make compiler produce verbose output that lists
13710
# what "hidden" libraries, object files and flags are used when
13711
# linking a shared library.
13712
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715
# FIXME: insert proper C++ library support
13723
# FIXME: insert proper C++ library support
13728
case $cc_basename in
13731
# FIXME: insert proper C++ library support
13736
# FIXME: insert proper C++ library support
13740
# FIXME: insert proper C++ library support
13747
case $cc_basename in
13749
# Sun C++ 4.2, 5.x and Centerline C++
13750
archive_cmds_need_lc_CXX=yes
13751
no_undefined_flag_CXX=' -zdefs'
13752
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13753
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13754
$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'
13756
hardcode_libdir_flag_spec_CXX='-R$libdir'
13757
hardcode_shlibpath_var_CXX=no
13759
solaris2.[0-5] | solaris2.[0-5].*) ;;
13761
# The compiler driver will combine and reorder linker options,
13762
# but understands `-z linker_flag'.
13763
# Supported since Solaris 2.6 (maybe 2.5.1?)
13764
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13767
link_all_deplibs_CXX=yes
13769
output_verbose_link_cmd='func_echo_all'
13771
# Archives containing C++ object files must be created using
13772
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13773
# necessary to make sure instantiated templates are included
13775
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13778
# Green Hills C++ Compiler
13779
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781
# The C++ compiler must be used to create the archive.
13782
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13785
# GNU C++ compiler with Solaris linker
13786
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13787
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13788
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13789
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13790
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13791
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13793
# Commands to make compiler produce verbose output that lists
13794
# what "hidden" libraries, object files and flags are used when
13795
# linking a shared library.
13796
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13798
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13800
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13801
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13802
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13804
# Commands to make compiler produce verbose output that lists
13805
# what "hidden" libraries, object files and flags are used when
13806
# linking a shared library.
13807
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13810
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13812
solaris2.[0-5] | solaris2.[0-5].*) ;;
13814
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13822
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13823
no_undefined_flag_CXX='${wl}-z,text'
13824
archive_cmds_need_lc_CXX=no
13825
hardcode_shlibpath_var_CXX=no
13826
runpath_var='LD_RUN_PATH'
13828
case $cc_basename in
13830
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13835
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840
sysv5* | sco3.2v5* | sco5v6*)
13841
# Note: We can NOT use -z defs as we might desire, because we do not
13842
# link with -lc, and that would cause any symbols used from libc to
13843
# always be unresolved, which means just about no library would
13844
# ever link correctly. If we're not using GNU ld we use -z text
13845
# though, which does catch some bad symbols but isn't as heavy-handed
13847
no_undefined_flag_CXX='${wl}-z,text'
13848
allow_undefined_flag_CXX='${wl}-z,nodefs'
13849
archive_cmds_need_lc_CXX=no
13850
hardcode_shlibpath_var_CXX=no
13851
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13852
hardcode_libdir_separator_CXX=':'
13853
link_all_deplibs_CXX=yes
13854
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13855
runpath_var='LD_RUN_PATH'
13857
case $cc_basename in
13859
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13862
'"$old_archive_cmds_CXX"
13863
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13864
'"$reload_cmds_CXX"
13867
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13874
case $cc_basename in
13876
# NonStop-UX NCC 3.20
13877
# FIXME: insert proper C++ library support
13881
# FIXME: insert proper C++ library support
13888
# FIXME: insert proper C++ library support
13893
# FIXME: insert proper C++ library support
13898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13899
$as_echo "$ld_shlibs_CXX" >&6; }
13900
test "$ld_shlibs_CXX" = no && can_build_shared=no
13906
## There is no encapsulation within the following macros, do not change
13907
## the running order or otherwise move them around unless you know exactly
13908
## what you are doing...
13909
# Dependencies to place before and after the object being linked:
13910
predep_objects_CXX=
13911
postdep_objects_CXX=
13914
compiler_lib_search_path_CXX=
13916
cat > conftest.$ac_ext <<_LT_EOF
13920
Foo (void) { a = 0; }
13927
_lt_libdeps_save_CFLAGS=$CFLAGS
13928
case "$CC $CFLAGS " in #(
13929
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13930
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13933
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13934
(eval $ac_compile) 2>&5
13936
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937
test $ac_status = 0; }; then
13938
# Parse the compiler output and extract the necessary
13939
# objects, libraries and library flags.
13941
# Sentinel used to keep track of whether or not we are before
13942
# the conftest object file.
13943
pre_test_object_deps_done=no
13945
for p in `eval "$output_verbose_link_cmd"`; do
13946
case ${prev}${p} in
13949
# Some compilers place space between "-{L,R}" and the path.
13950
# Remove the space.
13951
if test $p = "-L" ||
13952
test $p = "-R"; then
13957
# Expand the sysroot to ease extracting the directories later.
13958
if test -z "$prev"; then
13960
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13961
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13962
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13966
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13968
if test "$pre_test_object_deps_done" = no; then
13971
# Internal compiler library paths should come after those
13972
# provided the user. The postdeps already come after the
13973
# user supplied libs so there is no need to process them.
13974
if test -z "$compiler_lib_search_path_CXX"; then
13975
compiler_lib_search_path_CXX="${prev}${p}"
13977
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13980
# The "-l" case would never come before the object being
13981
# linked, so don't bother handling this case.
13984
if test -z "$postdeps_CXX"; then
13985
postdeps_CXX="${prev}${p}"
13987
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13993
*.lto.$objext) ;; # Ignore GCC LTO objects
13995
# This assumes that the test object file only shows up
13996
# once in the compiler output.
13997
if test "$p" = "conftest.$objext"; then
13998
pre_test_object_deps_done=yes
14002
if test "$pre_test_object_deps_done" = no; then
14003
if test -z "$predep_objects_CXX"; then
14004
predep_objects_CXX="$p"
14006
predep_objects_CXX="$predep_objects_CXX $p"
14009
if test -z "$postdep_objects_CXX"; then
14010
postdep_objects_CXX="$p"
14012
postdep_objects_CXX="$postdep_objects_CXX $p"
14017
*) ;; # Ignore the rest.
14025
echo "libtool.m4: error: problem compiling CXX test program"
14028
$RM -f confest.$objext
14029
CFLAGS=$_lt_libdeps_save_CFLAGS
14031
# PORTME: override above test on systems where it is broken
14034
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14035
# hack all around it, let's just trust "g++" to DTRT.
14036
predep_objects_CXX=
14037
postdep_objects_CXX=
14042
case `$CC -V 2>&1 | sed 5q` in
14046
# The more standards-conforming stlport4 library is
14047
# incompatible with the Cstd library. Avoid specifying
14048
# it if it's in CXXFLAGS. Ignore libCrun as
14049
# -library=stlport4 depends on it.
14050
case " $CXX $CXXFLAGS " in
14051
*" -library=stlport4 "*)
14052
solaris_use_stlport4=yes
14056
if test "$solaris_use_stlport4" != yes; then
14057
postdeps_CXX='-library=Cstd -library=Crun'
14064
case $cc_basename in
14066
# The more standards-conforming stlport4 library is
14067
# incompatible with the Cstd library. Avoid specifying
14068
# it if it's in CXXFLAGS. Ignore libCrun as
14069
# -library=stlport4 depends on it.
14070
case " $CXX $CXXFLAGS " in
14071
*" -library=stlport4 "*)
14072
solaris_use_stlport4=yes
14076
# Adding this requires a known-good setup of shared libraries for
14077
# Sun compiler versions before 5.6, else PIC objects from an old
14078
# archive will be linked into the output, leading to subtle bugs.
14079
if test "$solaris_use_stlport4" != yes; then
14080
postdeps_CXX='-library=Cstd -library=Crun'
14088
case " $postdeps_CXX " in
14089
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14091
compiler_lib_search_dirs_CXX=
14092
if test -n "${compiler_lib_search_path_CXX}"; then
14093
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14126
lt_prog_compiler_wl_CXX=
14127
lt_prog_compiler_pic_CXX=
14128
lt_prog_compiler_static_CXX=
14131
# C++ specific cases for pic, static, wl, etc.
14132
if test "$GXX" = yes; then
14133
lt_prog_compiler_wl_CXX='-Wl,'
14134
lt_prog_compiler_static_CXX='-static'
14138
# All AIX code is PIC.
14139
if test "$host_cpu" = ia64; then
14140
# AIX 5 now supports IA64 processor
14141
lt_prog_compiler_static_CXX='-Bstatic'
14148
# see comment about AmigaOS4 .so support
14149
lt_prog_compiler_pic_CXX='-fPIC'
14152
# FIXME: we need at least 68020 code to build shared libraries, but
14153
# adding the `-m68020' flag to GCC prevents building anything better,
14155
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14160
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161
# PIC is the default for these OSes.
14163
mingw* | cygwin* | os2* | pw32* | cegcc*)
14164
# This hack is so that the source file can tell whether it is being
14165
# built for inclusion in a dll (and should export symbols for example).
14166
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14167
# (--disable-auto-import) libraries
14168
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14170
darwin* | rhapsody*)
14171
# PIC is the default on this platform
14172
# Common symbols not allowed in MH_DYLIB files
14173
lt_prog_compiler_pic_CXX='-fno-common'
14176
# DJGPP does not support shared libraries at all
14177
lt_prog_compiler_pic_CXX=
14180
# PIC is the default for Haiku.
14181
# The "-static" flag exists, but is broken.
14182
lt_prog_compiler_static_CXX=
14185
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14186
# Instead, we relocate shared libraries at runtime.
14189
if test -d /usr/nec; then
14190
lt_prog_compiler_pic_CXX=-Kconform_pic
14194
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14195
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14196
# sets the default TLS model and affects inlining.
14201
lt_prog_compiler_pic_CXX='-fPIC'
14206
# QNX uses GNU C++, but need to define -shared option too, otherwise
14207
# it will coredump.
14208
lt_prog_compiler_pic_CXX='-fPIC -shared'
14211
lt_prog_compiler_pic_CXX='-fPIC'
14217
# All AIX code is PIC.
14218
if test "$host_cpu" = ia64; then
14219
# AIX 5 now supports IA64 processor
14220
lt_prog_compiler_static_CXX='-Bstatic'
14222
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14226
case $cc_basename in
14228
# Green Hills C++ Compiler
14229
# _LT_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"
14233
mingw* | cygwin* | os2* | pw32* | cegcc*)
14234
# This hack is so that the source file can tell whether it is being
14235
# built for inclusion in a dll (and should export symbols for example).
14236
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14239
case $cc_basename in
14241
lt_prog_compiler_pic_CXX='-KPIC'
14244
# Green Hills C++ Compiler
14245
lt_prog_compiler_pic_CXX='-pic'
14251
freebsd* | dragonfly*)
14252
# FreeBSD uses GNU C++
14254
hpux9* | hpux10* | hpux11*)
14255
case $cc_basename in
14257
lt_prog_compiler_wl_CXX='-Wl,'
14258
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14259
if test "$host_cpu" != ia64; then
14260
lt_prog_compiler_pic_CXX='+Z'
14264
lt_prog_compiler_wl_CXX='-Wl,'
14265
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14271
lt_prog_compiler_pic_CXX='+Z'
14280
# This is c89, which is MS Visual C++ (no shared libs)
14281
# Anyone wants to do a port?
14283
irix5* | irix6* | nonstopux*)
14284
case $cc_basename in
14286
lt_prog_compiler_wl_CXX='-Wl,'
14287
lt_prog_compiler_static_CXX='-non_shared'
14288
# CC pic flag -KPIC is the default.
14294
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14295
case $cc_basename in
14298
lt_prog_compiler_wl_CXX='--backend -Wl,'
14299
lt_prog_compiler_pic_CXX='-fPIC'
14302
# old Intel C++ for x86_64 which still supported -KPIC.
14303
lt_prog_compiler_wl_CXX='-Wl,'
14304
lt_prog_compiler_pic_CXX='-KPIC'
14305
lt_prog_compiler_static_CXX='-static'
14308
# Intel C++, used to be incompatible with GCC.
14309
# ICC 10 doesn't accept -KPIC any more.
14310
lt_prog_compiler_wl_CXX='-Wl,'
14311
lt_prog_compiler_pic_CXX='-fPIC'
14312
lt_prog_compiler_static_CXX='-static'
14315
# Portland Group C++ compiler
14316
lt_prog_compiler_wl_CXX='-Wl,'
14317
lt_prog_compiler_pic_CXX='-fpic'
14318
lt_prog_compiler_static_CXX='-Bstatic'
14322
# Make sure the PIC flag is empty. It appears that all Alpha
14323
# Linux and Compaq Tru64 Unix objects are PIC.
14324
lt_prog_compiler_pic_CXX=
14325
lt_prog_compiler_static_CXX='-non_shared'
14327
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14328
# IBM XL 8.0, 9.0 on PPC and BlueGene
14329
lt_prog_compiler_wl_CXX='-Wl,'
14330
lt_prog_compiler_pic_CXX='-qpic'
14331
lt_prog_compiler_static_CXX='-qstaticlink'
14334
case `$CC -V 2>&1 | sed 5q` in
14337
lt_prog_compiler_pic_CXX='-KPIC'
14338
lt_prog_compiler_static_CXX='-Bstatic'
14339
lt_prog_compiler_wl_CXX='-Qoption ld '
14350
case $cc_basename in
14352
lt_prog_compiler_pic_CXX='-W c,exportall'
14358
netbsd* | netbsdelf*-gnu)
14361
# QNX uses GNU C++, but need to define -shared option too, otherwise
14362
# it will coredump.
14363
lt_prog_compiler_pic_CXX='-fPIC -shared'
14365
osf3* | osf4* | osf5*)
14366
case $cc_basename in
14368
lt_prog_compiler_wl_CXX='--backend -Wl,'
14371
# Rational C++ 2.4.1
14372
lt_prog_compiler_pic_CXX='-pic'
14375
# Digital/Compaq C++
14376
lt_prog_compiler_wl_CXX='-Wl,'
14377
# Make sure the PIC flag is empty. It appears that all Alpha
14378
# Linux and Compaq Tru64 Unix objects are PIC.
14379
lt_prog_compiler_pic_CXX=
14380
lt_prog_compiler_static_CXX='-non_shared'
14389
case $cc_basename in
14391
# Sun C++ 4.2, 5.x and Centerline C++
14392
lt_prog_compiler_pic_CXX='-KPIC'
14393
lt_prog_compiler_static_CXX='-Bstatic'
14394
lt_prog_compiler_wl_CXX='-Qoption ld '
14397
# Green Hills C++ Compiler
14398
lt_prog_compiler_pic_CXX='-PIC'
14405
case $cc_basename in
14408
lt_prog_compiler_pic_CXX='-pic'
14409
lt_prog_compiler_static_CXX='-Bstatic'
14413
lt_prog_compiler_pic_CXX='-pic'
14419
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14420
case $cc_basename in
14422
lt_prog_compiler_wl_CXX='-Wl,'
14423
lt_prog_compiler_pic_CXX='-KPIC'
14424
lt_prog_compiler_static_CXX='-Bstatic'
14429
case $cc_basename in
14431
# NonStop-UX NCC 3.20
14432
lt_prog_compiler_pic_CXX='-KPIC'
14441
lt_prog_compiler_can_build_shared_CXX=no
14447
# For platforms which do not support PIC, -DPIC is meaningless:
14449
lt_prog_compiler_pic_CXX=
14452
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14457
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14458
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14459
$as_echo_n "(cached) " >&6
14461
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14464
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14465
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14468
# Check to make sure the PIC flag actually works.
14470
if test -n "$lt_prog_compiler_pic_CXX"; then
14471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14472
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14473
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14474
$as_echo_n "(cached) " >&6
14476
lt_cv_prog_compiler_pic_works_CXX=no
14477
ac_outfile=conftest.$ac_objext
14478
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14479
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14480
# Insert the option either (1) after the last *FLAGS variable, or
14481
# (2) before a word containing "conftest.", or (3) at the end.
14482
# Note that $ac_compile itself does not contain backslashes and begins
14483
# with a dollar sign (not a hyphen), so the echo should work correctly.
14484
# The option is referenced via a variable to avoid confusing sed.
14485
lt_compile=`echo "$ac_compile" | $SED \
14486
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14487
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14488
-e 's:$: $lt_compiler_flag:'`
14489
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14490
(eval "$lt_compile" 2>conftest.err)
14492
cat conftest.err >&5
14493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494
if (exit $ac_status) && test -s "$ac_outfile"; then
14495
# The compiler can only warn and ignore the option if not recognized
14496
# So say no if there are warnings other than the usual output.
14497
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14498
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14499
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14500
lt_cv_prog_compiler_pic_works_CXX=yes
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14507
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14509
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14510
case $lt_prog_compiler_pic_CXX in
14512
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14515
lt_prog_compiler_pic_CXX=
14516
lt_prog_compiler_can_build_shared_CXX=no
14526
# Check to make sure the static flag actually works.
14528
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14530
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14531
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14532
$as_echo_n "(cached) " >&6
14534
lt_cv_prog_compiler_static_works_CXX=no
14535
save_LDFLAGS="$LDFLAGS"
14536
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14537
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14538
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14539
# The linker can only warn and ignore the option if not recognized
14540
# So say no if there are warnings
14541
if test -s conftest.err; then
14542
# Append any errors to the config.log.
14543
cat conftest.err 1>&5
14544
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14545
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14546
if diff conftest.exp conftest.er2 >/dev/null; then
14547
lt_cv_prog_compiler_static_works_CXX=yes
14550
lt_cv_prog_compiler_static_works_CXX=yes
14554
LDFLAGS="$save_LDFLAGS"
14557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14558
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14560
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14563
lt_prog_compiler_static_CXX=
14569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14570
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14571
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14572
$as_echo_n "(cached) " >&6
14574
lt_cv_prog_compiler_c_o_CXX=no
14575
$RM -r conftest 2>/dev/null
14579
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14581
lt_compiler_flag="-o out/conftest2.$ac_objext"
14582
# Insert the option either (1) after the last *FLAGS variable, or
14583
# (2) before a word containing "conftest.", or (3) at the end.
14584
# Note that $ac_compile itself does not contain backslashes and begins
14585
# with a dollar sign (not a hyphen), so the echo should work correctly.
14586
lt_compile=`echo "$ac_compile" | $SED \
14587
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14588
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589
-e 's:$: $lt_compiler_flag:'`
14590
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14591
(eval "$lt_compile" 2>out/conftest.err)
14593
cat out/conftest.err >&5
14594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597
# The compiler can only warn and ignore the option if not recognized
14598
# So say no if there are warnings
14599
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14600
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14601
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14602
lt_cv_prog_compiler_c_o_CXX=yes
14607
# SGI C++ compiler will create directory out/ii_files/ for
14608
# template instantiation
14609
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14610
$RM out/* && rmdir out
14616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14617
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14622
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14623
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14624
$as_echo_n "(cached) " >&6
14626
lt_cv_prog_compiler_c_o_CXX=no
14627
$RM -r conftest 2>/dev/null
14631
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633
lt_compiler_flag="-o out/conftest2.$ac_objext"
14634
# Insert the option either (1) after the last *FLAGS variable, or
14635
# (2) before a word containing "conftest.", or (3) at the end.
14636
# Note that $ac_compile itself does not contain backslashes and begins
14637
# with a dollar sign (not a hyphen), so the echo should work correctly.
14638
lt_compile=`echo "$ac_compile" | $SED \
14639
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641
-e 's:$: $lt_compiler_flag:'`
14642
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14643
(eval "$lt_compile" 2>out/conftest.err)
14645
cat out/conftest.err >&5
14646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14649
# The compiler can only warn and ignore the option if not recognized
14650
# So say no if there are warnings
14651
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14652
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14653
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14654
lt_cv_prog_compiler_c_o_CXX=yes
14659
# SGI C++ compiler will create directory out/ii_files/ for
14660
# template instantiation
14661
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14662
$RM out/* && rmdir out
14668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14669
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14674
hard_links="nottested"
14675
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14676
# do not overwrite the value of need_locks provided by the user
14677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14678
$as_echo_n "checking if we can lock with hard links... " >&6; }
14681
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683
ln conftest.a conftest.b 2>&5 || hard_links=no
14684
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14686
$as_echo "$hard_links" >&6; }
14687
if test "$hard_links" = no; then
14688
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14689
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14699
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14701
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14702
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14705
# If we're using GNU nm, then we don't want the "-C" option.
14706
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14707
# Also, AIX nm treats weak defined symbols like other global defined
14708
# symbols, whereas GNU nm marks them as "W".
14709
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14710
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14712
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'
14716
export_symbols_cmds_CXX="$ltdll_cmds"
14718
cygwin* | mingw* | cegcc*)
14719
case $cc_basename in
14722
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14723
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14727
linux* | k*bsd*-gnu | gnu*)
14728
link_all_deplibs_CXX=no
14731
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14736
$as_echo "$ld_shlibs_CXX" >&6; }
14737
test "$ld_shlibs_CXX" = no && can_build_shared=no
14739
with_gnu_ld_CXX=$with_gnu_ld
14747
# Do we need to explicitly link libc?
14749
case "x$archive_cmds_need_lc_CXX" in
14751
# Assume -lc should be added
14752
archive_cmds_need_lc_CXX=yes
14754
if test "$enable_shared" = yes && test "$GCC" = yes; then
14755
case $archive_cmds_CXX in
14757
# FIXME: we may have to deal with multi-command sequences.
14760
# Test whether the compiler implicitly links with -lc since on some
14761
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14762
# to ld, don't add -lc before -lgcc.
14763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14764
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14765
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14766
$as_echo_n "(cached) " >&6
14769
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14771
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14772
(eval $ac_compile) 2>&5
14774
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14775
test $ac_status = 0; } 2>conftest.err; then
14778
libobjs=conftest.$ac_objext
14780
wl=$lt_prog_compiler_wl_CXX
14781
pic_flag=$lt_prog_compiler_pic_CXX
14787
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14788
allow_undefined_flag_CXX=
14789
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14790
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14792
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793
test $ac_status = 0; }
14795
lt_cv_archive_cmds_need_lc_CXX=no
14797
lt_cv_archive_cmds_need_lc_CXX=yes
14799
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14801
cat conftest.err 1>&5
14806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14807
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14808
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14879
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14881
library_names_spec=
14882
libname_spec='lib$name'
14886
postuninstall_cmds=
14890
shlibpath_overrides_runpath=unknown
14892
dynamic_linker="$host_os ld.so"
14893
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14894
need_lib_prefix=unknown
14895
hardcode_into_libs=no
14897
# when you set need_version to no, make sure it does not cause -set_version
14898
# flags to be left without arguments
14899
need_version=unknown
14904
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14905
shlibpath_var=LIBPATH
14907
# AIX 3 has no versioning support, so we append a major version to the name.
14908
soname_spec='${libname}${release}${shared_ext}$major'
14915
hardcode_into_libs=yes
14916
if test "$host_cpu" = ia64; then
14917
# AIX 5 supports IA64
14918
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14919
shlibpath_var=LD_LIBRARY_PATH
14921
# With GCC up to 2.95.x, collect2 would create an import file
14922
# for dependence libraries. The import file would start with
14923
# the line `#! .'. This would cause the generated library to
14924
# depend on `.', always an invalid library. This was fixed in
14925
# development snapshots of GCC prior to 3.0.
14927
aix4 | aix4.[01] | aix4.[01].*)
14928
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14930
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14933
can_build_shared=no
14937
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14938
# soname into executable. Probably we can add versioning support to
14939
# collect2, so additional links can be useful in future.
14940
if test "$aix_use_runtimelinking" = yes; then
14941
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14942
# instead of lib<name>.a to let people know that these are not
14943
# typical AIX shared libraries.
14944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946
# We preserve .a as extension for shared libraries through AIX4.2
14947
# and later when we are not doing run time linking.
14948
library_names_spec='${libname}${release}.a $libname.a'
14949
soname_spec='${libname}${release}${shared_ext}$major'
14951
shlibpath_var=LIBPATH
14958
# Since July 2007 AmigaOS4 officially supports .so libraries.
14959
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963
library_names_spec='$libname.ixlibrary $libname.a'
14964
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14965
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14971
library_names_spec='${libname}${shared_ext}'
14972
dynamic_linker="$host_os ld.so"
14973
shlibpath_var=LIBRARY_PATH
14979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980
soname_spec='${libname}${release}${shared_ext}$major'
14981
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14982
shlibpath_var=LD_LIBRARY_PATH
14983
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14984
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14985
# the default ld.so.conf also contains /usr/contrib/lib and
14986
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14987
# libtool to hard-code these into programs
14990
cygwin* | mingw* | pw32* | cegcc*)
14991
version_type=windows
14996
case $GCC,$cc_basename in
14999
library_names_spec='$libname.dll.a'
15000
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15001
postinstall_cmds='base_file=`basename \${file}`~
15002
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15003
dldir=$destdir/`dirname \$dlpath`~
15004
test -d \$dldir || mkdir -p \$dldir~
15005
$install_prog $dir/$dlname \$dldir/$dlname~
15006
chmod a+x \$dldir/$dlname~
15007
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15008
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15010
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15011
dlpath=$dir/\$dldll~
15013
shlibpath_overrides_runpath=yes
15017
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15018
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15022
# MinGW DLLs use traditional 'lib' prefix
15023
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15026
# pw32 DLLs use 'pw' prefix rather than 'lib'
15027
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15030
dynamic_linker='Win32 ld.exe'
15035
libname_spec='$name'
15036
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15037
library_names_spec='${libname}.dll.lib'
15041
sys_lib_search_path_spec=
15044
for lt_path in $LIB
15047
# Let DOS variable expansion print the short 8.3 style file name.
15048
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15049
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15052
# Convert to MSYS style.
15053
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15056
# Convert to unix form, then to dos form, then back to unix form
15057
# but this time dos style (no spaces!) so that the unix form looks
15058
# like /cygdrive/c/PROGRA~1:/cygdr...
15059
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15060
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15061
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15064
sys_lib_search_path_spec="$LIB"
15065
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15066
# It is most probably a Windows format PATH.
15067
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15069
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15071
# FIXME: find the short name or the path components, as spaces are
15072
# common. (e.g. "Program Files" -> "PROGRA~1")
15076
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15077
postinstall_cmds='base_file=`basename \${file}`~
15078
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15079
dldir=$destdir/`dirname \$dlpath`~
15080
test -d \$dldir || mkdir -p \$dldir~
15081
$install_prog $dir/$dlname \$dldir/$dlname'
15082
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15083
dlpath=$dir/\$dldll~
15085
shlibpath_overrides_runpath=yes
15086
dynamic_linker='Win32 link.exe'
15090
# Assume MSVC wrapper
15091
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15092
dynamic_linker='Win32 ld.exe'
15095
# FIXME: first we should search . and the directory the executable is in
15099
darwin* | rhapsody*)
15100
dynamic_linker="$host_os dyld"
15101
version_type=darwin
15104
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15105
soname_spec='${libname}${release}${major}$shared_ext'
15106
shlibpath_overrides_runpath=yes
15107
shlibpath_var=DYLD_LIBRARY_PATH
15108
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15110
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15118
soname_spec='${libname}${release}${shared_ext}$major'
15119
shlibpath_var=LD_LIBRARY_PATH
15126
freebsd* | dragonfly*)
15127
# DragonFly does not have aout. When/if they implement a new
15128
# versioning mechanism, adjust this.
15129
if test -x /usr/bin/objformat; then
15130
objformat=`/usr/bin/objformat`
15133
freebsd[123]*) objformat=aout ;;
15134
*) objformat=elf ;;
15137
version_type=freebsd-$objformat
15138
case $version_type in
15140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15145
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15149
shlibpath_var=LD_LIBRARY_PATH
15152
shlibpath_overrides_runpath=yes
15154
freebsd3.[01]* | freebsdelf3.[01]*)
15155
shlibpath_overrides_runpath=yes
15156
hardcode_into_libs=yes
15158
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15159
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15160
shlibpath_overrides_runpath=no
15161
hardcode_into_libs=yes
15163
*) # from 4.6 on, and DragonFly
15164
shlibpath_overrides_runpath=yes
15165
hardcode_into_libs=yes
15174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15175
soname_spec='${libname}${release}${shared_ext}$major'
15176
shlibpath_var=LD_LIBRARY_PATH
15177
shlibpath_overrides_runpath=no
15178
hardcode_into_libs=yes
15185
dynamic_linker="$host_os runtime_loader"
15186
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15187
soname_spec='${libname}${release}${shared_ext}$major'
15188
shlibpath_var=LIBRARY_PATH
15189
shlibpath_overrides_runpath=yes
15190
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15191
hardcode_into_libs=yes
15194
hpux9* | hpux10* | hpux11*)
15195
# Give a soname corresponding to the major version so that dld.sl refuses to
15196
# link against other versions.
15203
hardcode_into_libs=yes
15204
dynamic_linker="$host_os dld.so"
15205
shlibpath_var=LD_LIBRARY_PATH
15206
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208
soname_spec='${libname}${release}${shared_ext}$major'
15209
if test "X$HPUX_IA64_MODE" = X32; then
15210
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15212
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15214
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15218
hardcode_into_libs=yes
15219
dynamic_linker="$host_os dld.sl"
15220
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15221
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223
soname_spec='${libname}${release}${shared_ext}$major'
15224
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15225
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15229
dynamic_linker="$host_os dld.sl"
15230
shlibpath_var=SHLIB_PATH
15231
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15233
soname_spec='${libname}${release}${shared_ext}$major'
15236
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15237
postinstall_cmds='chmod 555 $lib'
15238
# or fails outright, so override atomically:
15239
install_override_mode=555
15246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15247
soname_spec='${libname}${release}${shared_ext}$major'
15248
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15249
shlibpath_var=LD_LIBRARY_PATH
15250
shlibpath_overrides_runpath=no
15251
hardcode_into_libs=yes
15254
irix5* | irix6* | nonstopux*)
15256
nonstopux*) version_type=nonstopux ;;
15258
if test "$lt_cv_prog_gnu_ld" = yes; then
15266
soname_spec='${libname}${release}${shared_ext}$major'
15267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15269
irix5* | nonstopux*)
15270
libsuff= shlibsuff=
15273
case $LD in # libtool.m4 will add one of these switches to LD
15274
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15275
libsuff= shlibsuff= libmagic=32-bit;;
15276
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15277
libsuff=32 shlibsuff=N32 libmagic=N32;;
15278
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15279
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15280
*) libsuff= shlibsuff= libmagic=never-match;;
15284
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15285
shlibpath_overrides_runpath=no
15286
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15287
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15288
hardcode_into_libs=yes
15291
# No shared lib support for Linux oldld, aout, or coff.
15292
linux*oldld* | linux*aout* | linux*coff*)
15296
# This must be Linux ELF.
15297
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302
soname_spec='${libname}${release}${shared_ext}$major'
15303
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15304
shlibpath_var=LD_LIBRARY_PATH
15305
shlibpath_overrides_runpath=no
15307
# Some binutils ld are patched to set DT_RUNPATH
15308
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15309
$as_echo_n "(cached) " >&6
15311
lt_cv_shlibpath_overrides_runpath=no
15312
save_LDFLAGS=$LDFLAGS
15313
save_libdir=$libdir
15314
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15315
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15316
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317
/* end confdefs.h. */
15327
if ac_fn_cxx_try_link "$LINENO"; then :
15328
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15329
lt_cv_shlibpath_overrides_runpath=yes
15332
rm -f core conftest.err conftest.$ac_objext \
15333
conftest$ac_exeext conftest.$ac_ext
15334
LDFLAGS=$save_LDFLAGS
15335
libdir=$save_libdir
15339
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15341
# This implies no fast_install, which is unacceptable.
15342
# Some rework will be needed to allow for fast_install
15343
# before this can be enabled.
15344
hardcode_into_libs=yes
15346
# Append ld.so.conf contents to the search path
15347
if test -f /etc/ld.so.conf; then
15348
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15349
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15352
# We used to test for /lib/ld.so.1 and disable shared libraries on
15353
# powerpc, because MkLinux only supported shared libraries with the
15354
# GNU dynamic linker. Since this was broken with cross compilers,
15355
# most powerpc-linux boxes support dynamic linking these days and
15356
# people can always --disable-shared, the test was removed, and we
15357
# assume the GNU/Linux dynamic linker is in use.
15358
dynamic_linker='GNU/Linux ld.so'
15365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15366
soname_spec='${libname}${release}${shared_ext}$major'
15367
shlibpath_var=LD_LIBRARY_PATH
15368
shlibpath_overrides_runpath=no
15369
hardcode_into_libs=yes
15370
dynamic_linker='NetBSD ld.elf_so'
15377
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15379
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15380
dynamic_linker='NetBSD (a.out) ld.so'
15382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15383
soname_spec='${libname}${release}${shared_ext}$major'
15384
dynamic_linker='NetBSD ld.elf_so'
15386
shlibpath_var=LD_LIBRARY_PATH
15387
shlibpath_overrides_runpath=yes
15388
hardcode_into_libs=yes
15393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394
shlibpath_var=LD_LIBRARY_PATH
15395
shlibpath_overrides_runpath=yes
15402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403
soname_spec='${libname}${release}${shared_ext}$major'
15404
shlibpath_var=LD_LIBRARY_PATH
15405
shlibpath_overrides_runpath=no
15406
hardcode_into_libs=yes
15407
dynamic_linker='ldqnx.so'
15412
sys_lib_dlsearch_path_spec="/usr/lib"
15414
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15416
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15417
*) need_version=no ;;
15419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15420
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15421
shlibpath_var=LD_LIBRARY_PATH
15422
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15424
openbsd2.[89] | openbsd2.[89].*)
15425
shlibpath_overrides_runpath=no
15428
shlibpath_overrides_runpath=yes
15432
shlibpath_overrides_runpath=yes
15437
libname_spec='$name'
15440
library_names_spec='$libname${shared_ext} $libname.a'
15441
dynamic_linker='OS/2 ld.exe'
15442
shlibpath_var=LIBPATH
15445
osf3* | osf4* | osf5*)
15449
soname_spec='${libname}${release}${shared_ext}$major'
15450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451
shlibpath_var=LD_LIBRARY_PATH
15452
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15453
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15465
soname_spec='${libname}${release}${shared_ext}$major'
15466
shlibpath_var=LD_LIBRARY_PATH
15467
shlibpath_overrides_runpath=yes
15468
hardcode_into_libs=yes
15469
# ldd complains unless libraries are executable
15470
postinstall_cmds='chmod +x $lib'
15475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15476
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15477
shlibpath_var=LD_LIBRARY_PATH
15478
shlibpath_overrides_runpath=yes
15479
if test "$with_gnu_ld" = yes; then
15487
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488
soname_spec='${libname}${release}${shared_ext}$major'
15489
shlibpath_var=LD_LIBRARY_PATH
15490
case $host_vendor in
15492
shlibpath_overrides_runpath=no
15494
runpath_var=LD_RUN_PATH
15502
shlibpath_overrides_runpath=no
15503
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15509
if test -d /usr/nec ;then
15511
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15512
soname_spec='$libname${shared_ext}.$major'
15513
shlibpath_var=LD_LIBRARY_PATH
15517
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15518
version_type=freebsd-elf
15521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15522
soname_spec='${libname}${release}${shared_ext}$major'
15523
shlibpath_var=LD_LIBRARY_PATH
15524
shlibpath_overrides_runpath=yes
15525
hardcode_into_libs=yes
15526
if test "$with_gnu_ld" = yes; then
15527
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15529
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15532
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15536
sys_lib_dlsearch_path_spec='/usr/lib'
15540
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545
shlibpath_var=LD_LIBRARY_PATH
15546
shlibpath_overrides_runpath=no
15547
hardcode_into_libs=yes
15552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553
soname_spec='${libname}${release}${shared_ext}$major'
15554
shlibpath_var=LD_LIBRARY_PATH
15561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15562
$as_echo "$dynamic_linker" >&6; }
15563
test "$dynamic_linker" = no && can_build_shared=no
15565
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15566
if test "$GCC" = yes; then
15567
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15570
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15571
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15573
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15574
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15615
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15616
hardcode_action_CXX=
15617
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15618
test -n "$runpath_var_CXX" ||
15619
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15621
# We can hardcode non-existent directories.
15622
if test "$hardcode_direct_CXX" != no &&
15623
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15624
# have to relink, otherwise we might link with an installed library
15625
# when we should be linking with a yet-to-be-installed one
15626
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15627
test "$hardcode_minus_L_CXX" != no; then
15628
# Linking always hardcodes the temporary library directory.
15629
hardcode_action_CXX=relink
15631
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15632
hardcode_action_CXX=immediate
15635
# We cannot hardcode anything, or else we can only hardcode existing
15637
hardcode_action_CXX=unsupported
15639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15640
$as_echo "$hardcode_action_CXX" >&6; }
15642
if test "$hardcode_action_CXX" = relink ||
15643
test "$inherit_rpath_CXX" = yes; then
15644
# Fast installation is not supported
15645
enable_fast_install=no
15646
elif test "$shlibpath_overrides_runpath" = yes ||
15647
test "$enable_shared" = no; then
15648
# Fast installation is not necessary
15649
enable_fast_install=needless
15658
fi # test -n "$compiler"
15661
CFLAGS=$lt_save_CFLAGS
15665
with_gnu_ld=$lt_save_with_gnu_ld
15666
lt_cv_path_LDCXX=$lt_cv_path_LD
15667
lt_cv_path_LD=$lt_save_path_LD
15668
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15669
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15670
fi # test "$_lt_caught_CXX_error" != yes
15673
ac_cpp='$CPP $CPPFLAGS'
15674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15676
ac_compiler_gnu=$ac_cv_c_compiler_gnu