5135
for ac_header in dlfcn.h
5137
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5138
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5140
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5141
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5142
echo $ECHO_N "(cached) $ECHO_C" >&6
5144
ac_res=`eval echo '${'$as_ac_Header'}'`
5145
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5146
echo "${ECHO_T}$ac_res" >&6; }
5148
# Is the header compilable?
5149
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5150
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5151
cat >conftest.$ac_ext <<_ACEOF
5154
cat confdefs.h >>conftest.$ac_ext
5155
cat >>conftest.$ac_ext <<_ACEOF
5156
/* end confdefs.h. */
5157
$ac_includes_default
5158
#include <$ac_header>
5160
rm -f conftest.$ac_objext
5161
if { (ac_try="$ac_compile"
5163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164
*) ac_try_echo=$ac_try;;
5166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167
(eval "$ac_compile") 2>conftest.er1
5169
grep -v '^ *+' conftest.er1 >conftest.err
5171
cat conftest.err >&5
5172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173
(exit $ac_status); } && {
5174
test -z "$ac_c_werror_flag" ||
5175
test ! -s conftest.err
5176
} && test -s conftest.$ac_objext; then
5177
ac_header_compiler=yes
5179
echo "$as_me: failed program was:" >&5
5180
sed 's/^/| /' conftest.$ac_ext >&5
5182
ac_header_compiler=no
5185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5187
echo "${ECHO_T}$ac_header_compiler" >&6; }
5189
# Is the header present?
5190
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5191
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5192
cat >conftest.$ac_ext <<_ACEOF
5195
cat confdefs.h >>conftest.$ac_ext
5196
cat >>conftest.$ac_ext <<_ACEOF
5197
/* end confdefs.h. */
5198
#include <$ac_header>
5200
if { (ac_try="$ac_cpp conftest.$ac_ext"
5202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203
*) ac_try_echo=$ac_try;;
5205
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5208
grep -v '^ *+' conftest.er1 >conftest.err
5210
cat conftest.err >&5
5211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
(exit $ac_status); } >/dev/null && {
5213
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5214
test ! -s conftest.err
5216
ac_header_preproc=yes
5218
echo "$as_me: failed program was:" >&5
5219
sed 's/^/| /' conftest.$ac_ext >&5
5221
ac_header_preproc=no
5224
rm -f conftest.err conftest.$ac_ext
5225
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5226
echo "${ECHO_T}$ac_header_preproc" >&6; }
5228
# So? What about this header?
5229
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5231
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5232
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5233
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5234
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5235
ac_header_preproc=yes
5238
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5239
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5240
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5241
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5242
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5243
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5244
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5245
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5246
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5247
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5248
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5249
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5253
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5254
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5255
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5256
echo $ECHO_N "(cached) $ECHO_C" >&6
5258
eval "$as_ac_Header=\$ac_header_preproc"
5260
ac_res=`eval echo '${'$as_ac_Header'}'`
5261
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5262
echo "${ECHO_T}$ac_res" >&6; }
5265
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5266
cat >>confdefs.h <<_ACEOF
5267
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275
ac_cpp='$CXXCPP $CPPFLAGS'
5276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279
if test -z "$CXX"; then
5280
if test -n "$CCC"; then
5283
if test -n "$ac_tool_prefix"; then
5284
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5286
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5287
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5288
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5289
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290
if test "${ac_cv_prog_CXX+set}" = set; then
5291
echo $ECHO_N "(cached) $ECHO_C" >&6
5293
if test -n "$CXX"; then
5294
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300
test -z "$as_dir" && as_dir=.
5301
for ac_exec_ext in '' $ac_executable_extensions; do
5302
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5304
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314
if test -n "$CXX"; then
5315
{ echo "$as_me:$LINENO: result: $CXX" >&5
5316
echo "${ECHO_T}$CXX" >&6; }
5318
{ echo "$as_me:$LINENO: result: no" >&5
5319
echo "${ECHO_T}no" >&6; }
5323
test -n "$CXX" && break
5326
if test -z "$CXX"; then
5328
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5330
# Extract the first word of "$ac_prog", so it can be a program name with args.
5331
set dummy $ac_prog; ac_word=$2
5332
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5333
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5335
echo $ECHO_N "(cached) $ECHO_C" >&6
5337
if test -n "$ac_ct_CXX"; then
5338
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344
test -z "$as_dir" && as_dir=.
5345
for ac_exec_ext in '' $ac_executable_extensions; do
5346
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347
ac_cv_prog_ac_ct_CXX="$ac_prog"
5348
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5358
if test -n "$ac_ct_CXX"; then
5359
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5360
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5362
{ echo "$as_me:$LINENO: result: no" >&5
5363
echo "${ECHO_T}no" >&6; }
5367
test -n "$ac_ct_CXX" && break
5370
if test "x$ac_ct_CXX" = x; then
5373
case $cross_compiling:$ac_tool_warned in
5375
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5376
whose name does not start with the host triplet. If you think this
5377
configuration is useful to you, please write to autoconf@gnu.org." >&5
5378
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5379
whose name does not start with the host triplet. If you think this
5380
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5381
ac_tool_warned=yes ;;
5389
# Provide some information about the compiler.
5390
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5391
ac_compiler=`set X $ac_compile; echo $2`
5392
{ (ac_try="$ac_compiler --version >&5"
5394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395
*) ac_try_echo=$ac_try;;
5397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398
(eval "$ac_compiler --version >&5") 2>&5
5400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401
(exit $ac_status); }
5402
{ (ac_try="$ac_compiler -v >&5"
5404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405
*) ac_try_echo=$ac_try;;
5407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408
(eval "$ac_compiler -v >&5") 2>&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); }
5412
{ (ac_try="$ac_compiler -V >&5"
5414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415
*) ac_try_echo=$ac_try;;
5417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418
(eval "$ac_compiler -V >&5") 2>&5
5420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421
(exit $ac_status); }
5423
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5424
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5425
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5426
echo $ECHO_N "(cached) $ECHO_C" >&6
5428
cat >conftest.$ac_ext <<_ACEOF
5431
cat confdefs.h >>conftest.$ac_ext
5432
cat >>conftest.$ac_ext <<_ACEOF
5433
/* end confdefs.h. */
5446
rm -f conftest.$ac_objext
5447
if { (ac_try="$ac_compile"
5449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450
*) ac_try_echo=$ac_try;;
5452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453
(eval "$ac_compile") 2>conftest.er1
5455
grep -v '^ *+' conftest.er1 >conftest.err
5457
cat conftest.err >&5
5458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459
(exit $ac_status); } && {
5460
test -z "$ac_cxx_werror_flag" ||
5461
test ! -s conftest.err
5462
} && test -s conftest.$ac_objext; then
5465
echo "$as_me: failed program was:" >&5
5466
sed 's/^/| /' conftest.$ac_ext >&5
5471
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5475
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5476
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5477
GXX=`test $ac_compiler_gnu = yes && echo yes`
5478
ac_test_CXXFLAGS=${CXXFLAGS+set}
5479
ac_save_CXXFLAGS=$CXXFLAGS
5480
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5481
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5482
if test "${ac_cv_prog_cxx_g+set}" = set; then
5483
echo $ECHO_N "(cached) $ECHO_C" >&6
5485
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5486
ac_cxx_werror_flag=yes
5489
cat >conftest.$ac_ext <<_ACEOF
5492
cat confdefs.h >>conftest.$ac_ext
5493
cat >>conftest.$ac_ext <<_ACEOF
5494
/* end confdefs.h. */
5504
rm -f conftest.$ac_objext
5505
if { (ac_try="$ac_compile"
5507
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508
*) ac_try_echo=$ac_try;;
5510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511
(eval "$ac_compile") 2>conftest.er1
5513
grep -v '^ *+' conftest.er1 >conftest.err
5515
cat conftest.err >&5
5516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517
(exit $ac_status); } && {
5518
test -z "$ac_cxx_werror_flag" ||
5519
test ! -s conftest.err
5520
} && test -s conftest.$ac_objext; then
5521
ac_cv_prog_cxx_g=yes
5523
echo "$as_me: failed program was:" >&5
5524
sed 's/^/| /' conftest.$ac_ext >&5
5527
cat >conftest.$ac_ext <<_ACEOF
5530
cat confdefs.h >>conftest.$ac_ext
5531
cat >>conftest.$ac_ext <<_ACEOF
5532
/* end confdefs.h. */
5542
rm -f conftest.$ac_objext
5543
if { (ac_try="$ac_compile"
5545
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546
*) ac_try_echo=$ac_try;;
5548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549
(eval "$ac_compile") 2>conftest.er1
5551
grep -v '^ *+' conftest.er1 >conftest.err
5553
cat conftest.err >&5
5554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555
(exit $ac_status); } && {
5556
test -z "$ac_cxx_werror_flag" ||
5557
test ! -s conftest.err
5558
} && test -s conftest.$ac_objext; then
5561
echo "$as_me: failed program was:" >&5
5562
sed 's/^/| /' conftest.$ac_ext >&5
5564
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5566
cat >conftest.$ac_ext <<_ACEOF
5569
cat confdefs.h >>conftest.$ac_ext
5570
cat >>conftest.$ac_ext <<_ACEOF
5571
/* end confdefs.h. */
5581
rm -f conftest.$ac_objext
5582
if { (ac_try="$ac_compile"
5584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585
*) ac_try_echo=$ac_try;;
5587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588
(eval "$ac_compile") 2>conftest.er1
5590
grep -v '^ *+' conftest.er1 >conftest.err
5592
cat conftest.err >&5
5593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
(exit $ac_status); } && {
5595
test -z "$ac_cxx_werror_flag" ||
5596
test ! -s conftest.err
5597
} && test -s conftest.$ac_objext; then
5598
ac_cv_prog_cxx_g=yes
5600
echo "$as_me: failed program was:" >&5
5601
sed 's/^/| /' conftest.$ac_ext >&5
5606
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5615
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5616
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5617
if test "$ac_test_CXXFLAGS" = set; then
5618
CXXFLAGS=$ac_save_CXXFLAGS
5619
elif test $ac_cv_prog_cxx_g = yes; then
5620
if test "$GXX" = yes; then
5626
if test "$GXX" = yes; then
5633
ac_cpp='$CXXCPP $CPPFLAGS'
5634
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5638
depcc="$CXX" am_compiler_list=
5640
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5641
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5642
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5643
echo $ECHO_N "(cached) $ECHO_C" >&6
5645
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5646
# We make a subdir and do the tests there. Otherwise we can end up
5647
# making bogus files that we don't know about and never remove. For
5648
# instance it was reported that on HP-UX the gcc test will end up
5649
# making a dummy file named `D' -- because `-MD' means `put the output
5652
# Copy depcomp to subdir because otherwise we won't find it if we're
5653
# using a relative directory.
5654
cp "$am_depcomp" conftest.dir
5656
# We will build objects and dependencies in a subdirectory because
5657
# it helps to detect inapplicable dependency modes. For instance
5658
# both Tru64's cc and ICC support -MD to output dependencies as a
5659
# side effect of compilation, but ICC will put the dependencies in
5660
# the current directory while Tru64 will put them in the object
5664
am_cv_CXX_dependencies_compiler_type=none
5665
if test "$am_compiler_list" = ""; then
5666
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5668
for depmode in $am_compiler_list; do
5669
# Setup a source with many dependencies, because some compilers
5670
# like to wrap large dependency lists on column 80 (with \), and
5671
# we should not choose a depcomp mode which is confused by this.
5673
# We need to recreate these files for each test, as the compiler may
5674
# overwrite some of them when testing with obscure command lines.
5675
# This happens at least with the AIX C compiler.
5677
for i in 1 2 3 4 5 6; do
5678
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5679
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5680
# Solaris 8's {/usr,}/bin/sh.
5681
touch sub/conftst$i.h
5683
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5687
# after this tag, mechanisms are not by side-effect, so they'll
5688
# only be used when explicitly requested
5689
if test "x$enable_dependency_tracking" = xyes; then
5697
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5698
# mode. It turns out that the SunPro C++ compiler does not properly
5699
# handle `-M -o', and we need to detect this.
5700
if depmode=$depmode \
5701
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5702
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5703
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5704
>/dev/null 2>conftest.err &&
5705
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5706
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5707
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5708
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5709
# icc doesn't choke on unknown options, it will just issue warnings
5710
# or remarks (even with -Werror). So we grep stderr for any message
5711
# that says an option was ignored or not supported.
5712
# When given -MP, icc 7.0 and 7.1 complain thusly:
5713
# icc: Command line warning: ignoring option '-M'; no argument required
5714
# The diagnosis changed in icc 8.0:
5715
# icc: Command line remark: option '-MP' not supported
5716
if (grep 'ignoring option' conftest.err ||
5717
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5718
am_cv_CXX_dependencies_compiler_type=$depmode
5727
am_cv_CXX_dependencies_compiler_type=none
5731
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5732
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5733
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5736
test "x$enable_dependency_tracking" != xno \
5737
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5738
am__fastdepCXX_TRUE=
5739
am__fastdepCXX_FALSE='#'
5741
am__fastdepCXX_TRUE='#'
5742
am__fastdepCXX_FALSE=
5748
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5749
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5750
(test "X$CXX" != "Xg++"))) ; then
5752
ac_cpp='$CXXCPP $CPPFLAGS'
5753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5757
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5758
if test -z "$CXXCPP"; then
5759
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5760
echo $ECHO_N "(cached) $ECHO_C" >&6
5762
# Double quotes because CXXCPP needs to be expanded
5763
for CXXCPP in "$CXX -E" "/lib/cpp"
5766
for ac_cxx_preproc_warn_flag in '' yes
5768
# Use a header file that comes with gcc, so configuring glibc
5769
# with a fresh cross-compiler works.
5770
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771
# <limits.h> exists even on freestanding compilers.
5772
# On the NeXT, cc -E runs the code through the compiler's parser,
5773
# not just through cpp. "Syntax error" is here to catch this case.
5774
cat >conftest.$ac_ext <<_ACEOF
5777
cat confdefs.h >>conftest.$ac_ext
5778
cat >>conftest.$ac_ext <<_ACEOF
5779
/* end confdefs.h. */
5781
# include <limits.h>
5783
# include <assert.h>
5787
if { (ac_try="$ac_cpp conftest.$ac_ext"
5789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
*) ac_try_echo=$ac_try;;
5792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795
grep -v '^ *+' conftest.er1 >conftest.err
5797
cat conftest.err >&5
5798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
(exit $ac_status); } >/dev/null && {
5800
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5801
test ! -s conftest.err
5805
echo "$as_me: failed program was:" >&5
5806
sed 's/^/| /' conftest.$ac_ext >&5
5808
# Broken: fails on valid input.
5812
rm -f conftest.err conftest.$ac_ext
5814
# OK, works on sane cases. Now check whether nonexistent headers
5815
# can be detected and how.
5816
cat >conftest.$ac_ext <<_ACEOF
5819
cat confdefs.h >>conftest.$ac_ext
5820
cat >>conftest.$ac_ext <<_ACEOF
5821
/* end confdefs.h. */
5822
#include <ac_nonexistent.h>
5824
if { (ac_try="$ac_cpp conftest.$ac_ext"
5826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827
*) ac_try_echo=$ac_try;;
5829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5832
grep -v '^ *+' conftest.er1 >conftest.err
5834
cat conftest.err >&5
5835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
(exit $ac_status); } >/dev/null && {
5837
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838
test ! -s conftest.err
5840
# Broken: success on invalid input.
5843
echo "$as_me: failed program was:" >&5
5844
sed 's/^/| /' conftest.$ac_ext >&5
5846
# Passes both tests.
5851
rm -f conftest.err conftest.$ac_ext
5854
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855
rm -f conftest.err conftest.$ac_ext
5856
if $ac_preproc_ok; then
5861
ac_cv_prog_CXXCPP=$CXXCPP
5864
CXXCPP=$ac_cv_prog_CXXCPP
5866
ac_cv_prog_CXXCPP=$CXXCPP
5868
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5869
echo "${ECHO_T}$CXXCPP" >&6; }
5871
for ac_cxx_preproc_warn_flag in '' yes
5873
# Use a header file that comes with gcc, so configuring glibc
5874
# with a fresh cross-compiler works.
5875
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876
# <limits.h> exists even on freestanding compilers.
5877
# On the NeXT, cc -E runs the code through the compiler's parser,
5878
# not just through cpp. "Syntax error" is here to catch this case.
5879
cat >conftest.$ac_ext <<_ACEOF
5882
cat confdefs.h >>conftest.$ac_ext
5883
cat >>conftest.$ac_ext <<_ACEOF
5884
/* end confdefs.h. */
5886
# include <limits.h>
5888
# include <assert.h>
5892
if { (ac_try="$ac_cpp conftest.$ac_ext"
5894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895
*) ac_try_echo=$ac_try;;
5897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5900
grep -v '^ *+' conftest.er1 >conftest.err
5902
cat conftest.err >&5
5903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904
(exit $ac_status); } >/dev/null && {
5905
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5906
test ! -s conftest.err
5910
echo "$as_me: failed program was:" >&5
5911
sed 's/^/| /' conftest.$ac_ext >&5
5913
# Broken: fails on valid input.
5917
rm -f conftest.err conftest.$ac_ext
5919
# OK, works on sane cases. Now check whether nonexistent headers
5920
# can be detected and how.
5921
cat >conftest.$ac_ext <<_ACEOF
5924
cat confdefs.h >>conftest.$ac_ext
5925
cat >>conftest.$ac_ext <<_ACEOF
5926
/* end confdefs.h. */
5927
#include <ac_nonexistent.h>
5929
if { (ac_try="$ac_cpp conftest.$ac_ext"
5931
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932
*) ac_try_echo=$ac_try;;
5934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5937
grep -v '^ *+' conftest.er1 >conftest.err
5939
cat conftest.err >&5
5940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
(exit $ac_status); } >/dev/null && {
5942
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5943
test ! -s conftest.err
5945
# Broken: success on invalid input.
5948
echo "$as_me: failed program was:" >&5
5949
sed 's/^/| /' conftest.$ac_ext >&5
5951
# Passes both tests.
5956
rm -f conftest.err conftest.$ac_ext
5959
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5960
rm -f conftest.err conftest.$ac_ext
5961
if $ac_preproc_ok; then
5964
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5965
See \`config.log' for more details." >&5
5966
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5967
See \`config.log' for more details." >&2;}
5968
{ (exit 1); exit 1; }; }
5972
ac_cpp='$CXXCPP $CPPFLAGS'
5973
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5981
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5982
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5984
if test -n "$ac_tool_prefix"; then
5985
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5987
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991
if test "${ac_cv_prog_F77+set}" = set; then
5992
echo $ECHO_N "(cached) $ECHO_C" >&6
5994
if test -n "$F77"; then
5995
ac_cv_prog_F77="$F77" # Let the user override the test.
5997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001
test -z "$as_dir" && as_dir=.
6002
for ac_exec_ext in '' $ac_executable_extensions; do
6003
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015
if test -n "$F77"; then
6016
{ echo "$as_me:$LINENO: result: $F77" >&5
6017
echo "${ECHO_T}$F77" >&6; }
6019
{ echo "$as_me:$LINENO: result: no" >&5
6020
echo "${ECHO_T}no" >&6; }
6024
test -n "$F77" && break
6027
if test -z "$F77"; then
6029
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6031
# Extract the first word of "$ac_prog", so it can be a program name with args.
6032
set dummy $ac_prog; ac_word=$2
6033
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6036
echo $ECHO_N "(cached) $ECHO_C" >&6
6038
if test -n "$ac_ct_F77"; then
6039
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045
test -z "$as_dir" && as_dir=.
6046
for ac_exec_ext in '' $ac_executable_extensions; do
6047
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048
ac_cv_prog_ac_ct_F77="$ac_prog"
6049
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6059
if test -n "$ac_ct_F77"; then
6060
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6061
echo "${ECHO_T}$ac_ct_F77" >&6; }
6063
{ echo "$as_me:$LINENO: result: no" >&5
6064
echo "${ECHO_T}no" >&6; }
6068
test -n "$ac_ct_F77" && break
6071
if test "x$ac_ct_F77" = x; then
6074
case $cross_compiling:$ac_tool_warned in
6076
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6077
whose name does not start with the host triplet. If you think this
6078
configuration is useful to you, please write to autoconf@gnu.org." >&5
6079
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6080
whose name does not start with the host triplet. If you think this
6081
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6082
ac_tool_warned=yes ;;
6089
# Provide some information about the compiler.
6090
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6091
ac_compiler=`set X $ac_compile; echo $2`
6092
{ (ac_try="$ac_compiler --version >&5"
6094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095
*) ac_try_echo=$ac_try;;
6097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098
(eval "$ac_compiler --version >&5") 2>&5
6100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
(exit $ac_status); }
6102
{ (ac_try="$ac_compiler -v >&5"
6104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105
*) ac_try_echo=$ac_try;;
6107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108
(eval "$ac_compiler -v >&5") 2>&5
6110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
(exit $ac_status); }
6112
{ (ac_try="$ac_compiler -V >&5"
6114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115
*) ac_try_echo=$ac_try;;
6117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118
(eval "$ac_compiler -V >&5") 2>&5
6120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121
(exit $ac_status); }
6124
# If we don't use `.F' as extension, the preprocessor is not run on the
6125
# input file. (Note that this only needs to work for GNU compilers.)
6128
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6129
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6130
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6131
echo $ECHO_N "(cached) $ECHO_C" >&6
6133
cat >conftest.$ac_ext <<_ACEOF
6141
rm -f conftest.$ac_objext
6142
if { (ac_try="$ac_compile"
6144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145
*) ac_try_echo=$ac_try;;
6147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148
(eval "$ac_compile") 2>conftest.er1
6150
grep -v '^ *+' conftest.er1 >conftest.err
6152
cat conftest.err >&5
6153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154
(exit $ac_status); } && {
6155
test -z "$ac_f77_werror_flag" ||
6156
test ! -s conftest.err
6157
} && test -s conftest.$ac_objext; then
6160
echo "$as_me: failed program was:" >&5
6161
sed 's/^/| /' conftest.$ac_ext >&5
6166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6170
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6171
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6173
ac_test_FFLAGS=${FFLAGS+set}
6174
ac_save_FFLAGS=$FFLAGS
6176
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6177
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6178
if test "${ac_cv_prog_f77_g+set}" = set; then
6179
echo $ECHO_N "(cached) $ECHO_C" >&6
6182
cat >conftest.$ac_ext <<_ACEOF
6187
rm -f conftest.$ac_objext
6188
if { (ac_try="$ac_compile"
6190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191
*) ac_try_echo=$ac_try;;
6193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194
(eval "$ac_compile") 2>conftest.er1
6196
grep -v '^ *+' conftest.er1 >conftest.err
6198
cat conftest.err >&5
6199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
(exit $ac_status); } && {
6201
test -z "$ac_f77_werror_flag" ||
6202
test ! -s conftest.err
6203
} && test -s conftest.$ac_objext; then
6204
ac_cv_prog_f77_g=yes
6206
echo "$as_me: failed program was:" >&5
6207
sed 's/^/| /' conftest.$ac_ext >&5
6212
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6216
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6217
if test "$ac_test_FFLAGS" = set; then
6218
FFLAGS=$ac_save_FFLAGS
6219
elif test $ac_cv_prog_f77_g = yes; then
6220
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6226
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6233
G77=`test $ac_compiler_gnu = yes && echo yes`
6235
ac_cpp='$CPP $CPPFLAGS'
6236
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6242
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6243
# find the maximum length of command line arguments
6244
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6245
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6246
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6247
echo $ECHO_N "(cached) $ECHO_C" >&6
6254
# On DJGPP, this test can blow up pretty badly due to problems in libc
6255
# (any single argument exceeding 2000 bytes causes a buffer overrun
6256
# during glob expansion). Even if it were fixed, the result of this
6257
# check would be larger than it should be.
6258
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6262
# Under GNU Hurd, this test is not required because there is
6263
# no limit to the length of command line arguments.
6264
# Libtool will interpret -1 as no limit whatsoever
6265
lt_cv_sys_max_cmd_len=-1;
6269
# On Win9x/ME, this test blows up -- it succeeds, but takes
6270
# about 5 minutes as the teststring grows exponentially.
6271
# Worse, since 9x/ME are not pre-emptively multitasking,
6272
# you end up with a "frozen" computer, even though with patience
6273
# the test eventually succeeds (with a max line length of 256k).
6274
# Instead, let's just punt: use the minimum linelength reported by
6275
# all of the supported platforms: 8192 (on NT/2K/XP).
6276
lt_cv_sys_max_cmd_len=8192;
6280
# On AmigaOS with pdksh, this test takes hours, literally.
6281
# So we just punt and use a minimum line length of 8192.
6282
lt_cv_sys_max_cmd_len=8192;
6285
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286
# This has been around since 386BSD, at least. Likely further.
6287
if test -x /sbin/sysctl; then
6288
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289
elif test -x /usr/sbin/sysctl; then
6290
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6292
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6294
# And add a safety zone
6295
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6300
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6301
lt_cv_sys_max_cmd_len=196608
6305
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307
# nice to cause kernel panics so lets avoid the loop below.
6308
# First set a reasonable default.
6309
lt_cv_sys_max_cmd_len=16384
6311
if test -x /sbin/sysconfig; then
6312
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6318
lt_cv_sys_max_cmd_len=102400
6320
sysv5* | sco5v6* | sysv4.2uw2*)
6321
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322
if test -n "$kargmax"; then
6323
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6325
lt_cv_sys_max_cmd_len=32768
6329
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330
if test -n "$lt_cv_sys_max_cmd_len"; then
6331
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6334
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6335
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6336
= "XX$teststring") >/dev/null 2>&1 &&
6337
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6338
lt_cv_sys_max_cmd_len=$new_result &&
6339
test $i != 17 # 1/2 MB should be enough
6342
teststring=$teststring$teststring
6345
# Add a significant safety factor because C++ compilers can tack on massive
6346
# amounts of additional arguments before passing them to the linker.
6347
# It appears as though 1/2 is a usable value.
6348
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6355
if test -n $lt_cv_sys_max_cmd_len ; then
6356
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6357
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6359
{ echo "$as_me:$LINENO: result: none" >&5
6360
echo "${ECHO_T}none" >&6; }
6367
# Check for command to grab the raw symbol name followed by C symbol from nm.
6368
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6369
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6370
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6371
echo $ECHO_N "(cached) $ECHO_C" >&6
6374
# These are sane defaults that work on at least a few old systems.
6375
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6377
# Character class describing NM global symbol codes.
6378
symcode='[BCDEGRST]'
6380
# Regexp to match symbols that can be accessed directly from C.
6381
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6383
# Transform an extracted symbol line into a proper C declaration
6384
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6386
# Transform an extracted symbol line into symbol name and symbol address
6387
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6389
# Define system-specific variables.
6394
cygwin* | mingw* | pw32*)
6395
symcode='[ABCDGISTW]'
6397
hpux*) # Its linker distinguishes data from code symbols
6398
if test "$host_cpu" = ia64; then
6399
symcode='[ABCDEGRST]'
6401
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6402
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6404
linux* | k*bsd*-gnu)
6405
if test "$host_cpu" = ia64; then
6406
symcode='[ABCDGIRSTW]'
6407
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6408
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6412
symcode='[BCDEGRST]'
6415
symcode='[BCDEGQRST]'
6426
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6434
# Handle CRLF in mingw tool chain
6438
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6442
# If we're using GNU nm, then use its standard symbol codes.
6443
case `$NM -V 2>&1` in
6444
*GNU* | *'with BFD'*)
6445
symcode='[ABCDGIRSTW]' ;;
6448
# Try without a prefix undercore, then with it.
6449
for ac_symprfx in "" "_"; do
6451
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6452
symxfrm="\\1 $ac_symprfx\\2 \\2"
6454
# Write the raw and C identifiers.
6455
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6457
# Check to see that the pipe works correctly.
6461
cat > conftest.$ac_ext <<EOF
6466
void nm_test_func(){}
6470
int main(){nm_test_var='a';nm_test_func();return(0);}
6473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474
(eval $ac_compile) 2>&5
6476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
(exit $ac_status); }; then
6478
# Now try to grab the symbols.
6480
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6481
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484
(exit $ac_status); } && test -s "$nlist"; then
6485
# Try sorting and uniquifying the output.
6486
if sort "$nlist" | uniq > "$nlist"T; then
6487
mv -f "$nlist"T "$nlist"
6492
# Make sure that we snagged all the symbols we need.
6493
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6494
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6495
cat <<EOF > conftest.$ac_ext
6501
# Now generate the symbol file.
6502
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6504
cat <<EOF >> conftest.$ac_ext
6505
#if defined (__STDC__) && __STDC__
6506
# define lt_ptr_t void *
6508
# define lt_ptr_t char *
6512
/* The mapping between symbol names and symbols. */
6517
lt_preloaded_symbols[] =
6520
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6521
cat <<\EOF >> conftest.$ac_ext
6529
# Now try linking the two files.
6530
mv conftest.$ac_objext conftstm.$ac_objext
6531
lt_save_LIBS="$LIBS"
6532
lt_save_CFLAGS="$CFLAGS"
6533
LIBS="conftstm.$ac_objext"
6534
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536
(eval $ac_link) 2>&5
6538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6542
LIBS="$lt_save_LIBS"
6543
CFLAGS="$lt_save_CFLAGS"
6545
echo "cannot find nm_test_func in $nlist" >&5
6548
echo "cannot find nm_test_var in $nlist" >&5
6551
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6554
echo "$progname: failed program was:" >&5
6555
cat conftest.$ac_ext >&5
6557
rm -rf conftest* conftst*
6559
# Do not use the global_symbol_pipe unless it works.
6560
if test "$pipe_works" = yes; then
6563
lt_cv_sys_global_symbol_pipe=
6569
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6570
lt_cv_sys_global_symbol_to_cdecl=
6572
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6573
{ echo "$as_me:$LINENO: result: failed" >&5
6574
echo "${ECHO_T}failed" >&6; }
6576
{ echo "$as_me:$LINENO: result: ok" >&5
6577
echo "${ECHO_T}ok" >&6; }
6580
{ echo "$as_me:$LINENO: checking for objdir" >&5
6581
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6582
if test "${lt_cv_objdir+set}" = set; then
6583
echo $ECHO_N "(cached) $ECHO_C" >&6
6585
rm -f .libs 2>/dev/null
6586
mkdir .libs 2>/dev/null
6587
if test -d .libs; then
6590
# MS-DOS does not allow filenames that begin with a dot.
6593
rmdir .libs 2>/dev/null
6595
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6596
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6597
objdir=$lt_cv_objdir
6605
# AIX sometimes has problems with the GCC collect2 program. For some
6606
# reason, if we set the COLLECT_NAMES environment variable, the problems
6607
# vanish in a puff of smoke.
6608
if test "X${COLLECT_NAMES+set}" != Xset; then
6610
export COLLECT_NAMES
6615
# Sed substitution that helps us do robust quoting. It backslashifies
6616
# metacharacters that are still active within double-quoted strings.
6617
Xsed='sed -e 1s/^X//'
6618
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6620
# Same as above, but do not quote variable references.
6621
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6623
# Sed substitution to delay expansion of an escaped shell variable in a
6624
# double_quote_subst'ed string.
6625
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6627
# Sed substitution to avoid accidental globbing in evaled expressions
6628
no_glob_subst='s/\*/\\\*/g'
6634
default_ofile=libtool
6635
can_build_shared=yes
6637
# All known linkers require a `.a' archive for static linking (except MSVC,
6638
# which needs '.lib').
6640
ltmain="$ac_aux_dir/ltmain.sh"
6641
ofile="$default_ofile"
6642
with_gnu_ld="$lt_cv_prog_gnu_ld"
6644
if test -n "$ac_tool_prefix"; then
6645
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6646
set dummy ${ac_tool_prefix}ar; ac_word=$2
6647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649
if test "${ac_cv_prog_AR+set}" = set; then
6650
echo $ECHO_N "(cached) $ECHO_C" >&6
6652
if test -n "$AR"; then
6653
ac_cv_prog_AR="$AR" # Let the user override the test.
6655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659
test -z "$as_dir" && as_dir=.
6660
for ac_exec_ext in '' $ac_executable_extensions; do
6661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662
ac_cv_prog_AR="${ac_tool_prefix}ar"
6663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673
if test -n "$AR"; then
6674
{ echo "$as_me:$LINENO: result: $AR" >&5
6675
echo "${ECHO_T}$AR" >&6; }
6677
{ echo "$as_me:$LINENO: result: no" >&5
6678
echo "${ECHO_T}no" >&6; }
6683
if test -z "$ac_cv_prog_AR"; then
6685
# Extract the first word of "ar", so it can be a program name with args.
6686
set dummy ar; ac_word=$2
6687
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6690
echo $ECHO_N "(cached) $ECHO_C" >&6
6692
if test -n "$ac_ct_AR"; then
6693
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699
test -z "$as_dir" && as_dir=.
6700
for ac_exec_ext in '' $ac_executable_extensions; do
6701
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702
ac_cv_prog_ac_ct_AR="ar"
6703
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6713
if test -n "$ac_ct_AR"; then
6714
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6715
echo "${ECHO_T}$ac_ct_AR" >&6; }
6717
{ echo "$as_me:$LINENO: result: no" >&5
6718
echo "${ECHO_T}no" >&6; }
6721
if test "x$ac_ct_AR" = x; then
6724
case $cross_compiling:$ac_tool_warned in
6726
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6727
whose name does not start with the host triplet. If you think this
6728
configuration is useful to you, please write to autoconf@gnu.org." >&5
6729
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6730
whose name does not start with the host triplet. If you think this
6731
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6732
ac_tool_warned=yes ;;
6740
if test -n "$ac_tool_prefix"; then
6741
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6742
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6743
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745
if test "${ac_cv_prog_RANLIB+set}" = set; then
6746
echo $ECHO_N "(cached) $ECHO_C" >&6
6748
if test -n "$RANLIB"; then
6749
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755
test -z "$as_dir" && as_dir=.
6756
for ac_exec_ext in '' $ac_executable_extensions; do
6757
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6759
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768
RANLIB=$ac_cv_prog_RANLIB
6769
if test -n "$RANLIB"; then
6770
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6771
echo "${ECHO_T}$RANLIB" >&6; }
6773
{ echo "$as_me:$LINENO: result: no" >&5
6774
echo "${ECHO_T}no" >&6; }
6779
if test -z "$ac_cv_prog_RANLIB"; then
6780
ac_ct_RANLIB=$RANLIB
6781
# Extract the first word of "ranlib", so it can be a program name with args.
6782
set dummy ranlib; ac_word=$2
6783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6786
echo $ECHO_N "(cached) $ECHO_C" >&6
6788
if test -n "$ac_ct_RANLIB"; then
6789
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795
test -z "$as_dir" && as_dir=.
6796
for ac_exec_ext in '' $ac_executable_extensions; do
6797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798
ac_cv_prog_ac_ct_RANLIB="ranlib"
6799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809
if test -n "$ac_ct_RANLIB"; then
6810
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6811
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6813
{ echo "$as_me:$LINENO: result: no" >&5
6814
echo "${ECHO_T}no" >&6; }
6817
if test "x$ac_ct_RANLIB" = x; then
6820
case $cross_compiling:$ac_tool_warned in
6822
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6823
whose name does not start with the host triplet. If you think this
6824
configuration is useful to you, please write to autoconf@gnu.org." >&5
6825
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6826
whose name does not start with the host triplet. If you think this
6827
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6828
ac_tool_warned=yes ;;
6830
RANLIB=$ac_ct_RANLIB
6833
RANLIB="$ac_cv_prog_RANLIB"
6836
if test -n "$ac_tool_prefix"; then
6837
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838
set dummy ${ac_tool_prefix}strip; ac_word=$2
6839
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841
if test "${ac_cv_prog_STRIP+set}" = set; then
6842
echo $ECHO_N "(cached) $ECHO_C" >&6
6844
if test -n "$STRIP"; then
6845
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
test -z "$as_dir" && as_dir=.
6852
for ac_exec_ext in '' $ac_executable_extensions; do
6853
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6855
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864
STRIP=$ac_cv_prog_STRIP
6865
if test -n "$STRIP"; then
6866
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6867
echo "${ECHO_T}$STRIP" >&6; }
6869
{ echo "$as_me:$LINENO: result: no" >&5
6870
echo "${ECHO_T}no" >&6; }
6875
if test -z "$ac_cv_prog_STRIP"; then
6877
# Extract the first word of "strip", so it can be a program name with args.
6878
set dummy strip; ac_word=$2
6879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6882
echo $ECHO_N "(cached) $ECHO_C" >&6
6884
if test -n "$ac_ct_STRIP"; then
6885
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891
test -z "$as_dir" && as_dir=.
6892
for ac_exec_ext in '' $ac_executable_extensions; do
6893
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894
ac_cv_prog_ac_ct_STRIP="strip"
6895
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6905
if test -n "$ac_ct_STRIP"; then
6906
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6907
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6909
{ echo "$as_me:$LINENO: result: no" >&5
6910
echo "${ECHO_T}no" >&6; }
6913
if test "x$ac_ct_STRIP" = x; then
6916
case $cross_compiling:$ac_tool_warned in
6918
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6919
whose name does not start with the host triplet. If you think this
6920
configuration is useful to you, please write to autoconf@gnu.org." >&5
6921
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6922
whose name does not start with the host triplet. If you think this
6923
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6924
ac_tool_warned=yes ;;
6929
STRIP="$ac_cv_prog_STRIP"
6934
old_CFLAGS="$CFLAGS"
6936
# Set sane defaults for various variables
6937
test -z "$AR" && AR=ar
6938
test -z "$AR_FLAGS" && AR_FLAGS=cru
6939
test -z "$AS" && AS=as
6940
test -z "$CC" && CC=cc
6941
test -z "$LTCC" && LTCC=$CC
6942
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6943
test -z "$DLLTOOL" && DLLTOOL=dlltool
6944
test -z "$LD" && LD=ld
6945
test -z "$LN_S" && LN_S="ln -s"
6946
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6947
test -z "$NM" && NM=nm
6948
test -z "$SED" && SED=sed
6949
test -z "$OBJDUMP" && OBJDUMP=objdump
6950
test -z "$RANLIB" && RANLIB=:
6951
test -z "$STRIP" && STRIP=:
6952
test -z "$ac_objext" && ac_objext=o
6954
# Determine commands to create old-style static archives.
6955
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956
old_postinstall_cmds='chmod 644 $oldlib'
6957
old_postuninstall_cmds=
6959
if test -n "$RANLIB"; then
6962
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6965
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6968
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6971
for cc_temp in $compiler""; do
6973
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6974
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6979
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6982
# Only perform the check for file, if the check method requires it
6983
case $deplibs_check_method in
6985
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6986
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6987
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6988
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6989
echo $ECHO_N "(cached) $ECHO_C" >&6
6993
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6996
lt_save_MAGIC_CMD="$MAGIC_CMD"
6997
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6998
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6999
for ac_dir in $ac_dummy; do
7001
test -z "$ac_dir" && ac_dir=.
7002
if test -f $ac_dir/${ac_tool_prefix}file; then
7003
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7004
if test -n "$file_magic_test_file"; then
7005
case $deplibs_check_method in
7007
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7008
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7010
$EGREP "$file_magic_regex" > /dev/null; then
7015
*** Warning: the command libtool uses to detect shared libraries,
7016
*** $file_magic_cmd, produces output that libtool cannot recognize.
7017
*** The result is that libtool may fail to recognize shared libraries
7018
*** as such. This will affect the creation of libtool libraries that
7019
*** depend on shared libraries, but programs linked with such libtool
7020
*** libraries will work regardless of this problem. Nevertheless, you
7021
*** may want to report the problem to your system manager and/or to
7022
*** bug-libtool@gnu.org
7032
MAGIC_CMD="$lt_save_MAGIC_CMD"
7037
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7038
if test -n "$MAGIC_CMD"; then
7039
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7040
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7042
{ echo "$as_me:$LINENO: result: no" >&5
7043
echo "${ECHO_T}no" >&6; }
7046
if test -z "$lt_cv_path_MAGIC_CMD"; then
7047
if test -n "$ac_tool_prefix"; then
7048
{ echo "$as_me:$LINENO: checking for file" >&5
7049
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7050
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7051
echo $ECHO_N "(cached) $ECHO_C" >&6
7055
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7058
lt_save_MAGIC_CMD="$MAGIC_CMD"
7059
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7060
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7061
for ac_dir in $ac_dummy; do
7063
test -z "$ac_dir" && ac_dir=.
7064
if test -f $ac_dir/file; then
7065
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7066
if test -n "$file_magic_test_file"; then
7067
case $deplibs_check_method in
7069
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7070
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7072
$EGREP "$file_magic_regex" > /dev/null; then
7077
*** Warning: the command libtool uses to detect shared libraries,
7078
*** $file_magic_cmd, produces output that libtool cannot recognize.
7079
*** The result is that libtool may fail to recognize shared libraries
7080
*** as such. This will affect the creation of libtool libraries that
7081
*** depend on shared libraries, but programs linked with such libtool
7082
*** libraries will work regardless of this problem. Nevertheless, you
7083
*** may want to report the problem to your system manager and/or to
7084
*** bug-libtool@gnu.org
7094
MAGIC_CMD="$lt_save_MAGIC_CMD"
7099
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100
if test -n "$MAGIC_CMD"; then
7101
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7102
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7104
{ echo "$as_me:$LINENO: result: no" >&5
7105
echo "${ECHO_T}no" >&6; }
7119
rhapsody* | darwin*)
7120
if test -n "$ac_tool_prefix"; then
7121
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7122
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7123
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7126
echo $ECHO_N "(cached) $ECHO_C" >&6
7128
if test -n "$DSYMUTIL"; then
7129
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135
test -z "$as_dir" && as_dir=.
7136
for ac_exec_ext in '' $ac_executable_extensions; do
7137
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7139
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7149
if test -n "$DSYMUTIL"; then
7150
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7151
echo "${ECHO_T}$DSYMUTIL" >&6; }
7153
{ echo "$as_me:$LINENO: result: no" >&5
7154
echo "${ECHO_T}no" >&6; }
7159
if test -z "$ac_cv_prog_DSYMUTIL"; then
7160
ac_ct_DSYMUTIL=$DSYMUTIL
7161
# Extract the first word of "dsymutil", so it can be a program name with args.
7162
set dummy dsymutil; ac_word=$2
7163
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7166
echo $ECHO_N "(cached) $ECHO_C" >&6
7168
if test -n "$ac_ct_DSYMUTIL"; then
7169
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175
test -z "$as_dir" && as_dir=.
7176
for ac_exec_ext in '' $ac_executable_extensions; do
7177
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7179
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7189
if test -n "$ac_ct_DSYMUTIL"; then
7190
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7191
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7193
{ echo "$as_me:$LINENO: result: no" >&5
7194
echo "${ECHO_T}no" >&6; }
7197
if test "x$ac_ct_DSYMUTIL" = x; then
7200
case $cross_compiling:$ac_tool_warned in
7202
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7203
whose name does not start with the host triplet. If you think this
7204
configuration is useful to you, please write to autoconf@gnu.org." >&5
7205
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7206
whose name does not start with the host triplet. If you think this
7207
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7208
ac_tool_warned=yes ;;
7210
DSYMUTIL=$ac_ct_DSYMUTIL
7213
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7216
if test -n "$ac_tool_prefix"; then
7217
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7218
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7219
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7222
echo $ECHO_N "(cached) $ECHO_C" >&6
7224
if test -n "$NMEDIT"; then
7225
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231
test -z "$as_dir" && as_dir=.
7232
for ac_exec_ext in '' $ac_executable_extensions; do
7233
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7235
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244
NMEDIT=$ac_cv_prog_NMEDIT
7245
if test -n "$NMEDIT"; then
7246
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7247
echo "${ECHO_T}$NMEDIT" >&6; }
7249
{ echo "$as_me:$LINENO: result: no" >&5
7250
echo "${ECHO_T}no" >&6; }
7255
if test -z "$ac_cv_prog_NMEDIT"; then
7256
ac_ct_NMEDIT=$NMEDIT
7257
# Extract the first word of "nmedit", so it can be a program name with args.
7258
set dummy nmedit; ac_word=$2
7259
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7262
echo $ECHO_N "(cached) $ECHO_C" >&6
7264
if test -n "$ac_ct_NMEDIT"; then
7265
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271
test -z "$as_dir" && as_dir=.
7272
for ac_exec_ext in '' $ac_executable_extensions; do
7273
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7275
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7285
if test -n "$ac_ct_NMEDIT"; then
7286
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7287
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7289
{ echo "$as_me:$LINENO: result: no" >&5
7290
echo "${ECHO_T}no" >&6; }
7293
if test "x$ac_ct_NMEDIT" = x; then
7296
case $cross_compiling:$ac_tool_warned in
7298
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7299
whose name does not start with the host triplet. If you think this
7300
configuration is useful to you, please write to autoconf@gnu.org." >&5
7301
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7302
whose name does not start with the host triplet. If you think this
7303
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7304
ac_tool_warned=yes ;;
7306
NMEDIT=$ac_ct_NMEDIT
7309
NMEDIT="$ac_cv_prog_NMEDIT"
7313
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7314
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7315
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7316
echo $ECHO_N "(cached) $ECHO_C" >&6
7318
lt_cv_apple_cc_single_mod=no
7319
if test -z "${LT_MULTI_MODULE}"; then
7320
# By default we will add the -single_module flag. You can override
7321
# by either setting the environment variable LT_MULTI_MODULE
7322
# non-empty at configure time, or by adding -multi_module to the
7324
echo "int foo(void){return 1;}" > conftest.c
7325
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7326
-dynamiclib ${wl}-single_module conftest.c
7327
if test -f libconftest.dylib; then
7328
lt_cv_apple_cc_single_mod=yes
7329
rm -rf libconftest.dylib*
7334
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7335
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7336
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7337
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7338
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7339
echo $ECHO_N "(cached) $ECHO_C" >&6
7341
lt_cv_ld_exported_symbols_list=no
7342
save_LDFLAGS=$LDFLAGS
7343
echo "_main" > conftest.sym
7344
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7345
cat >conftest.$ac_ext <<_ACEOF
7348
cat confdefs.h >>conftest.$ac_ext
7349
cat >>conftest.$ac_ext <<_ACEOF
7350
/* end confdefs.h. */
7360
rm -f conftest.$ac_objext conftest$ac_exeext
7361
if { (ac_try="$ac_link"
7363
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364
*) ac_try_echo=$ac_try;;
7366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367
(eval "$ac_link") 2>conftest.er1
7369
grep -v '^ *+' conftest.er1 >conftest.err
7371
cat conftest.err >&5
7372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373
(exit $ac_status); } && {
7374
test -z "$ac_c_werror_flag" ||
7375
test ! -s conftest.err
7376
} && test -s conftest$ac_exeext &&
7377
$as_test_x conftest$ac_exeext; then
7378
lt_cv_ld_exported_symbols_list=yes
7380
echo "$as_me: failed program was:" >&5
7381
sed 's/^/| /' conftest.$ac_ext >&5
7383
lt_cv_ld_exported_symbols_list=no
7386
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7387
conftest$ac_exeext conftest.$ac_ext
7388
LDFLAGS="$save_LDFLAGS"
7391
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7392
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7394
rhapsody* | darwin1.[0123])
7395
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7397
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7399
# if running on 10.5 or later, the deployment target defaults
7400
# to the OS version, if on x86, and 10.4, the deployment
7401
# target defaults to 10.4. Don't you love it?
7402
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7403
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7404
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7406
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7408
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7412
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7413
_lt_dar_single_mod='$single_module'
7415
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7416
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7418
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7420
if test "$DSYMUTIL" != ":"; then
7421
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7432
# Check whether --enable-libtool-lock was given.
7433
if test "${enable_libtool_lock+set}" = set; then
7434
enableval=$enable_libtool_lock;
7437
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7440
# Check whether --with-pic was given.
7441
if test "${with_pic+set}" = set; then
7442
withval=$with_pic; pic_mode="$withval"
7447
test -z "$pic_mode" && pic_mode=default
7449
# Use C for the default configuration in the libtool script
7453
ac_cpp='$CPP $CPPFLAGS'
7454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
# Source file extension for C test sources.
7462
# Object file extension for compiled C test sources.
7466
# Code to be used in simple compile tests
7467
lt_simple_compile_test_code="int some_variable = 0;"
7469
# Code to be used in simple link tests
7470
lt_simple_link_test_code='int main(){return(0);}'
7473
# If no C compiler was specified, use CC.
7476
# If no C compiler flags were specified, use CFLAGS.
7477
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7479
# Allow CC to be a program name with arguments.
7483
# save warnings/boilerplate of simple test code
7484
ac_outfile=conftest.$ac_objext
7485
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487
_lt_compiler_boilerplate=`cat conftest.err`
7490
ac_outfile=conftest.$ac_objext
7491
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493
_lt_linker_boilerplate=`cat conftest.err`
7498
lt_prog_compiler_no_builtin_flag=
7500
if test "$GCC" = yes; then
7501
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7504
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7505
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7506
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7507
echo $ECHO_N "(cached) $ECHO_C" >&6
7509
lt_cv_prog_compiler_rtti_exceptions=no
7510
ac_outfile=conftest.$ac_objext
7511
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7512
lt_compiler_flag="-fno-rtti -fno-exceptions"
7513
# Insert the option either (1) after the last *FLAGS variable, or
7514
# (2) before a word containing "conftest.", or (3) at the end.
7515
# Note that $ac_compile itself does not contain backslashes and begins
7516
# with a dollar sign (not a hyphen), so the echo should work correctly.
7517
# The option is referenced via a variable to avoid confusing sed.
7518
lt_compile=`echo "$ac_compile" | $SED \
7519
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7520
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7521
-e 's:$: $lt_compiler_flag:'`
7522
(eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7523
(eval "$lt_compile" 2>conftest.err)
7525
cat conftest.err >&5
7526
echo "$as_me:7526: \$? = $ac_status" >&5
7527
if (exit $ac_status) && test -s "$ac_outfile"; then
7528
# The compiler can only warn and ignore the option if not recognized
7529
# So say no if there are warnings other than the usual output.
7530
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7531
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7533
lt_cv_prog_compiler_rtti_exceptions=yes
7539
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7540
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7542
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7543
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7550
lt_prog_compiler_wl=
7551
lt_prog_compiler_pic=
7552
lt_prog_compiler_static=
7554
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7555
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7557
if test "$GCC" = yes; then
7558
lt_prog_compiler_wl='-Wl,'
7559
lt_prog_compiler_static='-static'
7563
# All AIX code is PIC.
7564
if test "$host_cpu" = ia64; then
7565
# AIX 5 now supports IA64 processor
7566
lt_prog_compiler_static='-Bstatic'
7571
# FIXME: we need at least 68020 code to build shared libraries, but
7572
# adding the `-m68020' flag to GCC prevents building anything better,
7574
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7577
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7578
# PIC is the default for these OSes.
7581
mingw* | cygwin* | pw32* | os2*)
7582
# This hack is so that the source file can tell whether it is being
7583
# built for inclusion in a dll (and should export symbols for example).
7584
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7585
# (--disable-auto-import) libraries
7586
lt_prog_compiler_pic='-DDLL_EXPORT'
7589
darwin* | rhapsody*)
7590
# PIC is the default on this platform
7591
# Common symbols not allowed in MH_DYLIB files
7592
lt_prog_compiler_pic='-fno-common'
7596
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7597
# Instead, we relocate shared libraries at runtime.
7601
# Just because we use GCC doesn't mean we suddenly get shared libraries
7602
# on systems that don't support them.
7603
lt_prog_compiler_can_build_shared=no
7608
if test -d /usr/nec; then
7609
lt_prog_compiler_pic=-Kconform_pic
7614
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7621
lt_prog_compiler_pic='-fPIC'
7627
lt_prog_compiler_pic='-fPIC'
7631
# PORTME Check for flag to pass linker flags through the system compiler.
7634
lt_prog_compiler_wl='-Wl,'
7635
if test "$host_cpu" = ia64; then
7636
# AIX 5 now supports IA64 processor
7637
lt_prog_compiler_static='-Bstatic'
7639
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7643
# PIC is the default on this platform
7644
# Common symbols not allowed in MH_DYLIB files
7645
case $cc_basename in
7647
lt_prog_compiler_pic='-qnocommon'
7648
lt_prog_compiler_wl='-Wl,'
7653
mingw* | cygwin* | pw32* | os2*)
7654
# This hack is so that the source file can tell whether it is being
7655
# built for inclusion in a dll (and should export symbols for example).
7656
lt_prog_compiler_pic='-DDLL_EXPORT'
7659
hpux9* | hpux10* | hpux11*)
7660
lt_prog_compiler_wl='-Wl,'
7661
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7668
lt_prog_compiler_pic='+Z'
7671
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7672
lt_prog_compiler_static='${wl}-a ${wl}archive'
7675
irix5* | irix6* | nonstopux*)
7676
lt_prog_compiler_wl='-Wl,'
7677
# PIC (with -KPIC) is the default.
7678
lt_prog_compiler_static='-non_shared'
7682
lt_prog_compiler_pic='-KPIC'
7683
lt_prog_compiler_static='-Bstatic'
7686
linux* | k*bsd*-gnu)
7687
case $cc_basename in
7689
lt_prog_compiler_wl='-Wl,'
7690
lt_prog_compiler_pic='-KPIC'
7691
lt_prog_compiler_static='-static'
7693
pgcc* | pgf77* | pgf90* | pgf95*)
7694
# Portland Group compilers (*not* the Pentium gcc compiler,
7695
# which looks to be a dead project)
7696
lt_prog_compiler_wl='-Wl,'
7697
lt_prog_compiler_pic='-fpic'
7698
lt_prog_compiler_static='-Bstatic'
7701
lt_prog_compiler_wl='-Wl,'
7702
# All Alpha code is PIC.
7703
lt_prog_compiler_static='-non_shared'
7706
case `$CC -V 2>&1 | sed 5q` in
7709
lt_prog_compiler_pic='-KPIC'
7710
lt_prog_compiler_static='-Bstatic'
7711
lt_prog_compiler_wl='-Wl,'
7714
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7715
lt_prog_compiler_pic='-KPIC'
7716
lt_prog_compiler_static='-Bstatic'
7717
lt_prog_compiler_wl=''
7724
osf3* | osf4* | osf5*)
7725
lt_prog_compiler_wl='-Wl,'
7726
# All OSF/1 code is PIC.
7727
lt_prog_compiler_static='-non_shared'
7731
lt_prog_compiler_static='-non_shared'
7735
lt_prog_compiler_pic='-KPIC'
7736
lt_prog_compiler_static='-Bstatic'
7737
case $cc_basename in
7739
lt_prog_compiler_wl='-Qoption ld ';;
7741
lt_prog_compiler_wl='-Wl,';;
7746
lt_prog_compiler_wl='-Qoption ld '
7747
lt_prog_compiler_pic='-PIC'
7748
lt_prog_compiler_static='-Bstatic'
7751
sysv4 | sysv4.2uw2* | sysv4.3*)
7752
lt_prog_compiler_wl='-Wl,'
7753
lt_prog_compiler_pic='-KPIC'
7754
lt_prog_compiler_static='-Bstatic'
7758
if test -d /usr/nec ;then
7759
lt_prog_compiler_pic='-Kconform_pic'
7760
lt_prog_compiler_static='-Bstatic'
7764
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7765
lt_prog_compiler_wl='-Wl,'
7766
lt_prog_compiler_pic='-KPIC'
7767
lt_prog_compiler_static='-Bstatic'
7771
lt_prog_compiler_wl='-Wl,'
7772
lt_prog_compiler_can_build_shared=no
7776
lt_prog_compiler_pic='-pic'
7777
lt_prog_compiler_static='-Bstatic'
7781
lt_prog_compiler_can_build_shared=no
7786
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7790
# Check to make sure the PIC flag actually works.
7792
if test -n "$lt_prog_compiler_pic"; then
7794
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7796
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7797
echo $ECHO_N "(cached) $ECHO_C" >&6
7799
lt_cv_prog_compiler_pic_works=no
7800
ac_outfile=conftest.$ac_objext
7801
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803
# Insert the option either (1) after the last *FLAGS variable, or
7804
# (2) before a word containing "conftest.", or (3) at the end.
7805
# Note that $ac_compile itself does not contain backslashes and begins
7806
# with a dollar sign (not a hyphen), so the echo should work correctly.
7807
# The option is referenced via a variable to avoid confusing sed.
7808
lt_compile=`echo "$ac_compile" | $SED \
7809
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811
-e 's:$: $lt_compiler_flag:'`
7812
(eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813
(eval "$lt_compile" 2>conftest.err)
7815
cat conftest.err >&5
7816
echo "$as_me:7816: \$? = $ac_status" >&5
7817
if (exit $ac_status) && test -s "$ac_outfile"; then
7818
# The compiler can only warn and ignore the option if not recognized
7819
# So say no if there are warnings other than the usual output.
7820
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7821
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823
lt_cv_prog_compiler_pic_works=yes
7829
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7830
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7832
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7833
case $lt_prog_compiler_pic in
7835
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7838
lt_prog_compiler_pic=
7839
lt_prog_compiler_can_build_shared=no
7844
# For platforms which do not support PIC, -DPIC is meaningless:
7846
lt_prog_compiler_pic=
7849
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7854
# Check to make sure the static flag actually works.
7856
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7857
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7858
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7859
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7860
echo $ECHO_N "(cached) $ECHO_C" >&6
7862
lt_cv_prog_compiler_static_works=no
7863
save_LDFLAGS="$LDFLAGS"
7864
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7865
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7866
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7867
# The linker can only warn and ignore the option if not recognized
7868
# So say no if there are warnings
7869
if test -s conftest.err; then
7870
# Append any errors to the config.log.
7871
cat conftest.err 1>&5
7872
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7873
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874
if diff conftest.exp conftest.er2 >/dev/null; then
7875
lt_cv_prog_compiler_static_works=yes
7878
lt_cv_prog_compiler_static_works=yes
7882
LDFLAGS="$save_LDFLAGS"
7885
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7886
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7888
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7891
lt_prog_compiler_static=
7895
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7896
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7897
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7898
echo $ECHO_N "(cached) $ECHO_C" >&6
7900
lt_cv_prog_compiler_c_o=no
7901
$rm -r conftest 2>/dev/null
7905
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7907
lt_compiler_flag="-o out/conftest2.$ac_objext"
7908
# Insert the option either (1) after the last *FLAGS variable, or
7909
# (2) before a word containing "conftest.", or (3) at the end.
7910
# Note that $ac_compile itself does not contain backslashes and begins
7911
# with a dollar sign (not a hyphen), so the echo should work correctly.
7912
lt_compile=`echo "$ac_compile" | $SED \
7913
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915
-e 's:$: $lt_compiler_flag:'`
7916
(eval echo "\"\$as_me:7916: $lt_compile\"" >&5)
7917
(eval "$lt_compile" 2>out/conftest.err)
7919
cat out/conftest.err >&5
7920
echo "$as_me:7920: \$? = $ac_status" >&5
7921
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7923
# The compiler can only warn and ignore the option if not recognized
7924
# So say no if there are warnings
7925
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7926
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7927
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7928
lt_cv_prog_compiler_c_o=yes
7933
# SGI C++ compiler will create directory out/ii_files/ for
7934
# template instantiation
7935
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7936
$rm out/* && rmdir out
7942
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7943
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7946
hard_links="nottested"
7947
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7948
# do not overwrite the value of need_locks provided by the user
7949
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7950
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7953
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7955
ln conftest.a conftest.b 2>&5 || hard_links=no
7956
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7958
echo "${ECHO_T}$hard_links" >&6; }
7959
if test "$hard_links" = no; then
7960
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7961
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7968
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7969
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7972
allow_undefined_flag=
7973
enable_shared_with_static_runtimes=no
7975
archive_expsym_cmds=
7976
old_archive_From_new_cmds=
7977
old_archive_from_expsyms_cmds=
7978
export_dynamic_flag_spec=
7979
whole_archive_flag_spec=
7980
thread_safe_flag_spec=
7981
hardcode_libdir_flag_spec=
7982
hardcode_libdir_flag_spec_ld=
7983
hardcode_libdir_separator=
7986
hardcode_shlibpath_var=unsupported
7987
link_all_deplibs=unknown
7988
hardcode_automatic=no
7991
always_export_symbols=no
7992
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7993
# include_expsyms should be a list of space-separated symbols to be *always*
7994
# included in the symbol list
7996
# exclude_expsyms can be an extended regexp of symbols to exclude
7997
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7998
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7999
# as well as any symbol that contains `d'.
8000
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8001
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8002
# platforms (ab)use it in PIC code, but their linkers get confused if
8003
# the symbol is explicitly referenced. Since portable code cannot
8004
# rely on this symbol name, it's probably fine to never include it in
8005
# preloaded symbol tables.
8006
# Exclude shared library initialization/finalization symbols.
8007
extract_expsyms_cmds=
8008
# Just being paranoid about ensuring that cc_basename is set.
8009
for cc_temp in $compiler""; do
8011
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8012
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8017
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8020
cygwin* | mingw* | pw32*)
8021
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8022
# When not using gcc, we currently assume that we are using
8023
# Microsoft Visual C++.
8024
if test "$GCC" != yes; then
8029
# we just hope/assume this is gcc and not c89 (= MSVC++)
8038
if test "$with_gnu_ld" = yes; then
8039
# If archive_cmds runs LD, not CC, wlarc should be empty
8042
# Set some defaults for GNU ld with shared library support. These
8043
# are reset later if shared libraries are not supported. Putting them
8044
# here allows them to be overridden if necessary.
8045
runpath_var=LD_RUN_PATH
8046
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8047
export_dynamic_flag_spec='${wl}--export-dynamic'
8048
# ancient GNU ld didn't support --whole-archive et. al.
8049
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8050
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8052
whole_archive_flag_spec=
8054
supports_anon_versioning=no
8055
case `$LD -v 2>/dev/null` in
8056
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8057
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8058
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8059
*\ 2.11.*) ;; # other 2.11 versions
8060
*) supports_anon_versioning=yes ;;
8063
# See if GNU ld supports shared libraries.
8066
# On AIX/PPC, the GNU linker is very broken
8067
if test "$host_cpu" != ia64; then
8071
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8072
*** to be unable to reliably create shared libraries on AIX.
8073
*** Therefore, libtool is disabling shared libraries support. If you
8074
*** really care for shared libraries, you may want to modify your PATH
8075
*** so that a non-GNU linker is found, and then restart.
8082
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8083
hardcode_libdir_flag_spec='-L$libdir'
8084
hardcode_minus_L=yes
8086
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8087
# that the semantics of dynamic libraries on AmigaOS, at least up
8088
# to version 4, is to share data among multiple programs linked
8089
# with the same dynamic library. Since this doesn't match the
8090
# behavior of shared libraries on other platforms, we can't use
8096
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097
allow_undefined_flag=unsupported
8098
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8099
# support --undefined. This deserves some investigation. FIXME
8100
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106
cygwin* | mingw* | pw32*)
8107
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8108
# as there is no search path for DLLs.
8109
hardcode_libdir_flag_spec='-L$libdir'
8110
allow_undefined_flag=unsupported
8111
always_export_symbols=no
8112
enable_shared_with_static_runtimes=yes
8113
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8115
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8116
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8117
# If the export-symbols file already is a .def file (1st line
8118
# is EXPORTS), use it as is; otherwise, prepend...
8119
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8120
cp $export_symbols $output_objdir/$soname.def;
8122
echo EXPORTS > $output_objdir/$soname.def;
8123
cat $export_symbols >> $output_objdir/$soname.def;
8125
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8133
hardcode_shlibpath_var=no
8134
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8135
export_dynamic_flag_spec='${wl}-E'
8136
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8137
# Instead, shared libraries are loaded at an image base (0x10000000 by
8138
# default) and relocated if they conflict, which is a slow very memory
8139
# consuming and fragmenting process. To avoid this, we pick a random,
8140
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8141
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8142
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8143
archive_expsym_cmds='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'
8146
gnu* | linux* | k*bsd*-gnu)
8147
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149
case $cc_basename,$host_cpu in
8150
pgcc*) # Portland Group C compiler
8151
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8152
tmp_addflag=' $pic_flag'
8154
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8155
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8156
tmp_addflag=' $pic_flag -Mnomain' ;;
8157
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8158
tmp_addflag=' -i_dynamic' ;;
8159
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8160
tmp_addflag=' -i_dynamic -nofor_main' ;;
8161
ifc* | ifort*) # Intel Fortran compiler
8162
tmp_addflag=' -nofor_main' ;;
8164
case `$CC -V 2>&1 | sed 5q` in
8165
*Sun\ C*) # Sun C 5.9
8166
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8167
tmp_sharedflag='-G' ;;
8168
*Sun\ F*) # Sun Fortran 8.3
8169
tmp_sharedflag='-G' ;;
8171
tmp_sharedflag='-shared' ;;
8173
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175
if test $supports_anon_versioning = yes; then
8176
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8177
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8178
$echo "local: *; };" >> $output_objdir/$libname.ver~
8179
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8187
netbsd* | netbsdelf*-gnu)
8188
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8189
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8192
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8202
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8203
*** create shared libraries on Solaris systems. Therefore, libtool
8204
*** is disabling shared libraries support. We urge you to upgrade GNU
8205
*** binutils to release 2.9.1 or newer. Another option is to modify
8206
*** your PATH or compiler configuration so that the native linker is
8207
*** used, and then restart.
8210
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8211
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8218
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8219
case `$LD -v 2>&1` in
8220
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8224
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8225
*** reliably create shared libraries on SCO systems. Therefore, libtool
8226
*** is disabling shared libraries support. We urge you to upgrade GNU
8227
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8228
*** your PATH or compiler configuration so that the native linker is
8229
*** used, and then restart.
8234
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8236
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8237
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8246
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8249
hardcode_shlibpath_var=no
8253
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262
if test "$ld_shlibs" = no; then
8264
hardcode_libdir_flag_spec=
8265
export_dynamic_flag_spec=
8266
whole_archive_flag_spec=
8269
# PORTME fill in a description of your system's linker (not GNU ld)
8272
allow_undefined_flag=unsupported
8273
always_export_symbols=yes
8274
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8275
# Note: this linker hardcodes the directories in LIBPATH if there
8276
# are no directories specified by -L.
8277
hardcode_minus_L=yes
8278
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8279
# Neither direct hardcoding nor static linking is supported with a
8281
hardcode_direct=unsupported
8286
if test "$host_cpu" = ia64; then
8287
# On IA64, the linker does run time linking by default, so we don't
8288
# have to do anything special.
8289
aix_use_runtimelinking=no
8290
exp_sym_flag='-Bexport'
8293
# If we're using GNU nm, then we don't want the "-C" option.
8294
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8295
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8296
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8298
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8300
aix_use_runtimelinking=no
8302
# Test if we are trying to use run time linking or normal
8303
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8304
# need to do runtime linking.
8305
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8306
for ld_flag in $LDFLAGS; do
8307
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8308
aix_use_runtimelinking=yes
8315
exp_sym_flag='-bexport'
8316
no_entry_flag='-bnoentry'
8319
# When large executables or shared objects are built, AIX ld can
8320
# have problems creating the table of contents. If linking a library
8321
# or program results in "error TOC overflow" add -mminimal-toc to
8322
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8323
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8327
hardcode_libdir_separator=':'
8328
link_all_deplibs=yes
8330
if test "$GCC" = yes; then
8331
case $host_os in aix4.[012]|aix4.[012].*)
8332
# We only want to do this on AIX 4.2 and lower, the check
8333
# below for broken collect2 doesn't work under 4.3+
8334
collect2name=`${CC} -print-prog-name=collect2`
8335
if test -f "$collect2name" && \
8336
strings "$collect2name" | grep resolve_lib_name >/dev/null
8338
# We have reworked collect2
8341
# We have old collect2
8342
hardcode_direct=unsupported
8343
# It fails to find uninstalled libraries when the uninstalled
8344
# path is not listed in the libpath. Setting hardcode_minus_L
8345
# to unsupported forces relinking
8346
hardcode_minus_L=yes
8347
hardcode_libdir_flag_spec='-L$libdir'
8348
hardcode_libdir_separator=
8352
shared_flag='-shared'
8353
if test "$aix_use_runtimelinking" = yes; then
8354
shared_flag="$shared_flag "'${wl}-G'
8358
if test "$host_cpu" = ia64; then
8359
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8360
# chokes on -Wl,-G. The following line is correct:
8363
if test "$aix_use_runtimelinking" = yes; then
8364
shared_flag='${wl}-G'
8366
shared_flag='${wl}-bM:SRE'
8371
# It seems that -bexpall does not export symbols beginning with
8372
# underscore (_), so it is better to generate a list of symbols to export.
8373
always_export_symbols=yes
8374
if test "$aix_use_runtimelinking" = yes; then
8375
# Warning - without using the other runtime loading flags (-brtl),
8376
# -berok will link without error, but may produce a broken library.
8377
allow_undefined_flag='-berok'
8378
# Determine the default libpath from the value encoded in an empty executable.
8379
cat >conftest.$ac_ext <<_ACEOF
8382
cat confdefs.h >>conftest.$ac_ext
8383
cat >>conftest.$ac_ext <<_ACEOF
8384
/* end confdefs.h. */
8394
rm -f conftest.$ac_objext conftest$ac_exeext
8395
if { (ac_try="$ac_link"
8397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398
*) ac_try_echo=$ac_try;;
8400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401
(eval "$ac_link") 2>conftest.er1
8403
grep -v '^ *+' conftest.er1 >conftest.err
8405
cat conftest.err >&5
8406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407
(exit $ac_status); } && {
8408
test -z "$ac_c_werror_flag" ||
8409
test ! -s conftest.err
8410
} && test -s conftest$ac_exeext &&
8411
$as_test_x conftest$ac_exeext; then
8413
lt_aix_libpath_sed='
8414
/Import File Strings/,/^$/ {
8420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421
# Check for a 64-bit object if we didn't find anything.
8422
if test -z "$aix_libpath"; then
8423
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8426
echo "$as_me: failed program was:" >&5
8427
sed 's/^/| /' conftest.$ac_ext >&5
8432
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433
conftest$ac_exeext conftest.$ac_ext
8434
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8437
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8439
if test "$host_cpu" = ia64; then
8440
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8441
allow_undefined_flag="-z nodefs"
8442
archive_expsym_cmds="\$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"
8444
# Determine the default libpath from the value encoded in an empty executable.
8445
cat >conftest.$ac_ext <<_ACEOF
8448
cat confdefs.h >>conftest.$ac_ext
8449
cat >>conftest.$ac_ext <<_ACEOF
8450
/* end confdefs.h. */
8460
rm -f conftest.$ac_objext conftest$ac_exeext
8461
if { (ac_try="$ac_link"
8463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464
*) ac_try_echo=$ac_try;;
8466
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467
(eval "$ac_link") 2>conftest.er1
8469
grep -v '^ *+' conftest.er1 >conftest.err
8471
cat conftest.err >&5
8472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473
(exit $ac_status); } && {
8474
test -z "$ac_c_werror_flag" ||
8475
test ! -s conftest.err
8476
} && test -s conftest$ac_exeext &&
8477
$as_test_x conftest$ac_exeext; then
8479
lt_aix_libpath_sed='
8480
/Import File Strings/,/^$/ {
8486
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487
# Check for a 64-bit object if we didn't find anything.
8488
if test -z "$aix_libpath"; then
8489
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8492
echo "$as_me: failed program was:" >&5
8493
sed 's/^/| /' conftest.$ac_ext >&5
8498
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8499
conftest$ac_exeext conftest.$ac_ext
8500
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8503
# Warning - without using the other run time loading flags,
8504
# -berok will link without error, but may produce a broken library.
8505
no_undefined_flag=' ${wl}-bernotok'
8506
allow_undefined_flag=' ${wl}-berok'
8507
# Exported symbols can be pulled into shared objects from archives
8508
whole_archive_flag_spec='$convenience'
8509
archive_cmds_need_lc=yes
8510
# This is similar to how AIX traditionally builds its shared libraries.
8511
archive_expsym_cmds="\$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'
8517
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8518
hardcode_libdir_flag_spec='-L$libdir'
8519
hardcode_minus_L=yes
8520
# see comment about different semantics on the GNU ld section
8525
export_dynamic_flag_spec=-rdynamic
8528
cygwin* | mingw* | pw32*)
8529
# When not using gcc, we currently assume that we are using
8530
# Microsoft Visual C++.
8531
# hardcode_libdir_flag_spec is actually meaningless, as there is
8532
# no search path for DLLs.
8533
hardcode_libdir_flag_spec=' '
8534
allow_undefined_flag=unsupported
8535
# Tell ltmain to make .lib files, not .a files.
8537
# Tell ltmain to make .dll files, not .so files.
8539
# FIXME: Setting linknames here is a bad hack.
8540
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8541
# The linker will automatically build a .lib file if we build a DLL.
8542
old_archive_From_new_cmds='true'
8543
# FIXME: Should let the user specify the lib program.
8544
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8545
fix_srcfile_path='`cygpath -w "$srcfile"`'
8546
enable_shared_with_static_runtimes=yes
8549
darwin* | rhapsody*)
8551
rhapsody* | darwin1.[012])
8552
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8555
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8556
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8558
case ${MACOSX_DEPLOYMENT_TARGET} in
8560
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8563
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8569
archive_cmds_need_lc=no
8571
hardcode_automatic=yes
8572
hardcode_shlibpath_var=unsupported
8573
whole_archive_flag_spec=''
8574
link_all_deplibs=yes
8575
if test "$GCC" = yes ; then
8576
output_verbose_link_cmd='echo'
8577
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8578
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8579
archive_expsym_cmds="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}"
8580
module_expsym_cmds="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}"
8582
case $cc_basename in
8584
output_verbose_link_cmd='echo'
8585
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8586
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8587
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8588
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8589
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8599
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600
hardcode_libdir_flag_spec='-L$libdir'
8601
hardcode_shlibpath_var=no
8608
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609
# support. Future versions do this automatically, but an explicit c++rt0.o
8610
# does not break anything, and helps significantly (at the cost of a little
8613
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614
hardcode_libdir_flag_spec='-R$libdir'
8616
hardcode_shlibpath_var=no
8619
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8621
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8623
hardcode_minus_L=yes
8624
hardcode_shlibpath_var=no
8627
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628
freebsd* | dragonfly*)
8629
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630
hardcode_libdir_flag_spec='-R$libdir'
8632
hardcode_shlibpath_var=no
8636
if test "$GCC" = yes; then
8637
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8639
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8641
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642
hardcode_libdir_separator=:
8645
# hardcode_minus_L: Not really in the search PATH,
8646
# but as the default location of the library.
8647
hardcode_minus_L=yes
8648
export_dynamic_flag_spec='${wl}-E'
8652
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8653
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8655
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8657
if test "$with_gnu_ld" = no; then
8658
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659
hardcode_libdir_separator=:
8662
export_dynamic_flag_spec='${wl}-E'
8664
# hardcode_minus_L: Not really in the search PATH,
8665
# but as the default location of the library.
8666
hardcode_minus_L=yes
8671
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8674
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8680
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8692
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8696
if test "$with_gnu_ld" = no; then
8697
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698
hardcode_libdir_separator=:
8702
hardcode_libdir_flag_spec_ld='+b $libdir'
8704
hardcode_shlibpath_var=no
8708
export_dynamic_flag_spec='${wl}-E'
8710
# hardcode_minus_L: Not really in the search PATH,
8711
# but as the default location of the library.
8712
hardcode_minus_L=yes
8718
irix5* | irix6* | nonstopux*)
8719
if test "$GCC" = yes; then
8720
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8722
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8723
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8725
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726
hardcode_libdir_separator=:
8727
link_all_deplibs=yes
8730
netbsd* | netbsdelf*-gnu)
8731
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8732
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8734
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8736
hardcode_libdir_flag_spec='-R$libdir'
8738
hardcode_shlibpath_var=no
8742
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745
hardcode_libdir_separator=:
8746
hardcode_shlibpath_var=no
8750
if test -f /usr/libexec/ld.so; then
8752
hardcode_shlibpath_var=no
8753
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8754
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8755
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8756
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8757
export_dynamic_flag_spec='${wl}-E'
8760
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8761
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762
hardcode_libdir_flag_spec='-R$libdir'
8765
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776
hardcode_libdir_flag_spec='-L$libdir'
8777
hardcode_minus_L=yes
8778
allow_undefined_flag=unsupported
8779
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8780
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8784
if test "$GCC" = yes; then
8785
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8788
allow_undefined_flag=' -expect_unresolved \*'
8789
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8791
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792
hardcode_libdir_separator=:
8795
osf4* | osf5*) # as osf3* with the addition of -msym flag
8796
if test "$GCC" = yes; then
8797
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8799
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801
allow_undefined_flag=' -expect_unresolved \*'
8802
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8803
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8804
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8806
# Both c and cxx compiler support -rpath directly
8807
hardcode_libdir_flag_spec='-rpath $libdir'
8809
hardcode_libdir_separator=:
8813
no_undefined_flag=' -z text'
8814
if test "$GCC" = yes; then
8816
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825
hardcode_libdir_flag_spec='-R$libdir'
8826
hardcode_shlibpath_var=no
8828
solaris2.[0-5] | solaris2.[0-5].*) ;;
8830
# The compiler driver will combine and reorder linker options,
8831
# but understands `-z linker_flag'. GCC discards it without `$wl',
8832
# but is careful enough not to reorder.
8833
# Supported since Solaris 2.6 (maybe 2.5.1?)
8834
if test "$GCC" = yes; then
8835
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8837
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8841
link_all_deplibs=yes
8845
if test "x$host_vendor" = xsequent; then
8846
# Use $CC to link under sequent, because it throws in some extra .o
8847
# files that make .init and .fini sections work.
8848
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852
hardcode_libdir_flag_spec='-L$libdir'
8854
hardcode_minus_L=yes
8855
hardcode_shlibpath_var=no
8859
case $host_vendor in
8861
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862
hardcode_direct=yes # is this really true???
8865
## LD is ld it makes a PLAMLIB
8866
## CC just makes a GrossModule.
8867
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8868
reload_cmds='$CC -r -o $output$reload_objs'
8872
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876
runpath_var='LD_RUN_PATH'
8877
hardcode_shlibpath_var=no
8881
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882
hardcode_shlibpath_var=no
8883
export_dynamic_flag_spec='-Bexport'
8887
if test -d /usr/nec; then
8888
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889
hardcode_shlibpath_var=no
8890
runpath_var=LD_RUN_PATH
8891
hardcode_runpath_var=yes
8896
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8897
no_undefined_flag='${wl}-z,text'
8898
archive_cmds_need_lc=no
8899
hardcode_shlibpath_var=no
8900
runpath_var='LD_RUN_PATH'
8902
if test "$GCC" = yes; then
8903
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911
sysv5* | sco3.2v5* | sco5v6*)
8912
# Note: We can NOT use -z defs as we might desire, because we do not
8913
# link with -lc, and that would cause any symbols used from libc to
8914
# always be unresolved, which means just about no library would
8915
# ever link correctly. If we're not using GNU ld we use -z text
8916
# though, which does catch some bad symbols but isn't as heavy-handed
8918
no_undefined_flag='${wl}-z,text'
8919
allow_undefined_flag='${wl}-z,nodefs'
8920
archive_cmds_need_lc=no
8921
hardcode_shlibpath_var=no
8922
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8923
hardcode_libdir_separator=':'
8924
link_all_deplibs=yes
8925
export_dynamic_flag_spec='${wl}-Bexport'
8926
runpath_var='LD_RUN_PATH'
8928
if test "$GCC" = yes; then
8929
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8930
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939
hardcode_libdir_flag_spec='-L$libdir'
8940
hardcode_shlibpath_var=no
8949
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8950
echo "${ECHO_T}$ld_shlibs" >&6; }
8951
test "$ld_shlibs" = no && can_build_shared=no
8954
# Do we need to explicitly link libc?
8956
case "x$archive_cmds_need_lc" in
8958
# Assume -lc should be added
8959
archive_cmds_need_lc=yes
8961
if test "$enable_shared" = yes && test "$GCC" = yes; then
8962
case $archive_cmds in
8964
# FIXME: we may have to deal with multi-command sequences.
8967
# Test whether the compiler implicitly links with -lc since on some
8968
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8969
# to ld, don't add -lc before -lgcc.
8970
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8971
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8973
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976
(eval $ac_compile) 2>&5
8978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979
(exit $ac_status); } 2>conftest.err; then
8982
libobjs=conftest.$ac_objext
8984
wl=$lt_prog_compiler_wl
8985
pic_flag=$lt_prog_compiler_pic
8991
lt_save_allow_undefined_flag=$allow_undefined_flag
8992
allow_undefined_flag=
8993
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8994
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997
(exit $ac_status); }
8999
archive_cmds_need_lc=no
9001
archive_cmds_need_lc=yes
9003
allow_undefined_flag=$lt_save_allow_undefined_flag
9005
cat conftest.err 1>&5
9008
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9009
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9016
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9017
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9019
libname_spec='lib$name'
9027
shlibpath_overrides_runpath=unknown
9029
dynamic_linker="$host_os ld.so"
9030
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9032
if test "$GCC" = yes; then
9034
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9035
*) lt_awk_arg="/^libraries:/" ;;
9037
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9039
# if the path contains ";" then we assume it to be the separator
9040
# otherwise default to the standard path separator (i.e. ":") - it is
9041
# assumed that no part of a normal pathname contains ";" but that should
9042
# okay in the real world where ";" in dirpaths is itself problematic.
9043
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9045
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9047
# Ok, now we have the path, separated by spaces, we can step through it
9048
# and add multilib dir if necessary.
9049
lt_tmp_lt_search_path_spec=
9050
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9051
for lt_sys_path in $lt_search_path_spec; do
9052
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9053
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9055
test -d "$lt_sys_path" && \
9056
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9059
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9060
BEGIN {RS=" "; FS="/|\n";} {
9063
for (lt_i = NF; lt_i > 0; lt_i--) {
9064
if ($lt_i != "" && $lt_i != ".") {
9065
if ($lt_i == "..") {
9068
if (lt_count == 0) {
9069
lt_foo="/" $lt_i lt_foo;
9076
if (lt_foo != "") { lt_freq[lt_foo]++; }
9077
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9079
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9081
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9083
need_lib_prefix=unknown
9084
hardcode_into_libs=no
9086
# when you set need_version to no, make sure it does not cause -set_version
9087
# flags to be left without arguments
9088
need_version=unknown
9093
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9094
shlibpath_var=LIBPATH
9096
# AIX 3 has no versioning support, so we append a major version to the name.
9097
soname_spec='${libname}${release}${shared_ext}$major'
9104
hardcode_into_libs=yes
9105
if test "$host_cpu" = ia64; then
9106
# AIX 5 supports IA64
9107
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9108
shlibpath_var=LD_LIBRARY_PATH
9110
# With GCC up to 2.95.x, collect2 would create an import file
9111
# for dependence libraries. The import file would start with
9112
# the line `#! .'. This would cause the generated library to
9113
# depend on `.', always an invalid library. This was fixed in
9114
# development snapshots of GCC prior to 3.0.
9116
aix4 | aix4.[01] | aix4.[01].*)
9117
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9119
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9126
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9127
# soname into executable. Probably we can add versioning support to
9128
# collect2, so additional links can be useful in future.
9129
if test "$aix_use_runtimelinking" = yes; then
9130
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9131
# instead of lib<name>.a to let people know that these are not
9132
# typical AIX shared libraries.
9133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135
# We preserve .a as extension for shared libraries through AIX4.2
9136
# and later when we are not doing run time linking.
9137
library_names_spec='${libname}${release}.a $libname.a'
9138
soname_spec='${libname}${release}${shared_ext}$major'
9140
shlibpath_var=LIBPATH
9145
library_names_spec='$libname.ixlibrary $libname.a'
9146
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9147
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9151
library_names_spec='${libname}${shared_ext}'
9152
dynamic_linker="$host_os ld.so"
9153
shlibpath_var=LIBRARY_PATH
9159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160
soname_spec='${libname}${release}${shared_ext}$major'
9161
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9162
shlibpath_var=LD_LIBRARY_PATH
9163
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9164
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9165
# the default ld.so.conf also contains /usr/contrib/lib and
9166
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9167
# libtool to hard-code these into programs
9170
cygwin* | mingw* | pw32*)
9171
version_type=windows
9176
case $GCC,$host_os in
9177
yes,cygwin* | yes,mingw* | yes,pw32*)
9178
library_names_spec='$libname.dll.a'
9179
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9180
postinstall_cmds='base_file=`basename \${file}`~
9181
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9182
dldir=$destdir/`dirname \$dlpath`~
9183
test -d \$dldir || mkdir -p \$dldir~
9184
$install_prog $dir/$dlname \$dldir/$dlname~
9185
chmod a+x \$dldir/$dlname'
9186
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9187
dlpath=$dir/\$dldll~
9189
shlibpath_overrides_runpath=yes
9193
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9194
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9198
# MinGW DLLs use traditional 'lib' prefix
9199
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9202
# It is most probably a Windows format PATH printed by
9203
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9204
# path with ; separators, and with drive letters. We can handle the
9205
# drive letters (cygwin fileutils understands them), so leave them,
9206
# especially as we might pass files found there to a mingw objdump,
9207
# which wouldn't understand a cygwinified path. Ahh.
9208
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9210
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9214
# pw32 DLLs use 'pw' prefix rather than 'lib'
9215
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9221
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9224
dynamic_linker='Win32 ld.exe'
9225
# FIXME: first we should search . and the directory the executable is in
9229
darwin* | rhapsody*)
9230
dynamic_linker="$host_os dyld"
9234
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9235
soname_spec='${libname}${release}${major}$shared_ext'
9236
shlibpath_overrides_runpath=yes
9237
shlibpath_var=DYLD_LIBRARY_PATH
9238
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9241
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249
soname_spec='${libname}${release}${shared_ext}$major'
9250
shlibpath_var=LD_LIBRARY_PATH
9257
freebsd* | dragonfly*)
9258
# DragonFly does not have aout. When/if they implement a new
9259
# versioning mechanism, adjust this.
9260
if test -x /usr/bin/objformat; then
9261
objformat=`/usr/bin/objformat`
9264
freebsd[123]*) objformat=aout ;;
9268
version_type=freebsd-$objformat
9269
case $version_type in
9271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9280
shlibpath_var=LD_LIBRARY_PATH
9283
shlibpath_overrides_runpath=yes
9285
freebsd3.[01]* | freebsdelf3.[01]*)
9286
shlibpath_overrides_runpath=yes
9287
hardcode_into_libs=yes
9289
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291
shlibpath_overrides_runpath=no
9292
hardcode_into_libs=yes
9294
*) # from 4.6 on, and DragonFly
9295
shlibpath_overrides_runpath=yes
9296
hardcode_into_libs=yes
9305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306
soname_spec='${libname}${release}${shared_ext}$major'
9307
shlibpath_var=LD_LIBRARY_PATH
9308
hardcode_into_libs=yes
9311
hpux9* | hpux10* | hpux11*)
9312
# Give a soname corresponding to the major version so that dld.sl refuses to
9313
# link against other versions.
9320
hardcode_into_libs=yes
9321
dynamic_linker="$host_os dld.so"
9322
shlibpath_var=LD_LIBRARY_PATH
9323
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325
soname_spec='${libname}${release}${shared_ext}$major'
9326
if test "X$HPUX_IA64_MODE" = X32; then
9327
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9329
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9331
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9335
hardcode_into_libs=yes
9336
dynamic_linker="$host_os dld.sl"
9337
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340
soname_spec='${libname}${release}${shared_ext}$major'
9341
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9346
dynamic_linker="$host_os dld.sl"
9347
shlibpath_var=SHLIB_PATH
9348
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350
soname_spec='${libname}${release}${shared_ext}$major'
9353
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9354
postinstall_cmds='chmod 555 $lib'
9361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362
soname_spec='${libname}${release}${shared_ext}$major'
9363
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364
shlibpath_var=LD_LIBRARY_PATH
9365
shlibpath_overrides_runpath=no
9366
hardcode_into_libs=yes
9369
irix5* | irix6* | nonstopux*)
9371
nonstopux*) version_type=nonstopux ;;
9373
if test "$lt_cv_prog_gnu_ld" = yes; then
9381
soname_spec='${libname}${release}${shared_ext}$major'
9382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9384
irix5* | nonstopux*)
9388
case $LD in # libtool.m4 will add one of these switches to LD
9389
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390
libsuff= shlibsuff= libmagic=32-bit;;
9391
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392
libsuff=32 shlibsuff=N32 libmagic=N32;;
9393
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395
*) libsuff= shlibsuff= libmagic=never-match;;
9399
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400
shlibpath_overrides_runpath=no
9401
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403
hardcode_into_libs=yes
9406
# No shared lib support for Linux oldld, aout, or coff.
9407
linux*oldld* | linux*aout* | linux*coff*)
9411
# This must be Linux ELF.
9412
linux* | k*bsd*-gnu)
9416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417
soname_spec='${libname}${release}${shared_ext}$major'
9418
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419
shlibpath_var=LD_LIBRARY_PATH
9420
shlibpath_overrides_runpath=no
9421
# This implies no fast_install, which is unacceptable.
9422
# Some rework will be needed to allow for fast_install
9423
# before this can be enabled.
9424
hardcode_into_libs=yes
9426
# Append ld.so.conf contents to the search path
9427
if test -f /etc/ld.so.conf; then
9428
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9429
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9432
# We used to test for /lib/ld.so.1 and disable shared libraries on
9433
# powerpc, because MkLinux only supported shared libraries with the
9434
# GNU dynamic linker. Since this was broken with cross compilers,
9435
# most powerpc-linux boxes support dynamic linking these days and
9436
# people can always --disable-shared, the test was removed, and we
9437
# assume the GNU/Linux dynamic linker is in use.
9438
dynamic_linker='GNU/Linux ld.so'
9445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446
soname_spec='${libname}${release}${shared_ext}$major'
9447
shlibpath_var=LD_LIBRARY_PATH
9448
shlibpath_overrides_runpath=no
9449
hardcode_into_libs=yes
9450
dynamic_linker='NetBSD ld.elf_so'
9457
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460
dynamic_linker='NetBSD (a.out) ld.so'
9462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463
soname_spec='${libname}${release}${shared_ext}$major'
9464
dynamic_linker='NetBSD ld.elf_so'
9466
shlibpath_var=LD_LIBRARY_PATH
9467
shlibpath_overrides_runpath=yes
9468
hardcode_into_libs=yes
9473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474
shlibpath_var=LD_LIBRARY_PATH
9475
shlibpath_overrides_runpath=yes
9482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483
soname_spec='${libname}${release}${shared_ext}$major'
9484
shlibpath_var=LD_LIBRARY_PATH
9485
shlibpath_overrides_runpath=yes
9490
sys_lib_dlsearch_path_spec="/usr/lib"
9492
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9494
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9495
*) need_version=no ;;
9497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499
shlibpath_var=LD_LIBRARY_PATH
9500
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9502
openbsd2.[89] | openbsd2.[89].*)
9503
shlibpath_overrides_runpath=no
9506
shlibpath_overrides_runpath=yes
9510
shlibpath_overrides_runpath=yes
9515
libname_spec='$name'
9518
library_names_spec='$libname${shared_ext} $libname.a'
9519
dynamic_linker='OS/2 ld.exe'
9520
shlibpath_var=LIBPATH
9523
osf3* | osf4* | osf5*)
9527
soname_spec='${libname}${release}${shared_ext}$major'
9528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529
shlibpath_var=LD_LIBRARY_PATH
9530
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9531
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543
soname_spec='${libname}${release}${shared_ext}$major'
9544
shlibpath_var=LD_LIBRARY_PATH
9545
shlibpath_overrides_runpath=yes
9546
hardcode_into_libs=yes
9547
# ldd complains unless libraries are executable
9548
postinstall_cmds='chmod +x $lib'
9553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555
shlibpath_var=LD_LIBRARY_PATH
9556
shlibpath_overrides_runpath=yes
9557
if test "$with_gnu_ld" = yes; then
9565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566
soname_spec='${libname}${release}${shared_ext}$major'
9567
shlibpath_var=LD_LIBRARY_PATH
9568
case $host_vendor in
9570
shlibpath_overrides_runpath=no
9572
export_dynamic_flag_spec='${wl}-Blargedynsym'
9573
runpath_var=LD_RUN_PATH
9581
shlibpath_overrides_runpath=no
9582
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9588
if test -d /usr/nec ;then
9590
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591
soname_spec='$libname${shared_ext}.$major'
9592
shlibpath_var=LD_LIBRARY_PATH
9596
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9597
version_type=freebsd-elf
9600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601
soname_spec='${libname}${release}${shared_ext}$major'
9602
shlibpath_var=LD_LIBRARY_PATH
9603
hardcode_into_libs=yes
9604
if test "$with_gnu_ld" = yes; then
9605
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9606
shlibpath_overrides_runpath=no
9608
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9609
shlibpath_overrides_runpath=yes
9612
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9616
sys_lib_dlsearch_path_spec='/usr/lib'
9621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622
soname_spec='${libname}${release}${shared_ext}$major'
9623
shlibpath_var=LD_LIBRARY_PATH
9630
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9631
echo "${ECHO_T}$dynamic_linker" >&6; }
9632
test "$dynamic_linker" = no && can_build_shared=no
9634
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9635
echo $ECHO_N "(cached) $ECHO_C" >&6
9637
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9640
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9641
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9642
echo $ECHO_N "(cached) $ECHO_C" >&6
9644
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9647
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9649
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9650
if test "$GCC" = yes; then
9651
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9654
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9655
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9657
if test -n "$hardcode_libdir_flag_spec" || \
9658
test -n "$runpath_var" || \
9659
test "X$hardcode_automatic" = "Xyes" ; then
9661
# We can hardcode non-existant directories.
9662
if test "$hardcode_direct" != no &&
9663
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9664
# have to relink, otherwise we might link with an installed library
9665
# when we should be linking with a yet-to-be-installed one
9666
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9667
test "$hardcode_minus_L" != no; then
9668
# Linking always hardcodes the temporary library directory.
9669
hardcode_action=relink
9671
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9672
hardcode_action=immediate
9675
# We cannot hardcode anything, or else we can only hardcode existing
9677
hardcode_action=unsupported
9679
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9680
echo "${ECHO_T}$hardcode_action" >&6; }
9682
if test "$hardcode_action" = relink; then
9683
# Fast installation is not supported
9684
enable_fast_install=no
9685
elif test "$shlibpath_overrides_runpath" = yes ||
9686
test "$enable_shared" = no; then
9687
# Fast installation is not necessary
9688
enable_fast_install=needless
9693
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9694
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9695
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9696
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9697
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9698
{ echo "$as_me:$LINENO: result: yes" >&5
9699
echo "${ECHO_T}yes" >&6; }
9701
# FIXME - insert some real tests, host_os isn't really good enough
9704
if test -n "$STRIP" ; then
9705
striplib="$STRIP -x"
9706
old_striplib="$STRIP -S"
9707
{ echo "$as_me:$LINENO: result: yes" >&5
9708
echo "${ECHO_T}yes" >&6; }
9710
{ echo "$as_me:$LINENO: result: no" >&5
9711
echo "${ECHO_T}no" >&6; }
9715
{ echo "$as_me:$LINENO: result: no" >&5
9716
echo "${ECHO_T}no" >&6; }
9721
if test "x$enable_dlopen" != xyes; then
9722
enable_dlopen=unknown
9723
enable_dlopen_self=unknown
9724
enable_dlopen_self_static=unknown
9731
lt_cv_dlopen="load_add_on"
9733
lt_cv_dlopen_self=yes
9737
lt_cv_dlopen="LoadLibrary"
9742
lt_cv_dlopen="dlopen"
9747
# if libdl is installed we need to link against it
9748
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751
echo $ECHO_N "(cached) $ECHO_C" >&6
9753
ac_check_lib_save_LIBS=$LIBS
9755
cat >conftest.$ac_ext <<_ACEOF
9758
cat confdefs.h >>conftest.$ac_ext
9759
cat >>conftest.$ac_ext <<_ACEOF
9760
/* end confdefs.h. */
9762
/* Override any GCC internal prototype to avoid an error.
9763
Use char because int might match the return type of a GCC
9764
builtin and then its argument prototype would still apply. */
9777
rm -f conftest.$ac_objext conftest$ac_exeext
9778
if { (ac_try="$ac_link"
9780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781
*) ac_try_echo=$ac_try;;
9783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784
(eval "$ac_link") 2>conftest.er1
9786
grep -v '^ *+' conftest.er1 >conftest.err
9788
cat conftest.err >&5
9789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
(exit $ac_status); } && {
9791
test -z "$ac_c_werror_flag" ||
9792
test ! -s conftest.err
9793
} && test -s conftest$ac_exeext &&
9794
$as_test_x conftest$ac_exeext; then
9795
ac_cv_lib_dl_dlopen=yes
9797
echo "$as_me: failed program was:" >&5
9798
sed 's/^/| /' conftest.$ac_ext >&5
9800
ac_cv_lib_dl_dlopen=no
9803
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804
conftest$ac_exeext conftest.$ac_ext
9805
LIBS=$ac_check_lib_save_LIBS
9807
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9808
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9809
if test $ac_cv_lib_dl_dlopen = yes; then
9810
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9815
lt_cv_dlopen_self=yes
9822
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9823
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9824
if test "${ac_cv_func_shl_load+set}" = set; then
9825
echo $ECHO_N "(cached) $ECHO_C" >&6
9827
cat >conftest.$ac_ext <<_ACEOF
9830
cat confdefs.h >>conftest.$ac_ext
9831
cat >>conftest.$ac_ext <<_ACEOF
9832
/* end confdefs.h. */
9833
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9834
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9835
#define shl_load innocuous_shl_load
9837
/* System header to define __stub macros and hopefully few prototypes,
9838
which can conflict with char shl_load (); below.
9839
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840
<limits.h> exists even on freestanding compilers. */
9843
# include <limits.h>
9845
# include <assert.h>
9850
/* Override any GCC internal prototype to avoid an error.
9851
Use char because int might match the return type of a GCC
9852
builtin and then its argument prototype would still apply. */
9857
/* The GNU C library defines this for functions which it implements
9858
to always fail with ENOSYS. Some functions are actually named
9859
something starting with __ and the normal name is an alias. */
9860
#if defined __stub_shl_load || defined __stub___shl_load
9872
rm -f conftest.$ac_objext conftest$ac_exeext
9873
if { (ac_try="$ac_link"
9875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876
*) ac_try_echo=$ac_try;;
9878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879
(eval "$ac_link") 2>conftest.er1
9881
grep -v '^ *+' conftest.er1 >conftest.err
9883
cat conftest.err >&5
9884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885
(exit $ac_status); } && {
9886
test -z "$ac_c_werror_flag" ||
9887
test ! -s conftest.err
9888
} && test -s conftest$ac_exeext &&
9889
$as_test_x conftest$ac_exeext; then
9890
ac_cv_func_shl_load=yes
9892
echo "$as_me: failed program was:" >&5
9893
sed 's/^/| /' conftest.$ac_ext >&5
9895
ac_cv_func_shl_load=no
9898
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899
conftest$ac_exeext conftest.$ac_ext
9901
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9902
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9903
if test $ac_cv_func_shl_load = yes; then
9904
lt_cv_dlopen="shl_load"
9906
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9907
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9908
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9909
echo $ECHO_N "(cached) $ECHO_C" >&6
9911
ac_check_lib_save_LIBS=$LIBS
9913
cat >conftest.$ac_ext <<_ACEOF
9916
cat confdefs.h >>conftest.$ac_ext
9917
cat >>conftest.$ac_ext <<_ACEOF
9918
/* end confdefs.h. */
9920
/* Override any GCC internal prototype to avoid an error.
9921
Use char because int might match the return type of a GCC
9922
builtin and then its argument prototype would still apply. */
9935
rm -f conftest.$ac_objext conftest$ac_exeext
9936
if { (ac_try="$ac_link"
9938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939
*) ac_try_echo=$ac_try;;
9941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942
(eval "$ac_link") 2>conftest.er1
9944
grep -v '^ *+' conftest.er1 >conftest.err
9946
cat conftest.err >&5
9947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948
(exit $ac_status); } && {
9949
test -z "$ac_c_werror_flag" ||
9950
test ! -s conftest.err
9951
} && test -s conftest$ac_exeext &&
9952
$as_test_x conftest$ac_exeext; then
9953
ac_cv_lib_dld_shl_load=yes
9955
echo "$as_me: failed program was:" >&5
9956
sed 's/^/| /' conftest.$ac_ext >&5
9958
ac_cv_lib_dld_shl_load=no
9961
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962
conftest$ac_exeext conftest.$ac_ext
9963
LIBS=$ac_check_lib_save_LIBS
9965
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9966
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9967
if test $ac_cv_lib_dld_shl_load = yes; then
9968
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9970
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9971
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9972
if test "${ac_cv_func_dlopen+set}" = set; then
9973
echo $ECHO_N "(cached) $ECHO_C" >&6
9975
cat >conftest.$ac_ext <<_ACEOF
9978
cat confdefs.h >>conftest.$ac_ext
9979
cat >>conftest.$ac_ext <<_ACEOF
9980
/* end confdefs.h. */
9981
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9982
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9983
#define dlopen innocuous_dlopen
9985
/* System header to define __stub macros and hopefully few prototypes,
9986
which can conflict with char dlopen (); below.
9987
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988
<limits.h> exists even on freestanding compilers. */
9991
# include <limits.h>
9993
# include <assert.h>
9998
/* Override any GCC internal prototype to avoid an error.
9999
Use char because int might match the return type of a GCC
10000
builtin and then its argument prototype would still apply. */
10005
/* The GNU C library defines this for functions which it implements
10006
to always fail with ENOSYS. Some functions are actually named
10007
something starting with __ and the normal name is an alias. */
10008
#if defined __stub_dlopen || defined __stub___dlopen
10020
rm -f conftest.$ac_objext conftest$ac_exeext
10021
if { (ac_try="$ac_link"
10022
case "(($ac_try" in
10023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024
*) ac_try_echo=$ac_try;;
10026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027
(eval "$ac_link") 2>conftest.er1
10029
grep -v '^ *+' conftest.er1 >conftest.err
10031
cat conftest.err >&5
10032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
(exit $ac_status); } && {
10034
test -z "$ac_c_werror_flag" ||
10035
test ! -s conftest.err
10036
} && test -s conftest$ac_exeext &&
10037
$as_test_x conftest$ac_exeext; then
10038
ac_cv_func_dlopen=yes
10040
echo "$as_me: failed program was:" >&5
10041
sed 's/^/| /' conftest.$ac_ext >&5
10043
ac_cv_func_dlopen=no
10046
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10047
conftest$ac_exeext conftest.$ac_ext
10049
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10051
if test $ac_cv_func_dlopen = yes; then
10052
lt_cv_dlopen="dlopen"
10054
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10056
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057
echo $ECHO_N "(cached) $ECHO_C" >&6
10059
ac_check_lib_save_LIBS=$LIBS
10061
cat >conftest.$ac_ext <<_ACEOF
10064
cat confdefs.h >>conftest.$ac_ext
10065
cat >>conftest.$ac_ext <<_ACEOF
10066
/* end confdefs.h. */
10068
/* Override any GCC internal prototype to avoid an error.
10069
Use char because int might match the return type of a GCC
10070
builtin and then its argument prototype would still apply. */
10083
rm -f conftest.$ac_objext conftest$ac_exeext
10084
if { (ac_try="$ac_link"
10085
case "(($ac_try" in
10086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087
*) ac_try_echo=$ac_try;;
10089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090
(eval "$ac_link") 2>conftest.er1
10092
grep -v '^ *+' conftest.er1 >conftest.err
10094
cat conftest.err >&5
10095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096
(exit $ac_status); } && {
10097
test -z "$ac_c_werror_flag" ||
10098
test ! -s conftest.err
10099
} && test -s conftest$ac_exeext &&
10100
$as_test_x conftest$ac_exeext; then
10101
ac_cv_lib_dl_dlopen=yes
10103
echo "$as_me: failed program was:" >&5
10104
sed 's/^/| /' conftest.$ac_ext >&5
10106
ac_cv_lib_dl_dlopen=no
10109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110
conftest$ac_exeext conftest.$ac_ext
10111
LIBS=$ac_check_lib_save_LIBS
10113
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10115
if test $ac_cv_lib_dl_dlopen = yes; then
10116
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10118
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10119
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10120
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10121
echo $ECHO_N "(cached) $ECHO_C" >&6
10123
ac_check_lib_save_LIBS=$LIBS
10124
LIBS="-lsvld $LIBS"
10125
cat >conftest.$ac_ext <<_ACEOF
10128
cat confdefs.h >>conftest.$ac_ext
10129
cat >>conftest.$ac_ext <<_ACEOF
10130
/* end confdefs.h. */
10132
/* Override any GCC internal prototype to avoid an error.
10133
Use char because int might match the return type of a GCC
10134
builtin and then its argument prototype would still apply. */
10147
rm -f conftest.$ac_objext conftest$ac_exeext
10148
if { (ac_try="$ac_link"
10149
case "(($ac_try" in
10150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151
*) ac_try_echo=$ac_try;;
10153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154
(eval "$ac_link") 2>conftest.er1
10156
grep -v '^ *+' conftest.er1 >conftest.err
10158
cat conftest.err >&5
10159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160
(exit $ac_status); } && {
10161
test -z "$ac_c_werror_flag" ||
10162
test ! -s conftest.err
10163
} && test -s conftest$ac_exeext &&
10164
$as_test_x conftest$ac_exeext; then
10165
ac_cv_lib_svld_dlopen=yes
10167
echo "$as_me: failed program was:" >&5
10168
sed 's/^/| /' conftest.$ac_ext >&5
10170
ac_cv_lib_svld_dlopen=no
10173
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10174
conftest$ac_exeext conftest.$ac_ext
10175
LIBS=$ac_check_lib_save_LIBS
10177
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10178
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10179
if test $ac_cv_lib_svld_dlopen = yes; then
10180
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10182
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10184
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185
echo $ECHO_N "(cached) $ECHO_C" >&6
10187
ac_check_lib_save_LIBS=$LIBS
10189
cat >conftest.$ac_ext <<_ACEOF
10192
cat confdefs.h >>conftest.$ac_ext
10193
cat >>conftest.$ac_ext <<_ACEOF
10194
/* end confdefs.h. */
10196
/* Override any GCC internal prototype to avoid an error.
10197
Use char because int might match the return type of a GCC
10198
builtin and then its argument prototype would still apply. */
10206
return dld_link ();
10211
rm -f conftest.$ac_objext conftest$ac_exeext
10212
if { (ac_try="$ac_link"
10213
case "(($ac_try" in
10214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215
*) ac_try_echo=$ac_try;;
10217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218
(eval "$ac_link") 2>conftest.er1
10220
grep -v '^ *+' conftest.er1 >conftest.err
10222
cat conftest.err >&5
10223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224
(exit $ac_status); } && {
10225
test -z "$ac_c_werror_flag" ||
10226
test ! -s conftest.err
10227
} && test -s conftest$ac_exeext &&
10228
$as_test_x conftest$ac_exeext; then
10229
ac_cv_lib_dld_dld_link=yes
10231
echo "$as_me: failed program was:" >&5
10232
sed 's/^/| /' conftest.$ac_ext >&5
10234
ac_cv_lib_dld_dld_link=no
10237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238
conftest$ac_exeext conftest.$ac_ext
10239
LIBS=$ac_check_lib_save_LIBS
10241
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243
if test $ac_cv_lib_dld_dld_link = yes; then
10244
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10265
if test "x$lt_cv_dlopen" != xno; then
10271
case $lt_cv_dlopen in
10273
save_CPPFLAGS="$CPPFLAGS"
10274
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10276
save_LDFLAGS="$LDFLAGS"
10277
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10280
LIBS="$lt_cv_dlopen_libs $LIBS"
10282
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10283
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10284
if test "${lt_cv_dlopen_self+set}" = set; then
10285
echo $ECHO_N "(cached) $ECHO_C" >&6
10287
if test "$cross_compiling" = yes; then :
10288
lt_cv_dlopen_self=cross
10290
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291
lt_status=$lt_dlunknown
10292
cat > conftest.$ac_ext <<EOF
10293
#line 10293 "configure"
10294
#include "confdefs.h"
10303
# define LT_DLGLOBAL RTLD_GLOBAL
10306
# define LT_DLGLOBAL DL_GLOBAL
10308
# define LT_DLGLOBAL 0
10312
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313
find out it does not work in some platform. */
10314
#ifndef LT_DLLAZY_OR_NOW
10316
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10319
# define LT_DLLAZY_OR_NOW DL_LAZY
10322
# define LT_DLLAZY_OR_NOW RTLD_NOW
10325
# define LT_DLLAZY_OR_NOW DL_NOW
10327
# define LT_DLLAZY_OR_NOW 0
10335
extern "C" void exit (int);
10338
void fnord() { int i=42;}
10341
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342
int status = $lt_dlunknown;
10346
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10347
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348
/* dlclose (self); */
10356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357
(eval $ac_link) 2>&5
10359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361
(./conftest; exit; ) >&5 2>/dev/null
10363
case x$lt_status in
10364
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10365
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10366
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10369
# compilation failed
10370
lt_cv_dlopen_self=no
10377
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10378
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10380
if test "x$lt_cv_dlopen_self" = xyes; then
10381
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10382
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10383
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10384
if test "${lt_cv_dlopen_self_static+set}" = set; then
10385
echo $ECHO_N "(cached) $ECHO_C" >&6
10387
if test "$cross_compiling" = yes; then :
10388
lt_cv_dlopen_self_static=cross
10390
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10391
lt_status=$lt_dlunknown
10392
cat > conftest.$ac_ext <<EOF
10393
#line 10393 "configure"
10394
#include "confdefs.h"
10403
# define LT_DLGLOBAL RTLD_GLOBAL
10406
# define LT_DLGLOBAL DL_GLOBAL
10408
# define LT_DLGLOBAL 0
10412
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10413
find out it does not work in some platform. */
10414
#ifndef LT_DLLAZY_OR_NOW
10416
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10419
# define LT_DLLAZY_OR_NOW DL_LAZY
10422
# define LT_DLLAZY_OR_NOW RTLD_NOW
10425
# define LT_DLLAZY_OR_NOW DL_NOW
10427
# define LT_DLLAZY_OR_NOW 0
10435
extern "C" void exit (int);
10438
void fnord() { int i=42;}
10441
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442
int status = $lt_dlunknown;
10446
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10447
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10448
/* dlclose (self); */
10456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457
(eval $ac_link) 2>&5
10459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10461
(./conftest; exit; ) >&5 2>/dev/null
10463
case x$lt_status in
10464
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10465
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10466
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10469
# compilation failed
10470
lt_cv_dlopen_self_static=no
10477
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10478
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10481
CPPFLAGS="$save_CPPFLAGS"
10482
LDFLAGS="$save_LDFLAGS"
10487
case $lt_cv_dlopen_self in
10488
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10489
*) enable_dlopen_self=unknown ;;
10492
case $lt_cv_dlopen_self_static in
10493
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10494
*) enable_dlopen_self_static=unknown ;;
10499
# Report which library types will actually be built
10500
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10501
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10502
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10503
echo "${ECHO_T}$can_build_shared" >&6; }
10505
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10506
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10507
test "$can_build_shared" = "no" && enable_shared=no
10509
# On AIX, shared libraries and static libraries use the same namespace, and
10510
# are all built from PIC.
10513
test "$enable_shared" = yes && enable_static=no
10514
if test -n "$RANLIB"; then
10515
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10516
postinstall_cmds='$RANLIB $lib'
10521
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10522
test "$enable_shared" = yes && enable_static=no
10526
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10527
echo "${ECHO_T}$enable_shared" >&6; }
10529
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10530
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10531
# Make sure either enable_shared or enable_static is yes.
10532
test "$enable_shared" = yes || enable_static=yes
10533
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10534
echo "${ECHO_T}$enable_static" >&6; }
10536
# The else clause should only fire when bootstrapping the
10537
# libtool distribution, otherwise you forgot to ship ltmain.sh
10538
# with your package, and you will get complaints that there are
10539
# no rules to generate ltmain.sh.
10540
if test -f "$ltmain"; then
10541
# See if we are running on zsh, and set the options which allow our commands through
10542
# without removal of \ escapes.
10543
if test -n "${ZSH_VERSION+set}" ; then
10544
setopt NO_GLOB_SUBST
10546
# Now quote all the things that may contain metacharacters while being
10547
# careful not to overquote the AC_SUBSTed values. We take copies of the
10548
# variables and quote the copies for generation of the libtool script.
10549
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10551
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10552
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10553
deplibs_check_method reload_flag reload_cmds need_locks \
10554
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10555
lt_cv_sys_global_symbol_to_c_name_address \
10556
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10557
old_postinstall_cmds old_postuninstall_cmds \
10561
lt_prog_compiler_wl \
10562
lt_prog_compiler_pic \
10563
lt_prog_compiler_static \
10564
lt_prog_compiler_no_builtin_flag \
10565
export_dynamic_flag_spec \
10566
thread_safe_flag_spec \
10567
whole_archive_flag_spec \
10568
enable_shared_with_static_runtimes \
10570
old_archive_from_new_cmds \
10575
compiler_lib_search_path \
10576
compiler_lib_search_dirs \
10578
archive_expsym_cmds \
10580
postuninstall_cmds \
10581
old_archive_from_expsyms_cmds \
10582
allow_undefined_flag \
10583
no_undefined_flag \
10584
export_symbols_cmds \
10585
hardcode_libdir_flag_spec \
10586
hardcode_libdir_flag_spec_ld \
10587
hardcode_libdir_separator \
10588
hardcode_automatic \
10590
module_expsym_cmds \
10591
lt_cv_prog_compiler_c_o \
10594
include_expsyms; do
10597
old_archive_cmds | \
10598
old_archive_from_new_cmds | \
10600
archive_expsym_cmds | \
10602
module_expsym_cmds | \
10603
old_archive_from_expsyms_cmds | \
10604
export_symbols_cmds | \
10605
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10606
postinstall_cmds | postuninstall_cmds | \
10607
old_postinstall_cmds | old_postuninstall_cmds | \
10608
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10609
# Double-quote double-evaled strings.
10610
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10613
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10619
*'\$0 --fallback-echo"')
10620
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10624
cfgfile="${ofile}T"
10625
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10627
{ echo "$as_me:$LINENO: creating $ofile" >&5
10628
echo "$as_me: creating $ofile" >&6;}
10630
cat <<__EOF__ >> "$cfgfile"
10633
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10634
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10635
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10637
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10638
# Free Software Foundation, Inc.
10640
# This file is part of GNU Libtool:
10641
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10643
# This program is free software; you can redistribute it and/or modify
10644
# it under the terms of the GNU General Public License as published by
10645
# the Free Software Foundation; either version 2 of the License, or
10646
# (at your option) any later version.
10648
# This program is distributed in the hope that it will be useful, but
10649
# WITHOUT ANY WARRANTY; without even the implied warranty of
10650
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10651
# General Public License for more details.
10653
# You should have received a copy of the GNU General Public License
10654
# along with this program; if not, write to the Free Software
10655
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10657
# As a special exception to the GNU General Public License, if you
10658
# distribute this file as part of a program that contains a
10659
# configuration script generated by Autoconf, you may include it under
10660
# the same distribution terms that you use for the rest of that program.
10662
# A sed program that does not truncate output.
10665
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10666
Xsed="$SED -e 1s/^X//"
10668
# The HP-UX ksh and POSIX shell print the target directory to stdout
10669
# if CDPATH is set.
10670
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10672
# The names of the tagged configurations supported by this script.
10675
# ### BEGIN LIBTOOL CONFIG
10677
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10679
# Shell to use when invoking shell scripts.
10682
# Whether or not to build shared libraries.
10683
build_libtool_libs=$enable_shared
10685
# Whether or not to build static libraries.
10686
build_old_libs=$enable_static
10688
# Whether or not to add -lc for building shared libraries.
10689
build_libtool_need_lc=$archive_cmds_need_lc
10691
# Whether or not to disallow shared libs when runtime libs are static
10692
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10694
# Whether or not to optimize for fast installation.
10695
fast_install=$enable_fast_install
10698
host_alias=$host_alias
10702
# The build system.
10703
build_alias=$build_alias
10707
# An echo program that does not interpret backslashes.
10712
AR_FLAGS=$lt_AR_FLAGS
10717
# LTCC compiler flags.
10718
LTCFLAGS=$lt_LTCFLAGS
10720
# A language-specific compiler.
10723
# Is the compiler the GNU C compiler?
10729
# The linker used to build libraries.
10732
# Whether we need hard or soft links.
10735
# A BSD-compatible nm program.
10738
# A symbol stripping program
10741
# Used to examine libraries when file_magic_cmd begins "file"
10742
MAGIC_CMD=$MAGIC_CMD
10744
# Used on cygwin: DLL creation program.
10747
# Used on cygwin: object dumper.
10750
# Used on cygwin: assembler.
10753
# The name of the directory that contains temporary libtool files.
10756
# How to create reloadable object files.
10757
reload_flag=$lt_reload_flag
10758
reload_cmds=$lt_reload_cmds
10760
# How to pass a linker flag through the compiler.
10761
wl=$lt_lt_prog_compiler_wl
10763
# Object file suffix (normally "o").
10764
objext="$ac_objext"
10766
# Old archive suffix (normally "a").
10769
# Shared library suffix (normally ".so").
10770
shrext_cmds='$shrext_cmds'
10772
# Executable file suffix (normally "").
10775
# Additional compiler flags for building library objects.
10776
pic_flag=$lt_lt_prog_compiler_pic
10779
# What is the maximum length of a command?
10780
max_cmd_len=$lt_cv_sys_max_cmd_len
10782
# Does compiler simultaneously support -c and -o options?
10783
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10785
# Must we lock files when doing compilation?
10786
need_locks=$lt_need_locks
10788
# Do we need the lib prefix for modules?
10789
need_lib_prefix=$need_lib_prefix
10791
# Do we need a version for libraries?
10792
need_version=$need_version
10794
# Whether dlopen is supported.
10795
dlopen_support=$enable_dlopen
10797
# Whether dlopen of programs is supported.
10798
dlopen_self=$enable_dlopen_self
10800
# Whether dlopen of statically linked programs is supported.
10801
dlopen_self_static=$enable_dlopen_self_static
10803
# Compiler flag to prevent dynamic linking.
10804
link_static_flag=$lt_lt_prog_compiler_static
10806
# Compiler flag to turn off builtin functions.
10807
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10809
# Compiler flag to allow reflexive dlopens.
10810
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10812
# Compiler flag to generate shared objects directly from archives.
10813
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10815
# Compiler flag to generate thread-safe objects.
10816
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10818
# Library versioning type.
10819
version_type=$version_type
10821
# Format of library name prefix.
10822
libname_spec=$lt_libname_spec
10824
# List of archive names. First name is the real one, the rest are links.
10825
# The last name is the one that the linker finds with -lNAME.
10826
library_names_spec=$lt_library_names_spec
10828
# The coded name of the library, if different from the real name.
10829
soname_spec=$lt_soname_spec
10831
# Commands used to build and install an old-style archive.
10833
old_archive_cmds=$lt_old_archive_cmds
10834
old_postinstall_cmds=$lt_old_postinstall_cmds
10835
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10837
# Create an old-style archive from a shared archive.
10838
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10840
# Create a temporary old-style archive to link instead of a shared archive.
10841
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10843
# Commands used to build and install a shared archive.
10844
archive_cmds=$lt_archive_cmds
10845
archive_expsym_cmds=$lt_archive_expsym_cmds
10846
postinstall_cmds=$lt_postinstall_cmds
10847
postuninstall_cmds=$lt_postuninstall_cmds
10849
# Commands used to build a loadable module (assumed same as above if empty)
10850
module_cmds=$lt_module_cmds
10851
module_expsym_cmds=$lt_module_expsym_cmds
10853
# Commands to strip libraries.
10854
old_striplib=$lt_old_striplib
10855
striplib=$lt_striplib
10857
# Dependencies to place before the objects being linked to create a
10859
predep_objects=$lt_predep_objects
10861
# Dependencies to place after the objects being linked to create a
10863
postdep_objects=$lt_postdep_objects
10865
# Dependencies to place before the objects being linked to create a
10867
predeps=$lt_predeps
10869
# Dependencies to place after the objects being linked to create a
10871
postdeps=$lt_postdeps
10873
# The directories searched by this compiler when creating a shared
10875
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10877
# The library search path used internally by the compiler when linking
10878
# a shared library.
10879
compiler_lib_search_path=$lt_compiler_lib_search_path
10881
# Method to check whether dependent libraries are shared objects.
10882
deplibs_check_method=$lt_deplibs_check_method
10884
# Command to use when deplibs_check_method == file_magic.
10885
file_magic_cmd=$lt_file_magic_cmd
10887
# Flag that allows shared libraries with undefined symbols to be built.
10888
allow_undefined_flag=$lt_allow_undefined_flag
10890
# Flag that forces no undefined symbols.
10891
no_undefined_flag=$lt_no_undefined_flag
10893
# Commands used to finish a libtool library installation in a directory.
10894
finish_cmds=$lt_finish_cmds
10896
# Same as above, but a single script fragment to be evaled but not shown.
10897
finish_eval=$lt_finish_eval
10899
# Take the output of nm and produce a listing of raw symbols and C names.
10900
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10902
# Transform the output of nm in a proper C declaration
10903
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10905
# Transform the output of nm in a C name address pair
10906
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10908
# This is the shared library runtime path variable.
10909
runpath_var=$runpath_var
10911
# This is the shared library path variable.
10912
shlibpath_var=$shlibpath_var
10914
# Is shlibpath searched before the hard-coded library search path?
10915
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10917
# How to hardcode a shared library path into an executable.
10918
hardcode_action=$hardcode_action
10920
# Whether we should hardcode library paths into libraries.
10921
hardcode_into_libs=$hardcode_into_libs
10923
# Flag to hardcode \$libdir into a binary during linking.
10924
# This must work even if \$libdir does not exist.
10925
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10927
# If ld is used when linking, flag to hardcode \$libdir into
10928
# a binary during linking. This must work even if \$libdir does
10930
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10932
# Whether we need a single -rpath flag with a separated argument.
10933
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10935
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10936
# resulting binary.
10937
hardcode_direct=$hardcode_direct
10939
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10940
# resulting binary.
10941
hardcode_minus_L=$hardcode_minus_L
10943
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10944
# the resulting binary.
10945
hardcode_shlibpath_var=$hardcode_shlibpath_var
10947
# Set to yes if building a shared library automatically hardcodes DIR into the library
10948
# and all subsequent libraries and executables linked against it.
10949
hardcode_automatic=$hardcode_automatic
10951
# Variables whose values should be saved in libtool wrapper scripts and
10952
# restored at relink time.
10953
variables_saved_for_relink="$variables_saved_for_relink"
10955
# Whether libtool must link a program against all its dependency libraries.
10956
link_all_deplibs=$link_all_deplibs
10958
# Compile-time system search path for libraries
10959
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10961
# Run-time system search path for libraries
10962
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10964
# Fix the shell variable \$srcfile for the compiler.
10965
fix_srcfile_path=$lt_fix_srcfile_path
10967
# Set to yes if exported symbols are required.
10968
always_export_symbols=$always_export_symbols
10970
# The commands to list exported symbols.
10971
export_symbols_cmds=$lt_export_symbols_cmds
10973
# The commands to extract the exported symbol list from a shared archive.
10974
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10976
# Symbols that should not be listed in the preloaded symbols.
10977
exclude_expsyms=$lt_exclude_expsyms
10979
# Symbols that must always be exported.
10980
include_expsyms=$lt_include_expsyms
10982
# ### END LIBTOOL CONFIG
10989
cat <<\EOF >> "$cfgfile"
10991
# AIX sometimes has problems with the GCC collect2 program. For some
10992
# reason, if we set the COLLECT_NAMES environment variable, the problems
10993
# vanish in a puff of smoke.
10994
if test "X${COLLECT_NAMES+set}" != Xset; then
10996
export COLLECT_NAMES
11002
# We use sed instead of cat because bash on DJGPP gets confused if
11003
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11004
# text mode, it properly converts lines to CR/LF. This bash problem
11005
# is reportedly fixed, but why not run on old versions too?
11006
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11008
mv -f "$cfgfile" "$ofile" || \
11009
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11013
# If there is no Makefile yet, we rely on a make rule to execute
11014
# `config.status --recheck' to rerun these tests and create the
11015
# libtool script then.
11016
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11017
if test -f "$ltmain_in"; then
11018
test -f Makefile && make "$ltmain"
11024
ac_cpp='$CPP $CPPFLAGS'
11025
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11032
# Check whether --with-tags was given.
11033
if test "${with_tags+set}" = set; then
11034
withval=$with_tags; tagnames="$withval"
11038
if test -f "$ltmain" && test -n "$tagnames"; then
11039
if test ! -f "${ofile}"; then
11040
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11041
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11044
if test -z "$LTCC"; then
11045
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11046
if test -z "$LTCC"; then
11047
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11048
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11050
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11051
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11054
if test -z "$LTCFLAGS"; then
11055
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11058
# Extract list of available tagged configurations in $ofile.
11059
# Note that this assumes the entire list is on one line.
11060
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11062
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11063
for tagname in $tagnames; do
11065
# Check whether tagname contains only valid characters
11066
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11068
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11069
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11070
{ (exit 1); exit 1; }; }
11074
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11076
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11077
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11078
{ (exit 1); exit 1; }; }
11081
# Update the list of available tags.
11082
if test -n "$tagname"; then
11083
echo appending configuration tag \"$tagname\" to $ofile
11087
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11088
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11089
(test "X$CXX" != "Xg++"))) ; then
11091
ac_cpp='$CXXCPP $CPPFLAGS'
11092
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11099
archive_cmds_need_lc_CXX=no
11100
allow_undefined_flag_CXX=
11101
always_export_symbols_CXX=no
11102
archive_expsym_cmds_CXX=
11103
export_dynamic_flag_spec_CXX=
11104
hardcode_direct_CXX=no
11105
hardcode_libdir_flag_spec_CXX=
11106
hardcode_libdir_flag_spec_ld_CXX=
11107
hardcode_libdir_separator_CXX=
11108
hardcode_minus_L_CXX=no
11109
hardcode_shlibpath_var_CXX=unsupported
11110
hardcode_automatic_CXX=no
11112
module_expsym_cmds_CXX=
11113
link_all_deplibs_CXX=unknown
11114
old_archive_cmds_CXX=$old_archive_cmds
11115
no_undefined_flag_CXX=
11116
whole_archive_flag_spec_CXX=
11117
enable_shared_with_static_runtimes_CXX=no
11119
# Dependencies to place before and after the object being linked:
11120
predep_objects_CXX=
11121
postdep_objects_CXX=
11124
compiler_lib_search_path_CXX=
11125
compiler_lib_search_dirs_CXX=
11127
# Source file extension for C++ test sources.
11130
# Object file extension for compiled C++ test sources.
11134
# Code to be used in simple compile tests
11135
lt_simple_compile_test_code="int some_variable = 0;"
11137
# Code to be used in simple link tests
11138
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11140
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11142
# If no C compiler was specified, use CC.
11145
# If no C compiler flags were specified, use CFLAGS.
11146
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11148
# Allow CC to be a program name with arguments.
11152
# save warnings/boilerplate of simple test code
11153
ac_outfile=conftest.$ac_objext
11154
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11155
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11156
_lt_compiler_boilerplate=`cat conftest.err`
11159
ac_outfile=conftest.$ac_objext
11160
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11161
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11162
_lt_linker_boilerplate=`cat conftest.err`
11166
# Allow CC to be a program name with arguments.
11171
lt_save_with_gnu_ld=$with_gnu_ld
11172
lt_save_path_LD=$lt_cv_path_LD
11173
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11174
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11176
$as_unset lt_cv_prog_gnu_ld
11178
if test -n "${lt_cv_path_LDCXX+set}"; then
11179
lt_cv_path_LD=$lt_cv_path_LDCXX
11181
$as_unset lt_cv_path_LD
11183
test -z "${LDCXX+set}" || LD=$LDCXX
11187
for cc_temp in $compiler""; do
11189
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11190
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11195
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11198
# We don't want -fno-exception wen compiling C++ code, so set the
11199
# no_builtin_flag separately
11200
if test "$GXX" = yes; then
11201
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11203
lt_prog_compiler_no_builtin_flag_CXX=
11206
if test "$GXX" = yes; then
11207
# Set up default GNU C++ configuration
11210
# Check whether --with-gnu-ld was given.
11211
if test "${with_gnu_ld+set}" = set; then
11212
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11218
if test "$GCC" = yes; then
11219
# Check if gcc -print-prog-name=ld gives a path.
11220
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11221
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11224
# gcc leaves a trailing carriage return which upsets mingw
11225
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11227
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11230
# Accept absolute paths.
11232
re_direlt='/[^/][^/]*/\.\./'
11233
# Canonicalize the pathname of ld
11234
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11235
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11236
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11238
test -z "$LD" && LD="$ac_prog"
11241
# If it fails, then pretend we aren't using GCC.
11245
# If it is relative, then search for the first ld in PATH.
11246
with_gnu_ld=unknown
11249
elif test "$with_gnu_ld" = yes; then
11250
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11251
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11253
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11254
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11256
if test "${lt_cv_path_LD+set}" = set; then
11257
echo $ECHO_N "(cached) $ECHO_C" >&6
11259
if test -z "$LD"; then
11260
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11261
for ac_dir in $PATH; do
11263
test -z "$ac_dir" && ac_dir=.
11264
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11265
lt_cv_path_LD="$ac_dir/$ac_prog"
11266
# Check to see if the program is GNU ld. I'd rather use --version,
11267
# but apparently some variants of GNU ld only accept -v.
11268
# Break only if it was the GNU/non-GNU ld that we prefer.
11269
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11270
*GNU* | *'with BFD'*)
11271
test "$with_gnu_ld" != no && break
11274
test "$with_gnu_ld" != yes && break
11281
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11285
LD="$lt_cv_path_LD"
11286
if test -n "$LD"; then
11287
{ echo "$as_me:$LINENO: result: $LD" >&5
11288
echo "${ECHO_T}$LD" >&6; }
11290
{ echo "$as_me:$LINENO: result: no" >&5
11291
echo "${ECHO_T}no" >&6; }
11293
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11294
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11295
{ (exit 1); exit 1; }; }
11296
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11297
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11298
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11299
echo $ECHO_N "(cached) $ECHO_C" >&6
11301
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11302
case `$LD -v 2>&1 </dev/null` in
11303
*GNU* | *'with BFD'*)
11304
lt_cv_prog_gnu_ld=yes
11307
lt_cv_prog_gnu_ld=no
11311
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11312
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11313
with_gnu_ld=$lt_cv_prog_gnu_ld
11317
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11318
# archiving commands below assume that GNU ld is being used.
11319
if test "$with_gnu_ld" = yes; then
11320
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11321
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11323
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11324
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11326
# If archive_cmds runs LD, not CC, wlarc should be empty
11327
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11328
# investigate it a little bit more. (MM)
11331
# ancient GNU ld didn't support --whole-archive et. al.
11332
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11333
grep 'no-whole-archive' > /dev/null; then
11334
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11336
whole_archive_flag_spec_CXX=
11342
# A generic and very simple default shared library creation
11343
# command for GNU C++ for the case where it uses the native
11344
# linker, instead of GNU ld. If possible, this setting should
11345
# overridden to take advantage of the native linker features on
11346
# the platform it is being used on.
11347
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11350
# Commands to make compiler produce verbose output that lists
11351
# what "hidden" libraries, object files and flags are used when
11352
# linking a shared library.
11353
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11361
# PORTME: fill in a description of your system's C++ link characteristics
11362
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11363
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11367
# FIXME: insert proper C++ library support
11371
if test "$host_cpu" = ia64; then
11372
# On IA64, the linker does run time linking by default, so we don't
11373
# have to do anything special.
11374
aix_use_runtimelinking=no
11375
exp_sym_flag='-Bexport'
11378
aix_use_runtimelinking=no
11380
# Test if we are trying to use run time linking or normal
11381
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11382
# need to do runtime linking.
11383
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11384
for ld_flag in $LDFLAGS; do
11387
aix_use_runtimelinking=yes
11395
exp_sym_flag='-bexport'
11396
no_entry_flag='-bnoentry'
11399
# When large executables or shared objects are built, AIX ld can
11400
# have problems creating the table of contents. If linking a library
11401
# or program results in "error TOC overflow" add -mminimal-toc to
11402
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11403
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11405
archive_cmds_CXX=''
11406
hardcode_direct_CXX=yes
11407
hardcode_libdir_separator_CXX=':'
11408
link_all_deplibs_CXX=yes
11410
if test "$GXX" = yes; then
11411
case $host_os in aix4.[012]|aix4.[012].*)
11412
# We only want to do this on AIX 4.2 and lower, the check
11413
# below for broken collect2 doesn't work under 4.3+
11414
collect2name=`${CC} -print-prog-name=collect2`
11415
if test -f "$collect2name" && \
11416
strings "$collect2name" | grep resolve_lib_name >/dev/null
11418
# We have reworked collect2
11421
# We have old collect2
11422
hardcode_direct_CXX=unsupported
11423
# It fails to find uninstalled libraries when the uninstalled
11424
# path is not listed in the libpath. Setting hardcode_minus_L
11425
# to unsupported forces relinking
11426
hardcode_minus_L_CXX=yes
11427
hardcode_libdir_flag_spec_CXX='-L$libdir'
11428
hardcode_libdir_separator_CXX=
11432
shared_flag='-shared'
11433
if test "$aix_use_runtimelinking" = yes; then
11434
shared_flag="$shared_flag "'${wl}-G'
11438
if test "$host_cpu" = ia64; then
11439
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11440
# chokes on -Wl,-G. The following line is correct:
11443
if test "$aix_use_runtimelinking" = yes; then
11444
shared_flag='${wl}-G'
11446
shared_flag='${wl}-bM:SRE'
11451
# It seems that -bexpall does not export symbols beginning with
11452
# underscore (_), so it is better to generate a list of symbols to export.
11453
always_export_symbols_CXX=yes
11454
if test "$aix_use_runtimelinking" = yes; then
11455
# Warning - without using the other runtime loading flags (-brtl),
11456
# -berok will link without error, but may produce a broken library.
11457
allow_undefined_flag_CXX='-berok'
11458
# Determine the default libpath from the value encoded in an empty executable.
11459
cat >conftest.$ac_ext <<_ACEOF
11462
cat confdefs.h >>conftest.$ac_ext
11463
cat >>conftest.$ac_ext <<_ACEOF
11464
/* end confdefs.h. */
11474
rm -f conftest.$ac_objext conftest$ac_exeext
11475
if { (ac_try="$ac_link"
11476
case "(($ac_try" in
11477
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478
*) ac_try_echo=$ac_try;;
11480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481
(eval "$ac_link") 2>conftest.er1
11483
grep -v '^ *+' conftest.er1 >conftest.err
11485
cat conftest.err >&5
11486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
(exit $ac_status); } && {
11488
test -z "$ac_cxx_werror_flag" ||
11489
test ! -s conftest.err
11490
} && test -s conftest$ac_exeext &&
11491
$as_test_x conftest$ac_exeext; then
11493
lt_aix_libpath_sed='
11494
/Import File Strings/,/^$/ {
11500
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11501
# Check for a 64-bit object if we didn't find anything.
11502
if test -z "$aix_libpath"; then
11503
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11506
echo "$as_me: failed program was:" >&5
11507
sed 's/^/| /' conftest.$ac_ext >&5
11512
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11513
conftest$ac_exeext conftest.$ac_ext
11514
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11516
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11518
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11520
if test "$host_cpu" = ia64; then
11521
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11522
allow_undefined_flag_CXX="-z nodefs"
11523
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"
11525
# Determine the default libpath from the value encoded in an empty executable.
11526
cat >conftest.$ac_ext <<_ACEOF
11529
cat confdefs.h >>conftest.$ac_ext
11530
cat >>conftest.$ac_ext <<_ACEOF
11531
/* end confdefs.h. */
11541
rm -f conftest.$ac_objext conftest$ac_exeext
11542
if { (ac_try="$ac_link"
11543
case "(($ac_try" in
11544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545
*) ac_try_echo=$ac_try;;
11547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548
(eval "$ac_link") 2>conftest.er1
11550
grep -v '^ *+' conftest.er1 >conftest.err
11552
cat conftest.err >&5
11553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554
(exit $ac_status); } && {
11555
test -z "$ac_cxx_werror_flag" ||
11556
test ! -s conftest.err
11557
} && test -s conftest$ac_exeext &&
11558
$as_test_x conftest$ac_exeext; then
11560
lt_aix_libpath_sed='
11561
/Import File Strings/,/^$/ {
11567
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568
# Check for a 64-bit object if we didn't find anything.
11569
if test -z "$aix_libpath"; then
11570
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11573
echo "$as_me: failed program was:" >&5
11574
sed 's/^/| /' conftest.$ac_ext >&5
11579
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11580
conftest$ac_exeext conftest.$ac_ext
11581
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11583
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11584
# Warning - without using the other run time loading flags,
11585
# -berok will link without error, but may produce a broken library.
11586
no_undefined_flag_CXX=' ${wl}-bernotok'
11587
allow_undefined_flag_CXX=' ${wl}-berok'
11588
# Exported symbols can be pulled into shared objects from archives
11589
whole_archive_flag_spec_CXX='$convenience'
11590
archive_cmds_need_lc_CXX=yes
11591
# This is similar to how AIX traditionally builds its shared libraries.
11592
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'
11598
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11599
allow_undefined_flag_CXX=unsupported
11600
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11601
# support --undefined. This deserves some investigation. FIXME
11602
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609
case $cc_basename in
11611
# FIXME: insert proper C++ library support
11617
cygwin* | mingw* | pw32*)
11618
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11619
# as there is no search path for DLLs.
11620
hardcode_libdir_flag_spec_CXX='-L$libdir'
11621
allow_undefined_flag_CXX=unsupported
11622
always_export_symbols_CXX=no
11623
enable_shared_with_static_runtimes_CXX=yes
11625
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11626
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'
11627
# If the export-symbols file already is a .def file (1st line
11628
# is EXPORTS), use it as is; otherwise, prepend...
11629
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11630
cp $export_symbols $output_objdir/$soname.def;
11632
echo EXPORTS > $output_objdir/$soname.def;
11633
cat $export_symbols >> $output_objdir/$soname.def;
11635
$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'
11640
darwin* | rhapsody*)
11641
archive_cmds_need_lc_CXX=no
11642
hardcode_direct_CXX=no
11643
hardcode_automatic_CXX=yes
11644
hardcode_shlibpath_var_CXX=unsupported
11645
whole_archive_flag_spec_CXX=''
11646
link_all_deplibs_CXX=yes
11647
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11648
if test "$GXX" = yes ; then
11649
output_verbose_link_cmd='echo'
11650
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}"
11651
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11652
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}"
11653
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}"
11654
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11655
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}"
11656
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}"
11659
case $cc_basename in
11661
output_verbose_link_cmd='echo'
11662
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11663
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11664
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11665
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11666
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11676
case $cc_basename in
11678
# FIXME: insert proper C++ library support
11682
# Green Hills C++ Compiler
11683
# FIXME: insert proper C++ library support
11687
# FIXME: insert proper C++ library support
11693
# C++ shared libraries reported to be fairly broken before switch to ELF
11697
archive_cmds_need_lc_CXX=no
11699
freebsd* | dragonfly*)
11700
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11707
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11708
hardcode_libdir_separator_CXX=:
11709
export_dynamic_flag_spec_CXX='${wl}-E'
11710
hardcode_direct_CXX=yes
11711
hardcode_minus_L_CXX=yes # Not in the search PATH,
11712
# but as the default
11713
# location of the library.
11715
case $cc_basename in
11717
# FIXME: insert proper C++ library support
11721
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'
11722
# Commands to make compiler produce verbose output that lists
11723
# what "hidden" libraries, object files and flags are used when
11724
# linking a shared library.
11726
# There doesn't appear to be a way to prevent this compiler from
11727
# explicitly linking system object files so we need to strip them
11728
# from the output so that they don't get included in the library
11730
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11733
if test "$GXX" = yes; then
11734
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11736
# FIXME: insert proper C++ library support
11743
if test $with_gnu_ld = no; then
11744
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11745
hardcode_libdir_separator_CXX=:
11750
export_dynamic_flag_spec_CXX='${wl}-E'
11756
hardcode_direct_CXX=no
11757
hardcode_shlibpath_var_CXX=no
11760
hardcode_direct_CXX=yes
11761
hardcode_minus_L_CXX=yes # Not in the search PATH,
11762
# but as the default
11763
# location of the library.
11767
case $cc_basename in
11769
# FIXME: insert proper C++ library support
11775
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11778
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11781
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11784
# Commands to make compiler produce verbose output that lists
11785
# what "hidden" libraries, object files and flags are used when
11786
# linking a shared library.
11788
# There doesn't appear to be a way to prevent this compiler from
11789
# explicitly linking system object files so we need to strip them
11790
# from the output so that they don't get included in the library
11792
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11795
if test "$GXX" = yes; then
11796
if test $with_gnu_ld = no; then
11799
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11802
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11805
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11810
# FIXME: insert proper C++ library support
11817
hardcode_direct_CXX=no
11818
hardcode_shlibpath_var_CXX=no
11819
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11820
export_dynamic_flag_spec_CXX='${wl}-E'
11821
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11822
# Instead, shared libraries are loaded at an image base (0x10000000 by
11823
# default) and relocated if they conflict, which is a slow very memory
11824
# consuming and fragmenting process. To avoid this, we pick a random,
11825
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11826
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11827
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'
11828
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'
11831
case $cc_basename in
11834
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11836
# Archives containing C++ object files must be created using
11837
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11838
# necessary to make sure instantiated templates are included
11840
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11843
if test "$GXX" = yes; then
11844
if test "$with_gnu_ld" = no; then
11845
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11847
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11850
link_all_deplibs_CXX=yes
11853
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854
hardcode_libdir_separator_CXX=:
11856
linux* | k*bsd*-gnu)
11857
case $cc_basename in
11859
# Kuck and Associates, Inc. (KAI) C++ Compiler
11861
# KCC will only create a shared library if the output file
11862
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11863
# to its proper name (with version) after linking.
11864
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'
11865
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'
11866
# Commands to make compiler produce verbose output that lists
11867
# what "hidden" libraries, object files and flags are used when
11868
# linking a shared library.
11870
# There doesn't appear to be a way to prevent this compiler from
11871
# explicitly linking system object files so we need to strip them
11872
# from the output so that they don't get included in the library
11874
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11876
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11877
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11879
# Archives containing C++ object files must be created using
11880
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11881
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11886
# version 8.0 and above of icpc choke on multiply defined symbols
11887
# if we add $predep_objects and $postdep_objects, however 7.1 and
11888
# earlier do not add the objects themselves.
11889
case `$CC -V 2>&1` in
11891
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11892
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'
11894
*) # Version 8.0 or newer
11897
ia64*) tmp_idyn=' -i_dynamic';;
11899
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900
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'
11903
archive_cmds_need_lc_CXX=no
11904
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11905
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11906
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11909
# Portland Group C++ compiler
11910
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11911
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'
11913
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11914
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11915
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11919
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11920
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'
11922
runpath_var=LD_RUN_PATH
11923
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11924
hardcode_libdir_separator_CXX=:
11926
# Commands to make compiler produce verbose output that lists
11927
# what "hidden" libraries, object files and flags are used when
11928
# linking a shared library.
11930
# There doesn't appear to be a way to prevent this compiler from
11931
# explicitly linking system object files so we need to strip them
11932
# from the output so that they don't get included in the library
11934
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11937
case `$CC -V 2>&1 | sed 5q` in
11940
no_undefined_flag_CXX=' -zdefs'
11941
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942
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'
11943
hardcode_libdir_flag_spec_CXX='-R$libdir'
11944
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11946
# Not sure whether something based on
11947
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11949
output_verbose_link_cmd='echo'
11951
# Archives containing C++ object files must be created using
11952
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11953
# necessary to make sure instantiated templates are included
11955
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11962
# FIXME: insert proper C++ library support
11966
# FIXME: insert proper C++ library support
11970
case $cc_basename in
11972
# FIXME: insert proper C++ library support
11976
# FIXME: insert proper C++ library support
11981
netbsd* | netbsdelf*-gnu)
11982
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11983
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11985
hardcode_libdir_flag_spec_CXX='-R$libdir'
11986
hardcode_direct_CXX=yes
11987
hardcode_shlibpath_var_CXX=no
11989
# Workaround some broken pre-1.5 toolchains
11990
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11993
# C++ shared libraries are fairly broken
11997
if test -f /usr/libexec/ld.so; then
11998
hardcode_direct_CXX=yes
11999
hardcode_shlibpath_var_CXX=no
12000
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12001
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12003
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12004
export_dynamic_flag_spec_CXX='${wl}-E'
12005
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12007
output_verbose_link_cmd='echo'
12013
case $cc_basename in
12015
# Kuck and Associates, Inc. (KAI) C++ Compiler
12017
# KCC will only create a shared library if the output file
12018
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12019
# to its proper name (with version) after linking.
12020
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'
12022
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023
hardcode_libdir_separator_CXX=:
12025
# Archives containing C++ object files must be created using
12026
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12027
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12031
# Rational C++ 2.4.1
12032
# FIXME: insert proper C++ library support
12036
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12037
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12039
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12040
hardcode_libdir_separator_CXX=:
12042
# Commands to make compiler produce verbose output that lists
12043
# what "hidden" libraries, object files and flags are used when
12044
# linking a shared library.
12046
# There doesn't appear to be a way to prevent this compiler from
12047
# explicitly linking system object files so we need to strip them
12048
# from the output so that they don't get included in the library
12050
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12053
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12054
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12055
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12057
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12058
hardcode_libdir_separator_CXX=:
12060
# Commands to make compiler produce verbose output that lists
12061
# what "hidden" libraries, object files and flags are used when
12062
# linking a shared library.
12063
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12066
# FIXME: insert proper C++ library support
12073
case $cc_basename in
12075
# Kuck and Associates, Inc. (KAI) C++ Compiler
12077
# KCC will only create a shared library if the output file
12078
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12079
# to its proper name (with version) after linking.
12080
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'
12082
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12083
hardcode_libdir_separator_CXX=:
12085
# Archives containing C++ object files must be created using
12086
# the KAI C++ compiler.
12087
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12090
# Rational C++ 2.4.1
12091
# FIXME: insert proper C++ library support
12095
allow_undefined_flag_CXX=' -expect_unresolved \*'
12096
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12097
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12098
echo "-hidden">> $lib.exp~
12099
$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~
12102
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103
hardcode_libdir_separator_CXX=:
12105
# Commands to make compiler produce verbose output that lists
12106
# what "hidden" libraries, object files and flags are used when
12107
# linking a shared library.
12109
# There doesn't appear to be a way to prevent this compiler from
12110
# explicitly linking system object files so we need to strip them
12111
# from the output so that they don't get included in the library
12113
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12116
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12118
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12120
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12121
hardcode_libdir_separator_CXX=:
12123
# Commands to make compiler produce verbose output that lists
12124
# what "hidden" libraries, object files and flags are used when
12125
# linking a shared library.
12126
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12129
# FIXME: insert proper C++ library support
12136
# FIXME: insert proper C++ library support
12140
case $cc_basename in
12143
# FIXME: insert proper C++ library support
12148
# FIXME: insert proper C++ library support
12152
# FIXME: insert proper C++ library support
12158
case $cc_basename in
12160
# Sun C++ 4.2, 5.x and Centerline C++
12161
archive_cmds_need_lc_CXX=yes
12162
no_undefined_flag_CXX=' -zdefs'
12163
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12164
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12165
$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'
12167
hardcode_libdir_flag_spec_CXX='-R$libdir'
12168
hardcode_shlibpath_var_CXX=no
12170
solaris2.[0-5] | solaris2.[0-5].*) ;;
12172
# The compiler driver will combine and reorder linker options,
12173
# but understands `-z linker_flag'.
12174
# Supported since Solaris 2.6 (maybe 2.5.1?)
12175
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12178
link_all_deplibs_CXX=yes
12180
output_verbose_link_cmd='echo'
12182
# Archives containing C++ object files must be created using
12183
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12184
# necessary to make sure instantiated templates are included
12186
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12189
# Green Hills C++ Compiler
12190
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12192
# The C++ compiler must be used to create the archive.
12193
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12196
# GNU C++ compiler with Solaris linker
12197
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12198
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12199
if $CC --version | grep -v '^2\.7' > /dev/null; then
12200
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12201
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12202
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12204
# Commands to make compiler produce verbose output that lists
12205
# what "hidden" libraries, object files and flags are used when
12206
# linking a shared library.
12207
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12209
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12211
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12215
# Commands to make compiler produce verbose output that lists
12216
# what "hidden" libraries, object files and flags are used when
12217
# linking a shared library.
12218
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12221
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12223
solaris2.[0-5] | solaris2.[0-5].*) ;;
12225
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12232
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12233
no_undefined_flag_CXX='${wl}-z,text'
12234
archive_cmds_need_lc_CXX=no
12235
hardcode_shlibpath_var_CXX=no
12236
runpath_var='LD_RUN_PATH'
12238
case $cc_basename in
12240
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12244
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12245
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12249
sysv5* | sco3.2v5* | sco5v6*)
12250
# Note: We can NOT use -z defs as we might desire, because we do not
12251
# link with -lc, and that would cause any symbols used from libc to
12252
# always be unresolved, which means just about no library would
12253
# ever link correctly. If we're not using GNU ld we use -z text
12254
# though, which does catch some bad symbols but isn't as heavy-handed
12256
# For security reasons, it is highly recommended that you always
12257
# use absolute paths for naming shared libraries, and exclude the
12258
# DT_RUNPATH tag from executables and libraries. But doing so
12259
# requires that you compile everything twice, which is a pain.
12260
# So that behaviour is only enabled if SCOABSPATH is set to a
12261
# non-empty value in the environment. Most likely only useful for
12262
# creating official distributions of packages.
12263
# This is a hack until libtool officially supports absolute path
12264
# names for shared libraries.
12265
no_undefined_flag_CXX='${wl}-z,text'
12266
allow_undefined_flag_CXX='${wl}-z,nodefs'
12267
archive_cmds_need_lc_CXX=no
12268
hardcode_shlibpath_var_CXX=no
12269
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12270
hardcode_libdir_separator_CXX=':'
12271
link_all_deplibs_CXX=yes
12272
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12273
runpath_var='LD_RUN_PATH'
12275
case $cc_basename in
12277
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12278
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12281
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12287
case $cc_basename in
12289
# NonStop-UX NCC 3.20
12290
# FIXME: insert proper C++ library support
12294
# FIXME: insert proper C++ library support
12300
# FIXME: insert proper C++ library support
12304
# FIXME: insert proper C++ library support
12308
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12309
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12310
test "$ld_shlibs_CXX" = no && can_build_shared=no
12315
cat > conftest.$ac_ext <<EOF
12319
Foo (void) { a = 0; }
12325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326
(eval $ac_compile) 2>&5
12328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329
(exit $ac_status); }; then
12330
# Parse the compiler output and extract the necessary
12331
# objects, libraries and library flags.
12333
# Sentinel used to keep track of whether or not we are before
12334
# the conftest object file.
12335
pre_test_object_deps_done=no
12337
# The `*' in the case matches for architectures that use `case' in
12338
# $output_verbose_cmd can trigger glob expansion during the loop
12339
# eval without this substitution.
12340
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12342
for p in `eval $output_verbose_link_cmd`; do
12346
# Some compilers place space between "-{L,R}" and the path.
12347
# Remove the space.
12348
if test $p = "-L" \
12349
|| test $p = "-R"; then
12356
if test "$pre_test_object_deps_done" = no; then
12359
# Internal compiler library paths should come after those
12360
# provided the user. The postdeps already come after the
12361
# user supplied libs so there is no need to process them.
12362
if test -z "$compiler_lib_search_path_CXX"; then
12363
compiler_lib_search_path_CXX="${prev}${p}"
12365
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12368
# The "-l" case would never come before the object being
12369
# linked, so don't bother handling this case.
12372
if test -z "$postdeps_CXX"; then
12373
postdeps_CXX="${prev}${p}"
12375
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12381
# This assumes that the test object file only shows up
12382
# once in the compiler output.
12383
if test "$p" = "conftest.$objext"; then
12384
pre_test_object_deps_done=yes
12388
if test "$pre_test_object_deps_done" = no; then
12389
if test -z "$predep_objects_CXX"; then
12390
predep_objects_CXX="$p"
12392
predep_objects_CXX="$predep_objects_CXX $p"
12395
if test -z "$postdep_objects_CXX"; then
12396
postdep_objects_CXX="$p"
12398
postdep_objects_CXX="$postdep_objects_CXX $p"
12403
*) ;; # Ignore the rest.
12411
echo "libtool.m4: error: problem compiling CXX test program"
12414
$rm -f confest.$objext
12416
compiler_lib_search_dirs_CXX=
12417
if test -n "$compiler_lib_search_path_CXX"; then
12418
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12421
# PORTME: override above test on systems where it is broken
12424
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12425
# hack all around it, let's just trust "g++" to DTRT.
12426
predep_objects_CXX=
12427
postdep_objects_CXX=
12432
case `$CC -V 2>&1 | sed 5q` in
12436
# The more standards-conforming stlport4 library is
12437
# incompatible with the Cstd library. Avoid specifying
12438
# it if it's in CXXFLAGS. Ignore libCrun as
12439
# -library=stlport4 depends on it.
12440
case " $CXX $CXXFLAGS " in
12441
*" -library=stlport4 "*)
12442
solaris_use_stlport4=yes
12445
if test "$solaris_use_stlport4" != yes; then
12446
postdeps_CXX='-library=Cstd -library=Crun'
12453
case $cc_basename in
12455
# The more standards-conforming stlport4 library is
12456
# incompatible with the Cstd library. Avoid specifying
12457
# it if it's in CXXFLAGS. Ignore libCrun as
12458
# -library=stlport4 depends on it.
12459
case " $CXX $CXXFLAGS " in
12460
*" -library=stlport4 "*)
12461
solaris_use_stlport4=yes
12465
# Adding this requires a known-good setup of shared libraries for
12466
# Sun compiler versions before 5.6, else PIC objects from an old
12467
# archive will be linked into the output, leading to subtle bugs.
12468
if test "$solaris_use_stlport4" != yes; then
12469
postdeps_CXX='-library=Cstd -library=Crun'
12476
case " $postdeps_CXX " in
12477
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12480
lt_prog_compiler_wl_CXX=
12481
lt_prog_compiler_pic_CXX=
12482
lt_prog_compiler_static_CXX=
12484
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12485
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12487
# C++ specific cases for pic, static, wl, etc.
12488
if test "$GXX" = yes; then
12489
lt_prog_compiler_wl_CXX='-Wl,'
12490
lt_prog_compiler_static_CXX='-static'
12494
# All AIX code is PIC.
12495
if test "$host_cpu" = ia64; then
12496
# AIX 5 now supports IA64 processor
12497
lt_prog_compiler_static_CXX='-Bstatic'
12501
# FIXME: we need at least 68020 code to build shared libraries, but
12502
# adding the `-m68020' flag to GCC prevents building anything better,
12504
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12506
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12507
# PIC is the default for these OSes.
12509
mingw* | cygwin* | os2* | pw32*)
12510
# This hack is so that the source file can tell whether it is being
12511
# built for inclusion in a dll (and should export symbols for example).
12512
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12513
# (--disable-auto-import) libraries
12514
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12516
darwin* | rhapsody*)
12517
# PIC is the default on this platform
12518
# Common symbols not allowed in MH_DYLIB files
12519
lt_prog_compiler_pic_CXX='-fno-common'
12522
# DJGPP does not support shared libraries at all
12523
lt_prog_compiler_pic_CXX=
12526
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12527
# Instead, we relocate shared libraries at runtime.
12530
if test -d /usr/nec; then
12531
lt_prog_compiler_pic_CXX=-Kconform_pic
12535
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12536
# not for PA HP-UX.
12541
lt_prog_compiler_pic_CXX='-fPIC'
12546
lt_prog_compiler_pic_CXX='-fPIC'
12552
# All AIX code is PIC.
12553
if test "$host_cpu" = ia64; then
12554
# AIX 5 now supports IA64 processor
12555
lt_prog_compiler_static_CXX='-Bstatic'
12557
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12561
case $cc_basename in
12563
# Green Hills C++ Compiler
12564
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12569
# PIC is the default on this platform
12570
# Common symbols not allowed in MH_DYLIB files
12571
case $cc_basename in
12573
lt_prog_compiler_pic_CXX='-qnocommon'
12574
lt_prog_compiler_wl_CXX='-Wl,'
12579
case $cc_basename in
12581
lt_prog_compiler_pic_CXX='-KPIC'
12584
# Green Hills C++ Compiler
12585
lt_prog_compiler_pic_CXX='-pic'
12591
freebsd* | dragonfly*)
12592
# FreeBSD uses GNU C++
12594
hpux9* | hpux10* | hpux11*)
12595
case $cc_basename in
12597
lt_prog_compiler_wl_CXX='-Wl,'
12598
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12599
if test "$host_cpu" != ia64; then
12600
lt_prog_compiler_pic_CXX='+Z'
12604
lt_prog_compiler_wl_CXX='-Wl,'
12605
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12611
lt_prog_compiler_pic_CXX='+Z'
12620
# This is c89, which is MS Visual C++ (no shared libs)
12621
# Anyone wants to do a port?
12623
irix5* | irix6* | nonstopux*)
12624
case $cc_basename in
12626
lt_prog_compiler_wl_CXX='-Wl,'
12627
lt_prog_compiler_static_CXX='-non_shared'
12628
# CC pic flag -KPIC is the default.
12634
linux* | k*bsd*-gnu)
12635
case $cc_basename in
12638
lt_prog_compiler_wl_CXX='--backend -Wl,'
12639
lt_prog_compiler_pic_CXX='-fPIC'
12643
lt_prog_compiler_wl_CXX='-Wl,'
12644
lt_prog_compiler_pic_CXX='-KPIC'
12645
lt_prog_compiler_static_CXX='-static'
12648
# Portland Group C++ compiler.
12649
lt_prog_compiler_wl_CXX='-Wl,'
12650
lt_prog_compiler_pic_CXX='-fpic'
12651
lt_prog_compiler_static_CXX='-Bstatic'
12655
# Make sure the PIC flag is empty. It appears that all Alpha
12656
# Linux and Compaq Tru64 Unix objects are PIC.
12657
lt_prog_compiler_pic_CXX=
12658
lt_prog_compiler_static_CXX='-non_shared'
12661
case `$CC -V 2>&1 | sed 5q` in
12664
lt_prog_compiler_pic_CXX='-KPIC'
12665
lt_prog_compiler_static_CXX='-Bstatic'
12666
lt_prog_compiler_wl_CXX='-Qoption ld '
12677
case $cc_basename in
12679
lt_prog_compiler_pic_CXX='-W c,exportall'
12685
netbsd* | netbsdelf*-gnu)
12687
osf3* | osf4* | osf5*)
12688
case $cc_basename in
12690
lt_prog_compiler_wl_CXX='--backend -Wl,'
12693
# Rational C++ 2.4.1
12694
lt_prog_compiler_pic_CXX='-pic'
12697
# Digital/Compaq C++
12698
lt_prog_compiler_wl_CXX='-Wl,'
12699
# Make sure the PIC flag is empty. It appears that all Alpha
12700
# Linux and Compaq Tru64 Unix objects are PIC.
12701
lt_prog_compiler_pic_CXX=
12702
lt_prog_compiler_static_CXX='-non_shared'
12711
case $cc_basename in
12713
# Sun C++ 4.2, 5.x and Centerline C++
12714
lt_prog_compiler_pic_CXX='-KPIC'
12715
lt_prog_compiler_static_CXX='-Bstatic'
12716
lt_prog_compiler_wl_CXX='-Qoption ld '
12719
# Green Hills C++ Compiler
12720
lt_prog_compiler_pic_CXX='-PIC'
12727
case $cc_basename in
12730
lt_prog_compiler_pic_CXX='-pic'
12731
lt_prog_compiler_static_CXX='-Bstatic'
12735
lt_prog_compiler_pic_CXX='-pic'
12742
case $cc_basename in
12744
# NonStop-UX NCC 3.20
12745
lt_prog_compiler_pic_CXX='-KPIC'
12751
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12752
case $cc_basename in
12754
lt_prog_compiler_wl_CXX='-Wl,'
12755
lt_prog_compiler_pic_CXX='-KPIC'
12756
lt_prog_compiler_static_CXX='-Bstatic'
12763
lt_prog_compiler_can_build_shared_CXX=no
12768
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12769
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12772
# Check to make sure the PIC flag actually works.
12774
if test -n "$lt_prog_compiler_pic_CXX"; then
12776
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12777
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12778
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12779
echo $ECHO_N "(cached) $ECHO_C" >&6
12781
lt_cv_prog_compiler_pic_works_CXX=no
12782
ac_outfile=conftest.$ac_objext
12783
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12785
# Insert the option either (1) after the last *FLAGS variable, or
12786
# (2) before a word containing "conftest.", or (3) at the end.
12787
# Note that $ac_compile itself does not contain backslashes and begins
12788
# with a dollar sign (not a hyphen), so the echo should work correctly.
12789
# The option is referenced via a variable to avoid confusing sed.
12790
lt_compile=`echo "$ac_compile" | $SED \
12791
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12792
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12793
-e 's:$: $lt_compiler_flag:'`
12794
(eval echo "\"\$as_me:12794: $lt_compile\"" >&5)
12795
(eval "$lt_compile" 2>conftest.err)
12797
cat conftest.err >&5
12798
echo "$as_me:12798: \$? = $ac_status" >&5
12799
if (exit $ac_status) && test -s "$ac_outfile"; then
12800
# The compiler can only warn and ignore the option if not recognized
12801
# So say no if there are warnings other than the usual output.
12802
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12803
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12804
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12805
lt_cv_prog_compiler_pic_works_CXX=yes
12811
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12812
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12814
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12815
case $lt_prog_compiler_pic_CXX in
12817
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12820
lt_prog_compiler_pic_CXX=
12821
lt_prog_compiler_can_build_shared_CXX=no
12826
# For platforms which do not support PIC, -DPIC is meaningless:
12828
lt_prog_compiler_pic_CXX=
12831
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12836
# Check to make sure the static flag actually works.
12838
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12839
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12840
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12841
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12842
echo $ECHO_N "(cached) $ECHO_C" >&6
12844
lt_cv_prog_compiler_static_works_CXX=no
12845
save_LDFLAGS="$LDFLAGS"
12846
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12847
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12848
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12849
# The linker can only warn and ignore the option if not recognized
12850
# So say no if there are warnings
12851
if test -s conftest.err; then
12852
# Append any errors to the config.log.
12853
cat conftest.err 1>&5
12854
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12855
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12856
if diff conftest.exp conftest.er2 >/dev/null; then
12857
lt_cv_prog_compiler_static_works_CXX=yes
12860
lt_cv_prog_compiler_static_works_CXX=yes
12864
LDFLAGS="$save_LDFLAGS"
12867
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12868
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12870
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12873
lt_prog_compiler_static_CXX=
12877
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12878
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12879
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12880
echo $ECHO_N "(cached) $ECHO_C" >&6
12882
lt_cv_prog_compiler_c_o_CXX=no
12883
$rm -r conftest 2>/dev/null
12887
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12889
lt_compiler_flag="-o out/conftest2.$ac_objext"
12890
# Insert the option either (1) after the last *FLAGS variable, or
12891
# (2) before a word containing "conftest.", or (3) at the end.
12892
# Note that $ac_compile itself does not contain backslashes and begins
12893
# with a dollar sign (not a hyphen), so the echo should work correctly.
12894
lt_compile=`echo "$ac_compile" | $SED \
12895
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12896
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12897
-e 's:$: $lt_compiler_flag:'`
12898
(eval echo "\"\$as_me:12898: $lt_compile\"" >&5)
12899
(eval "$lt_compile" 2>out/conftest.err)
12901
cat out/conftest.err >&5
12902
echo "$as_me:12902: \$? = $ac_status" >&5
12903
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12905
# The compiler can only warn and ignore the option if not recognized
12906
# So say no if there are warnings
12907
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12908
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12909
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12910
lt_cv_prog_compiler_c_o_CXX=yes
12915
# SGI C++ compiler will create directory out/ii_files/ for
12916
# template instantiation
12917
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12918
$rm out/* && rmdir out
12924
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12925
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12928
hard_links="nottested"
12929
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12930
# do not overwrite the value of need_locks provided by the user
12931
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12932
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12935
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12937
ln conftest.a conftest.b 2>&5 || hard_links=no
12938
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12939
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12940
echo "${ECHO_T}$hard_links" >&6; }
12941
if test "$hard_links" = no; then
12942
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12943
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12950
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12951
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12953
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12956
# If we're using GNU nm, then we don't want the "-C" option.
12957
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12958
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12959
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12961
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'
12965
export_symbols_cmds_CXX="$ltdll_cmds"
12968
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12970
linux* | k*bsd*-gnu)
12971
link_all_deplibs_CXX=no
12974
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12977
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12979
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12980
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12981
test "$ld_shlibs_CXX" = no && can_build_shared=no
12984
# Do we need to explicitly link libc?
12986
case "x$archive_cmds_need_lc_CXX" in
12988
# Assume -lc should be added
12989
archive_cmds_need_lc_CXX=yes
12991
if test "$enable_shared" = yes && test "$GCC" = yes; then
12992
case $archive_cmds_CXX in
12994
# FIXME: we may have to deal with multi-command sequences.
12997
# Test whether the compiler implicitly links with -lc since on some
12998
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12999
# to ld, don't add -lc before -lgcc.
13000
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13001
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13003
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13005
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006
(eval $ac_compile) 2>&5
13008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009
(exit $ac_status); } 2>conftest.err; then
13012
libobjs=conftest.$ac_objext
13014
wl=$lt_prog_compiler_wl_CXX
13015
pic_flag=$lt_prog_compiler_pic_CXX
13021
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13022
allow_undefined_flag_CXX=
13023
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027
(exit $ac_status); }
13029
archive_cmds_need_lc_CXX=no
13031
archive_cmds_need_lc_CXX=yes
13033
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13035
cat conftest.err 1>&5
13038
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13039
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13046
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13048
library_names_spec=
13049
libname_spec='lib$name'
13053
postuninstall_cmds=
13057
shlibpath_overrides_runpath=unknown
13059
dynamic_linker="$host_os ld.so"
13060
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13062
need_lib_prefix=unknown
13063
hardcode_into_libs=no
13065
# when you set need_version to no, make sure it does not cause -set_version
13066
# flags to be left without arguments
13067
need_version=unknown
13072
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13073
shlibpath_var=LIBPATH
13075
# AIX 3 has no versioning support, so we append a major version to the name.
13076
soname_spec='${libname}${release}${shared_ext}$major'
13083
hardcode_into_libs=yes
13084
if test "$host_cpu" = ia64; then
13085
# AIX 5 supports IA64
13086
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13087
shlibpath_var=LD_LIBRARY_PATH
13089
# With GCC up to 2.95.x, collect2 would create an import file
13090
# for dependence libraries. The import file would start with
13091
# the line `#! .'. This would cause the generated library to
13092
# depend on `.', always an invalid library. This was fixed in
13093
# development snapshots of GCC prior to 3.0.
13095
aix4 | aix4.[01] | aix4.[01].*)
13096
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13098
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13101
can_build_shared=no
13105
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13106
# soname into executable. Probably we can add versioning support to
13107
# collect2, so additional links can be useful in future.
13108
if test "$aix_use_runtimelinking" = yes; then
13109
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13110
# instead of lib<name>.a to let people know that these are not
13111
# typical AIX shared libraries.
13112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114
# We preserve .a as extension for shared libraries through AIX4.2
13115
# and later when we are not doing run time linking.
13116
library_names_spec='${libname}${release}.a $libname.a'
13117
soname_spec='${libname}${release}${shared_ext}$major'
13119
shlibpath_var=LIBPATH
13124
library_names_spec='$libname.ixlibrary $libname.a'
13125
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13126
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13130
library_names_spec='${libname}${shared_ext}'
13131
dynamic_linker="$host_os ld.so"
13132
shlibpath_var=LIBRARY_PATH
13138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139
soname_spec='${libname}${release}${shared_ext}$major'
13140
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13141
shlibpath_var=LD_LIBRARY_PATH
13142
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13143
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13144
# the default ld.so.conf also contains /usr/contrib/lib and
13145
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13146
# libtool to hard-code these into programs
13149
cygwin* | mingw* | pw32*)
13150
version_type=windows
13155
case $GCC,$host_os in
13156
yes,cygwin* | yes,mingw* | yes,pw32*)
13157
library_names_spec='$libname.dll.a'
13158
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13159
postinstall_cmds='base_file=`basename \${file}`~
13160
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13161
dldir=$destdir/`dirname \$dlpath`~
13162
test -d \$dldir || mkdir -p \$dldir~
13163
$install_prog $dir/$dlname \$dldir/$dlname~
13164
chmod a+x \$dldir/$dlname'
13165
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166
dlpath=$dir/\$dldll~
13168
shlibpath_overrides_runpath=yes
13172
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13177
# MinGW DLLs use traditional 'lib' prefix
13178
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181
# It is most probably a Windows format PATH printed by
13182
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13183
# path with ; separators, and with drive letters. We can handle the
13184
# drive letters (cygwin fileutils understands them), so leave them,
13185
# especially as we might pass files found there to a mingw objdump,
13186
# which wouldn't understand a cygwinified path. Ahh.
13187
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13189
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13193
# pw32 DLLs use 'pw' prefix rather than 'lib'
13194
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13200
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13203
dynamic_linker='Win32 ld.exe'
13204
# FIXME: first we should search . and the directory the executable is in
13208
darwin* | rhapsody*)
13209
dynamic_linker="$host_os dyld"
13210
version_type=darwin
13213
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13214
soname_spec='${libname}${release}${major}$shared_ext'
13215
shlibpath_overrides_runpath=yes
13216
shlibpath_var=DYLD_LIBRARY_PATH
13217
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13219
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13226
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227
soname_spec='${libname}${release}${shared_ext}$major'
13228
shlibpath_var=LD_LIBRARY_PATH
13235
freebsd* | dragonfly*)
13236
# DragonFly does not have aout. When/if they implement a new
13237
# versioning mechanism, adjust this.
13238
if test -x /usr/bin/objformat; then
13239
objformat=`/usr/bin/objformat`
13242
freebsd[123]*) objformat=aout ;;
13243
*) objformat=elf ;;
13246
version_type=freebsd-$objformat
13247
case $version_type in
13249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13258
shlibpath_var=LD_LIBRARY_PATH
13261
shlibpath_overrides_runpath=yes
13263
freebsd3.[01]* | freebsdelf3.[01]*)
13264
shlibpath_overrides_runpath=yes
13265
hardcode_into_libs=yes
13267
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13268
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13269
shlibpath_overrides_runpath=no
13270
hardcode_into_libs=yes
13272
*) # from 4.6 on, and DragonFly
13273
shlibpath_overrides_runpath=yes
13274
hardcode_into_libs=yes
13283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13284
soname_spec='${libname}${release}${shared_ext}$major'
13285
shlibpath_var=LD_LIBRARY_PATH
13286
hardcode_into_libs=yes
13289
hpux9* | hpux10* | hpux11*)
13290
# Give a soname corresponding to the major version so that dld.sl refuses to
13291
# link against other versions.
13298
hardcode_into_libs=yes
13299
dynamic_linker="$host_os dld.so"
13300
shlibpath_var=LD_LIBRARY_PATH
13301
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13302
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303
soname_spec='${libname}${release}${shared_ext}$major'
13304
if test "X$HPUX_IA64_MODE" = X32; then
13305
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13307
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13309
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13313
hardcode_into_libs=yes
13314
dynamic_linker="$host_os dld.sl"
13315
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13316
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318
soname_spec='${libname}${release}${shared_ext}$major'
13319
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13320
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13324
dynamic_linker="$host_os dld.sl"
13325
shlibpath_var=SHLIB_PATH
13326
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13327
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328
soname_spec='${libname}${release}${shared_ext}$major'
13331
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13332
postinstall_cmds='chmod 555 $lib'
13339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340
soname_spec='${libname}${release}${shared_ext}$major'
13341
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13342
shlibpath_var=LD_LIBRARY_PATH
13343
shlibpath_overrides_runpath=no
13344
hardcode_into_libs=yes
13347
irix5* | irix6* | nonstopux*)
13349
nonstopux*) version_type=nonstopux ;;
13351
if test "$lt_cv_prog_gnu_ld" = yes; then
13359
soname_spec='${libname}${release}${shared_ext}$major'
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13362
irix5* | nonstopux*)
13363
libsuff= shlibsuff=
13366
case $LD in # libtool.m4 will add one of these switches to LD
13367
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13368
libsuff= shlibsuff= libmagic=32-bit;;
13369
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13370
libsuff=32 shlibsuff=N32 libmagic=N32;;
13371
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13372
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13373
*) libsuff= shlibsuff= libmagic=never-match;;
13377
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13378
shlibpath_overrides_runpath=no
13379
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13380
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13381
hardcode_into_libs=yes
13384
# No shared lib support for Linux oldld, aout, or coff.
13385
linux*oldld* | linux*aout* | linux*coff*)
13389
# This must be Linux ELF.
13390
linux* | k*bsd*-gnu)
13394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395
soname_spec='${libname}${release}${shared_ext}$major'
13396
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13397
shlibpath_var=LD_LIBRARY_PATH
13398
shlibpath_overrides_runpath=no
13399
# This implies no fast_install, which is unacceptable.
13400
# Some rework will be needed to allow for fast_install
13401
# before this can be enabled.
13402
hardcode_into_libs=yes
13404
# Append ld.so.conf contents to the search path
13405
if test -f /etc/ld.so.conf; then
13406
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13407
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13410
# We used to test for /lib/ld.so.1 and disable shared libraries on
13411
# powerpc, because MkLinux only supported shared libraries with the
13412
# GNU dynamic linker. Since this was broken with cross compilers,
13413
# most powerpc-linux boxes support dynamic linking these days and
13414
# people can always --disable-shared, the test was removed, and we
13415
# assume the GNU/Linux dynamic linker is in use.
13416
dynamic_linker='GNU/Linux ld.so'
13423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424
soname_spec='${libname}${release}${shared_ext}$major'
13425
shlibpath_var=LD_LIBRARY_PATH
13426
shlibpath_overrides_runpath=no
13427
hardcode_into_libs=yes
13428
dynamic_linker='NetBSD ld.elf_so'
13435
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13437
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13438
dynamic_linker='NetBSD (a.out) ld.so'
13440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13441
soname_spec='${libname}${release}${shared_ext}$major'
13442
dynamic_linker='NetBSD ld.elf_so'
13444
shlibpath_var=LD_LIBRARY_PATH
13445
shlibpath_overrides_runpath=yes
13446
hardcode_into_libs=yes
13451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452
shlibpath_var=LD_LIBRARY_PATH
13453
shlibpath_overrides_runpath=yes
13460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461
soname_spec='${libname}${release}${shared_ext}$major'
13462
shlibpath_var=LD_LIBRARY_PATH
13463
shlibpath_overrides_runpath=yes
13468
sys_lib_dlsearch_path_spec="/usr/lib"
13470
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13472
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13473
*) need_version=no ;;
13475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13476
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13477
shlibpath_var=LD_LIBRARY_PATH
13478
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480
openbsd2.[89] | openbsd2.[89].*)
13481
shlibpath_overrides_runpath=no
13484
shlibpath_overrides_runpath=yes
13488
shlibpath_overrides_runpath=yes
13493
libname_spec='$name'
13496
library_names_spec='$libname${shared_ext} $libname.a'
13497
dynamic_linker='OS/2 ld.exe'
13498
shlibpath_var=LIBPATH
13501
osf3* | osf4* | osf5*)
13505
soname_spec='${libname}${release}${shared_ext}$major'
13506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507
shlibpath_var=LD_LIBRARY_PATH
13508
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13509
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521
soname_spec='${libname}${release}${shared_ext}$major'
13522
shlibpath_var=LD_LIBRARY_PATH
13523
shlibpath_overrides_runpath=yes
13524
hardcode_into_libs=yes
13525
# ldd complains unless libraries are executable
13526
postinstall_cmds='chmod +x $lib'
13531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13533
shlibpath_var=LD_LIBRARY_PATH
13534
shlibpath_overrides_runpath=yes
13535
if test "$with_gnu_ld" = yes; then
13543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544
soname_spec='${libname}${release}${shared_ext}$major'
13545
shlibpath_var=LD_LIBRARY_PATH
13546
case $host_vendor in
13548
shlibpath_overrides_runpath=no
13550
export_dynamic_flag_spec='${wl}-Blargedynsym'
13551
runpath_var=LD_RUN_PATH
13559
shlibpath_overrides_runpath=no
13560
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13566
if test -d /usr/nec ;then
13568
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13569
soname_spec='$libname${shared_ext}.$major'
13570
shlibpath_var=LD_LIBRARY_PATH
13574
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13575
version_type=freebsd-elf
13578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13579
soname_spec='${libname}${release}${shared_ext}$major'
13580
shlibpath_var=LD_LIBRARY_PATH
13581
hardcode_into_libs=yes
13582
if test "$with_gnu_ld" = yes; then
13583
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13584
shlibpath_overrides_runpath=no
13586
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13587
shlibpath_overrides_runpath=yes
13590
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13594
sys_lib_dlsearch_path_spec='/usr/lib'
13599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600
soname_spec='${libname}${release}${shared_ext}$major'
13601
shlibpath_var=LD_LIBRARY_PATH
13608
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13609
echo "${ECHO_T}$dynamic_linker" >&6; }
13610
test "$dynamic_linker" = no && can_build_shared=no
13612
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13613
echo $ECHO_N "(cached) $ECHO_C" >&6
13615
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13618
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13619
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13620
echo $ECHO_N "(cached) $ECHO_C" >&6
13622
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13625
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13627
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13628
if test "$GCC" = yes; then
13629
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13632
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13633
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13634
hardcode_action_CXX=
13635
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13636
test -n "$runpath_var_CXX" || \
13637
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13639
# We can hardcode non-existant directories.
13640
if test "$hardcode_direct_CXX" != no &&
13641
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13642
# have to relink, otherwise we might link with an installed library
13643
# when we should be linking with a yet-to-be-installed one
13644
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13645
test "$hardcode_minus_L_CXX" != no; then
13646
# Linking always hardcodes the temporary library directory.
13647
hardcode_action_CXX=relink
13649
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13650
hardcode_action_CXX=immediate
13653
# We cannot hardcode anything, or else we can only hardcode existing
13655
hardcode_action_CXX=unsupported
13657
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13658
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13660
if test "$hardcode_action_CXX" = relink; then
13661
# Fast installation is not supported
13662
enable_fast_install=no
13663
elif test "$shlibpath_overrides_runpath" = yes ||
13664
test "$enable_shared" = no; then
13665
# Fast installation is not necessary
13666
enable_fast_install=needless
13670
# The else clause should only fire when bootstrapping the
13671
# libtool distribution, otherwise you forgot to ship ltmain.sh
13672
# with your package, and you will get complaints that there are
13673
# no rules to generate ltmain.sh.
13674
if test -f "$ltmain"; then
13675
# See if we are running on zsh, and set the options which allow our commands through
13676
# without removal of \ escapes.
13677
if test -n "${ZSH_VERSION+set}" ; then
13678
setopt NO_GLOB_SUBST
13680
# Now quote all the things that may contain metacharacters while being
13681
# careful not to overquote the AC_SUBSTed values. We take copies of the
13682
# variables and quote the copies for generation of the libtool script.
13683
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13685
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13686
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13687
deplibs_check_method reload_flag reload_cmds need_locks \
13688
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13689
lt_cv_sys_global_symbol_to_c_name_address \
13690
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13691
old_postinstall_cmds old_postuninstall_cmds \
13695
lt_prog_compiler_wl_CXX \
13696
lt_prog_compiler_pic_CXX \
13697
lt_prog_compiler_static_CXX \
13698
lt_prog_compiler_no_builtin_flag_CXX \
13699
export_dynamic_flag_spec_CXX \
13700
thread_safe_flag_spec_CXX \
13701
whole_archive_flag_spec_CXX \
13702
enable_shared_with_static_runtimes_CXX \
13703
old_archive_cmds_CXX \
13704
old_archive_from_new_cmds_CXX \
13705
predep_objects_CXX \
13706
postdep_objects_CXX \
13709
compiler_lib_search_path_CXX \
13710
compiler_lib_search_dirs_CXX \
13712
archive_expsym_cmds_CXX \
13713
postinstall_cmds_CXX \
13714
postuninstall_cmds_CXX \
13715
old_archive_from_expsyms_cmds_CXX \
13716
allow_undefined_flag_CXX \
13717
no_undefined_flag_CXX \
13718
export_symbols_cmds_CXX \
13719
hardcode_libdir_flag_spec_CXX \
13720
hardcode_libdir_flag_spec_ld_CXX \
13721
hardcode_libdir_separator_CXX \
13722
hardcode_automatic_CXX \
13724
module_expsym_cmds_CXX \
13725
lt_cv_prog_compiler_c_o_CXX \
13726
fix_srcfile_path_CXX \
13727
exclude_expsyms_CXX \
13728
include_expsyms_CXX; do
13731
old_archive_cmds_CXX | \
13732
old_archive_from_new_cmds_CXX | \
13733
archive_cmds_CXX | \
13734
archive_expsym_cmds_CXX | \
13735
module_cmds_CXX | \
13736
module_expsym_cmds_CXX | \
13737
old_archive_from_expsyms_cmds_CXX | \
13738
export_symbols_cmds_CXX | \
13739
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13740
postinstall_cmds | postuninstall_cmds | \
13741
old_postinstall_cmds | old_postuninstall_cmds | \
13742
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13743
# Double-quote double-evaled strings.
13744
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13747
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13753
*'\$0 --fallback-echo"')
13754
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13760
cat <<__EOF__ >> "$cfgfile"
13761
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13763
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13765
# Shell to use when invoking shell scripts.
13768
# Whether or not to build shared libraries.
13769
build_libtool_libs=$enable_shared
13771
# Whether or not to build static libraries.
13772
build_old_libs=$enable_static
13774
# Whether or not to add -lc for building shared libraries.
13775
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13777
# Whether or not to disallow shared libs when runtime libs are static
13778
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13780
# Whether or not to optimize for fast installation.
13781
fast_install=$enable_fast_install
13784
host_alias=$host_alias
13788
# The build system.
13789
build_alias=$build_alias
13793
# An echo program that does not interpret backslashes.
13798
AR_FLAGS=$lt_AR_FLAGS
13803
# LTCC compiler flags.
13804
LTCFLAGS=$lt_LTCFLAGS
13806
# A language-specific compiler.
13807
CC=$lt_compiler_CXX
13809
# Is the compiler the GNU C compiler?
13815
# The linker used to build libraries.
13818
# Whether we need hard or soft links.
13821
# A BSD-compatible nm program.
13824
# A symbol stripping program
13827
# Used to examine libraries when file_magic_cmd begins "file"
13828
MAGIC_CMD=$MAGIC_CMD
13830
# Used on cygwin: DLL creation program.
13833
# Used on cygwin: object dumper.
13836
# Used on cygwin: assembler.
13839
# The name of the directory that contains temporary libtool files.
13842
# How to create reloadable object files.
13843
reload_flag=$lt_reload_flag
13844
reload_cmds=$lt_reload_cmds
13846
# How to pass a linker flag through the compiler.
13847
wl=$lt_lt_prog_compiler_wl_CXX
13849
# Object file suffix (normally "o").
13850
objext="$ac_objext"
13852
# Old archive suffix (normally "a").
13855
# Shared library suffix (normally ".so").
13856
shrext_cmds='$shrext_cmds'
13858
# Executable file suffix (normally "").
13861
# Additional compiler flags for building library objects.
13862
pic_flag=$lt_lt_prog_compiler_pic_CXX
13865
# What is the maximum length of a command?
13866
max_cmd_len=$lt_cv_sys_max_cmd_len
13868
# Does compiler simultaneously support -c and -o options?
13869
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13871
# Must we lock files when doing compilation?
13872
need_locks=$lt_need_locks
13874
# Do we need the lib prefix for modules?
13875
need_lib_prefix=$need_lib_prefix
13877
# Do we need a version for libraries?
13878
need_version=$need_version
13880
# Whether dlopen is supported.
13881
dlopen_support=$enable_dlopen
13883
# Whether dlopen of programs is supported.
13884
dlopen_self=$enable_dlopen_self
13886
# Whether dlopen of statically linked programs is supported.
13887
dlopen_self_static=$enable_dlopen_self_static
13889
# Compiler flag to prevent dynamic linking.
13890
link_static_flag=$lt_lt_prog_compiler_static_CXX
13892
# Compiler flag to turn off builtin functions.
13893
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13895
# Compiler flag to allow reflexive dlopens.
13896
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13898
# Compiler flag to generate shared objects directly from archives.
13899
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13901
# Compiler flag to generate thread-safe objects.
13902
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13904
# Library versioning type.
13905
version_type=$version_type
13907
# Format of library name prefix.
13908
libname_spec=$lt_libname_spec
13910
# List of archive names. First name is the real one, the rest are links.
13911
# The last name is the one that the linker finds with -lNAME.
13912
library_names_spec=$lt_library_names_spec
13914
# The coded name of the library, if different from the real name.
13915
soname_spec=$lt_soname_spec
13917
# Commands used to build and install an old-style archive.
13919
old_archive_cmds=$lt_old_archive_cmds_CXX
13920
old_postinstall_cmds=$lt_old_postinstall_cmds
13921
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13923
# Create an old-style archive from a shared archive.
13924
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13926
# Create a temporary old-style archive to link instead of a shared archive.
13927
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13929
# Commands used to build and install a shared archive.
13930
archive_cmds=$lt_archive_cmds_CXX
13931
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13932
postinstall_cmds=$lt_postinstall_cmds
13933
postuninstall_cmds=$lt_postuninstall_cmds
13935
# Commands used to build a loadable module (assumed same as above if empty)
13936
module_cmds=$lt_module_cmds_CXX
13937
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13939
# Commands to strip libraries.
13940
old_striplib=$lt_old_striplib
13941
striplib=$lt_striplib
13943
# Dependencies to place before the objects being linked to create a
13945
predep_objects=$lt_predep_objects_CXX
13947
# Dependencies to place after the objects being linked to create a
13949
postdep_objects=$lt_postdep_objects_CXX
13951
# Dependencies to place before the objects being linked to create a
13953
predeps=$lt_predeps_CXX
13955
# Dependencies to place after the objects being linked to create a
13957
postdeps=$lt_postdeps_CXX
13959
# The directories searched by this compiler when creating a shared
13961
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13963
# The library search path used internally by the compiler when linking
13964
# a shared library.
13965
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13967
# Method to check whether dependent libraries are shared objects.
13968
deplibs_check_method=$lt_deplibs_check_method
13970
# Command to use when deplibs_check_method == file_magic.
13971
file_magic_cmd=$lt_file_magic_cmd
13973
# Flag that allows shared libraries with undefined symbols to be built.
13974
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13976
# Flag that forces no undefined symbols.
13977
no_undefined_flag=$lt_no_undefined_flag_CXX
13979
# Commands used to finish a libtool library installation in a directory.
13980
finish_cmds=$lt_finish_cmds
13982
# Same as above, but a single script fragment to be evaled but not shown.
13983
finish_eval=$lt_finish_eval
13985
# Take the output of nm and produce a listing of raw symbols and C names.
13986
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13988
# Transform the output of nm in a proper C declaration
13989
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13991
# Transform the output of nm in a C name address pair
13992
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13994
# This is the shared library runtime path variable.
13995
runpath_var=$runpath_var
13997
# This is the shared library path variable.
13998
shlibpath_var=$shlibpath_var
14000
# Is shlibpath searched before the hard-coded library search path?
14001
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14003
# How to hardcode a shared library path into an executable.
14004
hardcode_action=$hardcode_action_CXX
14006
# Whether we should hardcode library paths into libraries.
14007
hardcode_into_libs=$hardcode_into_libs
14009
# Flag to hardcode \$libdir into a binary during linking.
14010
# This must work even if \$libdir does not exist.
14011
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14013
# If ld is used when linking, flag to hardcode \$libdir into
14014
# a binary during linking. This must work even if \$libdir does
14016
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14018
# Whether we need a single -rpath flag with a separated argument.
14019
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14021
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14022
# resulting binary.
14023
hardcode_direct=$hardcode_direct_CXX
14025
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14026
# resulting binary.
14027
hardcode_minus_L=$hardcode_minus_L_CXX
14029
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14030
# the resulting binary.
14031
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14033
# Set to yes if building a shared library automatically hardcodes DIR into the library
14034
# and all subsequent libraries and executables linked against it.
14035
hardcode_automatic=$hardcode_automatic_CXX
14037
# Variables whose values should be saved in libtool wrapper scripts and
14038
# restored at relink time.
14039
variables_saved_for_relink="$variables_saved_for_relink"
14041
# Whether libtool must link a program against all its dependency libraries.
14042
link_all_deplibs=$link_all_deplibs_CXX
14044
# Compile-time system search path for libraries
14045
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14047
# Run-time system search path for libraries
14048
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14050
# Fix the shell variable \$srcfile for the compiler.
14051
fix_srcfile_path=$lt_fix_srcfile_path
14053
# Set to yes if exported symbols are required.
14054
always_export_symbols=$always_export_symbols_CXX
14056
# The commands to list exported symbols.
14057
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14059
# The commands to extract the exported symbol list from a shared archive.
14060
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14062
# Symbols that should not be listed in the preloaded symbols.
14063
exclude_expsyms=$lt_exclude_expsyms_CXX
14065
# Symbols that must always be exported.
14066
include_expsyms=$lt_include_expsyms_CXX
14068
# ### END LIBTOOL TAG CONFIG: $tagname
14074
# If there is no Makefile yet, we rely on a make rule to execute
14075
# `config.status --recheck' to rerun these tests and create the
14076
# libtool script then.
14077
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14078
if test -f "$ltmain_in"; then
14079
test -f Makefile && make "$ltmain"
14085
ac_cpp='$CPP $CPPFLAGS'
14086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094
with_gnu_ldcxx=$with_gnu_ld
14095
with_gnu_ld=$lt_save_with_gnu_ld
14096
lt_cv_path_LDCXX=$lt_cv_path_LD
14097
lt_cv_path_LD=$lt_save_path_LD
14098
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14099
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14107
if test -n "$F77" && test "X$F77" != "Xno"; then
14110
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14111
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14115
archive_cmds_need_lc_F77=no
14116
allow_undefined_flag_F77=
14117
always_export_symbols_F77=no
14118
archive_expsym_cmds_F77=
14119
export_dynamic_flag_spec_F77=
14120
hardcode_direct_F77=no
14121
hardcode_libdir_flag_spec_F77=
14122
hardcode_libdir_flag_spec_ld_F77=
14123
hardcode_libdir_separator_F77=
14124
hardcode_minus_L_F77=no
14125
hardcode_automatic_F77=no
14127
module_expsym_cmds_F77=
14128
link_all_deplibs_F77=unknown
14129
old_archive_cmds_F77=$old_archive_cmds
14130
no_undefined_flag_F77=
14131
whole_archive_flag_spec_F77=
14132
enable_shared_with_static_runtimes_F77=no
14134
# Source file extension for f77 test sources.
14137
# Object file extension for compiled f77 test sources.
14141
# Code to be used in simple compile tests
14142
lt_simple_compile_test_code="\
14148
# Code to be used in simple link tests
14149
lt_simple_link_test_code="\
14154
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14156
# If no C compiler was specified, use CC.
14159
# If no C compiler flags were specified, use CFLAGS.
14160
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14162
# Allow CC to be a program name with arguments.
14166
# save warnings/boilerplate of simple test code
14167
ac_outfile=conftest.$ac_objext
14168
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14169
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170
_lt_compiler_boilerplate=`cat conftest.err`
14173
ac_outfile=conftest.$ac_objext
14174
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14175
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176
_lt_linker_boilerplate=`cat conftest.err`
14180
# Allow CC to be a program name with arguments.
14185
for cc_temp in $compiler""; do
14187
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14188
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14193
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14196
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14197
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14198
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14199
echo "${ECHO_T}$can_build_shared" >&6; }
14201
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14202
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14203
test "$can_build_shared" = "no" && enable_shared=no
14205
# On AIX, shared libraries and static libraries use the same namespace, and
14206
# are all built from PIC.
14209
test "$enable_shared" = yes && enable_static=no
14210
if test -n "$RANLIB"; then
14211
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14212
postinstall_cmds='$RANLIB $lib'
14216
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14217
test "$enable_shared" = yes && enable_static=no
14221
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14222
echo "${ECHO_T}$enable_shared" >&6; }
14224
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14225
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14226
# Make sure either enable_shared or enable_static is yes.
14227
test "$enable_shared" = yes || enable_static=yes
14228
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14229
echo "${ECHO_T}$enable_static" >&6; }
14234
lt_prog_compiler_wl_F77=
14235
lt_prog_compiler_pic_F77=
14236
lt_prog_compiler_static_F77=
14238
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14239
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14241
if test "$GCC" = yes; then
14242
lt_prog_compiler_wl_F77='-Wl,'
14243
lt_prog_compiler_static_F77='-static'
14247
# All AIX code is PIC.
14248
if test "$host_cpu" = ia64; then
14249
# AIX 5 now supports IA64 processor
14250
lt_prog_compiler_static_F77='-Bstatic'
14255
# FIXME: we need at least 68020 code to build shared libraries, but
14256
# adding the `-m68020' flag to GCC prevents building anything better,
14258
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14261
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14262
# PIC is the default for these OSes.
14265
mingw* | cygwin* | pw32* | os2*)
14266
# This hack is so that the source file can tell whether it is being
14267
# built for inclusion in a dll (and should export symbols for example).
14268
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14269
# (--disable-auto-import) libraries
14270
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14273
darwin* | rhapsody*)
14274
# PIC is the default on this platform
14275
# Common symbols not allowed in MH_DYLIB files
14276
lt_prog_compiler_pic_F77='-fno-common'
14280
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281
# Instead, we relocate shared libraries at runtime.
14285
# Just because we use GCC doesn't mean we suddenly get shared libraries
14286
# on systems that don't support them.
14287
lt_prog_compiler_can_build_shared_F77=no
14292
if test -d /usr/nec; then
14293
lt_prog_compiler_pic_F77=-Kconform_pic
14298
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14299
# not for PA HP-UX.
14305
lt_prog_compiler_pic_F77='-fPIC'
14311
lt_prog_compiler_pic_F77='-fPIC'
14315
# PORTME Check for flag to pass linker flags through the system compiler.
14318
lt_prog_compiler_wl_F77='-Wl,'
14319
if test "$host_cpu" = ia64; then
14320
# AIX 5 now supports IA64 processor
14321
lt_prog_compiler_static_F77='-Bstatic'
14323
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14327
# PIC is the default on this platform
14328
# Common symbols not allowed in MH_DYLIB files
14329
case $cc_basename in
14331
lt_prog_compiler_pic_F77='-qnocommon'
14332
lt_prog_compiler_wl_F77='-Wl,'
14337
mingw* | cygwin* | pw32* | os2*)
14338
# This hack is so that the source file can tell whether it is being
14339
# built for inclusion in a dll (and should export symbols for example).
14340
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14343
hpux9* | hpux10* | hpux11*)
14344
lt_prog_compiler_wl_F77='-Wl,'
14345
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14346
# not for PA HP-UX.
14352
lt_prog_compiler_pic_F77='+Z'
14355
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14356
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14359
irix5* | irix6* | nonstopux*)
14360
lt_prog_compiler_wl_F77='-Wl,'
14361
# PIC (with -KPIC) is the default.
14362
lt_prog_compiler_static_F77='-non_shared'
14366
lt_prog_compiler_pic_F77='-KPIC'
14367
lt_prog_compiler_static_F77='-Bstatic'
14370
linux* | k*bsd*-gnu)
14371
case $cc_basename in
14373
lt_prog_compiler_wl_F77='-Wl,'
14374
lt_prog_compiler_pic_F77='-KPIC'
14375
lt_prog_compiler_static_F77='-static'
14377
pgcc* | pgf77* | pgf90* | pgf95*)
14378
# Portland Group compilers (*not* the Pentium gcc compiler,
14379
# which looks to be a dead project)
14380
lt_prog_compiler_wl_F77='-Wl,'
14381
lt_prog_compiler_pic_F77='-fpic'
14382
lt_prog_compiler_static_F77='-Bstatic'
14385
lt_prog_compiler_wl_F77='-Wl,'
14386
# All Alpha code is PIC.
14387
lt_prog_compiler_static_F77='-non_shared'
14390
case `$CC -V 2>&1 | sed 5q` in
14393
lt_prog_compiler_pic_F77='-KPIC'
14394
lt_prog_compiler_static_F77='-Bstatic'
14395
lt_prog_compiler_wl_F77='-Wl,'
14398
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14399
lt_prog_compiler_pic_F77='-KPIC'
14400
lt_prog_compiler_static_F77='-Bstatic'
14401
lt_prog_compiler_wl_F77=''
14408
osf3* | osf4* | osf5*)
14409
lt_prog_compiler_wl_F77='-Wl,'
14410
# All OSF/1 code is PIC.
14411
lt_prog_compiler_static_F77='-non_shared'
14415
lt_prog_compiler_static_F77='-non_shared'
14419
lt_prog_compiler_pic_F77='-KPIC'
14420
lt_prog_compiler_static_F77='-Bstatic'
14421
case $cc_basename in
14422
f77* | f90* | f95*)
14423
lt_prog_compiler_wl_F77='-Qoption ld ';;
14425
lt_prog_compiler_wl_F77='-Wl,';;
14430
lt_prog_compiler_wl_F77='-Qoption ld '
14431
lt_prog_compiler_pic_F77='-PIC'
14432
lt_prog_compiler_static_F77='-Bstatic'
14435
sysv4 | sysv4.2uw2* | sysv4.3*)
14436
lt_prog_compiler_wl_F77='-Wl,'
14437
lt_prog_compiler_pic_F77='-KPIC'
14438
lt_prog_compiler_static_F77='-Bstatic'
14442
if test -d /usr/nec ;then
14443
lt_prog_compiler_pic_F77='-Kconform_pic'
14444
lt_prog_compiler_static_F77='-Bstatic'
14448
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14449
lt_prog_compiler_wl_F77='-Wl,'
14450
lt_prog_compiler_pic_F77='-KPIC'
14451
lt_prog_compiler_static_F77='-Bstatic'
14455
lt_prog_compiler_wl_F77='-Wl,'
14456
lt_prog_compiler_can_build_shared_F77=no
14460
lt_prog_compiler_pic_F77='-pic'
14461
lt_prog_compiler_static_F77='-Bstatic'
14465
lt_prog_compiler_can_build_shared_F77=no
14470
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14471
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14474
# Check to make sure the PIC flag actually works.
14476
if test -n "$lt_prog_compiler_pic_F77"; then
14478
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14479
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14480
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14481
echo $ECHO_N "(cached) $ECHO_C" >&6
14483
lt_cv_prog_compiler_pic_works_F77=no
14484
ac_outfile=conftest.$ac_objext
14485
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14487
# Insert the option either (1) after the last *FLAGS variable, or
14488
# (2) before a word containing "conftest.", or (3) at the end.
14489
# Note that $ac_compile itself does not contain backslashes and begins
14490
# with a dollar sign (not a hyphen), so the echo should work correctly.
14491
# The option is referenced via a variable to avoid confusing sed.
14492
lt_compile=`echo "$ac_compile" | $SED \
14493
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495
-e 's:$: $lt_compiler_flag:'`
14496
(eval echo "\"\$as_me:14496: $lt_compile\"" >&5)
14497
(eval "$lt_compile" 2>conftest.err)
14499
cat conftest.err >&5
14500
echo "$as_me:14500: \$? = $ac_status" >&5
14501
if (exit $ac_status) && test -s "$ac_outfile"; then
14502
# The compiler can only warn and ignore the option if not recognized
14503
# So say no if there are warnings other than the usual output.
14504
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507
lt_cv_prog_compiler_pic_works_F77=yes
14513
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14514
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14516
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14517
case $lt_prog_compiler_pic_F77 in
14519
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14522
lt_prog_compiler_pic_F77=
14523
lt_prog_compiler_can_build_shared_F77=no
14528
# For platforms which do not support PIC, -DPIC is meaningless:
14530
lt_prog_compiler_pic_F77=
14533
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14538
# Check to make sure the static flag actually works.
14540
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14541
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14543
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14544
echo $ECHO_N "(cached) $ECHO_C" >&6
14546
lt_cv_prog_compiler_static_works_F77=no
14547
save_LDFLAGS="$LDFLAGS"
14548
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551
# The linker can only warn and ignore the option if not recognized
14552
# So say no if there are warnings
14553
if test -s conftest.err; then
14554
# Append any errors to the config.log.
14555
cat conftest.err 1>&5
14556
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14557
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558
if diff conftest.exp conftest.er2 >/dev/null; then
14559
lt_cv_prog_compiler_static_works_F77=yes
14562
lt_cv_prog_compiler_static_works_F77=yes
14566
LDFLAGS="$save_LDFLAGS"
14569
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14570
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14572
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14575
lt_prog_compiler_static_F77=
14579
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14580
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14581
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14582
echo $ECHO_N "(cached) $ECHO_C" >&6
14584
lt_cv_prog_compiler_c_o_F77=no
14585
$rm -r conftest 2>/dev/null
14589
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14591
lt_compiler_flag="-o out/conftest2.$ac_objext"
14592
# Insert the option either (1) after the last *FLAGS variable, or
14593
# (2) before a word containing "conftest.", or (3) at the end.
14594
# Note that $ac_compile itself does not contain backslashes and begins
14595
# with a dollar sign (not a hyphen), so the echo should work correctly.
14596
lt_compile=`echo "$ac_compile" | $SED \
14597
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14598
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14599
-e 's:$: $lt_compiler_flag:'`
14600
(eval echo "\"\$as_me:14600: $lt_compile\"" >&5)
14601
(eval "$lt_compile" 2>out/conftest.err)
14603
cat out/conftest.err >&5
14604
echo "$as_me:14604: \$? = $ac_status" >&5
14605
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14607
# The compiler can only warn and ignore the option if not recognized
14608
# So say no if there are warnings
14609
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14610
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14611
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14612
lt_cv_prog_compiler_c_o_F77=yes
14617
# SGI C++ compiler will create directory out/ii_files/ for
14618
# template instantiation
14619
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14620
$rm out/* && rmdir out
14626
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14627
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14630
hard_links="nottested"
14631
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14632
# do not overwrite the value of need_locks provided by the user
14633
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14634
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14637
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14639
ln conftest.a conftest.b 2>&5 || hard_links=no
14640
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14642
echo "${ECHO_T}$hard_links" >&6; }
14643
if test "$hard_links" = no; then
14644
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14645
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14652
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14653
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14656
allow_undefined_flag_F77=
14657
enable_shared_with_static_runtimes_F77=no
14659
archive_expsym_cmds_F77=
14660
old_archive_From_new_cmds_F77=
14661
old_archive_from_expsyms_cmds_F77=
14662
export_dynamic_flag_spec_F77=
14663
whole_archive_flag_spec_F77=
14664
thread_safe_flag_spec_F77=
14665
hardcode_libdir_flag_spec_F77=
14666
hardcode_libdir_flag_spec_ld_F77=
14667
hardcode_libdir_separator_F77=
14668
hardcode_direct_F77=no
14669
hardcode_minus_L_F77=no
14670
hardcode_shlibpath_var_F77=unsupported
14671
link_all_deplibs_F77=unknown
14672
hardcode_automatic_F77=no
14674
module_expsym_cmds_F77=
14675
always_export_symbols_F77=no
14676
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677
# include_expsyms should be a list of space-separated symbols to be *always*
14678
# included in the symbol list
14679
include_expsyms_F77=
14680
# exclude_expsyms can be an extended regexp of symbols to exclude
14681
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14682
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14683
# as well as any symbol that contains `d'.
14684
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14685
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14686
# platforms (ab)use it in PIC code, but their linkers get confused if
14687
# the symbol is explicitly referenced. Since portable code cannot
14688
# rely on this symbol name, it's probably fine to never include it in
14689
# preloaded symbol tables.
14690
# Exclude shared library initialization/finalization symbols.
14691
extract_expsyms_cmds=
14692
# Just being paranoid about ensuring that cc_basename is set.
14693
for cc_temp in $compiler""; do
14695
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14696
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14701
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14704
cygwin* | mingw* | pw32*)
14705
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14706
# When not using gcc, we currently assume that we are using
14707
# Microsoft Visual C++.
14708
if test "$GCC" != yes; then
14713
# we just hope/assume this is gcc and not c89 (= MSVC++)
14722
if test "$with_gnu_ld" = yes; then
14723
# If archive_cmds runs LD, not CC, wlarc should be empty
14726
# Set some defaults for GNU ld with shared library support. These
14727
# are reset later if shared libraries are not supported. Putting them
14728
# here allows them to be overridden if necessary.
14729
runpath_var=LD_RUN_PATH
14730
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14731
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14732
# ancient GNU ld didn't support --whole-archive et. al.
14733
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14734
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14736
whole_archive_flag_spec_F77=
14738
supports_anon_versioning=no
14739
case `$LD -v 2>/dev/null` in
14740
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14741
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14742
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14743
*\ 2.11.*) ;; # other 2.11 versions
14744
*) supports_anon_versioning=yes ;;
14747
# See if GNU ld supports shared libraries.
14750
# On AIX/PPC, the GNU linker is very broken
14751
if test "$host_cpu" != ia64; then
14755
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14756
*** to be unable to reliably create shared libraries on AIX.
14757
*** Therefore, libtool is disabling shared libraries support. If you
14758
*** really care for shared libraries, you may want to modify your PATH
14759
*** so that a non-GNU linker is found, and then restart.
14766
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14767
hardcode_libdir_flag_spec_F77='-L$libdir'
14768
hardcode_minus_L_F77=yes
14770
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14771
# that the semantics of dynamic libraries on AmigaOS, at least up
14772
# to version 4, is to share data among multiple programs linked
14773
# with the same dynamic library. Since this doesn't match the
14774
# behavior of shared libraries on other platforms, we can't use
14780
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14781
allow_undefined_flag_F77=unsupported
14782
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14783
# support --undefined. This deserves some investigation. FIXME
14784
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
cygwin* | mingw* | pw32*)
14791
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14792
# as there is no search path for DLLs.
14793
hardcode_libdir_flag_spec_F77='-L$libdir'
14794
allow_undefined_flag_F77=unsupported
14795
always_export_symbols_F77=no
14796
enable_shared_with_static_runtimes_F77=yes
14797
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14799
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14800
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14801
# If the export-symbols file already is a .def file (1st line
14802
# is EXPORTS), use it as is; otherwise, prepend...
14803
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14804
cp $export_symbols $output_objdir/$soname.def;
14806
echo EXPORTS > $output_objdir/$soname.def;
14807
cat $export_symbols >> $output_objdir/$soname.def;
14809
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14816
hardcode_direct_F77=no
14817
hardcode_shlibpath_var_F77=no
14818
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14819
export_dynamic_flag_spec_F77='${wl}-E'
14820
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14821
# Instead, shared libraries are loaded at an image base (0x10000000 by
14822
# default) and relocated if they conflict, which is a slow very memory
14823
# consuming and fragmenting process. To avoid this, we pick a random,
14824
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14825
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14826
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14827
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14830
gnu* | linux* | k*bsd*-gnu)
14831
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833
case $cc_basename,$host_cpu in
14834
pgcc*) # Portland Group C compiler
14835
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14836
tmp_addflag=' $pic_flag'
14838
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14839
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14840
tmp_addflag=' $pic_flag -Mnomain' ;;
14841
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14842
tmp_addflag=' -i_dynamic' ;;
14843
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14844
tmp_addflag=' -i_dynamic -nofor_main' ;;
14845
ifc* | ifort*) # Intel Fortran compiler
14846
tmp_addflag=' -nofor_main' ;;
14848
case `$CC -V 2>&1 | sed 5q` in
14849
*Sun\ C*) # Sun C 5.9
14850
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14851
tmp_sharedflag='-G' ;;
14852
*Sun\ F*) # Sun Fortran 8.3
14853
tmp_sharedflag='-G' ;;
14855
tmp_sharedflag='-shared' ;;
14857
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
if test $supports_anon_versioning = yes; then
14860
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14861
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14862
$echo "local: *; };" >> $output_objdir/$libname.ver~
14863
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14865
link_all_deplibs_F77=no
14871
netbsd* | netbsdelf*-gnu)
14872
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14882
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14886
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887
*** create shared libraries on Solaris systems. Therefore, libtool
14888
*** is disabling shared libraries support. We urge you to upgrade GNU
14889
*** binutils to release 2.9.1 or newer. Another option is to modify
14890
*** your PATH or compiler configuration so that the native linker is
14891
*** used, and then restart.
14894
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14902
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903
case `$LD -v 2>&1` in
14904
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14908
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909
*** reliably create shared libraries on SCO systems. Therefore, libtool
14910
*** is disabling shared libraries support. We urge you to upgrade GNU
14911
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14912
*** your PATH or compiler configuration so that the native linker is
14913
*** used, and then restart.
14918
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14930
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14932
hardcode_direct_F77=yes
14933
hardcode_shlibpath_var_F77=no
14937
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14946
if test "$ld_shlibs_F77" = no; then
14948
hardcode_libdir_flag_spec_F77=
14949
export_dynamic_flag_spec_F77=
14950
whole_archive_flag_spec_F77=
14953
# PORTME fill in a description of your system's linker (not GNU ld)
14956
allow_undefined_flag_F77=unsupported
14957
always_export_symbols_F77=yes
14958
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14959
# Note: this linker hardcodes the directories in LIBPATH if there
14960
# are no directories specified by -L.
14961
hardcode_minus_L_F77=yes
14962
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963
# Neither direct hardcoding nor static linking is supported with a
14965
hardcode_direct_F77=unsupported
14970
if test "$host_cpu" = ia64; then
14971
# On IA64, the linker does run time linking by default, so we don't
14972
# have to do anything special.
14973
aix_use_runtimelinking=no
14974
exp_sym_flag='-Bexport'
14977
# If we're using GNU nm, then we don't want the "-C" option.
14978
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14979
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14982
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14984
aix_use_runtimelinking=no
14986
# Test if we are trying to use run time linking or normal
14987
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988
# need to do runtime linking.
14989
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14990
for ld_flag in $LDFLAGS; do
14991
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992
aix_use_runtimelinking=yes
14999
exp_sym_flag='-bexport'
15000
no_entry_flag='-bnoentry'
15003
# When large executables or shared objects are built, AIX ld can
15004
# have problems creating the table of contents. If linking a library
15005
# or program results in "error TOC overflow" add -mminimal-toc to
15006
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15007
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15009
archive_cmds_F77=''
15010
hardcode_direct_F77=yes
15011
hardcode_libdir_separator_F77=':'
15012
link_all_deplibs_F77=yes
15014
if test "$GCC" = yes; then
15015
case $host_os in aix4.[012]|aix4.[012].*)
15016
# We only want to do this on AIX 4.2 and lower, the check
15017
# below for broken collect2 doesn't work under 4.3+
15018
collect2name=`${CC} -print-prog-name=collect2`
15019
if test -f "$collect2name" && \
15020
strings "$collect2name" | grep resolve_lib_name >/dev/null
15022
# We have reworked collect2
15025
# We have old collect2
15026
hardcode_direct_F77=unsupported
15027
# It fails to find uninstalled libraries when the uninstalled
15028
# path is not listed in the libpath. Setting hardcode_minus_L
15029
# to unsupported forces relinking
15030
hardcode_minus_L_F77=yes
15031
hardcode_libdir_flag_spec_F77='-L$libdir'
15032
hardcode_libdir_separator_F77=
15036
shared_flag='-shared'
15037
if test "$aix_use_runtimelinking" = yes; then
15038
shared_flag="$shared_flag "'${wl}-G'
15042
if test "$host_cpu" = ia64; then
15043
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044
# chokes on -Wl,-G. The following line is correct:
15047
if test "$aix_use_runtimelinking" = yes; then
15048
shared_flag='${wl}-G'
15050
shared_flag='${wl}-bM:SRE'
15055
# It seems that -bexpall does not export symbols beginning with
15056
# underscore (_), so it is better to generate a list of symbols to export.
15057
always_export_symbols_F77=yes
15058
if test "$aix_use_runtimelinking" = yes; then
15059
# Warning - without using the other runtime loading flags (-brtl),
15060
# -berok will link without error, but may produce a broken library.
15061
allow_undefined_flag_F77='-berok'
15062
# Determine the default libpath from the value encoded in an empty executable.
15063
cat >conftest.$ac_ext <<_ACEOF
15068
rm -f conftest.$ac_objext conftest$ac_exeext
15069
if { (ac_try="$ac_link"
15070
case "(($ac_try" in
15071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072
*) ac_try_echo=$ac_try;;
15074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075
(eval "$ac_link") 2>conftest.er1
15077
grep -v '^ *+' conftest.er1 >conftest.err
15079
cat conftest.err >&5
15080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081
(exit $ac_status); } && {
15082
test -z "$ac_f77_werror_flag" ||
15083
test ! -s conftest.err
15084
} && test -s conftest$ac_exeext &&
15085
$as_test_x conftest$ac_exeext; then
15087
lt_aix_libpath_sed='
15088
/Import File Strings/,/^$/ {
15094
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095
# Check for a 64-bit object if we didn't find anything.
15096
if test -z "$aix_libpath"; then
15097
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15100
echo "$as_me: failed program was:" >&5
15101
sed 's/^/| /' conftest.$ac_ext >&5
15106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107
conftest$ac_exeext conftest.$ac_ext
15108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15110
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15111
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15113
if test "$host_cpu" = ia64; then
15114
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15115
allow_undefined_flag_F77="-z nodefs"
15116
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15118
# Determine the default libpath from the value encoded in an empty executable.
15119
cat >conftest.$ac_ext <<_ACEOF
15124
rm -f conftest.$ac_objext conftest$ac_exeext
15125
if { (ac_try="$ac_link"
15126
case "(($ac_try" in
15127
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128
*) ac_try_echo=$ac_try;;
15130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131
(eval "$ac_link") 2>conftest.er1
15133
grep -v '^ *+' conftest.er1 >conftest.err
15135
cat conftest.err >&5
15136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137
(exit $ac_status); } && {
15138
test -z "$ac_f77_werror_flag" ||
15139
test ! -s conftest.err
15140
} && test -s conftest$ac_exeext &&
15141
$as_test_x conftest$ac_exeext; then
15143
lt_aix_libpath_sed='
15144
/Import File Strings/,/^$/ {
15150
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151
# Check for a 64-bit object if we didn't find anything.
15152
if test -z "$aix_libpath"; then
15153
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15156
echo "$as_me: failed program was:" >&5
15157
sed 's/^/| /' conftest.$ac_ext >&5
15162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163
conftest$ac_exeext conftest.$ac_ext
15164
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15166
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15167
# Warning - without using the other run time loading flags,
15168
# -berok will link without error, but may produce a broken library.
15169
no_undefined_flag_F77=' ${wl}-bernotok'
15170
allow_undefined_flag_F77=' ${wl}-berok'
15171
# Exported symbols can be pulled into shared objects from archives
15172
whole_archive_flag_spec_F77='$convenience'
15173
archive_cmds_need_lc_F77=yes
15174
# This is similar to how AIX traditionally builds its shared libraries.
15175
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15181
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15182
hardcode_libdir_flag_spec_F77='-L$libdir'
15183
hardcode_minus_L_F77=yes
15184
# see comment about different semantics on the GNU ld section
15189
export_dynamic_flag_spec_F77=-rdynamic
15192
cygwin* | mingw* | pw32*)
15193
# When not using gcc, we currently assume that we are using
15194
# Microsoft Visual C++.
15195
# hardcode_libdir_flag_spec is actually meaningless, as there is
15196
# no search path for DLLs.
15197
hardcode_libdir_flag_spec_F77=' '
15198
allow_undefined_flag_F77=unsupported
15199
# Tell ltmain to make .lib files, not .a files.
15201
# Tell ltmain to make .dll files, not .so files.
15203
# FIXME: Setting linknames here is a bad hack.
15204
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15205
# The linker will automatically build a .lib file if we build a DLL.
15206
old_archive_From_new_cmds_F77='true'
15207
# FIXME: Should let the user specify the lib program.
15208
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15209
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15210
enable_shared_with_static_runtimes_F77=yes
15213
darwin* | rhapsody*)
15215
rhapsody* | darwin1.[012])
15216
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15219
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15220
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15222
case ${MACOSX_DEPLOYMENT_TARGET} in
15224
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15227
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15233
archive_cmds_need_lc_F77=no
15234
hardcode_direct_F77=no
15235
hardcode_automatic_F77=yes
15236
hardcode_shlibpath_var_F77=unsupported
15237
whole_archive_flag_spec_F77=''
15238
link_all_deplibs_F77=yes
15239
if test "$GCC" = yes ; then
15240
output_verbose_link_cmd='echo'
15241
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15242
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15243
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15244
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15246
case $cc_basename in
15248
output_verbose_link_cmd='echo'
15249
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15250
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15251
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15252
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15253
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15263
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264
hardcode_libdir_flag_spec_F77='-L$libdir'
15265
hardcode_shlibpath_var_F77=no
15272
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15273
# support. Future versions do this automatically, but an explicit c++rt0.o
15274
# does not break anything, and helps significantly (at the cost of a little
15277
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15278
hardcode_libdir_flag_spec_F77='-R$libdir'
15279
hardcode_direct_F77=yes
15280
hardcode_shlibpath_var_F77=no
15283
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15285
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286
hardcode_direct_F77=yes
15287
hardcode_minus_L_F77=yes
15288
hardcode_shlibpath_var_F77=no
15291
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15292
freebsd* | dragonfly*)
15293
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15294
hardcode_libdir_flag_spec_F77='-R$libdir'
15295
hardcode_direct_F77=yes
15296
hardcode_shlibpath_var_F77=no
15300
if test "$GCC" = yes; then
15301
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15303
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15305
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15306
hardcode_libdir_separator_F77=:
15307
hardcode_direct_F77=yes
15309
# hardcode_minus_L: Not really in the search PATH,
15310
# but as the default location of the library.
15311
hardcode_minus_L_F77=yes
15312
export_dynamic_flag_spec_F77='${wl}-E'
15316
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15317
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15319
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15321
if test "$with_gnu_ld" = no; then
15322
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323
hardcode_libdir_separator_F77=:
15325
hardcode_direct_F77=yes
15326
export_dynamic_flag_spec_F77='${wl}-E'
15328
# hardcode_minus_L: Not really in the search PATH,
15329
# but as the default location of the library.
15330
hardcode_minus_L_F77=yes
15335
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15338
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15344
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15350
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15356
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15360
if test "$with_gnu_ld" = no; then
15361
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15362
hardcode_libdir_separator_F77=:
15366
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15367
hardcode_direct_F77=no
15368
hardcode_shlibpath_var_F77=no
15371
hardcode_direct_F77=yes
15372
export_dynamic_flag_spec_F77='${wl}-E'
15374
# hardcode_minus_L: Not really in the search PATH,
15375
# but as the default location of the library.
15376
hardcode_minus_L_F77=yes
15382
irix5* | irix6* | nonstopux*)
15383
if test "$GCC" = yes; then
15384
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15386
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15387
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15389
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15390
hardcode_libdir_separator_F77=:
15391
link_all_deplibs_F77=yes
15394
netbsd* | netbsdelf*-gnu)
15395
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15396
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15398
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15400
hardcode_libdir_flag_spec_F77='-R$libdir'
15401
hardcode_direct_F77=yes
15402
hardcode_shlibpath_var_F77=no
15406
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407
hardcode_direct_F77=yes
15408
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409
hardcode_libdir_separator_F77=:
15410
hardcode_shlibpath_var_F77=no
15414
if test -f /usr/libexec/ld.so; then
15415
hardcode_direct_F77=yes
15416
hardcode_shlibpath_var_F77=no
15417
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15418
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15419
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15420
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15421
export_dynamic_flag_spec_F77='${wl}-E'
15424
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15425
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426
hardcode_libdir_flag_spec_F77='-R$libdir'
15429
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15440
hardcode_libdir_flag_spec_F77='-L$libdir'
15441
hardcode_minus_L_F77=yes
15442
allow_undefined_flag_F77=unsupported
15443
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15444
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15448
if test "$GCC" = yes; then
15449
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15452
allow_undefined_flag_F77=' -expect_unresolved \*'
15453
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15455
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15456
hardcode_libdir_separator_F77=:
15459
osf4* | osf5*) # as osf3* with the addition of -msym flag
15460
if test "$GCC" = yes; then
15461
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15462
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15463
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15465
allow_undefined_flag_F77=' -expect_unresolved \*'
15466
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15467
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15468
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15470
# Both c and cxx compiler support -rpath directly
15471
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15473
hardcode_libdir_separator_F77=:
15477
no_undefined_flag_F77=' -z text'
15478
if test "$GCC" = yes; then
15480
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15485
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15489
hardcode_libdir_flag_spec_F77='-R$libdir'
15490
hardcode_shlibpath_var_F77=no
15492
solaris2.[0-5] | solaris2.[0-5].*) ;;
15494
# The compiler driver will combine and reorder linker options,
15495
# but understands `-z linker_flag'. GCC discards it without `$wl',
15496
# but is careful enough not to reorder.
15497
# Supported since Solaris 2.6 (maybe 2.5.1?)
15498
if test "$GCC" = yes; then
15499
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15501
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15505
link_all_deplibs_F77=yes
15509
if test "x$host_vendor" = xsequent; then
15510
# Use $CC to link under sequent, because it throws in some extra .o
15511
# files that make .init and .fini sections work.
15512
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15514
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15516
hardcode_libdir_flag_spec_F77='-L$libdir'
15517
hardcode_direct_F77=yes
15518
hardcode_minus_L_F77=yes
15519
hardcode_shlibpath_var_F77=no
15523
case $host_vendor in
15525
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526
hardcode_direct_F77=yes # is this really true???
15529
## LD is ld it makes a PLAMLIB
15530
## CC just makes a GrossModule.
15531
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15532
reload_cmds_F77='$CC -r -o $output$reload_objs'
15533
hardcode_direct_F77=no
15536
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15540
runpath_var='LD_RUN_PATH'
15541
hardcode_shlibpath_var_F77=no
15545
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546
hardcode_shlibpath_var_F77=no
15547
export_dynamic_flag_spec_F77='-Bexport'
15551
if test -d /usr/nec; then
15552
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553
hardcode_shlibpath_var_F77=no
15554
runpath_var=LD_RUN_PATH
15555
hardcode_runpath_var=yes
15560
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15561
no_undefined_flag_F77='${wl}-z,text'
15562
archive_cmds_need_lc_F77=no
15563
hardcode_shlibpath_var_F77=no
15564
runpath_var='LD_RUN_PATH'
15566
if test "$GCC" = yes; then
15567
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15575
sysv5* | sco3.2v5* | sco5v6*)
15576
# Note: We can NOT use -z defs as we might desire, because we do not
15577
# link with -lc, and that would cause any symbols used from libc to
15578
# always be unresolved, which means just about no library would
15579
# ever link correctly. If we're not using GNU ld we use -z text
15580
# though, which does catch some bad symbols but isn't as heavy-handed
15582
no_undefined_flag_F77='${wl}-z,text'
15583
allow_undefined_flag_F77='${wl}-z,nodefs'
15584
archive_cmds_need_lc_F77=no
15585
hardcode_shlibpath_var_F77=no
15586
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15587
hardcode_libdir_separator_F77=':'
15588
link_all_deplibs_F77=yes
15589
export_dynamic_flag_spec_F77='${wl}-Bexport'
15590
runpath_var='LD_RUN_PATH'
15592
if test "$GCC" = yes; then
15593
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15602
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603
hardcode_libdir_flag_spec_F77='-L$libdir'
15604
hardcode_shlibpath_var_F77=no
15613
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15614
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15615
test "$ld_shlibs_F77" = no && can_build_shared=no
15618
# Do we need to explicitly link libc?
15620
case "x$archive_cmds_need_lc_F77" in
15622
# Assume -lc should be added
15623
archive_cmds_need_lc_F77=yes
15625
if test "$enable_shared" = yes && test "$GCC" = yes; then
15626
case $archive_cmds_F77 in
15628
# FIXME: we may have to deal with multi-command sequences.
15631
# Test whether the compiler implicitly links with -lc since on some
15632
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15633
# to ld, don't add -lc before -lgcc.
15634
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15635
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15637
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640
(eval $ac_compile) 2>&5
15642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643
(exit $ac_status); } 2>conftest.err; then
15646
libobjs=conftest.$ac_objext
15648
wl=$lt_prog_compiler_wl_F77
15649
pic_flag=$lt_prog_compiler_pic_F77
15655
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15656
allow_undefined_flag_F77=
15657
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15658
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661
(exit $ac_status); }
15663
archive_cmds_need_lc_F77=no
15665
archive_cmds_need_lc_F77=yes
15667
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15669
cat conftest.err 1>&5
15672
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15673
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15680
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15681
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15682
library_names_spec=
15683
libname_spec='lib$name'
15687
postuninstall_cmds=
15691
shlibpath_overrides_runpath=unknown
15693
dynamic_linker="$host_os ld.so"
15694
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15696
need_lib_prefix=unknown
15697
hardcode_into_libs=no
15699
# when you set need_version to no, make sure it does not cause -set_version
15700
# flags to be left without arguments
15701
need_version=unknown
15706
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15707
shlibpath_var=LIBPATH
15709
# AIX 3 has no versioning support, so we append a major version to the name.
15710
soname_spec='${libname}${release}${shared_ext}$major'
15717
hardcode_into_libs=yes
15718
if test "$host_cpu" = ia64; then
15719
# AIX 5 supports IA64
15720
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15721
shlibpath_var=LD_LIBRARY_PATH
15723
# With GCC up to 2.95.x, collect2 would create an import file
15724
# for dependence libraries. The import file would start with
15725
# the line `#! .'. This would cause the generated library to
15726
# depend on `.', always an invalid library. This was fixed in
15727
# development snapshots of GCC prior to 3.0.
15729
aix4 | aix4.[01] | aix4.[01].*)
15730
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15732
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15735
can_build_shared=no
15739
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15740
# soname into executable. Probably we can add versioning support to
15741
# collect2, so additional links can be useful in future.
15742
if test "$aix_use_runtimelinking" = yes; then
15743
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744
# instead of lib<name>.a to let people know that these are not
15745
# typical AIX shared libraries.
15746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15748
# We preserve .a as extension for shared libraries through AIX4.2
15749
# and later when we are not doing run time linking.
15750
library_names_spec='${libname}${release}.a $libname.a'
15751
soname_spec='${libname}${release}${shared_ext}$major'
15753
shlibpath_var=LIBPATH
15758
library_names_spec='$libname.ixlibrary $libname.a'
15759
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15760
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15764
library_names_spec='${libname}${shared_ext}'
15765
dynamic_linker="$host_os ld.so"
15766
shlibpath_var=LIBRARY_PATH
15772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773
soname_spec='${libname}${release}${shared_ext}$major'
15774
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15775
shlibpath_var=LD_LIBRARY_PATH
15776
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15777
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15778
# the default ld.so.conf also contains /usr/contrib/lib and
15779
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15780
# libtool to hard-code these into programs
15783
cygwin* | mingw* | pw32*)
15784
version_type=windows
15789
case $GCC,$host_os in
15790
yes,cygwin* | yes,mingw* | yes,pw32*)
15791
library_names_spec='$libname.dll.a'
15792
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15793
postinstall_cmds='base_file=`basename \${file}`~
15794
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15795
dldir=$destdir/`dirname \$dlpath`~
15796
test -d \$dldir || mkdir -p \$dldir~
15797
$install_prog $dir/$dlname \$dldir/$dlname~
15798
chmod a+x \$dldir/$dlname'
15799
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15800
dlpath=$dir/\$dldll~
15802
shlibpath_overrides_runpath=yes
15806
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15807
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15808
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15811
# MinGW DLLs use traditional 'lib' prefix
15812
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15813
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15814
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15815
# It is most probably a Windows format PATH printed by
15816
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15817
# path with ; separators, and with drive letters. We can handle the
15818
# drive letters (cygwin fileutils understands them), so leave them,
15819
# especially as we might pass files found there to a mingw objdump,
15820
# which wouldn't understand a cygwinified path. Ahh.
15821
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15827
# pw32 DLLs use 'pw' prefix rather than 'lib'
15828
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15834
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15837
dynamic_linker='Win32 ld.exe'
15838
# FIXME: first we should search . and the directory the executable is in
15842
darwin* | rhapsody*)
15843
dynamic_linker="$host_os dyld"
15844
version_type=darwin
15847
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15848
soname_spec='${libname}${release}${major}$shared_ext'
15849
shlibpath_overrides_runpath=yes
15850
shlibpath_var=DYLD_LIBRARY_PATH
15851
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15853
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15861
soname_spec='${libname}${release}${shared_ext}$major'
15862
shlibpath_var=LD_LIBRARY_PATH
15869
freebsd* | dragonfly*)
15870
# DragonFly does not have aout. When/if they implement a new
15871
# versioning mechanism, adjust this.
15872
if test -x /usr/bin/objformat; then
15873
objformat=`/usr/bin/objformat`
15876
freebsd[123]*) objformat=aout ;;
15877
*) objformat=elf ;;
15880
version_type=freebsd-$objformat
15881
case $version_type in
15883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15888
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15892
shlibpath_var=LD_LIBRARY_PATH
15895
shlibpath_overrides_runpath=yes
15897
freebsd3.[01]* | freebsdelf3.[01]*)
15898
shlibpath_overrides_runpath=yes
15899
hardcode_into_libs=yes
15901
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15902
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15903
shlibpath_overrides_runpath=no
15904
hardcode_into_libs=yes
15906
*) # from 4.6 on, and DragonFly
15907
shlibpath_overrides_runpath=yes
15908
hardcode_into_libs=yes
15917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15918
soname_spec='${libname}${release}${shared_ext}$major'
15919
shlibpath_var=LD_LIBRARY_PATH
15920
hardcode_into_libs=yes
15923
hpux9* | hpux10* | hpux11*)
15924
# Give a soname corresponding to the major version so that dld.sl refuses to
15925
# link against other versions.
15932
hardcode_into_libs=yes
15933
dynamic_linker="$host_os dld.so"
15934
shlibpath_var=LD_LIBRARY_PATH
15935
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937
soname_spec='${libname}${release}${shared_ext}$major'
15938
if test "X$HPUX_IA64_MODE" = X32; then
15939
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15941
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15943
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15947
hardcode_into_libs=yes
15948
dynamic_linker="$host_os dld.sl"
15949
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15950
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952
soname_spec='${libname}${release}${shared_ext}$major'
15953
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15954
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15958
dynamic_linker="$host_os dld.sl"
15959
shlibpath_var=SHLIB_PATH
15960
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15961
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962
soname_spec='${libname}${release}${shared_ext}$major'
15965
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15966
postinstall_cmds='chmod 555 $lib'
15973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974
soname_spec='${libname}${release}${shared_ext}$major'
15975
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15976
shlibpath_var=LD_LIBRARY_PATH
15977
shlibpath_overrides_runpath=no
15978
hardcode_into_libs=yes
15981
irix5* | irix6* | nonstopux*)
15983
nonstopux*) version_type=nonstopux ;;
15985
if test "$lt_cv_prog_gnu_ld" = yes; then
15993
soname_spec='${libname}${release}${shared_ext}$major'
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15996
irix5* | nonstopux*)
15997
libsuff= shlibsuff=
16000
case $LD in # libtool.m4 will add one of these switches to LD
16001
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16002
libsuff= shlibsuff= libmagic=32-bit;;
16003
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16004
libsuff=32 shlibsuff=N32 libmagic=N32;;
16005
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16006
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16007
*) libsuff= shlibsuff= libmagic=never-match;;
16011
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16012
shlibpath_overrides_runpath=no
16013
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16014
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16015
hardcode_into_libs=yes
16018
# No shared lib support for Linux oldld, aout, or coff.
16019
linux*oldld* | linux*aout* | linux*coff*)
16023
# This must be Linux ELF.
16024
linux* | k*bsd*-gnu)
16028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029
soname_spec='${libname}${release}${shared_ext}$major'
16030
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16031
shlibpath_var=LD_LIBRARY_PATH
16032
shlibpath_overrides_runpath=no
16033
# This implies no fast_install, which is unacceptable.
16034
# Some rework will be needed to allow for fast_install
16035
# before this can be enabled.
16036
hardcode_into_libs=yes
16038
# Append ld.so.conf contents to the search path
16039
if test -f /etc/ld.so.conf; then
16040
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16041
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16044
# We used to test for /lib/ld.so.1 and disable shared libraries on
16045
# powerpc, because MkLinux only supported shared libraries with the
16046
# GNU dynamic linker. Since this was broken with cross compilers,
16047
# most powerpc-linux boxes support dynamic linking these days and
16048
# people can always --disable-shared, the test was removed, and we
16049
# assume the GNU/Linux dynamic linker is in use.
16050
dynamic_linker='GNU/Linux ld.so'
16057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16058
soname_spec='${libname}${release}${shared_ext}$major'
16059
shlibpath_var=LD_LIBRARY_PATH
16060
shlibpath_overrides_runpath=no
16061
hardcode_into_libs=yes
16062
dynamic_linker='NetBSD ld.elf_so'
16069
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072
dynamic_linker='NetBSD (a.out) ld.so'
16074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075
soname_spec='${libname}${release}${shared_ext}$major'
16076
dynamic_linker='NetBSD ld.elf_so'
16078
shlibpath_var=LD_LIBRARY_PATH
16079
shlibpath_overrides_runpath=yes
16080
hardcode_into_libs=yes
16085
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086
shlibpath_var=LD_LIBRARY_PATH
16087
shlibpath_overrides_runpath=yes
16094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095
soname_spec='${libname}${release}${shared_ext}$major'
16096
shlibpath_var=LD_LIBRARY_PATH
16097
shlibpath_overrides_runpath=yes
16102
sys_lib_dlsearch_path_spec="/usr/lib"
16104
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16106
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107
*) need_version=no ;;
16109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111
shlibpath_var=LD_LIBRARY_PATH
16112
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16114
openbsd2.[89] | openbsd2.[89].*)
16115
shlibpath_overrides_runpath=no
16118
shlibpath_overrides_runpath=yes
16122
shlibpath_overrides_runpath=yes
16127
libname_spec='$name'
16130
library_names_spec='$libname${shared_ext} $libname.a'
16131
dynamic_linker='OS/2 ld.exe'
16132
shlibpath_var=LIBPATH
16135
osf3* | osf4* | osf5*)
16139
soname_spec='${libname}${release}${shared_ext}$major'
16140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141
shlibpath_var=LD_LIBRARY_PATH
16142
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155
soname_spec='${libname}${release}${shared_ext}$major'
16156
shlibpath_var=LD_LIBRARY_PATH
16157
shlibpath_overrides_runpath=yes
16158
hardcode_into_libs=yes
16159
# ldd complains unless libraries are executable
16160
postinstall_cmds='chmod +x $lib'
16165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167
shlibpath_var=LD_LIBRARY_PATH
16168
shlibpath_overrides_runpath=yes
16169
if test "$with_gnu_ld" = yes; then
16177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178
soname_spec='${libname}${release}${shared_ext}$major'
16179
shlibpath_var=LD_LIBRARY_PATH
16180
case $host_vendor in
16182
shlibpath_overrides_runpath=no
16184
export_dynamic_flag_spec='${wl}-Blargedynsym'
16185
runpath_var=LD_RUN_PATH
16193
shlibpath_overrides_runpath=no
16194
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16200
if test -d /usr/nec ;then
16202
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16203
soname_spec='$libname${shared_ext}.$major'
16204
shlibpath_var=LD_LIBRARY_PATH
16208
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16209
version_type=freebsd-elf
16212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16213
soname_spec='${libname}${release}${shared_ext}$major'
16214
shlibpath_var=LD_LIBRARY_PATH
16215
hardcode_into_libs=yes
16216
if test "$with_gnu_ld" = yes; then
16217
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218
shlibpath_overrides_runpath=no
16220
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16221
shlibpath_overrides_runpath=yes
16224
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16228
sys_lib_dlsearch_path_spec='/usr/lib'
16233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234
soname_spec='${libname}${release}${shared_ext}$major'
16235
shlibpath_var=LD_LIBRARY_PATH
16242
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16243
echo "${ECHO_T}$dynamic_linker" >&6; }
16244
test "$dynamic_linker" = no && can_build_shared=no
16246
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16247
echo $ECHO_N "(cached) $ECHO_C" >&6
16249
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16252
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16253
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16254
echo $ECHO_N "(cached) $ECHO_C" >&6
16256
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16259
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16261
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262
if test "$GCC" = yes; then
16263
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268
hardcode_action_F77=
16269
if test -n "$hardcode_libdir_flag_spec_F77" || \
16270
test -n "$runpath_var_F77" || \
16271
test "X$hardcode_automatic_F77" = "Xyes" ; then
16273
# We can hardcode non-existant directories.
16274
if test "$hardcode_direct_F77" != no &&
16275
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16276
# have to relink, otherwise we might link with an installed library
16277
# when we should be linking with a yet-to-be-installed one
16278
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279
test "$hardcode_minus_L_F77" != no; then
16280
# Linking always hardcodes the temporary library directory.
16281
hardcode_action_F77=relink
16283
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16284
hardcode_action_F77=immediate
16287
# We cannot hardcode anything, or else we can only hardcode existing
16289
hardcode_action_F77=unsupported
16291
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16294
if test "$hardcode_action_F77" = relink; then
16295
# Fast installation is not supported
16296
enable_fast_install=no
16297
elif test "$shlibpath_overrides_runpath" = yes ||
16298
test "$enable_shared" = no; then
16299
# Fast installation is not necessary
16300
enable_fast_install=needless
16304
# The else clause should only fire when bootstrapping the
16305
# libtool distribution, otherwise you forgot to ship ltmain.sh
16306
# with your package, and you will get complaints that there are
16307
# no rules to generate ltmain.sh.
16308
if test -f "$ltmain"; then
16309
# See if we are running on zsh, and set the options which allow our commands through
16310
# without removal of \ escapes.
16311
if test -n "${ZSH_VERSION+set}" ; then
16312
setopt NO_GLOB_SUBST
16314
# Now quote all the things that may contain metacharacters while being
16315
# careful not to overquote the AC_SUBSTed values. We take copies of the
16316
# variables and quote the copies for generation of the libtool script.
16317
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16319
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321
deplibs_check_method reload_flag reload_cmds need_locks \
16322
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323
lt_cv_sys_global_symbol_to_c_name_address \
16324
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325
old_postinstall_cmds old_postuninstall_cmds \
16329
lt_prog_compiler_wl_F77 \
16330
lt_prog_compiler_pic_F77 \
16331
lt_prog_compiler_static_F77 \
16332
lt_prog_compiler_no_builtin_flag_F77 \
16333
export_dynamic_flag_spec_F77 \
16334
thread_safe_flag_spec_F77 \
16335
whole_archive_flag_spec_F77 \
16336
enable_shared_with_static_runtimes_F77 \
16337
old_archive_cmds_F77 \
16338
old_archive_from_new_cmds_F77 \
16339
predep_objects_F77 \
16340
postdep_objects_F77 \
16343
compiler_lib_search_path_F77 \
16344
compiler_lib_search_dirs_F77 \
16346
archive_expsym_cmds_F77 \
16347
postinstall_cmds_F77 \
16348
postuninstall_cmds_F77 \
16349
old_archive_from_expsyms_cmds_F77 \
16350
allow_undefined_flag_F77 \
16351
no_undefined_flag_F77 \
16352
export_symbols_cmds_F77 \
16353
hardcode_libdir_flag_spec_F77 \
16354
hardcode_libdir_flag_spec_ld_F77 \
16355
hardcode_libdir_separator_F77 \
16356
hardcode_automatic_F77 \
16358
module_expsym_cmds_F77 \
16359
lt_cv_prog_compiler_c_o_F77 \
16360
fix_srcfile_path_F77 \
16361
exclude_expsyms_F77 \
16362
include_expsyms_F77; do
16365
old_archive_cmds_F77 | \
16366
old_archive_from_new_cmds_F77 | \
16367
archive_cmds_F77 | \
16368
archive_expsym_cmds_F77 | \
16369
module_cmds_F77 | \
16370
module_expsym_cmds_F77 | \
16371
old_archive_from_expsyms_cmds_F77 | \
16372
export_symbols_cmds_F77 | \
16373
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16374
postinstall_cmds | postuninstall_cmds | \
16375
old_postinstall_cmds | old_postuninstall_cmds | \
16376
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16377
# Double-quote double-evaled strings.
16378
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16381
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16387
*'\$0 --fallback-echo"')
16388
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16394
cat <<__EOF__ >> "$cfgfile"
16395
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16397
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16399
# Shell to use when invoking shell scripts.
16402
# Whether or not to build shared libraries.
16403
build_libtool_libs=$enable_shared
16405
# Whether or not to build static libraries.
16406
build_old_libs=$enable_static
16408
# Whether or not to add -lc for building shared libraries.
16409
build_libtool_need_lc=$archive_cmds_need_lc_F77
16411
# Whether or not to disallow shared libs when runtime libs are static
16412
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16414
# Whether or not to optimize for fast installation.
16415
fast_install=$enable_fast_install
16418
host_alias=$host_alias
16422
# The build system.
16423
build_alias=$build_alias
16427
# An echo program that does not interpret backslashes.
16432
AR_FLAGS=$lt_AR_FLAGS
16437
# LTCC compiler flags.
16438
LTCFLAGS=$lt_LTCFLAGS
16440
# A language-specific compiler.
16441
CC=$lt_compiler_F77
16443
# Is the compiler the GNU C compiler?
16449
# The linker used to build libraries.
16452
# Whether we need hard or soft links.
16455
# A BSD-compatible nm program.
16458
# A symbol stripping program
16461
# Used to examine libraries when file_magic_cmd begins "file"
16462
MAGIC_CMD=$MAGIC_CMD
16464
# Used on cygwin: DLL creation program.
16467
# Used on cygwin: object dumper.
16470
# Used on cygwin: assembler.
16473
# The name of the directory that contains temporary libtool files.
16476
# How to create reloadable object files.
16477
reload_flag=$lt_reload_flag
16478
reload_cmds=$lt_reload_cmds
16480
# How to pass a linker flag through the compiler.
16481
wl=$lt_lt_prog_compiler_wl_F77
16483
# Object file suffix (normally "o").
16484
objext="$ac_objext"
16486
# Old archive suffix (normally "a").
16489
# Shared library suffix (normally ".so").
16490
shrext_cmds='$shrext_cmds'
16492
# Executable file suffix (normally "").
16495
# Additional compiler flags for building library objects.
16496
pic_flag=$lt_lt_prog_compiler_pic_F77
16499
# What is the maximum length of a command?
16500
max_cmd_len=$lt_cv_sys_max_cmd_len
16502
# Does compiler simultaneously support -c and -o options?
16503
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16505
# Must we lock files when doing compilation?
16506
need_locks=$lt_need_locks
16508
# Do we need the lib prefix for modules?
16509
need_lib_prefix=$need_lib_prefix
16511
# Do we need a version for libraries?
16512
need_version=$need_version
16514
# Whether dlopen is supported.
16515
dlopen_support=$enable_dlopen
16517
# Whether dlopen of programs is supported.
16518
dlopen_self=$enable_dlopen_self
16520
# Whether dlopen of statically linked programs is supported.
16521
dlopen_self_static=$enable_dlopen_self_static
16523
# Compiler flag to prevent dynamic linking.
16524
link_static_flag=$lt_lt_prog_compiler_static_F77
16526
# Compiler flag to turn off builtin functions.
16527
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16529
# Compiler flag to allow reflexive dlopens.
16530
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16532
# Compiler flag to generate shared objects directly from archives.
16533
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16535
# Compiler flag to generate thread-safe objects.
16536
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16538
# Library versioning type.
16539
version_type=$version_type
16541
# Format of library name prefix.
16542
libname_spec=$lt_libname_spec
16544
# List of archive names. First name is the real one, the rest are links.
16545
# The last name is the one that the linker finds with -lNAME.
16546
library_names_spec=$lt_library_names_spec
16548
# The coded name of the library, if different from the real name.
16549
soname_spec=$lt_soname_spec
16551
# Commands used to build and install an old-style archive.
16553
old_archive_cmds=$lt_old_archive_cmds_F77
16554
old_postinstall_cmds=$lt_old_postinstall_cmds
16555
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16557
# Create an old-style archive from a shared archive.
16558
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16560
# Create a temporary old-style archive to link instead of a shared archive.
16561
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16563
# Commands used to build and install a shared archive.
16564
archive_cmds=$lt_archive_cmds_F77
16565
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16566
postinstall_cmds=$lt_postinstall_cmds
16567
postuninstall_cmds=$lt_postuninstall_cmds
16569
# Commands used to build a loadable module (assumed same as above if empty)
16570
module_cmds=$lt_module_cmds_F77
16571
module_expsym_cmds=$lt_module_expsym_cmds_F77
16573
# Commands to strip libraries.
16574
old_striplib=$lt_old_striplib
16575
striplib=$lt_striplib
16577
# Dependencies to place before the objects being linked to create a
16579
predep_objects=$lt_predep_objects_F77
16581
# Dependencies to place after the objects being linked to create a
16583
postdep_objects=$lt_postdep_objects_F77
16585
# Dependencies to place before the objects being linked to create a
16587
predeps=$lt_predeps_F77
16589
# Dependencies to place after the objects being linked to create a
16591
postdeps=$lt_postdeps_F77
16593
# The directories searched by this compiler when creating a shared
16595
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16597
# The library search path used internally by the compiler when linking
16598
# a shared library.
16599
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16601
# Method to check whether dependent libraries are shared objects.
16602
deplibs_check_method=$lt_deplibs_check_method
16604
# Command to use when deplibs_check_method == file_magic.
16605
file_magic_cmd=$lt_file_magic_cmd
16607
# Flag that allows shared libraries with undefined symbols to be built.
16608
allow_undefined_flag=$lt_allow_undefined_flag_F77
16610
# Flag that forces no undefined symbols.
16611
no_undefined_flag=$lt_no_undefined_flag_F77
16613
# Commands used to finish a libtool library installation in a directory.
16614
finish_cmds=$lt_finish_cmds
16616
# Same as above, but a single script fragment to be evaled but not shown.
16617
finish_eval=$lt_finish_eval
16619
# Take the output of nm and produce a listing of raw symbols and C names.
16620
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16622
# Transform the output of nm in a proper C declaration
16623
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16625
# Transform the output of nm in a C name address pair
16626
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16628
# This is the shared library runtime path variable.
16629
runpath_var=$runpath_var
16631
# This is the shared library path variable.
16632
shlibpath_var=$shlibpath_var
16634
# Is shlibpath searched before the hard-coded library search path?
16635
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16637
# How to hardcode a shared library path into an executable.
16638
hardcode_action=$hardcode_action_F77
16640
# Whether we should hardcode library paths into libraries.
16641
hardcode_into_libs=$hardcode_into_libs
16643
# Flag to hardcode \$libdir into a binary during linking.
16644
# This must work even if \$libdir does not exist.
16645
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16647
# If ld is used when linking, flag to hardcode \$libdir into
16648
# a binary during linking. This must work even if \$libdir does
16650
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16652
# Whether we need a single -rpath flag with a separated argument.
16653
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16655
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16656
# resulting binary.
16657
hardcode_direct=$hardcode_direct_F77
16659
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16660
# resulting binary.
16661
hardcode_minus_L=$hardcode_minus_L_F77
16663
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16664
# the resulting binary.
16665
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16667
# Set to yes if building a shared library automatically hardcodes DIR into the library
16668
# and all subsequent libraries and executables linked against it.
16669
hardcode_automatic=$hardcode_automatic_F77
16671
# Variables whose values should be saved in libtool wrapper scripts and
16672
# restored at relink time.
16673
variables_saved_for_relink="$variables_saved_for_relink"
16675
# Whether libtool must link a program against all its dependency libraries.
16676
link_all_deplibs=$link_all_deplibs_F77
16678
# Compile-time system search path for libraries
16679
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16681
# Run-time system search path for libraries
16682
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16684
# Fix the shell variable \$srcfile for the compiler.
16685
fix_srcfile_path=$lt_fix_srcfile_path
16687
# Set to yes if exported symbols are required.
16688
always_export_symbols=$always_export_symbols_F77
16690
# The commands to list exported symbols.
16691
export_symbols_cmds=$lt_export_symbols_cmds_F77
16693
# The commands to extract the exported symbol list from a shared archive.
16694
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16696
# Symbols that should not be listed in the preloaded symbols.
16697
exclude_expsyms=$lt_exclude_expsyms_F77
16699
# Symbols that must always be exported.
16700
include_expsyms=$lt_include_expsyms_F77
16702
# ### END LIBTOOL TAG CONFIG: $tagname
16708
# If there is no Makefile yet, we rely on a make rule to execute
16709
# `config.status --recheck' to rerun these tests and create the
16710
# libtool script then.
16711
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16712
if test -f "$ltmain_in"; then
16713
test -f Makefile && make "$ltmain"
16719
ac_cpp='$CPP $CPPFLAGS'
16720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16732
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16735
# Source file extension for Java test sources.
16738
# Object file extension for compiled Java test sources.
16742
# Code to be used in simple compile tests
16743
lt_simple_compile_test_code="class foo {}"
16745
# Code to be used in simple link tests
16746
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16748
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16750
# If no C compiler was specified, use CC.
16753
# If no C compiler flags were specified, use CFLAGS.
16754
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16756
# Allow CC to be a program name with arguments.
16760
# save warnings/boilerplate of simple test code
16761
ac_outfile=conftest.$ac_objext
16762
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16763
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16764
_lt_compiler_boilerplate=`cat conftest.err`
16767
ac_outfile=conftest.$ac_objext
16768
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16769
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770
_lt_linker_boilerplate=`cat conftest.err`
16774
# Allow CC to be a program name with arguments.
16779
for cc_temp in $compiler""; do
16781
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16782
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16787
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16790
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16791
archive_cmds_need_lc_GCJ=no
16793
old_archive_cmds_GCJ=$old_archive_cmds
16796
lt_prog_compiler_no_builtin_flag_GCJ=
16798
if test "$GCC" = yes; then
16799
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16802
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16803
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16804
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16805
echo $ECHO_N "(cached) $ECHO_C" >&6
16807
lt_cv_prog_compiler_rtti_exceptions=no
16808
ac_outfile=conftest.$ac_objext
16809
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810
lt_compiler_flag="-fno-rtti -fno-exceptions"
16811
# Insert the option either (1) after the last *FLAGS variable, or
16812
# (2) before a word containing "conftest.", or (3) at the end.
16813
# Note that $ac_compile itself does not contain backslashes and begins
16814
# with a dollar sign (not a hyphen), so the echo should work correctly.
16815
# The option is referenced via a variable to avoid confusing sed.
16816
lt_compile=`echo "$ac_compile" | $SED \
16817
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16819
-e 's:$: $lt_compiler_flag:'`
16820
(eval echo "\"\$as_me:16820: $lt_compile\"" >&5)
16821
(eval "$lt_compile" 2>conftest.err)
16823
cat conftest.err >&5
16824
echo "$as_me:16824: \$? = $ac_status" >&5
16825
if (exit $ac_status) && test -s "$ac_outfile"; then
16826
# The compiler can only warn and ignore the option if not recognized
16827
# So say no if there are warnings other than the usual output.
16828
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16829
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16830
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16831
lt_cv_prog_compiler_rtti_exceptions=yes
16837
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16838
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16840
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16841
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16848
lt_prog_compiler_wl_GCJ=
16849
lt_prog_compiler_pic_GCJ=
16850
lt_prog_compiler_static_GCJ=
16852
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16853
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16855
if test "$GCC" = yes; then
16856
lt_prog_compiler_wl_GCJ='-Wl,'
16857
lt_prog_compiler_static_GCJ='-static'
16861
# All AIX code is PIC.
16862
if test "$host_cpu" = ia64; then
16863
# AIX 5 now supports IA64 processor
16864
lt_prog_compiler_static_GCJ='-Bstatic'
16869
# FIXME: we need at least 68020 code to build shared libraries, but
16870
# adding the `-m68020' flag to GCC prevents building anything better,
16872
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16875
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16876
# PIC is the default for these OSes.
16879
mingw* | cygwin* | pw32* | os2*)
16880
# This hack is so that the source file can tell whether it is being
16881
# built for inclusion in a dll (and should export symbols for example).
16882
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16883
# (--disable-auto-import) libraries
16887
darwin* | rhapsody*)
16888
# PIC is the default on this platform
16889
# Common symbols not allowed in MH_DYLIB files
16890
lt_prog_compiler_pic_GCJ='-fno-common'
16894
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16895
# Instead, we relocate shared libraries at runtime.
16899
# Just because we use GCC doesn't mean we suddenly get shared libraries
16900
# on systems that don't support them.
16901
lt_prog_compiler_can_build_shared_GCJ=no
16906
if test -d /usr/nec; then
16907
lt_prog_compiler_pic_GCJ=-Kconform_pic
16912
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16913
# not for PA HP-UX.
16919
lt_prog_compiler_pic_GCJ='-fPIC'
16925
lt_prog_compiler_pic_GCJ='-fPIC'
16929
# PORTME Check for flag to pass linker flags through the system compiler.
16932
lt_prog_compiler_wl_GCJ='-Wl,'
16933
if test "$host_cpu" = ia64; then
16934
# AIX 5 now supports IA64 processor
16935
lt_prog_compiler_static_GCJ='-Bstatic'
16937
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16941
# PIC is the default on this platform
16942
# Common symbols not allowed in MH_DYLIB files
16943
case $cc_basename in
16945
lt_prog_compiler_pic_GCJ='-qnocommon'
16946
lt_prog_compiler_wl_GCJ='-Wl,'
16951
mingw* | cygwin* | pw32* | os2*)
16952
# This hack is so that the source file can tell whether it is being
16953
# built for inclusion in a dll (and should export symbols for example).
16957
hpux9* | hpux10* | hpux11*)
16958
lt_prog_compiler_wl_GCJ='-Wl,'
16959
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16960
# not for PA HP-UX.
16966
lt_prog_compiler_pic_GCJ='+Z'
16969
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16970
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16973
irix5* | irix6* | nonstopux*)
16974
lt_prog_compiler_wl_GCJ='-Wl,'
16975
# PIC (with -KPIC) is the default.
16976
lt_prog_compiler_static_GCJ='-non_shared'
16980
lt_prog_compiler_pic_GCJ='-KPIC'
16981
lt_prog_compiler_static_GCJ='-Bstatic'
16984
linux* | k*bsd*-gnu)
16985
case $cc_basename in
16987
lt_prog_compiler_wl_GCJ='-Wl,'
16988
lt_prog_compiler_pic_GCJ='-KPIC'
16989
lt_prog_compiler_static_GCJ='-static'
16991
pgcc* | pgf77* | pgf90* | pgf95*)
16992
# Portland Group compilers (*not* the Pentium gcc compiler,
16993
# which looks to be a dead project)
16994
lt_prog_compiler_wl_GCJ='-Wl,'
16995
lt_prog_compiler_pic_GCJ='-fpic'
16996
lt_prog_compiler_static_GCJ='-Bstatic'
16999
lt_prog_compiler_wl_GCJ='-Wl,'
17000
# All Alpha code is PIC.
17001
lt_prog_compiler_static_GCJ='-non_shared'
17004
case `$CC -V 2>&1 | sed 5q` in
17007
lt_prog_compiler_pic_GCJ='-KPIC'
17008
lt_prog_compiler_static_GCJ='-Bstatic'
17009
lt_prog_compiler_wl_GCJ='-Wl,'
17012
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17013
lt_prog_compiler_pic_GCJ='-KPIC'
17014
lt_prog_compiler_static_GCJ='-Bstatic'
17015
lt_prog_compiler_wl_GCJ=''
17022
osf3* | osf4* | osf5*)
17023
lt_prog_compiler_wl_GCJ='-Wl,'
17024
# All OSF/1 code is PIC.
17025
lt_prog_compiler_static_GCJ='-non_shared'
17029
lt_prog_compiler_static_GCJ='-non_shared'
17033
lt_prog_compiler_pic_GCJ='-KPIC'
17034
lt_prog_compiler_static_GCJ='-Bstatic'
17035
case $cc_basename in
17036
f77* | f90* | f95*)
17037
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17039
lt_prog_compiler_wl_GCJ='-Wl,';;
17044
lt_prog_compiler_wl_GCJ='-Qoption ld '
17045
lt_prog_compiler_pic_GCJ='-PIC'
17046
lt_prog_compiler_static_GCJ='-Bstatic'
17049
sysv4 | sysv4.2uw2* | sysv4.3*)
17050
lt_prog_compiler_wl_GCJ='-Wl,'
17051
lt_prog_compiler_pic_GCJ='-KPIC'
17052
lt_prog_compiler_static_GCJ='-Bstatic'
17056
if test -d /usr/nec ;then
17057
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17058
lt_prog_compiler_static_GCJ='-Bstatic'
17062
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17063
lt_prog_compiler_wl_GCJ='-Wl,'
17064
lt_prog_compiler_pic_GCJ='-KPIC'
17065
lt_prog_compiler_static_GCJ='-Bstatic'
17069
lt_prog_compiler_wl_GCJ='-Wl,'
17070
lt_prog_compiler_can_build_shared_GCJ=no
17074
lt_prog_compiler_pic_GCJ='-pic'
17075
lt_prog_compiler_static_GCJ='-Bstatic'
17079
lt_prog_compiler_can_build_shared_GCJ=no
17084
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17085
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17088
# Check to make sure the PIC flag actually works.
17090
if test -n "$lt_prog_compiler_pic_GCJ"; then
17092
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17093
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17094
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17095
echo $ECHO_N "(cached) $ECHO_C" >&6
17097
lt_cv_prog_compiler_pic_works_GCJ=no
17098
ac_outfile=conftest.$ac_objext
17099
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17101
# Insert the option either (1) after the last *FLAGS variable, or
17102
# (2) before a word containing "conftest.", or (3) at the end.
17103
# Note that $ac_compile itself does not contain backslashes and begins
17104
# with a dollar sign (not a hyphen), so the echo should work correctly.
17105
# The option is referenced via a variable to avoid confusing sed.
17106
lt_compile=`echo "$ac_compile" | $SED \
17107
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17108
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17109
-e 's:$: $lt_compiler_flag:'`
17110
(eval echo "\"\$as_me:17110: $lt_compile\"" >&5)
17111
(eval "$lt_compile" 2>conftest.err)
17113
cat conftest.err >&5
17114
echo "$as_me:17114: \$? = $ac_status" >&5
17115
if (exit $ac_status) && test -s "$ac_outfile"; then
17116
# The compiler can only warn and ignore the option if not recognized
17117
# So say no if there are warnings other than the usual output.
17118
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17119
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17120
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17121
lt_cv_prog_compiler_pic_works_GCJ=yes
17127
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17128
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17130
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17131
case $lt_prog_compiler_pic_GCJ in
17133
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17136
lt_prog_compiler_pic_GCJ=
17137
lt_prog_compiler_can_build_shared_GCJ=no
17142
# For platforms which do not support PIC, -DPIC is meaningless:
17144
lt_prog_compiler_pic_GCJ=
17147
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17152
# Check to make sure the static flag actually works.
17154
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17155
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17156
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17157
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17158
echo $ECHO_N "(cached) $ECHO_C" >&6
17160
lt_cv_prog_compiler_static_works_GCJ=no
17161
save_LDFLAGS="$LDFLAGS"
17162
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17163
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17164
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17165
# The linker can only warn and ignore the option if not recognized
17166
# So say no if there are warnings
17167
if test -s conftest.err; then
17168
# Append any errors to the config.log.
17169
cat conftest.err 1>&5
17170
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17171
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17172
if diff conftest.exp conftest.er2 >/dev/null; then
17173
lt_cv_prog_compiler_static_works_GCJ=yes
17176
lt_cv_prog_compiler_static_works_GCJ=yes
17180
LDFLAGS="$save_LDFLAGS"
17183
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17184
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17186
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17189
lt_prog_compiler_static_GCJ=
17193
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17194
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17195
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17196
echo $ECHO_N "(cached) $ECHO_C" >&6
17198
lt_cv_prog_compiler_c_o_GCJ=no
17199
$rm -r conftest 2>/dev/null
17203
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17205
lt_compiler_flag="-o out/conftest2.$ac_objext"
17206
# Insert the option either (1) after the last *FLAGS variable, or
17207
# (2) before a word containing "conftest.", or (3) at the end.
17208
# Note that $ac_compile itself does not contain backslashes and begins
17209
# with a dollar sign (not a hyphen), so the echo should work correctly.
17210
lt_compile=`echo "$ac_compile" | $SED \
17211
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17212
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17213
-e 's:$: $lt_compiler_flag:'`
17214
(eval echo "\"\$as_me:17214: $lt_compile\"" >&5)
17215
(eval "$lt_compile" 2>out/conftest.err)
17217
cat out/conftest.err >&5
17218
echo "$as_me:17218: \$? = $ac_status" >&5
17219
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17221
# The compiler can only warn and ignore the option if not recognized
17222
# So say no if there are warnings
17223
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17224
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17225
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17226
lt_cv_prog_compiler_c_o_GCJ=yes
17231
# SGI C++ compiler will create directory out/ii_files/ for
17232
# template instantiation
17233
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17234
$rm out/* && rmdir out
17240
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17241
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17244
hard_links="nottested"
17245
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17246
# do not overwrite the value of need_locks provided by the user
17247
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17248
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17251
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17253
ln conftest.a conftest.b 2>&5 || hard_links=no
17254
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17256
echo "${ECHO_T}$hard_links" >&6; }
17257
if test "$hard_links" = no; then
17258
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17259
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17266
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17267
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17270
allow_undefined_flag_GCJ=
17271
enable_shared_with_static_runtimes_GCJ=no
17273
archive_expsym_cmds_GCJ=
17274
old_archive_From_new_cmds_GCJ=
17275
old_archive_from_expsyms_cmds_GCJ=
17276
export_dynamic_flag_spec_GCJ=
17277
whole_archive_flag_spec_GCJ=
17278
thread_safe_flag_spec_GCJ=
17279
hardcode_libdir_flag_spec_GCJ=
17280
hardcode_libdir_flag_spec_ld_GCJ=
17281
hardcode_libdir_separator_GCJ=
17282
hardcode_direct_GCJ=no
17283
hardcode_minus_L_GCJ=no
17284
hardcode_shlibpath_var_GCJ=unsupported
17285
link_all_deplibs_GCJ=unknown
17286
hardcode_automatic_GCJ=no
17288
module_expsym_cmds_GCJ=
17289
always_export_symbols_GCJ=no
17290
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17291
# include_expsyms should be a list of space-separated symbols to be *always*
17292
# included in the symbol list
17293
include_expsyms_GCJ=
17294
# exclude_expsyms can be an extended regexp of symbols to exclude
17295
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17296
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17297
# as well as any symbol that contains `d'.
17298
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17299
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17300
# platforms (ab)use it in PIC code, but their linkers get confused if
17301
# the symbol is explicitly referenced. Since portable code cannot
17302
# rely on this symbol name, it's probably fine to never include it in
17303
# preloaded symbol tables.
17304
# Exclude shared library initialization/finalization symbols.
17305
extract_expsyms_cmds=
17306
# Just being paranoid about ensuring that cc_basename is set.
17307
for cc_temp in $compiler""; do
17309
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17310
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17315
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17318
cygwin* | mingw* | pw32*)
17319
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17320
# When not using gcc, we currently assume that we are using
17321
# Microsoft Visual C++.
17322
if test "$GCC" != yes; then
17327
# we just hope/assume this is gcc and not c89 (= MSVC++)
17336
if test "$with_gnu_ld" = yes; then
17337
# If archive_cmds runs LD, not CC, wlarc should be empty
17340
# Set some defaults for GNU ld with shared library support. These
17341
# are reset later if shared libraries are not supported. Putting them
17342
# here allows them to be overridden if necessary.
17343
runpath_var=LD_RUN_PATH
17344
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17345
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17346
# ancient GNU ld didn't support --whole-archive et. al.
17347
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17348
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17350
whole_archive_flag_spec_GCJ=
17352
supports_anon_versioning=no
17353
case `$LD -v 2>/dev/null` in
17354
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17355
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17356
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17357
*\ 2.11.*) ;; # other 2.11 versions
17358
*) supports_anon_versioning=yes ;;
17361
# See if GNU ld supports shared libraries.
17364
# On AIX/PPC, the GNU linker is very broken
17365
if test "$host_cpu" != ia64; then
17369
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17370
*** to be unable to reliably create shared libraries on AIX.
17371
*** Therefore, libtool is disabling shared libraries support. If you
17372
*** really care for shared libraries, you may want to modify your PATH
17373
*** so that a non-GNU linker is found, and then restart.
17380
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17381
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17382
hardcode_minus_L_GCJ=yes
17384
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17385
# that the semantics of dynamic libraries on AmigaOS, at least up
17386
# to version 4, is to share data among multiple programs linked
17387
# with the same dynamic library. Since this doesn't match the
17388
# behavior of shared libraries on other platforms, we can't use
17394
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395
allow_undefined_flag_GCJ=unsupported
17396
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17397
# support --undefined. This deserves some investigation. FIXME
17398
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17404
cygwin* | mingw* | pw32*)
17405
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17406
# as there is no search path for DLLs.
17407
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408
allow_undefined_flag_GCJ=unsupported
17409
always_export_symbols_GCJ=no
17410
enable_shared_with_static_runtimes_GCJ=yes
17411
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17413
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17414
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17415
# If the export-symbols file already is a .def file (1st line
17416
# is EXPORTS), use it as is; otherwise, prepend...
17417
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17418
cp $export_symbols $output_objdir/$soname.def;
17420
echo EXPORTS > $output_objdir/$soname.def;
17421
cat $export_symbols >> $output_objdir/$soname.def;
17423
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17430
hardcode_direct_GCJ=no
17431
hardcode_shlibpath_var_GCJ=no
17432
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17433
export_dynamic_flag_spec_GCJ='${wl}-E'
17434
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17435
# Instead, shared libraries are loaded at an image base (0x10000000 by
17436
# default) and relocated if they conflict, which is a slow very memory
17437
# consuming and fragmenting process. To avoid this, we pick a random,
17438
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17439
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17440
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17441
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17444
gnu* | linux* | k*bsd*-gnu)
17445
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447
case $cc_basename,$host_cpu in
17448
pgcc*) # Portland Group C compiler
17449
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17450
tmp_addflag=' $pic_flag'
17452
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17453
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17454
tmp_addflag=' $pic_flag -Mnomain' ;;
17455
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17456
tmp_addflag=' -i_dynamic' ;;
17457
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17458
tmp_addflag=' -i_dynamic -nofor_main' ;;
17459
ifc* | ifort*) # Intel Fortran compiler
17460
tmp_addflag=' -nofor_main' ;;
17462
case `$CC -V 2>&1 | sed 5q` in
17463
*Sun\ C*) # Sun C 5.9
17464
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17465
tmp_sharedflag='-G' ;;
17466
*Sun\ F*) # Sun Fortran 8.3
17467
tmp_sharedflag='-G' ;;
17469
tmp_sharedflag='-shared' ;;
17471
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17473
if test $supports_anon_versioning = yes; then
17474
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17475
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17476
$echo "local: *; };" >> $output_objdir/$libname.ver~
17477
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17479
link_all_deplibs_GCJ=no
17485
netbsd* | netbsdelf*-gnu)
17486
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17487
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17490
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17496
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17500
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17501
*** create shared libraries on Solaris systems. Therefore, libtool
17502
*** is disabling shared libraries support. We urge you to upgrade GNU
17503
*** binutils to release 2.9.1 or newer. Another option is to modify
17504
*** your PATH or compiler configuration so that the native linker is
17505
*** used, and then restart.
17508
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17509
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17516
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17517
case `$LD -v 2>&1` in
17518
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17522
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17523
*** reliably create shared libraries on SCO systems. Therefore, libtool
17524
*** is disabling shared libraries support. We urge you to upgrade GNU
17525
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17526
*** your PATH or compiler configuration so that the native linker is
17527
*** used, and then restart.
17532
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17534
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17535
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17544
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17546
hardcode_direct_GCJ=yes
17547
hardcode_shlibpath_var_GCJ=no
17551
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17560
if test "$ld_shlibs_GCJ" = no; then
17562
hardcode_libdir_flag_spec_GCJ=
17563
export_dynamic_flag_spec_GCJ=
17564
whole_archive_flag_spec_GCJ=
17567
# PORTME fill in a description of your system's linker (not GNU ld)
17570
allow_undefined_flag_GCJ=unsupported
17571
always_export_symbols_GCJ=yes
17572
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17573
# Note: this linker hardcodes the directories in LIBPATH if there
17574
# are no directories specified by -L.
17575
hardcode_minus_L_GCJ=yes
17576
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17577
# Neither direct hardcoding nor static linking is supported with a
17579
hardcode_direct_GCJ=unsupported
17584
if test "$host_cpu" = ia64; then
17585
# On IA64, the linker does run time linking by default, so we don't
17586
# have to do anything special.
17587
aix_use_runtimelinking=no
17588
exp_sym_flag='-Bexport'
17591
# If we're using GNU nm, then we don't want the "-C" option.
17592
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17593
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17594
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17596
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17598
aix_use_runtimelinking=no
17600
# Test if we are trying to use run time linking or normal
17601
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17602
# need to do runtime linking.
17603
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17604
for ld_flag in $LDFLAGS; do
17605
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17606
aix_use_runtimelinking=yes
17613
exp_sym_flag='-bexport'
17614
no_entry_flag='-bnoentry'
17617
# When large executables or shared objects are built, AIX ld can
17618
# have problems creating the table of contents. If linking a library
17619
# or program results in "error TOC overflow" add -mminimal-toc to
17620
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17621
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17623
archive_cmds_GCJ=''
17624
hardcode_direct_GCJ=yes
17625
hardcode_libdir_separator_GCJ=':'
17626
link_all_deplibs_GCJ=yes
17628
if test "$GCC" = yes; then
17629
case $host_os in aix4.[012]|aix4.[012].*)
17630
# We only want to do this on AIX 4.2 and lower, the check
17631
# below for broken collect2 doesn't work under 4.3+
17632
collect2name=`${CC} -print-prog-name=collect2`
17633
if test -f "$collect2name" && \
17634
strings "$collect2name" | grep resolve_lib_name >/dev/null
17636
# We have reworked collect2
17639
# We have old collect2
17640
hardcode_direct_GCJ=unsupported
17641
# It fails to find uninstalled libraries when the uninstalled
17642
# path is not listed in the libpath. Setting hardcode_minus_L
17643
# to unsupported forces relinking
17644
hardcode_minus_L_GCJ=yes
17645
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646
hardcode_libdir_separator_GCJ=
17650
shared_flag='-shared'
17651
if test "$aix_use_runtimelinking" = yes; then
17652
shared_flag="$shared_flag "'${wl}-G'
17656
if test "$host_cpu" = ia64; then
17657
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17658
# chokes on -Wl,-G. The following line is correct:
17661
if test "$aix_use_runtimelinking" = yes; then
17662
shared_flag='${wl}-G'
17664
shared_flag='${wl}-bM:SRE'
17669
# It seems that -bexpall does not export symbols beginning with
17670
# underscore (_), so it is better to generate a list of symbols to export.
17671
always_export_symbols_GCJ=yes
17672
if test "$aix_use_runtimelinking" = yes; then
17673
# Warning - without using the other runtime loading flags (-brtl),
17674
# -berok will link without error, but may produce a broken library.
17675
allow_undefined_flag_GCJ='-berok'
17676
# Determine the default libpath from the value encoded in an empty executable.
17677
cat >conftest.$ac_ext <<_ACEOF
17680
cat confdefs.h >>conftest.$ac_ext
17681
cat >>conftest.$ac_ext <<_ACEOF
17682
/* end confdefs.h. */
17692
rm -f conftest.$ac_objext conftest$ac_exeext
17693
if { (ac_try="$ac_link"
17694
case "(($ac_try" in
17695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696
*) ac_try_echo=$ac_try;;
17698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699
(eval "$ac_link") 2>conftest.er1
17701
grep -v '^ *+' conftest.er1 >conftest.err
17703
cat conftest.err >&5
17704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705
(exit $ac_status); } && {
17706
test -z "$ac_c_werror_flag" ||
17707
test ! -s conftest.err
17708
} && test -s conftest$ac_exeext &&
17709
$as_test_x conftest$ac_exeext; then
17711
lt_aix_libpath_sed='
17712
/Import File Strings/,/^$/ {
17718
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17719
# Check for a 64-bit object if we didn't find anything.
17720
if test -z "$aix_libpath"; then
17721
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17724
echo "$as_me: failed program was:" >&5
17725
sed 's/^/| /' conftest.$ac_ext >&5
17730
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731
conftest$ac_exeext conftest.$ac_ext
17732
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17734
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17735
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17737
if test "$host_cpu" = ia64; then
17738
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17739
allow_undefined_flag_GCJ="-z nodefs"
17740
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17742
# Determine the default libpath from the value encoded in an empty executable.
17743
cat >conftest.$ac_ext <<_ACEOF
17746
cat confdefs.h >>conftest.$ac_ext
17747
cat >>conftest.$ac_ext <<_ACEOF
17748
/* end confdefs.h. */
17758
rm -f conftest.$ac_objext conftest$ac_exeext
17759
if { (ac_try="$ac_link"
17760
case "(($ac_try" in
17761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762
*) ac_try_echo=$ac_try;;
17764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765
(eval "$ac_link") 2>conftest.er1
17767
grep -v '^ *+' conftest.er1 >conftest.err
17769
cat conftest.err >&5
17770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771
(exit $ac_status); } && {
17772
test -z "$ac_c_werror_flag" ||
17773
test ! -s conftest.err
17774
} && test -s conftest$ac_exeext &&
17775
$as_test_x conftest$ac_exeext; then
17777
lt_aix_libpath_sed='
17778
/Import File Strings/,/^$/ {
17784
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785
# Check for a 64-bit object if we didn't find anything.
17786
if test -z "$aix_libpath"; then
17787
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17790
echo "$as_me: failed program was:" >&5
17791
sed 's/^/| /' conftest.$ac_ext >&5
17796
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797
conftest$ac_exeext conftest.$ac_ext
17798
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17800
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17801
# Warning - without using the other run time loading flags,
17802
# -berok will link without error, but may produce a broken library.
17803
no_undefined_flag_GCJ=' ${wl}-bernotok'
17804
allow_undefined_flag_GCJ=' ${wl}-berok'
17805
# Exported symbols can be pulled into shared objects from archives
17806
whole_archive_flag_spec_GCJ='$convenience'
17807
archive_cmds_need_lc_GCJ=yes
17808
# This is similar to how AIX traditionally builds its shared libraries.
17809
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17815
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17816
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817
hardcode_minus_L_GCJ=yes
17818
# see comment about different semantics on the GNU ld section
17823
export_dynamic_flag_spec_GCJ=-rdynamic
17826
cygwin* | mingw* | pw32*)
17827
# When not using gcc, we currently assume that we are using
17828
# Microsoft Visual C++.
17829
# hardcode_libdir_flag_spec is actually meaningless, as there is
17830
# no search path for DLLs.
17831
hardcode_libdir_flag_spec_GCJ=' '
17832
allow_undefined_flag_GCJ=unsupported
17833
# Tell ltmain to make .lib files, not .a files.
17835
# Tell ltmain to make .dll files, not .so files.
17837
# FIXME: Setting linknames here is a bad hack.
17838
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17839
# The linker will automatically build a .lib file if we build a DLL.
17840
old_archive_From_new_cmds_GCJ='true'
17841
# FIXME: Should let the user specify the lib program.
17842
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17843
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17844
enable_shared_with_static_runtimes_GCJ=yes
17847
darwin* | rhapsody*)
17849
rhapsody* | darwin1.[012])
17850
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17853
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17854
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17856
case ${MACOSX_DEPLOYMENT_TARGET} in
17858
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17861
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17867
archive_cmds_need_lc_GCJ=no
17868
hardcode_direct_GCJ=no
17869
hardcode_automatic_GCJ=yes
17870
hardcode_shlibpath_var_GCJ=unsupported
17871
whole_archive_flag_spec_GCJ=''
17872
link_all_deplibs_GCJ=yes
17873
if test "$GCC" = yes ; then
17874
output_verbose_link_cmd='echo'
17875
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17876
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17877
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17878
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17880
case $cc_basename in
17882
output_verbose_link_cmd='echo'
17883
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17884
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17885
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17886
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17887
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17897
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17898
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899
hardcode_shlibpath_var_GCJ=no
17906
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17907
# support. Future versions do this automatically, but an explicit c++rt0.o
17908
# does not break anything, and helps significantly (at the cost of a little
17911
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17912
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913
hardcode_direct_GCJ=yes
17914
hardcode_shlibpath_var_GCJ=no
17917
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17919
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920
hardcode_direct_GCJ=yes
17921
hardcode_minus_L_GCJ=yes
17922
hardcode_shlibpath_var_GCJ=no
17925
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17926
freebsd* | dragonfly*)
17927
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17928
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929
hardcode_direct_GCJ=yes
17930
hardcode_shlibpath_var_GCJ=no
17934
if test "$GCC" = yes; then
17935
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17937
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17939
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17940
hardcode_libdir_separator_GCJ=:
17941
hardcode_direct_GCJ=yes
17943
# hardcode_minus_L: Not really in the search PATH,
17944
# but as the default location of the library.
17945
hardcode_minus_L_GCJ=yes
17946
export_dynamic_flag_spec_GCJ='${wl}-E'
17950
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17951
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17953
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17955
if test "$with_gnu_ld" = no; then
17956
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957
hardcode_libdir_separator_GCJ=:
17959
hardcode_direct_GCJ=yes
17960
export_dynamic_flag_spec_GCJ='${wl}-E'
17962
# hardcode_minus_L: Not really in the search PATH,
17963
# but as the default location of the library.
17964
hardcode_minus_L_GCJ=yes
17969
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17972
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17975
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17978
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17984
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17987
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17990
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17994
if test "$with_gnu_ld" = no; then
17995
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17996
hardcode_libdir_separator_GCJ=:
18000
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18001
hardcode_direct_GCJ=no
18002
hardcode_shlibpath_var_GCJ=no
18005
hardcode_direct_GCJ=yes
18006
export_dynamic_flag_spec_GCJ='${wl}-E'
18008
# hardcode_minus_L: Not really in the search PATH,
18009
# but as the default location of the library.
18010
hardcode_minus_L_GCJ=yes
18016
irix5* | irix6* | nonstopux*)
18017
if test "$GCC" = yes; then
18018
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18020
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18021
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18023
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18024
hardcode_libdir_separator_GCJ=:
18025
link_all_deplibs_GCJ=yes
18028
netbsd* | netbsdelf*-gnu)
18029
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18030
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18032
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18034
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035
hardcode_direct_GCJ=yes
18036
hardcode_shlibpath_var_GCJ=no
18040
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041
hardcode_direct_GCJ=yes
18042
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18043
hardcode_libdir_separator_GCJ=:
18044
hardcode_shlibpath_var_GCJ=no
18048
if test -f /usr/libexec/ld.so; then
18049
hardcode_direct_GCJ=yes
18050
hardcode_shlibpath_var_GCJ=no
18051
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055
export_dynamic_flag_spec_GCJ='${wl}-E'
18058
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18063
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18074
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075
hardcode_minus_L_GCJ=yes
18076
allow_undefined_flag_GCJ=unsupported
18077
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18078
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18082
if test "$GCC" = yes; then
18083
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18084
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18086
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18087
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18089
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18090
hardcode_libdir_separator_GCJ=:
18093
osf4* | osf5*) # as osf3* with the addition of -msym flag
18094
if test "$GCC" = yes; then
18095
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18096
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18097
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18099
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18100
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18101
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18102
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18104
# Both c and cxx compiler support -rpath directly
18105
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18107
hardcode_libdir_separator_GCJ=:
18111
no_undefined_flag_GCJ=' -z text'
18112
if test "$GCC" = yes; then
18114
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18119
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18121
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18123
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124
hardcode_shlibpath_var_GCJ=no
18126
solaris2.[0-5] | solaris2.[0-5].*) ;;
18128
# The compiler driver will combine and reorder linker options,
18129
# but understands `-z linker_flag'. GCC discards it without `$wl',
18130
# but is careful enough not to reorder.
18131
# Supported since Solaris 2.6 (maybe 2.5.1?)
18132
if test "$GCC" = yes; then
18133
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18135
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18139
link_all_deplibs_GCJ=yes
18143
if test "x$host_vendor" = xsequent; then
18144
# Use $CC to link under sequent, because it throws in some extra .o
18145
# files that make .init and .fini sections work.
18146
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18148
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18150
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151
hardcode_direct_GCJ=yes
18152
hardcode_minus_L_GCJ=yes
18153
hardcode_shlibpath_var_GCJ=no
18157
case $host_vendor in
18159
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160
hardcode_direct_GCJ=yes # is this really true???
18163
## LD is ld it makes a PLAMLIB
18164
## CC just makes a GrossModule.
18165
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18166
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18167
hardcode_direct_GCJ=no
18170
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18174
runpath_var='LD_RUN_PATH'
18175
hardcode_shlibpath_var_GCJ=no
18179
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180
hardcode_shlibpath_var_GCJ=no
18181
export_dynamic_flag_spec_GCJ='-Bexport'
18185
if test -d /usr/nec; then
18186
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187
hardcode_shlibpath_var_GCJ=no
18188
runpath_var=LD_RUN_PATH
18189
hardcode_runpath_var=yes
18194
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18195
no_undefined_flag_GCJ='${wl}-z,text'
18196
archive_cmds_need_lc_GCJ=no
18197
hardcode_shlibpath_var_GCJ=no
18198
runpath_var='LD_RUN_PATH'
18200
if test "$GCC" = yes; then
18201
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18202
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18204
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18205
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18209
sysv5* | sco3.2v5* | sco5v6*)
18210
# Note: We can NOT use -z defs as we might desire, because we do not
18211
# link with -lc, and that would cause any symbols used from libc to
18212
# always be unresolved, which means just about no library would
18213
# ever link correctly. If we're not using GNU ld we use -z text
18214
# though, which does catch some bad symbols but isn't as heavy-handed
18216
no_undefined_flag_GCJ='${wl}-z,text'
18217
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18218
archive_cmds_need_lc_GCJ=no
18219
hardcode_shlibpath_var_GCJ=no
18220
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18221
hardcode_libdir_separator_GCJ=':'
18222
link_all_deplibs_GCJ=yes
18223
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18224
runpath_var='LD_RUN_PATH'
18226
if test "$GCC" = yes; then
18227
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18228
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18230
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18236
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18238
hardcode_shlibpath_var_GCJ=no
18247
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18248
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18249
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18252
# Do we need to explicitly link libc?
18254
case "x$archive_cmds_need_lc_GCJ" in
18256
# Assume -lc should be added
18257
archive_cmds_need_lc_GCJ=yes
18259
if test "$enable_shared" = yes && test "$GCC" = yes; then
18260
case $archive_cmds_GCJ in
18262
# FIXME: we may have to deal with multi-command sequences.
18265
# Test whether the compiler implicitly links with -lc since on some
18266
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18267
# to ld, don't add -lc before -lgcc.
18268
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18269
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18271
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274
(eval $ac_compile) 2>&5
18276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277
(exit $ac_status); } 2>conftest.err; then
18280
libobjs=conftest.$ac_objext
18282
wl=$lt_prog_compiler_wl_GCJ
18283
pic_flag=$lt_prog_compiler_pic_GCJ
18289
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18290
allow_undefined_flag_GCJ=
18291
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18292
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295
(exit $ac_status); }
18297
archive_cmds_need_lc_GCJ=no
18299
archive_cmds_need_lc_GCJ=yes
18301
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18303
cat conftest.err 1>&5
18306
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18307
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18314
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18315
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18316
library_names_spec=
18317
libname_spec='lib$name'
18321
postuninstall_cmds=
18325
shlibpath_overrides_runpath=unknown
18327
dynamic_linker="$host_os ld.so"
18328
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18330
need_lib_prefix=unknown
18331
hardcode_into_libs=no
18333
# when you set need_version to no, make sure it does not cause -set_version
18334
# flags to be left without arguments
18335
need_version=unknown
18340
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18341
shlibpath_var=LIBPATH
18343
# AIX 3 has no versioning support, so we append a major version to the name.
18344
soname_spec='${libname}${release}${shared_ext}$major'
18351
hardcode_into_libs=yes
18352
if test "$host_cpu" = ia64; then
18353
# AIX 5 supports IA64
18354
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18355
shlibpath_var=LD_LIBRARY_PATH
18357
# With GCC up to 2.95.x, collect2 would create an import file
18358
# for dependence libraries. The import file would start with
18359
# the line `#! .'. This would cause the generated library to
18360
# depend on `.', always an invalid library. This was fixed in
18361
# development snapshots of GCC prior to 3.0.
18363
aix4 | aix4.[01] | aix4.[01].*)
18364
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18366
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18369
can_build_shared=no
18373
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18374
# soname into executable. Probably we can add versioning support to
18375
# collect2, so additional links can be useful in future.
18376
if test "$aix_use_runtimelinking" = yes; then
18377
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18378
# instead of lib<name>.a to let people know that these are not
18379
# typical AIX shared libraries.
18380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18382
# We preserve .a as extension for shared libraries through AIX4.2
18383
# and later when we are not doing run time linking.
18384
library_names_spec='${libname}${release}.a $libname.a'
18385
soname_spec='${libname}${release}${shared_ext}$major'
18387
shlibpath_var=LIBPATH
18392
library_names_spec='$libname.ixlibrary $libname.a'
18393
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18394
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18398
library_names_spec='${libname}${shared_ext}'
18399
dynamic_linker="$host_os ld.so"
18400
shlibpath_var=LIBRARY_PATH
18406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407
soname_spec='${libname}${release}${shared_ext}$major'
18408
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18409
shlibpath_var=LD_LIBRARY_PATH
18410
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18411
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18412
# the default ld.so.conf also contains /usr/contrib/lib and
18413
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18414
# libtool to hard-code these into programs
18417
cygwin* | mingw* | pw32*)
18418
version_type=windows
18423
case $GCC,$host_os in
18424
yes,cygwin* | yes,mingw* | yes,pw32*)
18425
library_names_spec='$libname.dll.a'
18426
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18427
postinstall_cmds='base_file=`basename \${file}`~
18428
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18429
dldir=$destdir/`dirname \$dlpath`~
18430
test -d \$dldir || mkdir -p \$dldir~
18431
$install_prog $dir/$dlname \$dldir/$dlname~
18432
chmod a+x \$dldir/$dlname'
18433
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18434
dlpath=$dir/\$dldll~
18436
shlibpath_overrides_runpath=yes
18440
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18441
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18445
# MinGW DLLs use traditional 'lib' prefix
18446
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18448
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18449
# It is most probably a Windows format PATH printed by
18450
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18451
# path with ; separators, and with drive letters. We can handle the
18452
# drive letters (cygwin fileutils understands them), so leave them,
18453
# especially as we might pass files found there to a mingw objdump,
18454
# which wouldn't understand a cygwinified path. Ahh.
18455
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18457
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18461
# pw32 DLLs use 'pw' prefix rather than 'lib'
18462
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18468
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18471
dynamic_linker='Win32 ld.exe'
18472
# FIXME: first we should search . and the directory the executable is in
18476
darwin* | rhapsody*)
18477
dynamic_linker="$host_os dyld"
18478
version_type=darwin
18481
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18482
soname_spec='${libname}${release}${major}$shared_ext'
18483
shlibpath_overrides_runpath=yes
18484
shlibpath_var=DYLD_LIBRARY_PATH
18485
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18487
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18495
soname_spec='${libname}${release}${shared_ext}$major'
18496
shlibpath_var=LD_LIBRARY_PATH
18503
freebsd* | dragonfly*)
18504
# DragonFly does not have aout. When/if they implement a new
18505
# versioning mechanism, adjust this.
18506
if test -x /usr/bin/objformat; then
18507
objformat=`/usr/bin/objformat`
18510
freebsd[123]*) objformat=aout ;;
18511
*) objformat=elf ;;
18514
version_type=freebsd-$objformat
18515
case $version_type in
18517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18522
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18526
shlibpath_var=LD_LIBRARY_PATH
18529
shlibpath_overrides_runpath=yes
18531
freebsd3.[01]* | freebsdelf3.[01]*)
18532
shlibpath_overrides_runpath=yes
18533
hardcode_into_libs=yes
18535
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18536
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18537
shlibpath_overrides_runpath=no
18538
hardcode_into_libs=yes
18540
*) # from 4.6 on, and DragonFly
18541
shlibpath_overrides_runpath=yes
18542
hardcode_into_libs=yes
18551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18552
soname_spec='${libname}${release}${shared_ext}$major'
18553
shlibpath_var=LD_LIBRARY_PATH
18554
hardcode_into_libs=yes
18557
hpux9* | hpux10* | hpux11*)
18558
# Give a soname corresponding to the major version so that dld.sl refuses to
18559
# link against other versions.
18566
hardcode_into_libs=yes
18567
dynamic_linker="$host_os dld.so"
18568
shlibpath_var=LD_LIBRARY_PATH
18569
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571
soname_spec='${libname}${release}${shared_ext}$major'
18572
if test "X$HPUX_IA64_MODE" = X32; then
18573
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18575
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18577
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18581
hardcode_into_libs=yes
18582
dynamic_linker="$host_os dld.sl"
18583
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18584
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586
soname_spec='${libname}${release}${shared_ext}$major'
18587
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18588
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18592
dynamic_linker="$host_os dld.sl"
18593
shlibpath_var=SHLIB_PATH
18594
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596
soname_spec='${libname}${release}${shared_ext}$major'
18599
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18600
postinstall_cmds='chmod 555 $lib'
18607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608
soname_spec='${libname}${release}${shared_ext}$major'
18609
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18610
shlibpath_var=LD_LIBRARY_PATH
18611
shlibpath_overrides_runpath=no
18612
hardcode_into_libs=yes
18615
irix5* | irix6* | nonstopux*)
18617
nonstopux*) version_type=nonstopux ;;
18619
if test "$lt_cv_prog_gnu_ld" = yes; then
18627
soname_spec='${libname}${release}${shared_ext}$major'
18628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18630
irix5* | nonstopux*)
18631
libsuff= shlibsuff=
18634
case $LD in # libtool.m4 will add one of these switches to LD
18635
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18636
libsuff= shlibsuff= libmagic=32-bit;;
18637
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18638
libsuff=32 shlibsuff=N32 libmagic=N32;;
18639
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18640
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18641
*) libsuff= shlibsuff= libmagic=never-match;;
18645
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18646
shlibpath_overrides_runpath=no
18647
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18648
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18649
hardcode_into_libs=yes
18652
# No shared lib support for Linux oldld, aout, or coff.
18653
linux*oldld* | linux*aout* | linux*coff*)
18657
# This must be Linux ELF.
18658
linux* | k*bsd*-gnu)
18662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663
soname_spec='${libname}${release}${shared_ext}$major'
18664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18665
shlibpath_var=LD_LIBRARY_PATH
18666
shlibpath_overrides_runpath=no
18667
# This implies no fast_install, which is unacceptable.
18668
# Some rework will be needed to allow for fast_install
18669
# before this can be enabled.
18670
hardcode_into_libs=yes
18672
# Append ld.so.conf contents to the search path
18673
if test -f /etc/ld.so.conf; then
18674
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18675
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18678
# We used to test for /lib/ld.so.1 and disable shared libraries on
18679
# powerpc, because MkLinux only supported shared libraries with the
18680
# GNU dynamic linker. Since this was broken with cross compilers,
18681
# most powerpc-linux boxes support dynamic linking these days and
18682
# people can always --disable-shared, the test was removed, and we
18683
# assume the GNU/Linux dynamic linker is in use.
18684
dynamic_linker='GNU/Linux ld.so'
18691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18692
soname_spec='${libname}${release}${shared_ext}$major'
18693
shlibpath_var=LD_LIBRARY_PATH
18694
shlibpath_overrides_runpath=no
18695
hardcode_into_libs=yes
18696
dynamic_linker='NetBSD ld.elf_so'
18703
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18705
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18706
dynamic_linker='NetBSD (a.out) ld.so'
18708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709
soname_spec='${libname}${release}${shared_ext}$major'
18710
dynamic_linker='NetBSD ld.elf_so'
18712
shlibpath_var=LD_LIBRARY_PATH
18713
shlibpath_overrides_runpath=yes
18714
hardcode_into_libs=yes
18719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720
shlibpath_var=LD_LIBRARY_PATH
18721
shlibpath_overrides_runpath=yes
18728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729
soname_spec='${libname}${release}${shared_ext}$major'
18730
shlibpath_var=LD_LIBRARY_PATH
18731
shlibpath_overrides_runpath=yes
18736
sys_lib_dlsearch_path_spec="/usr/lib"
18738
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18740
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18741
*) need_version=no ;;
18743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18744
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18745
shlibpath_var=LD_LIBRARY_PATH
18746
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18748
openbsd2.[89] | openbsd2.[89].*)
18749
shlibpath_overrides_runpath=no
18752
shlibpath_overrides_runpath=yes
18756
shlibpath_overrides_runpath=yes
18761
libname_spec='$name'
18764
library_names_spec='$libname${shared_ext} $libname.a'
18765
dynamic_linker='OS/2 ld.exe'
18766
shlibpath_var=LIBPATH
18769
osf3* | osf4* | osf5*)
18773
soname_spec='${libname}${release}${shared_ext}$major'
18774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775
shlibpath_var=LD_LIBRARY_PATH
18776
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18777
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789
soname_spec='${libname}${release}${shared_ext}$major'
18790
shlibpath_var=LD_LIBRARY_PATH
18791
shlibpath_overrides_runpath=yes
18792
hardcode_into_libs=yes
18793
# ldd complains unless libraries are executable
18794
postinstall_cmds='chmod +x $lib'
18799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18800
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18801
shlibpath_var=LD_LIBRARY_PATH
18802
shlibpath_overrides_runpath=yes
18803
if test "$with_gnu_ld" = yes; then
18811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812
soname_spec='${libname}${release}${shared_ext}$major'
18813
shlibpath_var=LD_LIBRARY_PATH
18814
case $host_vendor in
18816
shlibpath_overrides_runpath=no
18818
export_dynamic_flag_spec='${wl}-Blargedynsym'
18819
runpath_var=LD_RUN_PATH
18827
shlibpath_overrides_runpath=no
18828
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18834
if test -d /usr/nec ;then
18836
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837
soname_spec='$libname${shared_ext}.$major'
18838
shlibpath_var=LD_LIBRARY_PATH
18842
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843
version_type=freebsd-elf
18846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847
soname_spec='${libname}${release}${shared_ext}$major'
18848
shlibpath_var=LD_LIBRARY_PATH
18849
hardcode_into_libs=yes
18850
if test "$with_gnu_ld" = yes; then
18851
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18852
shlibpath_overrides_runpath=no
18854
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855
shlibpath_overrides_runpath=yes
18858
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18862
sys_lib_dlsearch_path_spec='/usr/lib'
18867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868
soname_spec='${libname}${release}${shared_ext}$major'
18869
shlibpath_var=LD_LIBRARY_PATH
18876
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877
echo "${ECHO_T}$dynamic_linker" >&6; }
18878
test "$dynamic_linker" = no && can_build_shared=no
18880
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18881
echo $ECHO_N "(cached) $ECHO_C" >&6
18883
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18886
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18887
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18888
echo $ECHO_N "(cached) $ECHO_C" >&6
18890
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18893
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18895
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18896
if test "$GCC" = yes; then
18897
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18900
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18901
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18902
hardcode_action_GCJ=
18903
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18904
test -n "$runpath_var_GCJ" || \
18905
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18907
# We can hardcode non-existant directories.
18908
if test "$hardcode_direct_GCJ" != no &&
18909
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18910
# have to relink, otherwise we might link with an installed library
18911
# when we should be linking with a yet-to-be-installed one
18912
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18913
test "$hardcode_minus_L_GCJ" != no; then
18914
# Linking always hardcodes the temporary library directory.
18915
hardcode_action_GCJ=relink
18917
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18918
hardcode_action_GCJ=immediate
18921
# We cannot hardcode anything, or else we can only hardcode existing
18923
hardcode_action_GCJ=unsupported
18925
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18926
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18928
if test "$hardcode_action_GCJ" = relink; then
18929
# Fast installation is not supported
18930
enable_fast_install=no
18931
elif test "$shlibpath_overrides_runpath" = yes ||
18932
test "$enable_shared" = no; then
18933
# Fast installation is not necessary
18934
enable_fast_install=needless
18938
# The else clause should only fire when bootstrapping the
18939
# libtool distribution, otherwise you forgot to ship ltmain.sh
18940
# with your package, and you will get complaints that there are
18941
# no rules to generate ltmain.sh.
18942
if test -f "$ltmain"; then
18943
# See if we are running on zsh, and set the options which allow our commands through
18944
# without removal of \ escapes.
18945
if test -n "${ZSH_VERSION+set}" ; then
18946
setopt NO_GLOB_SUBST
18948
# Now quote all the things that may contain metacharacters while being
18949
# careful not to overquote the AC_SUBSTed values. We take copies of the
18950
# variables and quote the copies for generation of the libtool script.
18951
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18953
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18954
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18955
deplibs_check_method reload_flag reload_cmds need_locks \
18956
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18957
lt_cv_sys_global_symbol_to_c_name_address \
18958
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18959
old_postinstall_cmds old_postuninstall_cmds \
18963
lt_prog_compiler_wl_GCJ \
18964
lt_prog_compiler_pic_GCJ \
18965
lt_prog_compiler_static_GCJ \
18966
lt_prog_compiler_no_builtin_flag_GCJ \
18967
export_dynamic_flag_spec_GCJ \
18968
thread_safe_flag_spec_GCJ \
18969
whole_archive_flag_spec_GCJ \
18970
enable_shared_with_static_runtimes_GCJ \
18971
old_archive_cmds_GCJ \
18972
old_archive_from_new_cmds_GCJ \
18973
predep_objects_GCJ \
18974
postdep_objects_GCJ \
18977
compiler_lib_search_path_GCJ \
18978
compiler_lib_search_dirs_GCJ \
18980
archive_expsym_cmds_GCJ \
18981
postinstall_cmds_GCJ \
18982
postuninstall_cmds_GCJ \
18983
old_archive_from_expsyms_cmds_GCJ \
18984
allow_undefined_flag_GCJ \
18985
no_undefined_flag_GCJ \
18986
export_symbols_cmds_GCJ \
18987
hardcode_libdir_flag_spec_GCJ \
18988
hardcode_libdir_flag_spec_ld_GCJ \
18989
hardcode_libdir_separator_GCJ \
18990
hardcode_automatic_GCJ \
18992
module_expsym_cmds_GCJ \
18993
lt_cv_prog_compiler_c_o_GCJ \
18994
fix_srcfile_path_GCJ \
18995
exclude_expsyms_GCJ \
18996
include_expsyms_GCJ; do
18999
old_archive_cmds_GCJ | \
19000
old_archive_from_new_cmds_GCJ | \
19001
archive_cmds_GCJ | \
19002
archive_expsym_cmds_GCJ | \
19003
module_cmds_GCJ | \
19004
module_expsym_cmds_GCJ | \
19005
old_archive_from_expsyms_cmds_GCJ | \
19006
export_symbols_cmds_GCJ | \
19007
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008
postinstall_cmds | postuninstall_cmds | \
19009
old_postinstall_cmds | old_postuninstall_cmds | \
19010
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19011
# Double-quote double-evaled strings.
19012
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19015
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19021
*'\$0 --fallback-echo"')
19022
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19028
cat <<__EOF__ >> "$cfgfile"
19029
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19031
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19033
# Shell to use when invoking shell scripts.
19036
# Whether or not to build shared libraries.
19037
build_libtool_libs=$enable_shared
19039
# Whether or not to build static libraries.
19040
build_old_libs=$enable_static
19042
# Whether or not to add -lc for building shared libraries.
19043
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19045
# Whether or not to disallow shared libs when runtime libs are static
19046
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19048
# Whether or not to optimize for fast installation.
19049
fast_install=$enable_fast_install
19052
host_alias=$host_alias
19056
# The build system.
19057
build_alias=$build_alias
19061
# An echo program that does not interpret backslashes.
19066
AR_FLAGS=$lt_AR_FLAGS
19071
# LTCC compiler flags.
19072
LTCFLAGS=$lt_LTCFLAGS
19074
# A language-specific compiler.
19075
CC=$lt_compiler_GCJ
19077
# Is the compiler the GNU C compiler?
19083
# The linker used to build libraries.
19086
# Whether we need hard or soft links.
19089
# A BSD-compatible nm program.
19092
# A symbol stripping program
19095
# Used to examine libraries when file_magic_cmd begins "file"
19096
MAGIC_CMD=$MAGIC_CMD
19098
# Used on cygwin: DLL creation program.
19101
# Used on cygwin: object dumper.
19104
# Used on cygwin: assembler.
19107
# The name of the directory that contains temporary libtool files.
19110
# How to create reloadable object files.
19111
reload_flag=$lt_reload_flag
19112
reload_cmds=$lt_reload_cmds
19114
# How to pass a linker flag through the compiler.
19115
wl=$lt_lt_prog_compiler_wl_GCJ
19117
# Object file suffix (normally "o").
19118
objext="$ac_objext"
19120
# Old archive suffix (normally "a").
19123
# Shared library suffix (normally ".so").
19124
shrext_cmds='$shrext_cmds'
19126
# Executable file suffix (normally "").
19129
# Additional compiler flags for building library objects.
19130
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19133
# What is the maximum length of a command?
19134
max_cmd_len=$lt_cv_sys_max_cmd_len
19136
# Does compiler simultaneously support -c and -o options?
19137
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19139
# Must we lock files when doing compilation?
19140
need_locks=$lt_need_locks
19142
# Do we need the lib prefix for modules?
19143
need_lib_prefix=$need_lib_prefix
19145
# Do we need a version for libraries?
19146
need_version=$need_version
19148
# Whether dlopen is supported.
19149
dlopen_support=$enable_dlopen
19151
# Whether dlopen of programs is supported.
19152
dlopen_self=$enable_dlopen_self
19154
# Whether dlopen of statically linked programs is supported.
19155
dlopen_self_static=$enable_dlopen_self_static
19157
# Compiler flag to prevent dynamic linking.
19158
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19160
# Compiler flag to turn off builtin functions.
19161
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19163
# Compiler flag to allow reflexive dlopens.
19164
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19166
# Compiler flag to generate shared objects directly from archives.
19167
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19169
# Compiler flag to generate thread-safe objects.
19170
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19172
# Library versioning type.
19173
version_type=$version_type
19175
# Format of library name prefix.
19176
libname_spec=$lt_libname_spec
19178
# List of archive names. First name is the real one, the rest are links.
19179
# The last name is the one that the linker finds with -lNAME.
19180
library_names_spec=$lt_library_names_spec
19182
# The coded name of the library, if different from the real name.
19183
soname_spec=$lt_soname_spec
19185
# Commands used to build and install an old-style archive.
19187
old_archive_cmds=$lt_old_archive_cmds_GCJ
19188
old_postinstall_cmds=$lt_old_postinstall_cmds
19189
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19191
# Create an old-style archive from a shared archive.
19192
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19194
# Create a temporary old-style archive to link instead of a shared archive.
19195
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19197
# Commands used to build and install a shared archive.
19198
archive_cmds=$lt_archive_cmds_GCJ
19199
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200
postinstall_cmds=$lt_postinstall_cmds
19201
postuninstall_cmds=$lt_postuninstall_cmds
19203
# Commands used to build a loadable module (assumed same as above if empty)
19204
module_cmds=$lt_module_cmds_GCJ
19205
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19207
# Commands to strip libraries.
19208
old_striplib=$lt_old_striplib
19209
striplib=$lt_striplib
19211
# Dependencies to place before the objects being linked to create a
19213
predep_objects=$lt_predep_objects_GCJ
19215
# Dependencies to place after the objects being linked to create a
19217
postdep_objects=$lt_postdep_objects_GCJ
19219
# Dependencies to place before the objects being linked to create a
19221
predeps=$lt_predeps_GCJ
19223
# Dependencies to place after the objects being linked to create a
19225
postdeps=$lt_postdeps_GCJ
19227
# The directories searched by this compiler when creating a shared
19229
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19231
# The library search path used internally by the compiler when linking
19232
# a shared library.
19233
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19235
# Method to check whether dependent libraries are shared objects.
19236
deplibs_check_method=$lt_deplibs_check_method
19238
# Command to use when deplibs_check_method == file_magic.
19239
file_magic_cmd=$lt_file_magic_cmd
19241
# Flag that allows shared libraries with undefined symbols to be built.
19242
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19244
# Flag that forces no undefined symbols.
19245
no_undefined_flag=$lt_no_undefined_flag_GCJ
19247
# Commands used to finish a libtool library installation in a directory.
19248
finish_cmds=$lt_finish_cmds
19250
# Same as above, but a single script fragment to be evaled but not shown.
19251
finish_eval=$lt_finish_eval
19253
# Take the output of nm and produce a listing of raw symbols and C names.
19254
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19256
# Transform the output of nm in a proper C declaration
19257
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19259
# Transform the output of nm in a C name address pair
19260
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19262
# This is the shared library runtime path variable.
19263
runpath_var=$runpath_var
19265
# This is the shared library path variable.
19266
shlibpath_var=$shlibpath_var
19268
# Is shlibpath searched before the hard-coded library search path?
19269
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19271
# How to hardcode a shared library path into an executable.
19272
hardcode_action=$hardcode_action_GCJ
19274
# Whether we should hardcode library paths into libraries.
19275
hardcode_into_libs=$hardcode_into_libs
19277
# Flag to hardcode \$libdir into a binary during linking.
19278
# This must work even if \$libdir does not exist.
19279
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19281
# If ld is used when linking, flag to hardcode \$libdir into
19282
# a binary during linking. This must work even if \$libdir does
19284
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19286
# Whether we need a single -rpath flag with a separated argument.
19287
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19289
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19290
# resulting binary.
19291
hardcode_direct=$hardcode_direct_GCJ
19293
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19294
# resulting binary.
19295
hardcode_minus_L=$hardcode_minus_L_GCJ
19297
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19298
# the resulting binary.
19299
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19301
# Set to yes if building a shared library automatically hardcodes DIR into the library
19302
# and all subsequent libraries and executables linked against it.
19303
hardcode_automatic=$hardcode_automatic_GCJ
19305
# Variables whose values should be saved in libtool wrapper scripts and
19306
# restored at relink time.
19307
variables_saved_for_relink="$variables_saved_for_relink"
19309
# Whether libtool must link a program against all its dependency libraries.
19310
link_all_deplibs=$link_all_deplibs_GCJ
19312
# Compile-time system search path for libraries
19313
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19315
# Run-time system search path for libraries
19316
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19318
# Fix the shell variable \$srcfile for the compiler.
19319
fix_srcfile_path=$lt_fix_srcfile_path
19321
# Set to yes if exported symbols are required.
19322
always_export_symbols=$always_export_symbols_GCJ
19324
# The commands to list exported symbols.
19325
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19327
# The commands to extract the exported symbol list from a shared archive.
19328
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19330
# Symbols that should not be listed in the preloaded symbols.
19331
exclude_expsyms=$lt_exclude_expsyms_GCJ
19333
# Symbols that must always be exported.
19334
include_expsyms=$lt_include_expsyms_GCJ
19336
# ### END LIBTOOL TAG CONFIG: $tagname
19342
# If there is no Makefile yet, we rely on a make rule to execute
19343
# `config.status --recheck' to rerun these tests and create the
19344
# libtool script then.
19345
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19346
if test -f "$ltmain_in"; then
19347
test -f Makefile && make "$ltmain"
19353
ac_cpp='$CPP $CPPFLAGS'
19354
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
# Source file extension for RC test sources.
19371
# Object file extension for compiled RC test sources.
19375
# Code to be used in simple compile tests
19376
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19378
# Code to be used in simple link tests
19379
lt_simple_link_test_code="$lt_simple_compile_test_code"
19381
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19383
# If no C compiler was specified, use CC.
19386
# If no C compiler flags were specified, use CFLAGS.
19387
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19389
# Allow CC to be a program name with arguments.
19393
# save warnings/boilerplate of simple test code
19394
ac_outfile=conftest.$ac_objext
19395
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19396
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19397
_lt_compiler_boilerplate=`cat conftest.err`
19400
ac_outfile=conftest.$ac_objext
19401
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19402
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19403
_lt_linker_boilerplate=`cat conftest.err`
19407
# Allow CC to be a program name with arguments.
19412
for cc_temp in $compiler""; do
19414
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19415
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19420
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19422
lt_cv_prog_compiler_c_o_RC=yes
19424
# The else clause should only fire when bootstrapping the
19425
# libtool distribution, otherwise you forgot to ship ltmain.sh
19426
# with your package, and you will get complaints that there are
19427
# no rules to generate ltmain.sh.
19428
if test -f "$ltmain"; then
19429
# See if we are running on zsh, and set the options which allow our commands through
19430
# without removal of \ escapes.
19431
if test -n "${ZSH_VERSION+set}" ; then
19432
setopt NO_GLOB_SUBST
19434
# Now quote all the things that may contain metacharacters while being
19435
# careful not to overquote the AC_SUBSTed values. We take copies of the
19436
# variables and quote the copies for generation of the libtool script.
19437
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19439
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19440
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19441
deplibs_check_method reload_flag reload_cmds need_locks \
19442
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19443
lt_cv_sys_global_symbol_to_c_name_address \
19444
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19445
old_postinstall_cmds old_postuninstall_cmds \
19449
lt_prog_compiler_wl_RC \
19450
lt_prog_compiler_pic_RC \
19451
lt_prog_compiler_static_RC \
19452
lt_prog_compiler_no_builtin_flag_RC \
19453
export_dynamic_flag_spec_RC \
19454
thread_safe_flag_spec_RC \
19455
whole_archive_flag_spec_RC \
19456
enable_shared_with_static_runtimes_RC \
19457
old_archive_cmds_RC \
19458
old_archive_from_new_cmds_RC \
19459
predep_objects_RC \
19460
postdep_objects_RC \
19463
compiler_lib_search_path_RC \
19464
compiler_lib_search_dirs_RC \
19466
archive_expsym_cmds_RC \
19467
postinstall_cmds_RC \
19468
postuninstall_cmds_RC \
19469
old_archive_from_expsyms_cmds_RC \
19470
allow_undefined_flag_RC \
19471
no_undefined_flag_RC \
19472
export_symbols_cmds_RC \
19473
hardcode_libdir_flag_spec_RC \
19474
hardcode_libdir_flag_spec_ld_RC \
19475
hardcode_libdir_separator_RC \
19476
hardcode_automatic_RC \
19478
module_expsym_cmds_RC \
19479
lt_cv_prog_compiler_c_o_RC \
19480
fix_srcfile_path_RC \
19481
exclude_expsyms_RC \
19482
include_expsyms_RC; do
19485
old_archive_cmds_RC | \
19486
old_archive_from_new_cmds_RC | \
19487
archive_cmds_RC | \
19488
archive_expsym_cmds_RC | \
19490
module_expsym_cmds_RC | \
19491
old_archive_from_expsyms_cmds_RC | \
19492
export_symbols_cmds_RC | \
19493
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19494
postinstall_cmds | postuninstall_cmds | \
19495
old_postinstall_cmds | old_postuninstall_cmds | \
19496
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19497
# Double-quote double-evaled strings.
19498
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19501
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19507
*'\$0 --fallback-echo"')
19508
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19514
cat <<__EOF__ >> "$cfgfile"
19515
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19517
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19519
# Shell to use when invoking shell scripts.
19522
# Whether or not to build shared libraries.
19523
build_libtool_libs=$enable_shared
19525
# Whether or not to build static libraries.
19526
build_old_libs=$enable_static
19528
# Whether or not to add -lc for building shared libraries.
19529
build_libtool_need_lc=$archive_cmds_need_lc_RC
19531
# Whether or not to disallow shared libs when runtime libs are static
19532
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19534
# Whether or not to optimize for fast installation.
19535
fast_install=$enable_fast_install
19538
host_alias=$host_alias
19542
# The build system.
19543
build_alias=$build_alias
19547
# An echo program that does not interpret backslashes.
19552
AR_FLAGS=$lt_AR_FLAGS
19557
# LTCC compiler flags.
19558
LTCFLAGS=$lt_LTCFLAGS
19560
# A language-specific compiler.
19563
# Is the compiler the GNU C compiler?
19569
# The linker used to build libraries.
19572
# Whether we need hard or soft links.
19575
# A BSD-compatible nm program.
19578
# A symbol stripping program
19581
# Used to examine libraries when file_magic_cmd begins "file"
19582
MAGIC_CMD=$MAGIC_CMD
19584
# Used on cygwin: DLL creation program.
19587
# Used on cygwin: object dumper.
19590
# Used on cygwin: assembler.
19593
# The name of the directory that contains temporary libtool files.
19596
# How to create reloadable object files.
19597
reload_flag=$lt_reload_flag
19598
reload_cmds=$lt_reload_cmds
19600
# How to pass a linker flag through the compiler.
19601
wl=$lt_lt_prog_compiler_wl_RC
19603
# Object file suffix (normally "o").
19604
objext="$ac_objext"
19606
# Old archive suffix (normally "a").
19609
# Shared library suffix (normally ".so").
19610
shrext_cmds='$shrext_cmds'
19612
# Executable file suffix (normally "").
19615
# Additional compiler flags for building library objects.
19616
pic_flag=$lt_lt_prog_compiler_pic_RC
19619
# What is the maximum length of a command?
19620
max_cmd_len=$lt_cv_sys_max_cmd_len
19622
# Does compiler simultaneously support -c and -o options?
19623
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19625
# Must we lock files when doing compilation?
19626
need_locks=$lt_need_locks
19628
# Do we need the lib prefix for modules?
19629
need_lib_prefix=$need_lib_prefix
19631
# Do we need a version for libraries?
19632
need_version=$need_version
19634
# Whether dlopen is supported.
19635
dlopen_support=$enable_dlopen
19637
# Whether dlopen of programs is supported.
19638
dlopen_self=$enable_dlopen_self
19640
# Whether dlopen of statically linked programs is supported.
19641
dlopen_self_static=$enable_dlopen_self_static
19643
# Compiler flag to prevent dynamic linking.
19644
link_static_flag=$lt_lt_prog_compiler_static_RC
19646
# Compiler flag to turn off builtin functions.
19647
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19649
# Compiler flag to allow reflexive dlopens.
19650
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19652
# Compiler flag to generate shared objects directly from archives.
19653
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19655
# Compiler flag to generate thread-safe objects.
19656
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19658
# Library versioning type.
19659
version_type=$version_type
19661
# Format of library name prefix.
19662
libname_spec=$lt_libname_spec
19664
# List of archive names. First name is the real one, the rest are links.
19665
# The last name is the one that the linker finds with -lNAME.
19666
library_names_spec=$lt_library_names_spec
19668
# The coded name of the library, if different from the real name.
19669
soname_spec=$lt_soname_spec
19671
# Commands used to build and install an old-style archive.
19673
old_archive_cmds=$lt_old_archive_cmds_RC
19674
old_postinstall_cmds=$lt_old_postinstall_cmds
19675
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19677
# Create an old-style archive from a shared archive.
19678
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19680
# Create a temporary old-style archive to link instead of a shared archive.
19681
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19683
# Commands used to build and install a shared archive.
19684
archive_cmds=$lt_archive_cmds_RC
19685
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19686
postinstall_cmds=$lt_postinstall_cmds
19687
postuninstall_cmds=$lt_postuninstall_cmds
19689
# Commands used to build a loadable module (assumed same as above if empty)
19690
module_cmds=$lt_module_cmds_RC
19691
module_expsym_cmds=$lt_module_expsym_cmds_RC
19693
# Commands to strip libraries.
19694
old_striplib=$lt_old_striplib
19695
striplib=$lt_striplib
19697
# Dependencies to place before the objects being linked to create a
19699
predep_objects=$lt_predep_objects_RC
19701
# Dependencies to place after the objects being linked to create a
19703
postdep_objects=$lt_postdep_objects_RC
19705
# Dependencies to place before the objects being linked to create a
19707
predeps=$lt_predeps_RC
19709
# Dependencies to place after the objects being linked to create a
19711
postdeps=$lt_postdeps_RC
19713
# The directories searched by this compiler when creating a shared
19715
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19717
# The library search path used internally by the compiler when linking
19718
# a shared library.
19719
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19721
# Method to check whether dependent libraries are shared objects.
19722
deplibs_check_method=$lt_deplibs_check_method
19724
# Command to use when deplibs_check_method == file_magic.
19725
file_magic_cmd=$lt_file_magic_cmd
19727
# Flag that allows shared libraries with undefined symbols to be built.
19728
allow_undefined_flag=$lt_allow_undefined_flag_RC
19730
# Flag that forces no undefined symbols.
19731
no_undefined_flag=$lt_no_undefined_flag_RC
19733
# Commands used to finish a libtool library installation in a directory.
19734
finish_cmds=$lt_finish_cmds
19736
# Same as above, but a single script fragment to be evaled but not shown.
19737
finish_eval=$lt_finish_eval
19739
# Take the output of nm and produce a listing of raw symbols and C names.
19740
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19742
# Transform the output of nm in a proper C declaration
19743
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19745
# Transform the output of nm in a C name address pair
19746
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19748
# This is the shared library runtime path variable.
19749
runpath_var=$runpath_var
19751
# This is the shared library path variable.
19752
shlibpath_var=$shlibpath_var
19754
# Is shlibpath searched before the hard-coded library search path?
19755
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19757
# How to hardcode a shared library path into an executable.
19758
hardcode_action=$hardcode_action_RC
19760
# Whether we should hardcode library paths into libraries.
19761
hardcode_into_libs=$hardcode_into_libs
19763
# Flag to hardcode \$libdir into a binary during linking.
19764
# This must work even if \$libdir does not exist.
19765
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19767
# If ld is used when linking, flag to hardcode \$libdir into
19768
# a binary during linking. This must work even if \$libdir does
19770
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19772
# Whether we need a single -rpath flag with a separated argument.
19773
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19775
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19776
# resulting binary.
19777
hardcode_direct=$hardcode_direct_RC
19779
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19780
# resulting binary.
19781
hardcode_minus_L=$hardcode_minus_L_RC
19783
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19784
# the resulting binary.
19785
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19787
# Set to yes if building a shared library automatically hardcodes DIR into the library
19788
# and all subsequent libraries and executables linked against it.
19789
hardcode_automatic=$hardcode_automatic_RC
19791
# Variables whose values should be saved in libtool wrapper scripts and
19792
# restored at relink time.
19793
variables_saved_for_relink="$variables_saved_for_relink"
19795
# Whether libtool must link a program against all its dependency libraries.
19796
link_all_deplibs=$link_all_deplibs_RC
19798
# Compile-time system search path for libraries
19799
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19801
# Run-time system search path for libraries
19802
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19804
# Fix the shell variable \$srcfile for the compiler.
19805
fix_srcfile_path=$lt_fix_srcfile_path
19807
# Set to yes if exported symbols are required.
19808
always_export_symbols=$always_export_symbols_RC
19810
# The commands to list exported symbols.
19811
export_symbols_cmds=$lt_export_symbols_cmds_RC
19813
# The commands to extract the exported symbol list from a shared archive.
19814
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19816
# Symbols that should not be listed in the preloaded symbols.
19817
exclude_expsyms=$lt_exclude_expsyms_RC
19819
# Symbols that must always be exported.
19820
include_expsyms=$lt_include_expsyms_RC
19822
# ### END LIBTOOL TAG CONFIG: $tagname
19828
# If there is no Makefile yet, we rely on a make rule to execute
19829
# `config.status --recheck' to rerun these tests and create the
19830
# libtool script then.
19831
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19832
if test -f "$ltmain_in"; then
19833
test -f Makefile && make "$ltmain"
19839
ac_cpp='$CPP $CPPFLAGS'
19840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19849
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19850
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19851
{ (exit 1); exit 1; }; }
19855
# Append the new tag name to the list of available tags.
19856
if test -n "$tagname" ; then
19857
available_tags="$available_tags $tagname"
19863
# Now substitute the updated list of available tags.
19864
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19865
mv "${ofile}T" "$ofile"
19869
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19870
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19871
{ (exit 1); exit 1; }; }
19877
# This can be used to rebuild libtool when needed
19878
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19880
# Always use our own libtool.
19881
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19883
# Prevent multiple expansion
19904
# Extract the first word of "setcap", so it can be a program name with args.
19905
set dummy setcap; ac_word=$2
19906
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19907
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19908
if test "${ac_cv_prog_SETCAP+set}" = set; then
19909
echo $ECHO_N "(cached) $ECHO_C" >&6
19911
if test -n "$SETCAP"; then
19912
ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
19914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915
for as_dir in $PATH$PATH_SEPARATOR/sbin
19918
test -z "$as_dir" && as_dir=.
19919
for ac_exec_ext in '' $ac_executable_extensions; do
19920
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19921
ac_cv_prog_SETCAP="yes"
19922
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19929
test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
19932
SETCAP=$ac_cv_prog_SETCAP
19933
if test -n "$SETCAP"; then
19934
{ echo "$as_me:$LINENO: result: $SETCAP" >&5
19935
echo "${ECHO_T}$SETCAP" >&6; }
19937
{ echo "$as_me:$LINENO: result: no" >&5
19938
echo "${ECHO_T}no" >&6; }
19942
# Extract the first word of "docbook2man", so it can be a program name with args.
19943
set dummy docbook2man; ac_word=$2
19944
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19945
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19946
if test "${ac_cv_prog_DOCBOOK+set}" = set; then
19947
echo $ECHO_N "(cached) $ECHO_C" >&6
19949
if test -n "$DOCBOOK"; then
19950
ac_cv_prog_DOCBOOK="$DOCBOOK" # Let the user override the test.
19952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19953
for as_dir in $PATH
19956
test -z "$as_dir" && as_dir=.
19957
for ac_exec_ext in '' $ac_executable_extensions; do
19958
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19959
ac_cv_prog_DOCBOOK="yes"
19960
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19967
test -z "$ac_cv_prog_DOCBOOK" && ac_cv_prog_DOCBOOK="no"
19970
DOCBOOK=$ac_cv_prog_DOCBOOK
19971
if test -n "$DOCBOOK"; then
19972
{ echo "$as_me:$LINENO: result: $DOCBOOK" >&5
19973
echo "${ECHO_T}$DOCBOOK" >&6; }
19975
{ echo "$as_me:$LINENO: result: no" >&5
19976
echo "${ECHO_T}no" >&6; }
19980
if test x$DOCBOOK = xyes; then
19981
ENABLE_DOCBOOK_TRUE=
19982
ENABLE_DOCBOOK_FALSE='#'
19984
ENABLE_DOCBOOK_TRUE='#'
19985
ENABLE_DOCBOOK_FALSE=
19992
prefix_save=$prefix
19993
exec_prefix_save=$exec_prefix
19995
if test "x$prefix" = "xNONE"; then
19996
prefix="$ac_default_prefix"
19998
if test "x$exec_prefix" = "xNONE"; then
19999
exec_prefix=$prefix
20002
full_var="$FROM_VAR"
20004
new_full_var="`eval echo $full_var`"
20005
if test "x$new_full_var" = "x$full_var"; then break; fi
20006
full_var=$new_full_var
20009
full_var=$new_full_var
20013
prefix=$prefix_save
20014
exec_prefix=$exec_prefix_save
20020
prefix_save=$prefix
20021
exec_prefix_save=$exec_prefix
20023
if test "x$prefix" = "xNONE"; then
20024
prefix="$ac_default_prefix"
20026
if test "x$exec_prefix" = "xNONE"; then
20027
exec_prefix=$prefix
20030
full_var="$FROM_VAR"
20032
new_full_var="`eval echo $full_var`"
20033
if test "x$new_full_var" = "x$full_var"; then break; fi
20034
full_var=$new_full_var
20037
full_var=$new_full_var
20041
prefix=$prefix_save
20042
exec_prefix=$exec_prefix_save
20048
prefix_save=$prefix
20049
exec_prefix_save=$exec_prefix
20051
if test "x$prefix" = "xNONE"; then
20052
prefix="$ac_default_prefix"
20054
if test "x$exec_prefix" = "xNONE"; then
20055
exec_prefix=$prefix
20058
full_var="$FROM_VAR"
20060
new_full_var="`eval echo $full_var`"
20061
if test "x$new_full_var" = "x$full_var"; then break; fi
20062
full_var=$new_full_var
20065
full_var=$new_full_var
20069
prefix=$prefix_save
20070
exec_prefix=$exec_prefix_save
20074
FROM_VAR=$includedir
20076
prefix_save=$prefix
20077
exec_prefix_save=$exec_prefix
20079
if test "x$prefix" = "xNONE"; then
20080
prefix="$ac_default_prefix"
20082
if test "x$exec_prefix" = "xNONE"; then
20083
exec_prefix=$prefix
20086
full_var="$FROM_VAR"
20088
new_full_var="`eval echo $full_var`"
20089
if test "x$new_full_var" = "x$full_var"; then break; fi
20090
full_var=$new_full_var
20093
full_var=$new_full_var
20094
INCLUDEDIR="$full_var"
20097
prefix=$prefix_save
20098
exec_prefix=$exec_prefix_save
20102
FROM_VAR=$libexecdir
20104
prefix_save=$prefix
20105
exec_prefix_save=$exec_prefix
20107
if test "x$prefix" = "xNONE"; then
20108
prefix="$ac_default_prefix"
20110
if test "x$exec_prefix" = "xNONE"; then
20111
exec_prefix=$prefix
20114
full_var="$FROM_VAR"
20116
new_full_var="`eval echo $full_var`"
20117
if test "x$new_full_var" = "x$full_var"; then break; fi
20118
full_var=$new_full_var
20121
full_var=$new_full_var
20122
LIBEXECDIR="$full_var"
20125
prefix=$prefix_save
20126
exec_prefix=$exec_prefix_save
20130
FROM_VAR=$sysconfdir
20132
prefix_save=$prefix
20133
exec_prefix_save=$exec_prefix
20135
if test "x$prefix" = "xNONE"; then
20136
prefix="$ac_default_prefix"
20138
if test "x$exec_prefix" = "xNONE"; then
20139
exec_prefix=$prefix
20142
full_var="$FROM_VAR"
20144
new_full_var="`eval echo $full_var`"
20145
if test "x$new_full_var" = "x$full_var"; then break; fi
20146
full_var=$new_full_var
20149
full_var=$new_full_var
20150
SYSCONFDIR="$full_var"
20153
prefix=$prefix_save
20154
exec_prefix=$exec_prefix_save
20160
prefix_save=$prefix
20161
exec_prefix_save=$exec_prefix
20163
if test "x$prefix" = "xNONE"; then
20164
prefix="$ac_default_prefix"
20166
if test "x$exec_prefix" = "xNONE"; then
20167
exec_prefix=$prefix
20170
full_var="$FROM_VAR"
20172
new_full_var="`eval echo $full_var`"
20173
if test "x$new_full_var" = "x$full_var"; then break; fi
20174
full_var=$new_full_var
20177
full_var=$new_full_var
20178
DATADIR="$full_var"
20181
prefix=$prefix_save
20182
exec_prefix=$exec_prefix_save
20185
EXP_VAR=LOCALSTATEDIR
20186
FROM_VAR=$localstatedir
20188
prefix_save=$prefix
20189
exec_prefix_save=$exec_prefix
20191
if test "x$prefix" = "xNONE"; then
20192
prefix="$ac_default_prefix"
20194
if test "x$exec_prefix" = "xNONE"; then
20195
exec_prefix=$prefix
20198
full_var="$FROM_VAR"
20200
new_full_var="`eval echo $full_var`"
20201
if test "x$new_full_var" = "x$full_var"; then break; fi
20202
full_var=$new_full_var
20205
full_var=$new_full_var
20206
LOCALSTATEDIR="$full_var"
20209
prefix=$prefix_save
20210
exec_prefix=$exec_prefix_save
20214
FROM_VAR="${localstatedir}/lib/lxc"
20216
prefix_save=$prefix
20217
exec_prefix_save=$exec_prefix
20219
if test "x$prefix" = "xNONE"; then
20220
prefix="$ac_default_prefix"
20222
if test "x$exec_prefix" = "xNONE"; then
20223
exec_prefix=$prefix
20226
full_var="$FROM_VAR"
20228
new_full_var="`eval echo $full_var`"
20229
if test "x$new_full_var" = "x$full_var"; then break; fi
20230
full_var=$new_full_var
20233
full_var=$new_full_var
20234
LXCPATH="$full_var"
20237
prefix=$prefix_save
20238
exec_prefix=$exec_prefix_save
20241
EXP_VAR=LXC_GENERATE_DATE
20244
prefix_save=$prefix
20245
exec_prefix_save=$exec_prefix
20247
if test "x$prefix" = "xNONE"; then
20248
prefix="$ac_default_prefix"
20250
if test "x$exec_prefix" = "xNONE"; then
20251
exec_prefix=$prefix
20254
full_var="$FROM_VAR"
20256
new_full_var="`eval echo $full_var`"
20257
if test "x$new_full_var" = "x$full_var"; then break; fi
20258
full_var=$new_full_var
20261
full_var=$new_full_var
20262
LXC_GENERATE_DATE="$full_var"
20265
prefix=$prefix_save
20266
exec_prefix=$exec_prefix_save
20271
for ac_header in sys/capability.h
20273
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20274
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20275
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20276
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20277
echo $ECHO_N "(cached) $ECHO_C" >&6
20279
cat >conftest.$ac_ext <<_ACEOF
20282
cat confdefs.h >>conftest.$ac_ext
20283
cat >>conftest.$ac_ext <<_ACEOF
20284
/* end confdefs.h. */
20285
#include <sys/types.h>
20286
#include <sys/capability.h>
20288
#include <$ac_header>
20290
rm -f conftest.$ac_objext
20291
if { (ac_try="$ac_compile"
20292
case "(($ac_try" in
20293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294
*) ac_try_echo=$ac_try;;
20296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297
(eval "$ac_compile") 2>conftest.er1
20299
grep -v '^ *+' conftest.er1 >conftest.err
20301
cat conftest.err >&5
20302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303
(exit $ac_status); } && {
20304
test -z "$ac_c_werror_flag" ||
20305
test ! -s conftest.err
20306
} && test -s conftest.$ac_objext; then
20307
eval "$as_ac_Header=yes"
20309
echo "$as_me: failed program was:" >&5
20310
sed 's/^/| /' conftest.$ac_ext >&5
20312
eval "$as_ac_Header=no"
20315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317
ac_res=`eval echo '${'$as_ac_Header'}'`
20318
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20319
echo "${ECHO_T}$ac_res" >&6; }
20320
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20321
cat >>confdefs.h <<_ACEOF
20322
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20326
{ { echo "$as_me:$LINENO: error: please install libcap-devel." >&5
20327
echo "$as_me: error: please install libcap-devel." >&2;}
20328
{ (exit 1); exit 1; }; }
20334
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
20335
{ echo "$as_me:$LINENO: checking whether PR_CAPBSET_DROP is declared" >&5
20336
echo $ECHO_N "checking whether PR_CAPBSET_DROP is declared... $ECHO_C" >&6; }
20337
if test "${ac_cv_have_decl_PR_CAPBSET_DROP+set}" = set; then
20338
echo $ECHO_N "(cached) $ECHO_C" >&6
20340
cat >conftest.$ac_ext <<_ACEOF
20343
cat confdefs.h >>conftest.$ac_ext
20344
cat >>conftest.$ac_ext <<_ACEOF
20345
/* end confdefs.h. */
20346
#include <sys/prctl.h>
20351
#ifndef PR_CAPBSET_DROP
20352
(void) PR_CAPBSET_DROP;
20359
rm -f conftest.$ac_objext
20360
if { (ac_try="$ac_compile"
20361
case "(($ac_try" in
20362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363
*) ac_try_echo=$ac_try;;
20365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366
(eval "$ac_compile") 2>conftest.er1
20368
grep -v '^ *+' conftest.er1 >conftest.err
20370
cat conftest.err >&5
20371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372
(exit $ac_status); } && {
20373
test -z "$ac_c_werror_flag" ||
20374
test ! -s conftest.err
20375
} && test -s conftest.$ac_objext; then
20376
ac_cv_have_decl_PR_CAPBSET_DROP=yes
20378
echo "$as_me: failed program was:" >&5
20379
sed 's/^/| /' conftest.$ac_ext >&5
20381
ac_cv_have_decl_PR_CAPBSET_DROP=no
20384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_DROP" >&5
20387
echo "${ECHO_T}$ac_cv_have_decl_PR_CAPBSET_DROP" >&6; }
20388
if test $ac_cv_have_decl_PR_CAPBSET_DROP = yes; then
20390
cat >>confdefs.h <<_ACEOF
20391
#define HAVE_DECL_PR_CAPBSET_DROP 1
20396
cat >>confdefs.h <<_ACEOF
20397
#define HAVE_DECL_PR_CAPBSET_DROP 0
20406
4840
for ac_header in sys/signalfd.h
20408
4842
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`