4407
# Check whether --enable-libtool-lock was given.
4408
if test "${enable_libtool_lock+set}" = set; then
4409
enableval=$enable_libtool_lock;
4412
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4414
# Some flags need to be propagated to the compiler or linker for good
4418
# Find out which ABI we are using.
4419
echo 'int i;' > conftest.$ac_ext
4420
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421
(eval $ac_compile) 2>&5
4423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424
(exit $ac_status); }; then
4425
case `/usr/bin/file conftest.$ac_objext` in
4437
# Find out which ABI we are using.
4438
echo '#line 4438 "configure"' > conftest.$ac_ext
4439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440
(eval $ac_compile) 2>&5
4442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443
(exit $ac_status); }; then
4444
if test "$lt_cv_prog_gnu_ld" = yes; then
4445
case `/usr/bin/file conftest.$ac_objext` in
4447
LD="${LD-ld} -melf32bsmip"
4450
LD="${LD-ld} -melf32bmipn32"
4453
LD="${LD-ld} -melf64bmip"
4457
case `/usr/bin/file conftest.$ac_objext` in
4473
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4474
s390*-*linux*|sparc*-*linux*)
4475
# Find out which ABI we are using.
4476
echo 'int i;' > conftest.$ac_ext
4477
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478
(eval $ac_compile) 2>&5
4480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481
(exit $ac_status); }; then
4482
case `/usr/bin/file conftest.o` in
4485
x86_64-*kfreebsd*-gnu)
4486
LD="${LD-ld} -m elf_i386_fbsd"
4489
LD="${LD-ld} -m elf_i386"
4491
ppc64-*linux*|powerpc64-*linux*)
4492
LD="${LD-ld} -m elf32ppclinux"
4495
LD="${LD-ld} -m elf_s390"
4498
LD="${LD-ld} -m elf32_sparc"
4504
x86_64-*kfreebsd*-gnu)
4505
LD="${LD-ld} -m elf_x86_64_fbsd"
4508
LD="${LD-ld} -m elf_x86_64"
4510
ppc*-*linux*|powerpc*-*linux*)
4511
LD="${LD-ld} -m elf64ppc"
4514
LD="${LD-ld} -m elf64_s390"
4517
LD="${LD-ld} -m elf64_sparc"
4527
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4528
SAVE_CFLAGS="$CFLAGS"
4529
CFLAGS="$CFLAGS -belf"
4530
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4531
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4532
if test "${lt_cv_cc_needs_belf+set}" = set; then
4533
echo $ECHO_N "(cached) $ECHO_C" >&6
4536
ac_cpp='$CPP $CPPFLAGS'
4537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
cat >conftest.$ac_ext <<_ACEOF
4544
cat confdefs.h >>conftest.$ac_ext
4545
cat >>conftest.$ac_ext <<_ACEOF
4546
/* end confdefs.h. */
4556
rm -f conftest.$ac_objext conftest$ac_exeext
4557
if { (ac_try="$ac_link"
4559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560
*) ac_try_echo=$ac_try;;
4562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563
(eval "$ac_link") 2>conftest.er1
4565
grep -v '^ *+' conftest.er1 >conftest.err
4567
cat conftest.err >&5
4568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); } && {
4570
test -z "$ac_c_werror_flag" ||
4571
test ! -s conftest.err
4572
} && test -s conftest$ac_exeext &&
4573
$as_test_x conftest$ac_exeext; then
4574
lt_cv_cc_needs_belf=yes
4576
echo "$as_me: failed program was:" >&5
4577
sed 's/^/| /' conftest.$ac_ext >&5
4579
lt_cv_cc_needs_belf=no
4582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4583
conftest$ac_exeext conftest.$ac_ext
4585
ac_cpp='$CPP $CPPFLAGS'
4586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4592
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4593
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4594
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4595
CFLAGS="$SAVE_CFLAGS"
4599
# Find out which ABI we are using.
4600
echo 'int i;' > conftest.$ac_ext
4601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602
(eval $ac_compile) 2>&5
4604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
(exit $ac_status); }; then
4606
case `/usr/bin/file conftest.o` in
4608
case $lt_cv_prog_gnu_ld in
4609
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4610
*) LD="${LD-ld} -64" ;;
4618
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4619
if test -n "$ac_tool_prefix"; then
4620
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4621
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4622
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4625
echo $ECHO_N "(cached) $ECHO_C" >&6
4627
if test -n "$DLLTOOL"; then
4628
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634
test -z "$as_dir" && as_dir=.
4635
for ac_exec_ext in '' $ac_executable_extensions; do
4636
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4638
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647
DLLTOOL=$ac_cv_prog_DLLTOOL
4648
if test -n "$DLLTOOL"; then
4649
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4650
echo "${ECHO_T}$DLLTOOL" >&6; }
4652
{ echo "$as_me:$LINENO: result: no" >&5
4653
echo "${ECHO_T}no" >&6; }
4658
if test -z "$ac_cv_prog_DLLTOOL"; then
4659
ac_ct_DLLTOOL=$DLLTOOL
4660
# Extract the first word of "dlltool", so it can be a program name with args.
4661
set dummy dlltool; ac_word=$2
4662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4665
echo $ECHO_N "(cached) $ECHO_C" >&6
4667
if test -n "$ac_ct_DLLTOOL"; then
4668
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674
test -z "$as_dir" && as_dir=.
4675
for ac_exec_ext in '' $ac_executable_extensions; do
4676
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4678
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4688
if test -n "$ac_ct_DLLTOOL"; then
4689
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4690
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4692
{ echo "$as_me:$LINENO: result: no" >&5
4693
echo "${ECHO_T}no" >&6; }
4696
if test "x$ac_ct_DLLTOOL" = x; then
4699
case $cross_compiling:$ac_tool_warned in
4701
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4702
whose name does not start with the host triplet. If you think this
4703
configuration is useful to you, please write to autoconf@gnu.org." >&5
4704
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4705
whose name does not start with the host triplet. If you think this
4706
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4707
ac_tool_warned=yes ;;
4709
DLLTOOL=$ac_ct_DLLTOOL
4712
DLLTOOL="$ac_cv_prog_DLLTOOL"
4715
if test -n "$ac_tool_prefix"; then
4716
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4717
set dummy ${ac_tool_prefix}as; ac_word=$2
4718
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720
if test "${ac_cv_prog_AS+set}" = set; then
4721
echo $ECHO_N "(cached) $ECHO_C" >&6
4723
if test -n "$AS"; then
4724
ac_cv_prog_AS="$AS" # Let the user override the test.
4726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730
test -z "$as_dir" && as_dir=.
4731
for ac_exec_ext in '' $ac_executable_extensions; do
4732
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733
ac_cv_prog_AS="${ac_tool_prefix}as"
4734
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744
if test -n "$AS"; then
4745
{ echo "$as_me:$LINENO: result: $AS" >&5
4746
echo "${ECHO_T}$AS" >&6; }
4748
{ echo "$as_me:$LINENO: result: no" >&5
4749
echo "${ECHO_T}no" >&6; }
4754
if test -z "$ac_cv_prog_AS"; then
4756
# Extract the first word of "as", so it can be a program name with args.
4757
set dummy as; ac_word=$2
4758
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4759
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4761
echo $ECHO_N "(cached) $ECHO_C" >&6
4763
if test -n "$ac_ct_AS"; then
4764
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770
test -z "$as_dir" && as_dir=.
4771
for ac_exec_ext in '' $ac_executable_extensions; do
4772
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773
ac_cv_prog_ac_ct_AS="as"
4774
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4784
if test -n "$ac_ct_AS"; then
4785
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4786
echo "${ECHO_T}$ac_ct_AS" >&6; }
4788
{ echo "$as_me:$LINENO: result: no" >&5
4789
echo "${ECHO_T}no" >&6; }
4792
if test "x$ac_ct_AS" = x; then
4795
case $cross_compiling:$ac_tool_warned in
4797
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4798
whose name does not start with the host triplet. If you think this
4799
configuration is useful to you, please write to autoconf@gnu.org." >&5
4800
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4801
whose name does not start with the host triplet. If you think this
4802
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4803
ac_tool_warned=yes ;;
4811
if test -n "$ac_tool_prefix"; then
4812
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4813
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4814
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4817
echo $ECHO_N "(cached) $ECHO_C" >&6
4819
if test -n "$OBJDUMP"; then
4820
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826
test -z "$as_dir" && as_dir=.
4827
for ac_exec_ext in '' $ac_executable_extensions; do
4828
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4830
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839
OBJDUMP=$ac_cv_prog_OBJDUMP
4840
if test -n "$OBJDUMP"; then
4841
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4842
echo "${ECHO_T}$OBJDUMP" >&6; }
4844
{ echo "$as_me:$LINENO: result: no" >&5
4845
echo "${ECHO_T}no" >&6; }
4850
if test -z "$ac_cv_prog_OBJDUMP"; then
4851
ac_ct_OBJDUMP=$OBJDUMP
4852
# Extract the first word of "objdump", so it can be a program name with args.
4853
set dummy objdump; ac_word=$2
4854
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4855
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4857
echo $ECHO_N "(cached) $ECHO_C" >&6
4859
if test -n "$ac_ct_OBJDUMP"; then
4860
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866
test -z "$as_dir" && as_dir=.
4867
for ac_exec_ext in '' $ac_executable_extensions; do
4868
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4870
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4880
if test -n "$ac_ct_OBJDUMP"; then
4881
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4882
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4884
{ echo "$as_me:$LINENO: result: no" >&5
4885
echo "${ECHO_T}no" >&6; }
4888
if test "x$ac_ct_OBJDUMP" = x; then
4891
case $cross_compiling:$ac_tool_warned in
4893
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4894
whose name does not start with the host triplet. If you think this
4895
configuration is useful to you, please write to autoconf@gnu.org." >&5
4896
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4897
whose name does not start with the host triplet. If you think this
4898
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4899
ac_tool_warned=yes ;;
4901
OBJDUMP=$ac_ct_OBJDUMP
4904
OBJDUMP="$ac_cv_prog_OBJDUMP"
4911
need_locks="$enable_libtool_lock"
4915
ac_cpp='$CPP $CPPFLAGS'
4916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4920
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4921
# On Suns, sometimes $CPP names a directory.
4922
if test -n "$CPP" && test -d "$CPP"; then
4925
if test -z "$CPP"; then
4926
if test "${ac_cv_prog_CPP+set}" = set; then
4927
echo $ECHO_N "(cached) $ECHO_C" >&6
4929
# Double quotes because CPP needs to be expanded
4930
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4933
for ac_c_preproc_warn_flag in '' yes
4935
# Use a header file that comes with gcc, so configuring glibc
4936
# with a fresh cross-compiler works.
4937
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938
# <limits.h> exists even on freestanding compilers.
4939
# On the NeXT, cc -E runs the code through the compiler's parser,
4940
# not just through cpp. "Syntax error" is here to catch this case.
4941
cat >conftest.$ac_ext <<_ACEOF
4944
cat confdefs.h >>conftest.$ac_ext
4945
cat >>conftest.$ac_ext <<_ACEOF
4946
/* end confdefs.h. */
4948
# include <limits.h>
4950
# include <assert.h>
4954
if { (ac_try="$ac_cpp conftest.$ac_ext"
4956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957
*) ac_try_echo=$ac_try;;
4959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962
grep -v '^ *+' conftest.er1 >conftest.err
4964
cat conftest.err >&5
4965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966
(exit $ac_status); } >/dev/null && {
4967
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968
test ! -s conftest.err
4972
echo "$as_me: failed program was:" >&5
4973
sed 's/^/| /' conftest.$ac_ext >&5
4975
# Broken: fails on valid input.
4979
rm -f conftest.err conftest.$ac_ext
4981
# OK, works on sane cases. Now check whether nonexistent headers
4982
# can be detected and how.
4983
cat >conftest.$ac_ext <<_ACEOF
4986
cat confdefs.h >>conftest.$ac_ext
4987
cat >>conftest.$ac_ext <<_ACEOF
4988
/* end confdefs.h. */
4989
#include <ac_nonexistent.h>
4991
if { (ac_try="$ac_cpp conftest.$ac_ext"
4993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994
*) ac_try_echo=$ac_try;;
4996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999
grep -v '^ *+' conftest.er1 >conftest.err
5001
cat conftest.err >&5
5002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003
(exit $ac_status); } >/dev/null && {
5004
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005
test ! -s conftest.err
5007
# Broken: success on invalid input.
5010
echo "$as_me: failed program was:" >&5
5011
sed 's/^/| /' conftest.$ac_ext >&5
5013
# Passes both tests.
5018
rm -f conftest.err conftest.$ac_ext
5021
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022
rm -f conftest.err conftest.$ac_ext
5023
if $ac_preproc_ok; then
5035
{ echo "$as_me:$LINENO: result: $CPP" >&5
5036
echo "${ECHO_T}$CPP" >&6; }
5038
for ac_c_preproc_warn_flag in '' yes
5040
# Use a header file that comes with gcc, so configuring glibc
5041
# with a fresh cross-compiler works.
5042
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043
# <limits.h> exists even on freestanding compilers.
5044
# On the NeXT, cc -E runs the code through the compiler's parser,
5045
# not just through cpp. "Syntax error" is here to catch this case.
5046
cat >conftest.$ac_ext <<_ACEOF
5049
cat confdefs.h >>conftest.$ac_ext
5050
cat >>conftest.$ac_ext <<_ACEOF
5051
/* end confdefs.h. */
5053
# include <limits.h>
5055
# include <assert.h>
5059
if { (ac_try="$ac_cpp conftest.$ac_ext"
5061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062
*) ac_try_echo=$ac_try;;
5064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067
grep -v '^ *+' conftest.er1 >conftest.err
5069
cat conftest.err >&5
5070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071
(exit $ac_status); } >/dev/null && {
5072
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073
test ! -s conftest.err
5077
echo "$as_me: failed program was:" >&5
5078
sed 's/^/| /' conftest.$ac_ext >&5
5080
# Broken: fails on valid input.
5084
rm -f conftest.err conftest.$ac_ext
5086
# OK, works on sane cases. Now check whether nonexistent headers
5087
# can be detected and how.
5088
cat >conftest.$ac_ext <<_ACEOF
5091
cat confdefs.h >>conftest.$ac_ext
5092
cat >>conftest.$ac_ext <<_ACEOF
5093
/* end confdefs.h. */
5094
#include <ac_nonexistent.h>
5096
if { (ac_try="$ac_cpp conftest.$ac_ext"
5098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099
*) ac_try_echo=$ac_try;;
5101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104
grep -v '^ *+' conftest.er1 >conftest.err
5106
cat conftest.err >&5
5107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
(exit $ac_status); } >/dev/null && {
5109
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110
test ! -s conftest.err
5112
# Broken: success on invalid input.
5115
echo "$as_me: failed program was:" >&5
5116
sed 's/^/| /' conftest.$ac_ext >&5
5118
# Passes both tests.
5123
rm -f conftest.err conftest.$ac_ext
5126
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127
rm -f conftest.err conftest.$ac_ext
5128
if $ac_preproc_ok; then
5131
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5132
See \`config.log' for more details." >&5
5133
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5134
See \`config.log' for more details." >&2;}
5135
{ (exit 1); exit 1; }; }
5139
ac_cpp='$CPP $CPPFLAGS'
5140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5146
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5147
if test "${ac_cv_header_stdc+set}" = set; then
5148
echo $ECHO_N "(cached) $ECHO_C" >&6
5150
cat >conftest.$ac_ext <<_ACEOF
5153
cat confdefs.h >>conftest.$ac_ext
5154
cat >>conftest.$ac_ext <<_ACEOF
5155
/* end confdefs.h. */
5169
rm -f conftest.$ac_objext
5170
if { (ac_try="$ac_compile"
5172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173
*) ac_try_echo=$ac_try;;
5175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176
(eval "$ac_compile") 2>conftest.er1
5178
grep -v '^ *+' conftest.er1 >conftest.err
5180
cat conftest.err >&5
5181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182
(exit $ac_status); } && {
5183
test -z "$ac_c_werror_flag" ||
5184
test ! -s conftest.err
5185
} && test -s conftest.$ac_objext; then
5186
ac_cv_header_stdc=yes
5188
echo "$as_me: failed program was:" >&5
5189
sed 's/^/| /' conftest.$ac_ext >&5
5191
ac_cv_header_stdc=no
5194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196
if test $ac_cv_header_stdc = yes; then
5197
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5198
cat >conftest.$ac_ext <<_ACEOF
5201
cat confdefs.h >>conftest.$ac_ext
5202
cat >>conftest.$ac_ext <<_ACEOF
5203
/* end confdefs.h. */
5207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208
$EGREP "memchr" >/dev/null 2>&1; then
5211
ac_cv_header_stdc=no
5217
if test $ac_cv_header_stdc = yes; then
5218
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5219
cat >conftest.$ac_ext <<_ACEOF
5222
cat confdefs.h >>conftest.$ac_ext
5223
cat >>conftest.$ac_ext <<_ACEOF
5224
/* end confdefs.h. */
5228
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229
$EGREP "free" >/dev/null 2>&1; then
5232
ac_cv_header_stdc=no
5238
if test $ac_cv_header_stdc = yes; then
5239
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5240
if test "$cross_compiling" = yes; then
5243
cat >conftest.$ac_ext <<_ACEOF
5246
cat confdefs.h >>conftest.$ac_ext
5247
cat >>conftest.$ac_ext <<_ACEOF
5248
/* end confdefs.h. */
5251
#if ((' ' & 0x0FF) == 0x020)
5252
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5253
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5255
# define ISLOWER(c) \
5256
(('a' <= (c) && (c) <= 'i') \
5257
|| ('j' <= (c) && (c) <= 'r') \
5258
|| ('s' <= (c) && (c) <= 'z'))
5259
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5262
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5267
for (i = 0; i < 256; i++)
5268
if (XOR (islower (i), ISLOWER (i))
5269
|| toupper (i) != TOUPPER (i))
5274
rm -f conftest$ac_exeext
5275
if { (ac_try="$ac_link"
5277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278
*) ac_try_echo=$ac_try;;
5280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281
(eval "$ac_link") 2>&5
5283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5285
{ (case "(($ac_try" in
5286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287
*) ac_try_echo=$ac_try;;
5289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290
(eval "$ac_try") 2>&5
5292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
(exit $ac_status); }; }; then
5296
echo "$as_me: program exited with status $ac_status" >&5
5297
echo "$as_me: failed program was:" >&5
5298
sed 's/^/| /' conftest.$ac_ext >&5
5301
ac_cv_header_stdc=no
5303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5309
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5310
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5311
if test $ac_cv_header_stdc = yes; then
5313
cat >>confdefs.h <<\_ACEOF
5314
#define STDC_HEADERS 1
5319
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5329
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5330
inttypes.h stdint.h unistd.h
5332
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5333
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5334
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5335
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5336
echo $ECHO_N "(cached) $ECHO_C" >&6
5338
cat >conftest.$ac_ext <<_ACEOF
5341
cat confdefs.h >>conftest.$ac_ext
5342
cat >>conftest.$ac_ext <<_ACEOF
5343
/* end confdefs.h. */
5344
$ac_includes_default
5346
#include <$ac_header>
5348
rm -f conftest.$ac_objext
5349
if { (ac_try="$ac_compile"
5351
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352
*) ac_try_echo=$ac_try;;
5354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355
(eval "$ac_compile") 2>conftest.er1
5357
grep -v '^ *+' conftest.er1 >conftest.err
5359
cat conftest.err >&5
5360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
(exit $ac_status); } && {
5362
test -z "$ac_c_werror_flag" ||
5363
test ! -s conftest.err
5364
} && test -s conftest.$ac_objext; then
5365
eval "$as_ac_Header=yes"
5367
echo "$as_me: failed program was:" >&5
5368
sed 's/^/| /' conftest.$ac_ext >&5
5370
eval "$as_ac_Header=no"
5373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375
ac_res=`eval echo '${'$as_ac_Header'}'`
5376
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5377
echo "${ECHO_T}$ac_res" >&6; }
5378
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5379
cat >>confdefs.h <<_ACEOF
5380
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389
for ac_header in dlfcn.h
5391
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5393
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5394
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5395
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5396
echo $ECHO_N "(cached) $ECHO_C" >&6
5398
ac_res=`eval echo '${'$as_ac_Header'}'`
5399
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5400
echo "${ECHO_T}$ac_res" >&6; }
5402
# Is the header compilable?
5403
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5404
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5405
cat >conftest.$ac_ext <<_ACEOF
5408
cat confdefs.h >>conftest.$ac_ext
5409
cat >>conftest.$ac_ext <<_ACEOF
5410
/* end confdefs.h. */
5411
$ac_includes_default
5412
#include <$ac_header>
5414
rm -f conftest.$ac_objext
5415
if { (ac_try="$ac_compile"
5417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418
*) ac_try_echo=$ac_try;;
5420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421
(eval "$ac_compile") 2>conftest.er1
5423
grep -v '^ *+' conftest.er1 >conftest.err
5425
cat conftest.err >&5
5426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427
(exit $ac_status); } && {
5428
test -z "$ac_c_werror_flag" ||
5429
test ! -s conftest.err
5430
} && test -s conftest.$ac_objext; then
5431
ac_header_compiler=yes
5433
echo "$as_me: failed program was:" >&5
5434
sed 's/^/| /' conftest.$ac_ext >&5
5436
ac_header_compiler=no
5439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5441
echo "${ECHO_T}$ac_header_compiler" >&6; }
5443
# Is the header present?
5444
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5445
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5446
cat >conftest.$ac_ext <<_ACEOF
5449
cat confdefs.h >>conftest.$ac_ext
5450
cat >>conftest.$ac_ext <<_ACEOF
5451
/* end confdefs.h. */
5452
#include <$ac_header>
5454
if { (ac_try="$ac_cpp conftest.$ac_ext"
5456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457
*) ac_try_echo=$ac_try;;
5459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462
grep -v '^ *+' conftest.er1 >conftest.err
5464
cat conftest.err >&5
5465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466
(exit $ac_status); } >/dev/null && {
5467
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5468
test ! -s conftest.err
5470
ac_header_preproc=yes
5472
echo "$as_me: failed program was:" >&5
5473
sed 's/^/| /' conftest.$ac_ext >&5
5475
ac_header_preproc=no
5478
rm -f conftest.err conftest.$ac_ext
5479
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5480
echo "${ECHO_T}$ac_header_preproc" >&6; }
5482
# So? What about this header?
5483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5485
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5487
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5489
ac_header_preproc=yes
5492
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5494
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5495
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5496
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5498
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5499
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5500
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5502
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5505
## ---------------------------------- ##
5506
## Report this to thep@linux.thai.net ##
5507
## ---------------------------------- ##
5509
) | sed "s/^/$as_me: WARNING: /" >&2
5512
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5513
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5514
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5515
echo $ECHO_N "(cached) $ECHO_C" >&6
5517
eval "$as_ac_Header=\$ac_header_preproc"
5519
ac_res=`eval echo '${'$as_ac_Header'}'`
5520
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5521
echo "${ECHO_T}$ac_res" >&6; }
5524
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5525
cat >>confdefs.h <<_ACEOF
5526
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5534
ac_cpp='$CXXCPP $CPPFLAGS'
5535
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5538
if test -z "$CXX"; then
5539
if test -n "$CCC"; then
5542
if test -n "$ac_tool_prefix"; then
5543
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5545
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5546
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5547
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5549
if test "${ac_cv_prog_CXX+set}" = set; then
5550
echo $ECHO_N "(cached) $ECHO_C" >&6
5552
if test -n "$CXX"; then
5553
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559
test -z "$as_dir" && as_dir=.
5560
for ac_exec_ext in '' $ac_executable_extensions; do
5561
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5563
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573
if test -n "$CXX"; then
5574
{ echo "$as_me:$LINENO: result: $CXX" >&5
5575
echo "${ECHO_T}$CXX" >&6; }
5577
{ echo "$as_me:$LINENO: result: no" >&5
5578
echo "${ECHO_T}no" >&6; }
5582
test -n "$CXX" && break
5585
if test -z "$CXX"; then
5587
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5589
# Extract the first word of "$ac_prog", so it can be a program name with args.
5590
set dummy $ac_prog; ac_word=$2
5591
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5592
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5593
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5594
echo $ECHO_N "(cached) $ECHO_C" >&6
5596
if test -n "$ac_ct_CXX"; then
5597
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5599
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603
test -z "$as_dir" && as_dir=.
5604
for ac_exec_ext in '' $ac_executable_extensions; do
5605
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606
ac_cv_prog_ac_ct_CXX="$ac_prog"
5607
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5617
if test -n "$ac_ct_CXX"; then
5618
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5619
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5621
{ echo "$as_me:$LINENO: result: no" >&5
5622
echo "${ECHO_T}no" >&6; }
5626
test -n "$ac_ct_CXX" && break
5629
if test "x$ac_ct_CXX" = x; then
5632
case $cross_compiling:$ac_tool_warned in
5634
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5635
whose name does not start with the host triplet. If you think this
5636
configuration is useful to you, please write to autoconf@gnu.org." >&5
5637
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5638
whose name does not start with the host triplet. If you think this
5639
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5640
ac_tool_warned=yes ;;
5648
# Provide some information about the compiler.
5649
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5650
ac_compiler=`set X $ac_compile; echo $2`
5651
{ (ac_try="$ac_compiler --version >&5"
5653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654
*) ac_try_echo=$ac_try;;
5656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657
(eval "$ac_compiler --version >&5") 2>&5
5659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660
(exit $ac_status); }
5661
{ (ac_try="$ac_compiler -v >&5"
5663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664
*) ac_try_echo=$ac_try;;
5666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667
(eval "$ac_compiler -v >&5") 2>&5
5669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
(exit $ac_status); }
5671
{ (ac_try="$ac_compiler -V >&5"
5673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674
*) ac_try_echo=$ac_try;;
5676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677
(eval "$ac_compiler -V >&5") 2>&5
5679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680
(exit $ac_status); }
5682
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5683
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5684
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5685
echo $ECHO_N "(cached) $ECHO_C" >&6
5687
cat >conftest.$ac_ext <<_ACEOF
5690
cat confdefs.h >>conftest.$ac_ext
5691
cat >>conftest.$ac_ext <<_ACEOF
5692
/* end confdefs.h. */
5705
rm -f conftest.$ac_objext
5706
if { (ac_try="$ac_compile"
5708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709
*) ac_try_echo=$ac_try;;
5711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712
(eval "$ac_compile") 2>conftest.er1
5714
grep -v '^ *+' conftest.er1 >conftest.err
5716
cat conftest.err >&5
5717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718
(exit $ac_status); } && {
5719
test -z "$ac_cxx_werror_flag" ||
5720
test ! -s conftest.err
5721
} && test -s conftest.$ac_objext; then
5724
echo "$as_me: failed program was:" >&5
5725
sed 's/^/| /' conftest.$ac_ext >&5
5730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5734
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5735
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5736
GXX=`test $ac_compiler_gnu = yes && echo yes`
5737
ac_test_CXXFLAGS=${CXXFLAGS+set}
5738
ac_save_CXXFLAGS=$CXXFLAGS
5739
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5740
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5741
if test "${ac_cv_prog_cxx_g+set}" = set; then
5742
echo $ECHO_N "(cached) $ECHO_C" >&6
5744
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5745
ac_cxx_werror_flag=yes
5748
cat >conftest.$ac_ext <<_ACEOF
5751
cat confdefs.h >>conftest.$ac_ext
5752
cat >>conftest.$ac_ext <<_ACEOF
5753
/* end confdefs.h. */
5763
rm -f conftest.$ac_objext
5764
if { (ac_try="$ac_compile"
5766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767
*) ac_try_echo=$ac_try;;
5769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770
(eval "$ac_compile") 2>conftest.er1
5772
grep -v '^ *+' conftest.er1 >conftest.err
5774
cat conftest.err >&5
5775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776
(exit $ac_status); } && {
5777
test -z "$ac_cxx_werror_flag" ||
5778
test ! -s conftest.err
5779
} && test -s conftest.$ac_objext; then
5780
ac_cv_prog_cxx_g=yes
5782
echo "$as_me: failed program was:" >&5
5783
sed 's/^/| /' conftest.$ac_ext >&5
5786
cat >conftest.$ac_ext <<_ACEOF
5789
cat confdefs.h >>conftest.$ac_ext
5790
cat >>conftest.$ac_ext <<_ACEOF
5791
/* end confdefs.h. */
5801
rm -f conftest.$ac_objext
5802
if { (ac_try="$ac_compile"
5804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805
*) ac_try_echo=$ac_try;;
5807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808
(eval "$ac_compile") 2>conftest.er1
5810
grep -v '^ *+' conftest.er1 >conftest.err
5812
cat conftest.err >&5
5813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
(exit $ac_status); } && {
5815
test -z "$ac_cxx_werror_flag" ||
5816
test ! -s conftest.err
5817
} && test -s conftest.$ac_objext; then
5820
echo "$as_me: failed program was:" >&5
5821
sed 's/^/| /' conftest.$ac_ext >&5
5823
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5825
cat >conftest.$ac_ext <<_ACEOF
5828
cat confdefs.h >>conftest.$ac_ext
5829
cat >>conftest.$ac_ext <<_ACEOF
5830
/* end confdefs.h. */
5840
rm -f conftest.$ac_objext
5841
if { (ac_try="$ac_compile"
5843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844
*) ac_try_echo=$ac_try;;
5846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847
(eval "$ac_compile") 2>conftest.er1
5849
grep -v '^ *+' conftest.er1 >conftest.err
5851
cat conftest.err >&5
5852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
(exit $ac_status); } && {
5854
test -z "$ac_cxx_werror_flag" ||
5855
test ! -s conftest.err
5856
} && test -s conftest.$ac_objext; then
5857
ac_cv_prog_cxx_g=yes
5859
echo "$as_me: failed program was:" >&5
5860
sed 's/^/| /' conftest.$ac_ext >&5
5865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5874
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5875
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5876
if test "$ac_test_CXXFLAGS" = set; then
5877
CXXFLAGS=$ac_save_CXXFLAGS
5878
elif test $ac_cv_prog_cxx_g = yes; then
5879
if test "$GXX" = yes; then
5885
if test "$GXX" = yes; then
5892
ac_cpp='$CXXCPP $CPPFLAGS'
5893
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5897
depcc="$CXX" am_compiler_list=
5899
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5900
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5901
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5902
echo $ECHO_N "(cached) $ECHO_C" >&6
5904
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5905
# We make a subdir and do the tests there. Otherwise we can end up
5906
# making bogus files that we don't know about and never remove. For
5907
# instance it was reported that on HP-UX the gcc test will end up
5908
# making a dummy file named `D' -- because `-MD' means `put the output
5911
# Copy depcomp to subdir because otherwise we won't find it if we're
5912
# using a relative directory.
5913
cp "$am_depcomp" conftest.dir
5915
# We will build objects and dependencies in a subdirectory because
5916
# it helps to detect inapplicable dependency modes. For instance
5917
# both Tru64's cc and ICC support -MD to output dependencies as a
5918
# side effect of compilation, but ICC will put the dependencies in
5919
# the current directory while Tru64 will put them in the object
5923
am_cv_CXX_dependencies_compiler_type=none
5924
if test "$am_compiler_list" = ""; then
5925
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5927
for depmode in $am_compiler_list; do
5928
# Setup a source with many dependencies, because some compilers
5929
# like to wrap large dependency lists on column 80 (with \), and
5930
# we should not choose a depcomp mode which is confused by this.
5932
# We need to recreate these files for each test, as the compiler may
5933
# overwrite some of them when testing with obscure command lines.
5934
# This happens at least with the AIX C compiler.
5936
for i in 1 2 3 4 5 6; do
5937
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5938
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5939
# Solaris 8's {/usr,}/bin/sh.
5940
touch sub/conftst$i.h
5942
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5946
# after this tag, mechanisms are not by side-effect, so they'll
5947
# only be used when explicitly requested
5948
if test "x$enable_dependency_tracking" = xyes; then
5956
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5957
# mode. It turns out that the SunPro C++ compiler does not properly
5958
# handle `-M -o', and we need to detect this.
5959
if depmode=$depmode \
5960
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5961
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5962
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5963
>/dev/null 2>conftest.err &&
5964
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5965
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5966
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5967
# icc doesn't choke on unknown options, it will just issue warnings
5968
# or remarks (even with -Werror). So we grep stderr for any message
5969
# that says an option was ignored or not supported.
5970
# When given -MP, icc 7.0 and 7.1 complain thusly:
5971
# icc: Command line warning: ignoring option '-M'; no argument required
5972
# The diagnosis changed in icc 8.0:
5973
# icc: Command line remark: option '-MP' not supported
5974
if (grep 'ignoring option' conftest.err ||
5975
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5976
am_cv_CXX_dependencies_compiler_type=$depmode
5985
am_cv_CXX_dependencies_compiler_type=none
5989
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5990
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5991
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5996
test "x$enable_dependency_tracking" != xno \
5997
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5998
am__fastdepCXX_TRUE=
5999
am__fastdepCXX_FALSE='#'
6001
am__fastdepCXX_TRUE='#'
6002
am__fastdepCXX_FALSE=
6008
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6009
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6010
(test "X$CXX" != "Xg++"))) ; then
6012
ac_cpp='$CXXCPP $CPPFLAGS'
6013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6017
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6018
if test -z "$CXXCPP"; then
6019
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6020
echo $ECHO_N "(cached) $ECHO_C" >&6
6022
# Double quotes because CXXCPP needs to be expanded
6023
for CXXCPP in "$CXX -E" "/lib/cpp"
6026
for ac_cxx_preproc_warn_flag in '' yes
6028
# Use a header file that comes with gcc, so configuring glibc
6029
# with a fresh cross-compiler works.
6030
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031
# <limits.h> exists even on freestanding compilers.
6032
# On the NeXT, cc -E runs the code through the compiler's parser,
6033
# not just through cpp. "Syntax error" is here to catch this case.
6034
cat >conftest.$ac_ext <<_ACEOF
6037
cat confdefs.h >>conftest.$ac_ext
6038
cat >>conftest.$ac_ext <<_ACEOF
6039
/* end confdefs.h. */
6041
# include <limits.h>
6043
# include <assert.h>
6047
if { (ac_try="$ac_cpp conftest.$ac_ext"
6049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050
*) ac_try_echo=$ac_try;;
6052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6055
grep -v '^ *+' conftest.er1 >conftest.err
6057
cat conftest.err >&5
6058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059
(exit $ac_status); } >/dev/null && {
6060
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6061
test ! -s conftest.err
6065
echo "$as_me: failed program was:" >&5
6066
sed 's/^/| /' conftest.$ac_ext >&5
6068
# Broken: fails on valid input.
6072
rm -f conftest.err conftest.$ac_ext
6074
# OK, works on sane cases. Now check whether nonexistent headers
6075
# can be detected and how.
6076
cat >conftest.$ac_ext <<_ACEOF
6079
cat confdefs.h >>conftest.$ac_ext
6080
cat >>conftest.$ac_ext <<_ACEOF
6081
/* end confdefs.h. */
6082
#include <ac_nonexistent.h>
6084
if { (ac_try="$ac_cpp conftest.$ac_ext"
6086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087
*) ac_try_echo=$ac_try;;
6089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092
grep -v '^ *+' conftest.er1 >conftest.err
6094
cat conftest.err >&5
6095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096
(exit $ac_status); } >/dev/null && {
6097
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098
test ! -s conftest.err
6100
# Broken: success on invalid input.
6103
echo "$as_me: failed program was:" >&5
6104
sed 's/^/| /' conftest.$ac_ext >&5
6106
# Passes both tests.
6111
rm -f conftest.err conftest.$ac_ext
6114
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115
rm -f conftest.err conftest.$ac_ext
6116
if $ac_preproc_ok; then
6121
ac_cv_prog_CXXCPP=$CXXCPP
6124
CXXCPP=$ac_cv_prog_CXXCPP
6126
ac_cv_prog_CXXCPP=$CXXCPP
6128
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6129
echo "${ECHO_T}$CXXCPP" >&6; }
6131
for ac_cxx_preproc_warn_flag in '' yes
6133
# Use a header file that comes with gcc, so configuring glibc
6134
# with a fresh cross-compiler works.
6135
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6136
# <limits.h> exists even on freestanding compilers.
6137
# On the NeXT, cc -E runs the code through the compiler's parser,
6138
# not just through cpp. "Syntax error" is here to catch this case.
6139
cat >conftest.$ac_ext <<_ACEOF
6142
cat confdefs.h >>conftest.$ac_ext
6143
cat >>conftest.$ac_ext <<_ACEOF
6144
/* end confdefs.h. */
6146
# include <limits.h>
6148
# include <assert.h>
6152
if { (ac_try="$ac_cpp conftest.$ac_ext"
6154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155
*) ac_try_echo=$ac_try;;
6157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6160
grep -v '^ *+' conftest.er1 >conftest.err
6162
cat conftest.err >&5
6163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164
(exit $ac_status); } >/dev/null && {
6165
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6166
test ! -s conftest.err
6170
echo "$as_me: failed program was:" >&5
6171
sed 's/^/| /' conftest.$ac_ext >&5
6173
# Broken: fails on valid input.
6177
rm -f conftest.err conftest.$ac_ext
6179
# OK, works on sane cases. Now check whether nonexistent headers
6180
# can be detected and how.
6181
cat >conftest.$ac_ext <<_ACEOF
6184
cat confdefs.h >>conftest.$ac_ext
6185
cat >>conftest.$ac_ext <<_ACEOF
6186
/* end confdefs.h. */
6187
#include <ac_nonexistent.h>
6189
if { (ac_try="$ac_cpp conftest.$ac_ext"
6191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192
*) ac_try_echo=$ac_try;;
6194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6197
grep -v '^ *+' conftest.er1 >conftest.err
6199
cat conftest.err >&5
6200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201
(exit $ac_status); } >/dev/null && {
6202
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6203
test ! -s conftest.err
6205
# Broken: success on invalid input.
6208
echo "$as_me: failed program was:" >&5
6209
sed 's/^/| /' conftest.$ac_ext >&5
6211
# Passes both tests.
6216
rm -f conftest.err conftest.$ac_ext
6219
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6220
rm -f conftest.err conftest.$ac_ext
6221
if $ac_preproc_ok; then
6224
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6225
See \`config.log' for more details." >&5
6226
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6227
See \`config.log' for more details." >&2;}
6228
{ (exit 1); exit 1; }; }
6232
ac_cpp='$CXXCPP $CPPFLAGS'
6233
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6241
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6242
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6244
if test -n "$ac_tool_prefix"; then
6245
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
6247
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6248
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6249
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6250
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251
if test "${ac_cv_prog_F77+set}" = set; then
6252
echo $ECHO_N "(cached) $ECHO_C" >&6
6254
if test -n "$F77"; then
6255
ac_cv_prog_F77="$F77" # Let the user override the test.
6257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261
test -z "$as_dir" && as_dir=.
6262
for ac_exec_ext in '' $ac_executable_extensions; do
6263
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6265
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275
if test -n "$F77"; then
6276
{ echo "$as_me:$LINENO: result: $F77" >&5
6277
echo "${ECHO_T}$F77" >&6; }
6279
{ echo "$as_me:$LINENO: result: no" >&5
6280
echo "${ECHO_T}no" >&6; }
6284
test -n "$F77" && break
6287
if test -z "$F77"; then
6289
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
6291
# Extract the first word of "$ac_prog", so it can be a program name with args.
6292
set dummy $ac_prog; ac_word=$2
6293
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6296
echo $ECHO_N "(cached) $ECHO_C" >&6
6298
if test -n "$ac_ct_F77"; then
6299
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305
test -z "$as_dir" && as_dir=.
6306
for ac_exec_ext in '' $ac_executable_extensions; do
6307
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308
ac_cv_prog_ac_ct_F77="$ac_prog"
6309
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6319
if test -n "$ac_ct_F77"; then
6320
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6321
echo "${ECHO_T}$ac_ct_F77" >&6; }
6323
{ echo "$as_me:$LINENO: result: no" >&5
6324
echo "${ECHO_T}no" >&6; }
6328
test -n "$ac_ct_F77" && break
6331
if test "x$ac_ct_F77" = x; then
6334
case $cross_compiling:$ac_tool_warned in
6336
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6337
whose name does not start with the host triplet. If you think this
6338
configuration is useful to you, please write to autoconf@gnu.org." >&5
6339
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6340
whose name does not start with the host triplet. If you think this
6341
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6342
ac_tool_warned=yes ;;
6349
# Provide some information about the compiler.
6350
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6351
ac_compiler=`set X $ac_compile; echo $2`
6352
{ (ac_try="$ac_compiler --version >&5"
6354
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355
*) ac_try_echo=$ac_try;;
6357
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358
(eval "$ac_compiler --version >&5") 2>&5
6360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361
(exit $ac_status); }
6362
{ (ac_try="$ac_compiler -v >&5"
6364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365
*) ac_try_echo=$ac_try;;
6367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368
(eval "$ac_compiler -v >&5") 2>&5
6370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
(exit $ac_status); }
6372
{ (ac_try="$ac_compiler -V >&5"
6374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375
*) ac_try_echo=$ac_try;;
6377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378
(eval "$ac_compiler -V >&5") 2>&5
6380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381
(exit $ac_status); }
6384
# If we don't use `.F' as extension, the preprocessor is not run on the
6385
# input file. (Note that this only needs to work for GNU compilers.)
6388
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6389
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6390
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6391
echo $ECHO_N "(cached) $ECHO_C" >&6
6393
cat >conftest.$ac_ext <<_ACEOF
6401
rm -f conftest.$ac_objext
6402
if { (ac_try="$ac_compile"
6404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405
*) ac_try_echo=$ac_try;;
6407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408
(eval "$ac_compile") 2>conftest.er1
6410
grep -v '^ *+' conftest.er1 >conftest.err
6412
cat conftest.err >&5
6413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414
(exit $ac_status); } && {
6415
test -z "$ac_f77_werror_flag" ||
6416
test ! -s conftest.err
6417
} && test -s conftest.$ac_objext; then
6420
echo "$as_me: failed program was:" >&5
6421
sed 's/^/| /' conftest.$ac_ext >&5
6426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6430
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6431
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6433
ac_test_FFLAGS=${FFLAGS+set}
6434
ac_save_FFLAGS=$FFLAGS
6436
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6437
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6438
if test "${ac_cv_prog_f77_g+set}" = set; then
6439
echo $ECHO_N "(cached) $ECHO_C" >&6
6442
cat >conftest.$ac_ext <<_ACEOF
6447
rm -f conftest.$ac_objext
6448
if { (ac_try="$ac_compile"
6450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451
*) ac_try_echo=$ac_try;;
6453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454
(eval "$ac_compile") 2>conftest.er1
6456
grep -v '^ *+' conftest.er1 >conftest.err
6458
cat conftest.err >&5
6459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460
(exit $ac_status); } && {
6461
test -z "$ac_f77_werror_flag" ||
6462
test ! -s conftest.err
6463
} && test -s conftest.$ac_objext; then
6464
ac_cv_prog_f77_g=yes
6466
echo "$as_me: failed program was:" >&5
6467
sed 's/^/| /' conftest.$ac_ext >&5
6472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6476
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6477
if test "$ac_test_FFLAGS" = set; then
6478
FFLAGS=$ac_save_FFLAGS
6479
elif test $ac_cv_prog_f77_g = yes; then
6480
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6486
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6493
G77=`test $ac_compiler_gnu = yes && echo yes`
6495
ac_cpp='$CPP $CPPFLAGS'
6496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6504
# find the maximum length of command line arguments
6505
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6506
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6507
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6508
echo $ECHO_N "(cached) $ECHO_C" >&6
6515
# On DJGPP, this test can blow up pretty badly due to problems in libc
6516
# (any single argument exceeding 2000 bytes causes a buffer overrun
6517
# during glob expansion). Even if it were fixed, the result of this
6518
# check would be larger than it should be.
6519
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6523
# Under GNU Hurd, this test is not required because there is
6524
# no limit to the length of command line arguments.
6525
# Libtool will interpret -1 as no limit whatsoever
6526
lt_cv_sys_max_cmd_len=-1;
6530
# On Win9x/ME, this test blows up -- it succeeds, but takes
6531
# about 5 minutes as the teststring grows exponentially.
6532
# Worse, since 9x/ME are not pre-emptively multitasking,
6533
# you end up with a "frozen" computer, even though with patience
6534
# the test eventually succeeds (with a max line length of 256k).
6535
# Instead, let's just punt: use the minimum linelength reported by
6536
# all of the supported platforms: 8192 (on NT/2K/XP).
6537
lt_cv_sys_max_cmd_len=8192;
6541
# On AmigaOS with pdksh, this test takes hours, literally.
6542
# So we just punt and use a minimum line length of 8192.
6543
lt_cv_sys_max_cmd_len=8192;
6546
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6547
# This has been around since 386BSD, at least. Likely further.
6548
if test -x /sbin/sysctl; then
6549
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6550
elif test -x /usr/sbin/sysctl; then
6551
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6553
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6555
# And add a safety zone
6556
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6557
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6561
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6562
lt_cv_sys_max_cmd_len=196608
6566
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6567
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6568
# nice to cause kernel panics so lets avoid the loop below.
6569
# First set a reasonable default.
6570
lt_cv_sys_max_cmd_len=16384
6572
if test -x /sbin/sysconfig; then
6573
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6574
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6579
lt_cv_sys_max_cmd_len=102400
6581
sysv5* | sco5v6* | sysv4.2uw2*)
6582
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6583
if test -n "$kargmax"; then
6584
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6586
lt_cv_sys_max_cmd_len=32768
6590
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6591
if test -n "$lt_cv_sys_max_cmd_len"; then
6592
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6593
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6595
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6596
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6597
= "XX$teststring") >/dev/null 2>&1 &&
6598
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6599
lt_cv_sys_max_cmd_len=$new_result &&
6600
test $i != 17 # 1/2 MB should be enough
6603
teststring=$teststring$teststring
6606
# Add a significant safety factor because C++ compilers can tack on massive
6607
# amounts of additional arguments before passing them to the linker.
6608
# It appears as though 1/2 is a usable value.
6609
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6616
if test -n $lt_cv_sys_max_cmd_len ; then
6617
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6618
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6620
{ echo "$as_me:$LINENO: result: none" >&5
6621
echo "${ECHO_T}none" >&6; }
6628
5703
# Check for command to grab the raw symbol name followed by C symbol from nm.
6629
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6630
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5704
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5705
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6631
5706
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6632
echo $ECHO_N "(cached) $ECHO_C" >&6
5707
$as_echo_n "(cached) " >&6
6635
5710
# These are sane defaults that work on at least a few old systems.
10433
# Report which library types will actually be built
10434
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10435
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10436
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10437
echo "${ECHO_T}$can_build_shared" >&6; }
10439
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10440
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10441
test "$can_build_shared" = "no" && enable_shared=no
10443
# On AIX, shared libraries and static libraries use the same namespace, and
10444
# are all built from PIC.
10447
test "$enable_shared" = yes && enable_static=no
10448
if test -n "$RANLIB"; then
10449
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10450
postinstall_cmds='$RANLIB $lib'
10455
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10456
test "$enable_shared" = yes && enable_static=no
10460
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10461
echo "${ECHO_T}$enable_shared" >&6; }
10463
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10464
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10465
# Make sure either enable_shared or enable_static is yes.
10466
test "$enable_shared" = yes || enable_static=yes
10467
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10468
echo "${ECHO_T}$enable_static" >&6; }
10470
# The else clause should only fire when bootstrapping the
10471
# libtool distribution, otherwise you forgot to ship ltmain.sh
10472
# with your package, and you will get complaints that there are
10473
# no rules to generate ltmain.sh.
10474
if test -f "$ltmain"; then
10475
# See if we are running on zsh, and set the options which allow our commands through
10476
# without removal of \ escapes.
10477
if test -n "${ZSH_VERSION+set}" ; then
10478
setopt NO_GLOB_SUBST
10480
# Now quote all the things that may contain metacharacters while being
10481
# careful not to overquote the AC_SUBSTed values. We take copies of the
10482
# variables and quote the copies for generation of the libtool script.
10483
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10485
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10486
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10487
deplibs_check_method reload_flag reload_cmds need_locks \
10488
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10489
lt_cv_sys_global_symbol_to_c_name_address \
10490
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10491
old_postinstall_cmds old_postuninstall_cmds \
10495
lt_prog_compiler_wl \
10496
lt_prog_compiler_pic \
10497
lt_prog_compiler_static \
10498
lt_prog_compiler_no_builtin_flag \
10499
export_dynamic_flag_spec \
10500
thread_safe_flag_spec \
10501
whole_archive_flag_spec \
10502
enable_shared_with_static_runtimes \
10504
old_archive_from_new_cmds \
10509
compiler_lib_search_path \
10511
archive_expsym_cmds \
10513
postuninstall_cmds \
10514
old_archive_from_expsyms_cmds \
10515
allow_undefined_flag \
10516
no_undefined_flag \
10517
export_symbols_cmds \
10518
hardcode_libdir_flag_spec \
10519
hardcode_libdir_flag_spec_ld \
10520
hardcode_libdir_separator \
10521
hardcode_automatic \
10523
module_expsym_cmds \
10524
lt_cv_prog_compiler_c_o \
10527
include_expsyms; do
10530
old_archive_cmds | \
10531
old_archive_from_new_cmds | \
10533
archive_expsym_cmds | \
10535
module_expsym_cmds | \
10536
old_archive_from_expsyms_cmds | \
10537
export_symbols_cmds | \
10538
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10539
postinstall_cmds | postuninstall_cmds | \
10540
old_postinstall_cmds | old_postuninstall_cmds | \
10541
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10542
# Double-quote double-evaled strings.
10543
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10546
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10552
*'\$0 --fallback-echo"')
10553
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10557
cfgfile="${ofile}T"
10558
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10560
{ echo "$as_me:$LINENO: creating $ofile" >&5
10561
echo "$as_me: creating $ofile" >&6;}
10563
cat <<__EOF__ >> "$cfgfile"
10566
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10567
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10568
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10570
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10571
# Free Software Foundation, Inc.
10573
# This file is part of GNU Libtool:
10574
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10576
# This program is free software; you can redistribute it and/or modify
10577
# it under the terms of the GNU General Public License as published by
10578
# the Free Software Foundation; either version 2 of the License, or
10579
# (at your option) any later version.
10581
# This program is distributed in the hope that it will be useful, but
10582
# WITHOUT ANY WARRANTY; without even the implied warranty of
10583
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10584
# General Public License for more details.
10586
# You should have received a copy of the GNU General Public License
10587
# along with this program; if not, write to the Free Software
10588
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10590
# As a special exception to the GNU General Public License, if you
10591
# distribute this file as part of a program that contains a
10592
# configuration script generated by Autoconf, you may include it under
10593
# the same distribution terms that you use for the rest of that program.
10595
# A sed program that does not truncate output.
10598
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10599
Xsed="$SED -e 1s/^X//"
10601
# The HP-UX ksh and POSIX shell print the target directory to stdout
10602
# if CDPATH is set.
10603
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10605
# The names of the tagged configurations supported by this script.
10608
# ### BEGIN LIBTOOL CONFIG
10610
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10612
# Shell to use when invoking shell scripts.
10615
# Whether or not to build shared libraries.
10616
build_libtool_libs=$enable_shared
10618
# Whether or not to build static libraries.
10619
build_old_libs=$enable_static
10621
# Whether or not to add -lc for building shared libraries.
10622
build_libtool_need_lc=$archive_cmds_need_lc
10624
# Whether or not to disallow shared libs when runtime libs are static
10625
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10627
# Whether or not to optimize for fast installation.
10628
fast_install=$enable_fast_install
10631
host_alias=$host_alias
10635
# The build system.
10636
build_alias=$build_alias
10640
# An echo program that does not interpret backslashes.
10645
AR_FLAGS=$lt_AR_FLAGS
10650
# LTCC compiler flags.
10651
LTCFLAGS=$lt_LTCFLAGS
10653
# A language-specific compiler.
10656
# Is the compiler the GNU C compiler?
10662
# The linker used to build libraries.
10665
# Whether we need hard or soft links.
10668
# A BSD-compatible nm program.
10671
# A symbol stripping program
10674
# Used to examine libraries when file_magic_cmd begins "file"
10675
MAGIC_CMD=$MAGIC_CMD
10677
# Used on cygwin: DLL creation program.
10680
# Used on cygwin: object dumper.
10683
# Used on cygwin: assembler.
10686
# The name of the directory that contains temporary libtool files.
10689
# How to create reloadable object files.
10690
reload_flag=$lt_reload_flag
10691
reload_cmds=$lt_reload_cmds
10693
# How to pass a linker flag through the compiler.
10694
wl=$lt_lt_prog_compiler_wl
10696
# Object file suffix (normally "o").
10697
objext="$ac_objext"
10699
# Old archive suffix (normally "a").
10702
# Shared library suffix (normally ".so").
10703
shrext_cmds='$shrext_cmds'
10705
# Executable file suffix (normally "").
10708
# Additional compiler flags for building library objects.
10709
pic_flag=$lt_lt_prog_compiler_pic
10712
# What is the maximum length of a command?
10713
max_cmd_len=$lt_cv_sys_max_cmd_len
10715
# Does compiler simultaneously support -c and -o options?
10716
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10718
# Must we lock files when doing compilation?
10719
need_locks=$lt_need_locks
10721
# Do we need the lib prefix for modules?
10722
need_lib_prefix=$need_lib_prefix
10724
# Do we need a version for libraries?
10725
need_version=$need_version
10727
# Whether dlopen is supported.
10728
dlopen_support=$enable_dlopen
10730
# Whether dlopen of programs is supported.
10731
dlopen_self=$enable_dlopen_self
10733
# Whether dlopen of statically linked programs is supported.
10734
dlopen_self_static=$enable_dlopen_self_static
10736
# Compiler flag to prevent dynamic linking.
10737
link_static_flag=$lt_lt_prog_compiler_static
10739
# Compiler flag to turn off builtin functions.
10740
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10742
# Compiler flag to allow reflexive dlopens.
10743
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10745
# Compiler flag to generate shared objects directly from archives.
10746
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10748
# Compiler flag to generate thread-safe objects.
10749
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10751
# Library versioning type.
10752
version_type=$version_type
10754
# Format of library name prefix.
10755
libname_spec=$lt_libname_spec
10757
# List of archive names. First name is the real one, the rest are links.
10758
# The last name is the one that the linker finds with -lNAME.
10759
library_names_spec=$lt_library_names_spec
10761
# The coded name of the library, if different from the real name.
10762
soname_spec=$lt_soname_spec
10764
# Commands used to build and install an old-style archive.
10766
old_archive_cmds=$lt_old_archive_cmds
10767
old_postinstall_cmds=$lt_old_postinstall_cmds
10768
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10770
# Create an old-style archive from a shared archive.
10771
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10773
# Create a temporary old-style archive to link instead of a shared archive.
10774
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10776
# Commands used to build and install a shared archive.
10777
archive_cmds=$lt_archive_cmds
10778
archive_expsym_cmds=$lt_archive_expsym_cmds
10779
postinstall_cmds=$lt_postinstall_cmds
10780
postuninstall_cmds=$lt_postuninstall_cmds
10782
# Commands used to build a loadable module (assumed same as above if empty)
10783
module_cmds=$lt_module_cmds
10784
module_expsym_cmds=$lt_module_expsym_cmds
10786
# Commands to strip libraries.
10787
old_striplib=$lt_old_striplib
10788
striplib=$lt_striplib
10790
# Dependencies to place before the objects being linked to create a
10792
predep_objects=$lt_predep_objects
10794
# Dependencies to place after the objects being linked to create a
10796
postdep_objects=$lt_postdep_objects
10798
# Dependencies to place before the objects being linked to create a
10800
predeps=$lt_predeps
10802
# Dependencies to place after the objects being linked to create a
10804
postdeps=$lt_postdeps
10806
# The library search path used internally by the compiler when linking
10807
# a shared library.
10808
compiler_lib_search_path=$lt_compiler_lib_search_path
10810
# Method to check whether dependent libraries are shared objects.
10811
deplibs_check_method=$lt_deplibs_check_method
10813
# Command to use when deplibs_check_method == file_magic.
10814
file_magic_cmd=$lt_file_magic_cmd
10816
# Flag that allows shared libraries with undefined symbols to be built.
10817
allow_undefined_flag=$lt_allow_undefined_flag
10819
# Flag that forces no undefined symbols.
10820
no_undefined_flag=$lt_no_undefined_flag
10822
# Commands used to finish a libtool library installation in a directory.
10823
finish_cmds=$lt_finish_cmds
10825
# Same as above, but a single script fragment to be evaled but not shown.
10826
finish_eval=$lt_finish_eval
10828
# Take the output of nm and produce a listing of raw symbols and C names.
10829
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10831
# Transform the output of nm in a proper C declaration
10832
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10834
# Transform the output of nm in a C name address pair
10835
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10837
# This is the shared library runtime path variable.
10838
runpath_var=$runpath_var
10840
# This is the shared library path variable.
10841
shlibpath_var=$shlibpath_var
10843
# Is shlibpath searched before the hard-coded library search path?
10844
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10846
# How to hardcode a shared library path into an executable.
10847
hardcode_action=$hardcode_action
10849
# Whether we should hardcode library paths into libraries.
10850
hardcode_into_libs=$hardcode_into_libs
10852
# Flag to hardcode \$libdir into a binary during linking.
10853
# This must work even if \$libdir does not exist.
10854
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10856
# If ld is used when linking, flag to hardcode \$libdir into
10857
# a binary during linking. This must work even if \$libdir does
10859
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10861
# Whether we need a single -rpath flag with a separated argument.
10862
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10864
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10865
# resulting binary.
10866
hardcode_direct=$hardcode_direct
10868
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10869
# resulting binary.
10870
hardcode_minus_L=$hardcode_minus_L
10872
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10873
# the resulting binary.
10874
hardcode_shlibpath_var=$hardcode_shlibpath_var
10876
# Set to yes if building a shared library automatically hardcodes DIR into the library
10877
# and all subsequent libraries and executables linked against it.
10878
hardcode_automatic=$hardcode_automatic
10880
# Variables whose values should be saved in libtool wrapper scripts and
10881
# restored at relink time.
10882
variables_saved_for_relink="$variables_saved_for_relink"
10884
# Whether libtool must link a program against all its dependency libraries.
10885
link_all_deplibs=$link_all_deplibs
10887
# Compile-time system search path for libraries
10888
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10890
# Run-time system search path for libraries
10891
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10893
# Fix the shell variable \$srcfile for the compiler.
10894
fix_srcfile_path=$lt_fix_srcfile_path
10896
# Set to yes if exported symbols are required.
10897
always_export_symbols=$always_export_symbols
10899
# The commands to list exported symbols.
10900
export_symbols_cmds=$lt_export_symbols_cmds
10902
# The commands to extract the exported symbol list from a shared archive.
10903
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10905
# Symbols that should not be listed in the preloaded symbols.
10906
exclude_expsyms=$lt_exclude_expsyms
10908
# Symbols that must always be exported.
10909
include_expsyms=$lt_include_expsyms
10911
# ### END LIBTOOL CONFIG
10918
cat <<\EOF >> "$cfgfile"
10920
# AIX sometimes has problems with the GCC collect2 program. For some
10921
# reason, if we set the COLLECT_NAMES environment variable, the problems
10922
# vanish in a puff of smoke.
10923
if test "X${COLLECT_NAMES+set}" != Xset; then
10925
export COLLECT_NAMES
10931
# We use sed instead of cat because bash on DJGPP gets confused if
10932
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10933
# text mode, it properly converts lines to CR/LF. This bash problem
10934
# is reportedly fixed, but why not run on old versions too?
10935
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10937
mv -f "$cfgfile" "$ofile" || \
10938
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10942
# If there is no Makefile yet, we rely on a make rule to execute
10943
# `config.status --recheck' to rerun these tests and create the
10944
# libtool script then.
10945
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10946
if test -f "$ltmain_in"; then
10947
test -f Makefile && make "$ltmain"
10953
ac_cpp='$CPP $CPPFLAGS'
10954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961
# Check whether --with-tags was given.
10962
if test "${with_tags+set}" = set; then
10963
withval=$with_tags; tagnames="$withval"
10967
if test -f "$ltmain" && test -n "$tagnames"; then
10968
if test ! -f "${ofile}"; then
10969
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10970
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10973
if test -z "$LTCC"; then
10974
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10975
if test -z "$LTCC"; then
10976
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10977
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10979
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10980
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10983
if test -z "$LTCFLAGS"; then
10984
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10987
# Extract list of available tagged configurations in $ofile.
10988
# Note that this assumes the entire list is on one line.
10989
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10991
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10992
for tagname in $tagnames; do
10994
# Check whether tagname contains only valid characters
10995
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10997
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10998
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10999
{ (exit 1); exit 1; }; }
11003
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11005
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11006
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11007
{ (exit 1); exit 1; }; }
11010
# Update the list of available tags.
11011
if test -n "$tagname"; then
11012
echo appending configuration tag \"$tagname\" to $ofile
11016
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11017
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11018
(test "X$CXX" != "Xg++"))) ; then
11020
ac_cpp='$CXXCPP $CPPFLAGS'
11021
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11022
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11023
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11028
archive_cmds_need_lc_CXX=no
11029
allow_undefined_flag_CXX=
11030
always_export_symbols_CXX=no
11031
archive_expsym_cmds_CXX=
11032
export_dynamic_flag_spec_CXX=
11033
hardcode_direct_CXX=no
11034
hardcode_libdir_flag_spec_CXX=
11035
hardcode_libdir_flag_spec_ld_CXX=
11036
hardcode_libdir_separator_CXX=
11037
hardcode_minus_L_CXX=no
11038
hardcode_shlibpath_var_CXX=unsupported
11039
hardcode_automatic_CXX=no
11041
module_expsym_cmds_CXX=
11042
link_all_deplibs_CXX=unknown
11043
old_archive_cmds_CXX=$old_archive_cmds
11044
no_undefined_flag_CXX=
11045
whole_archive_flag_spec_CXX=
11046
enable_shared_with_static_runtimes_CXX=no
11048
# Dependencies to place before and after the object being linked:
11049
predep_objects_CXX=
11050
postdep_objects_CXX=
11053
compiler_lib_search_path_CXX=
11055
# Source file extension for C++ test sources.
11058
# Object file extension for compiled C++ test sources.
11062
# Code to be used in simple compile tests
11063
lt_simple_compile_test_code="int some_variable = 0;"
11065
# Code to be used in simple link tests
11066
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11068
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11070
# If no C compiler was specified, use CC.
11073
# If no C compiler flags were specified, use CFLAGS.
11074
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11076
# Allow CC to be a program name with arguments.
11080
# save warnings/boilerplate of simple test code
11081
ac_outfile=conftest.$ac_objext
11082
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11083
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11084
_lt_compiler_boilerplate=`cat conftest.err`
11087
ac_outfile=conftest.$ac_objext
11088
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11089
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11090
_lt_linker_boilerplate=`cat conftest.err`
11094
# Allow CC to be a program name with arguments.
11099
lt_save_with_gnu_ld=$with_gnu_ld
11100
lt_save_path_LD=$lt_cv_path_LD
11101
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11102
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11104
$as_unset lt_cv_prog_gnu_ld
11106
if test -n "${lt_cv_path_LDCXX+set}"; then
11107
lt_cv_path_LD=$lt_cv_path_LDCXX
11109
$as_unset lt_cv_path_LD
11111
test -z "${LDCXX+set}" || LD=$LDCXX
11115
for cc_temp in $compiler""; do
11117
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11118
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11123
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11126
# We don't want -fno-exception wen compiling C++ code, so set the
11127
# no_builtin_flag separately
11128
if test "$GXX" = yes; then
11129
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11131
lt_prog_compiler_no_builtin_flag_CXX=
11134
if test "$GXX" = yes; then
11135
# Set up default GNU C++ configuration
11138
# Check whether --with-gnu-ld was given.
11139
if test "${with_gnu_ld+set}" = set; then
11140
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11146
if test "$GCC" = yes; then
11147
# Check if gcc -print-prog-name=ld gives a path.
11148
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11149
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11152
# gcc leaves a trailing carriage return which upsets mingw
11153
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11155
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11158
# Accept absolute paths.
11160
re_direlt='/[^/][^/]*/\.\./'
11161
# Canonicalize the pathname of ld
11162
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11163
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11164
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11166
test -z "$LD" && LD="$ac_prog"
11169
# If it fails, then pretend we aren't using GCC.
11173
# If it is relative, then search for the first ld in PATH.
11174
with_gnu_ld=unknown
11177
elif test "$with_gnu_ld" = yes; then
11178
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11179
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11181
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11182
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11184
if test "${lt_cv_path_LD+set}" = set; then
11185
echo $ECHO_N "(cached) $ECHO_C" >&6
11187
if test -z "$LD"; then
11188
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11189
for ac_dir in $PATH; do
11191
test -z "$ac_dir" && ac_dir=.
11192
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11193
lt_cv_path_LD="$ac_dir/$ac_prog"
11194
# Check to see if the program is GNU ld. I'd rather use --version,
11195
# but apparently some variants of GNU ld only accept -v.
11196
# Break only if it was the GNU/non-GNU ld that we prefer.
11197
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11198
*GNU* | *'with BFD'*)
11199
test "$with_gnu_ld" != no && break
11202
test "$with_gnu_ld" != yes && break
11209
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11213
LD="$lt_cv_path_LD"
11214
if test -n "$LD"; then
11215
{ echo "$as_me:$LINENO: result: $LD" >&5
11216
echo "${ECHO_T}$LD" >&6; }
11218
{ echo "$as_me:$LINENO: result: no" >&5
11219
echo "${ECHO_T}no" >&6; }
11221
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11222
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11223
{ (exit 1); exit 1; }; }
11224
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11225
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11226
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11227
echo $ECHO_N "(cached) $ECHO_C" >&6
11229
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11230
case `$LD -v 2>&1 </dev/null` in
11231
*GNU* | *'with BFD'*)
11232
lt_cv_prog_gnu_ld=yes
11235
lt_cv_prog_gnu_ld=no
11239
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11240
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11241
with_gnu_ld=$lt_cv_prog_gnu_ld
11245
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11246
# archiving commands below assume that GNU ld is being used.
11247
if test "$with_gnu_ld" = yes; then
11248
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11249
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'
11251
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11252
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11254
# If archive_cmds runs LD, not CC, wlarc should be empty
11255
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11256
# investigate it a little bit more. (MM)
11259
# ancient GNU ld didn't support --whole-archive et. al.
11260
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11261
grep 'no-whole-archive' > /dev/null; then
11262
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11264
whole_archive_flag_spec_CXX=
11270
# A generic and very simple default shared library creation
11271
# command for GNU C++ for the case where it uses the native
11272
# linker, instead of GNU ld. If possible, this setting should
11273
# overridden to take advantage of the native linker features on
11274
# the platform it is being used on.
11275
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11278
# Commands to make compiler produce verbose output that lists
11279
# what "hidden" libraries, object files and flags are used when
11280
# linking a shared library.
11281
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11289
# PORTME: fill in a description of your system's C++ link characteristics
11290
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11291
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11295
# FIXME: insert proper C++ library support
11299
if test "$host_cpu" = ia64; then
11300
# On IA64, the linker does run time linking by default, so we don't
11301
# have to do anything special.
11302
aix_use_runtimelinking=no
11303
exp_sym_flag='-Bexport'
11306
aix_use_runtimelinking=no
11308
# Test if we are trying to use run time linking or normal
11309
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11310
# need to do runtime linking.
11311
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11312
for ld_flag in $LDFLAGS; do
11315
aix_use_runtimelinking=yes
11323
exp_sym_flag='-bexport'
11324
no_entry_flag='-bnoentry'
11327
# When large executables or shared objects are built, AIX ld can
11328
# have problems creating the table of contents. If linking a library
11329
# or program results in "error TOC overflow" add -mminimal-toc to
11330
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11331
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11333
archive_cmds_CXX=''
11334
hardcode_direct_CXX=yes
11335
hardcode_libdir_separator_CXX=':'
11336
link_all_deplibs_CXX=yes
11338
if test "$GXX" = yes; then
11339
case $host_os in aix4.[012]|aix4.[012].*)
11340
# We only want to do this on AIX 4.2 and lower, the check
11341
# below for broken collect2 doesn't work under 4.3+
11342
collect2name=`${CC} -print-prog-name=collect2`
11343
if test -f "$collect2name" && \
11344
strings "$collect2name" | grep resolve_lib_name >/dev/null
11346
# We have reworked collect2
11349
# We have old collect2
11350
hardcode_direct_CXX=unsupported
11351
# It fails to find uninstalled libraries when the uninstalled
11352
# path is not listed in the libpath. Setting hardcode_minus_L
11353
# to unsupported forces relinking
11354
hardcode_minus_L_CXX=yes
11355
hardcode_libdir_flag_spec_CXX='-L$libdir'
11356
hardcode_libdir_separator_CXX=
11360
shared_flag='-shared'
11361
if test "$aix_use_runtimelinking" = yes; then
11362
shared_flag="$shared_flag "'${wl}-G'
11366
if test "$host_cpu" = ia64; then
11367
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11368
# chokes on -Wl,-G. The following line is correct:
11371
if test "$aix_use_runtimelinking" = yes; then
11372
shared_flag='${wl}-G'
11374
shared_flag='${wl}-bM:SRE'
11379
# It seems that -bexpall does not export symbols beginning with
11380
# underscore (_), so it is better to generate a list of symbols to export.
11381
always_export_symbols_CXX=yes
11382
if test "$aix_use_runtimelinking" = yes; then
11383
# Warning - without using the other runtime loading flags (-brtl),
11384
# -berok will link without error, but may produce a broken library.
11385
allow_undefined_flag_CXX='-berok'
11386
# Determine the default libpath from the value encoded in an empty executable.
11387
cat >conftest.$ac_ext <<_ACEOF
11390
cat confdefs.h >>conftest.$ac_ext
11391
cat >>conftest.$ac_ext <<_ACEOF
11392
/* end confdefs.h. */
11402
rm -f conftest.$ac_objext conftest$ac_exeext
11403
if { (ac_try="$ac_link"
11404
case "(($ac_try" in
11405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406
*) ac_try_echo=$ac_try;;
11408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409
(eval "$ac_link") 2>conftest.er1
11411
grep -v '^ *+' conftest.er1 >conftest.err
11413
cat conftest.err >&5
11414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415
(exit $ac_status); } && {
11416
test -z "$ac_cxx_werror_flag" ||
11417
test ! -s conftest.err
11418
} && test -s conftest$ac_exeext &&
11419
$as_test_x conftest$ac_exeext; then
11421
lt_aix_libpath_sed='
11422
/Import File Strings/,/^$/ {
11428
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11429
# Check for a 64-bit object if we didn't find anything.
11430
if test -z "$aix_libpath"; then
11431
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11434
echo "$as_me: failed program was:" >&5
11435
sed 's/^/| /' conftest.$ac_ext >&5
11440
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441
conftest$ac_exeext conftest.$ac_ext
11442
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11444
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11446
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"
11448
if test "$host_cpu" = ia64; then
11449
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11450
allow_undefined_flag_CXX="-z nodefs"
11451
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"
11453
# Determine the default libpath from the value encoded in an empty executable.
11454
cat >conftest.$ac_ext <<_ACEOF
11457
cat confdefs.h >>conftest.$ac_ext
11458
cat >>conftest.$ac_ext <<_ACEOF
11459
/* end confdefs.h. */
11469
rm -f conftest.$ac_objext conftest$ac_exeext
11470
if { (ac_try="$ac_link"
11471
case "(($ac_try" in
11472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473
*) ac_try_echo=$ac_try;;
11475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476
(eval "$ac_link") 2>conftest.er1
11478
grep -v '^ *+' conftest.er1 >conftest.err
11480
cat conftest.err >&5
11481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482
(exit $ac_status); } && {
11483
test -z "$ac_cxx_werror_flag" ||
11484
test ! -s conftest.err
11485
} && test -s conftest$ac_exeext &&
11486
$as_test_x conftest$ac_exeext; then
11488
lt_aix_libpath_sed='
11489
/Import File Strings/,/^$/ {
11495
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11496
# Check for a 64-bit object if we didn't find anything.
11497
if test -z "$aix_libpath"; then
11498
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11501
echo "$as_me: failed program was:" >&5
11502
sed 's/^/| /' conftest.$ac_ext >&5
11507
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11508
conftest$ac_exeext conftest.$ac_ext
11509
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11511
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11512
# Warning - without using the other run time loading flags,
11513
# -berok will link without error, but may produce a broken library.
11514
no_undefined_flag_CXX=' ${wl}-bernotok'
11515
allow_undefined_flag_CXX=' ${wl}-berok'
11516
# Exported symbols can be pulled into shared objects from archives
11517
whole_archive_flag_spec_CXX='$convenience'
11518
archive_cmds_need_lc_CXX=yes
11519
# This is similar to how AIX traditionally builds its shared libraries.
11520
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'
11526
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11527
allow_undefined_flag_CXX=unsupported
11528
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11529
# support --undefined. This deserves some investigation. FIXME
11530
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11537
case $cc_basename in
11539
# FIXME: insert proper C++ library support
11545
cygwin* | mingw* | pw32*)
11546
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11547
# as there is no search path for DLLs.
11548
hardcode_libdir_flag_spec_CXX='-L$libdir'
11549
allow_undefined_flag_CXX=unsupported
11550
always_export_symbols_CXX=no
11551
enable_shared_with_static_runtimes_CXX=yes
11553
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11554
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'
11555
# If the export-symbols file already is a .def file (1st line
11556
# is EXPORTS), use it as is; otherwise, prepend...
11557
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11558
cp $export_symbols $output_objdir/$soname.def;
11560
echo EXPORTS > $output_objdir/$soname.def;
11561
cat $export_symbols >> $output_objdir/$soname.def;
11563
$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'
11568
darwin* | rhapsody*)
11570
rhapsody* | darwin1.[012])
11571
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11574
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11575
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11577
case ${MACOSX_DEPLOYMENT_TARGET} in
11579
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11582
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11588
archive_cmds_need_lc_CXX=no
11589
hardcode_direct_CXX=no
11590
hardcode_automatic_CXX=yes
11591
hardcode_shlibpath_var_CXX=unsupported
11592
whole_archive_flag_spec_CXX=''
11593
link_all_deplibs_CXX=yes
11595
if test "$GXX" = yes ; then
11596
lt_int_apple_cc_single_mod=no
11597
output_verbose_link_cmd='echo'
11598
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11599
lt_int_apple_cc_single_mod=yes
11601
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11602
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11604
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'
11606
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11607
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11608
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11609
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11611
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11613
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}'
11615
case $cc_basename in
11617
output_verbose_link_cmd='echo'
11618
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'
11619
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11620
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11621
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}'
11622
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}'
11632
case $cc_basename in
11634
# FIXME: insert proper C++ library support
11638
# Green Hills C++ Compiler
11639
# FIXME: insert proper C++ library support
11643
# FIXME: insert proper C++ library support
11649
# C++ shared libraries reported to be fairly broken before switch to ELF
11653
archive_cmds_need_lc_CXX=no
11655
freebsd* | dragonfly*)
11656
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11663
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11664
hardcode_libdir_separator_CXX=:
11665
export_dynamic_flag_spec_CXX='${wl}-E'
11666
hardcode_direct_CXX=yes
11667
hardcode_minus_L_CXX=yes # Not in the search PATH,
11668
# but as the default
11669
# location of the library.
11671
case $cc_basename in
11673
# FIXME: insert proper C++ library support
11677
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'
11678
# Commands to make compiler produce verbose output that lists
11679
# what "hidden" libraries, object files and flags are used when
11680
# linking a shared library.
11682
# There doesn't appear to be a way to prevent this compiler from
11683
# explicitly linking system object files so we need to strip them
11684
# from the output so that they don't get included in the library
11686
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'
11689
if test "$GXX" = yes; then
11690
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'
11692
# FIXME: insert proper C++ library support
11699
if test $with_gnu_ld = no; then
11700
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11701
hardcode_libdir_separator_CXX=:
11706
export_dynamic_flag_spec_CXX='${wl}-E'
11712
hardcode_direct_CXX=no
11713
hardcode_shlibpath_var_CXX=no
11716
hardcode_direct_CXX=yes
11717
hardcode_minus_L_CXX=yes # Not in the search PATH,
11718
# but as the default
11719
# location of the library.
11723
case $cc_basename in
11725
# FIXME: insert proper C++ library support
11731
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11734
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11737
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11740
# Commands to make compiler produce verbose output that lists
11741
# what "hidden" libraries, object files and flags are used when
11742
# linking a shared library.
11744
# There doesn't appear to be a way to prevent this compiler from
11745
# explicitly linking system object files so we need to strip them
11746
# from the output so that they don't get included in the library
11748
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'
11751
if test "$GXX" = yes; then
11752
if test $with_gnu_ld = no; then
11755
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11758
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761
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'
11766
# FIXME: insert proper C++ library support
11773
hardcode_direct_CXX=no
11774
hardcode_shlibpath_var_CXX=no
11775
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11776
export_dynamic_flag_spec_CXX='${wl}-E'
11777
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11778
# Instead, shared libraries are loaded at an image base (0x10000000 by
11779
# default) and relocated if they conflict, which is a slow very memory
11780
# consuming and fragmenting process. To avoid this, we pick a random,
11781
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11782
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11783
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'
11784
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'
11787
case $cc_basename in
11790
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'
11792
# Archives containing C++ object files must be created using
11793
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11794
# necessary to make sure instantiated templates are included
11796
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11799
if test "$GXX" = yes; then
11800
if test "$with_gnu_ld" = no; then
11801
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'
11803
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'
11806
link_all_deplibs_CXX=yes
11809
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11810
hardcode_libdir_separator_CXX=:
11812
linux* | k*bsd*-gnu)
11813
case $cc_basename in
11815
# Kuck and Associates, Inc. (KAI) C++ Compiler
11817
# KCC will only create a shared library if the output file
11818
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11819
# to its proper name (with version) after linking.
11820
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'
11821
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'
11822
# Commands to make compiler produce verbose output that lists
11823
# what "hidden" libraries, object files and flags are used when
11824
# linking a shared library.
11826
# There doesn't appear to be a way to prevent this compiler from
11827
# explicitly linking system object files so we need to strip them
11828
# from the output so that they don't get included in the library
11830
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'
11832
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11833
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11835
# Archives containing C++ object files must be created using
11836
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11837
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11842
# version 8.0 and above of icpc choke on multiply defined symbols
11843
# if we add $predep_objects and $postdep_objects, however 7.1 and
11844
# earlier do not add the objects themselves.
11845
case `$CC -V 2>&1` in
11847
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11848
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'
11850
*) # Version 8.0 or newer
11853
ia64*) tmp_idyn=' -i_dynamic';;
11855
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856
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'
11859
archive_cmds_need_lc_CXX=no
11860
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11861
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11862
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11865
# Portland Group C++ compiler
11866
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11867
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'
11869
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11870
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11871
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'
11875
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11876
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'
11878
runpath_var=LD_RUN_PATH
11879
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11880
hardcode_libdir_separator_CXX=:
11882
# Commands to make compiler produce verbose output that lists
11883
# what "hidden" libraries, object files and flags are used when
11884
# linking a shared library.
11886
# There doesn't appear to be a way to prevent this compiler from
11887
# explicitly linking system object files so we need to strip them
11888
# from the output so that they don't get included in the library
11890
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'
11893
case `$CC -V 2>&1 | sed 5q` in
11896
no_undefined_flag_CXX=' -zdefs'
11897
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11898
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'
11899
hardcode_libdir_flag_spec_CXX='-R$libdir'
11900
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'
11902
# Not sure whether something based on
11903
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11905
output_verbose_link_cmd='echo'
11907
# Archives containing C++ object files must be created using
11908
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11909
# necessary to make sure instantiated templates are included
11911
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11918
# FIXME: insert proper C++ library support
11922
# FIXME: insert proper C++ library support
11926
case $cc_basename in
11928
# FIXME: insert proper C++ library support
11932
# FIXME: insert proper C++ library support
11937
netbsd* | netbsdelf*-gnu)
11938
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11939
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11941
hardcode_libdir_flag_spec_CXX='-R$libdir'
11942
hardcode_direct_CXX=yes
11943
hardcode_shlibpath_var_CXX=no
11945
# Workaround some broken pre-1.5 toolchains
11946
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11949
# C++ shared libraries are fairly broken
11953
if test -f /usr/libexec/ld.so; then
11954
hardcode_direct_CXX=yes
11955
hardcode_shlibpath_var_CXX=no
11956
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11957
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11958
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11959
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11960
export_dynamic_flag_spec_CXX='${wl}-E'
11961
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11963
output_verbose_link_cmd='echo'
11969
case $cc_basename in
11971
# Kuck and Associates, Inc. (KAI) C++ Compiler
11973
# KCC will only create a shared library if the output file
11974
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11975
# to its proper name (with version) after linking.
11976
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'
11978
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979
hardcode_libdir_separator_CXX=:
11981
# Archives containing C++ object files must be created using
11982
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11983
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11987
# Rational C++ 2.4.1
11988
# FIXME: insert proper C++ library support
11992
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11993
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'
11995
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11996
hardcode_libdir_separator_CXX=:
11998
# Commands to make compiler produce verbose output that lists
11999
# what "hidden" libraries, object files and flags are used when
12000
# linking a shared library.
12002
# There doesn't appear to be a way to prevent this compiler from
12003
# explicitly linking system object files so we need to strip them
12004
# from the output so that they don't get included in the library
12006
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'
12009
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12010
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12011
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'
12013
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12014
hardcode_libdir_separator_CXX=:
12016
# Commands to make compiler produce verbose output that lists
12017
# what "hidden" libraries, object files and flags are used when
12018
# linking a shared library.
12019
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12022
# FIXME: insert proper C++ library support
12029
case $cc_basename in
12031
# Kuck and Associates, Inc. (KAI) C++ Compiler
12033
# KCC will only create a shared library if the output file
12034
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12035
# to its proper name (with version) after linking.
12036
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'
12038
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12039
hardcode_libdir_separator_CXX=:
12041
# Archives containing C++ object files must be created using
12042
# the KAI C++ compiler.
12043
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12046
# Rational C++ 2.4.1
12047
# FIXME: insert proper C++ library support
12051
allow_undefined_flag_CXX=' -expect_unresolved \*'
12052
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'
12053
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12054
echo "-hidden">> $lib.exp~
12055
$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~
12058
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12059
hardcode_libdir_separator_CXX=:
12061
# Commands to make compiler produce verbose output that lists
12062
# what "hidden" libraries, object files and flags are used when
12063
# linking a shared library.
12065
# There doesn't appear to be a way to prevent this compiler from
12066
# explicitly linking system object files so we need to strip them
12067
# from the output so that they don't get included in the library
12069
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'
12072
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12073
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12074
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'
12076
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12077
hardcode_libdir_separator_CXX=:
12079
# Commands to make compiler produce verbose output that lists
12080
# what "hidden" libraries, object files and flags are used when
12081
# linking a shared library.
12082
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12085
# FIXME: insert proper C++ library support
12092
# FIXME: insert proper C++ library support
12096
case $cc_basename in
12099
# FIXME: insert proper C++ library support
12104
# FIXME: insert proper C++ library support
12108
# FIXME: insert proper C++ library support
12114
case $cc_basename in
12116
# Sun C++ 4.2, 5.x and Centerline C++
12117
archive_cmds_need_lc_CXX=yes
12118
no_undefined_flag_CXX=' -zdefs'
12119
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12120
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121
$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'
12123
hardcode_libdir_flag_spec_CXX='-R$libdir'
12124
hardcode_shlibpath_var_CXX=no
12126
solaris2.[0-5] | solaris2.[0-5].*) ;;
12128
# The compiler driver will combine and reorder linker options,
12129
# but understands `-z linker_flag'.
12130
# Supported since Solaris 2.6 (maybe 2.5.1?)
12131
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12134
link_all_deplibs_CXX=yes
12136
output_verbose_link_cmd='echo'
12138
# Archives containing C++ object files must be created using
12139
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12140
# necessary to make sure instantiated templates are included
12142
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12145
# Green Hills C++ Compiler
12146
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12148
# The C++ compiler must be used to create the archive.
12149
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12152
# GNU C++ compiler with Solaris linker
12153
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12154
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12155
if $CC --version | grep -v '^2\.7' > /dev/null; then
12156
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12157
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12158
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12160
# Commands to make compiler produce verbose output that lists
12161
# what "hidden" libraries, object files and flags are used when
12162
# linking a shared library.
12163
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12165
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12167
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12168
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12169
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12171
# Commands to make compiler produce verbose output that lists
12172
# what "hidden" libraries, object files and flags are used when
12173
# linking a shared library.
12174
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12177
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12179
solaris2.[0-5] | solaris2.[0-5].*) ;;
12181
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12188
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12189
no_undefined_flag_CXX='${wl}-z,text'
12190
archive_cmds_need_lc_CXX=no
12191
hardcode_shlibpath_var_CXX=no
12192
runpath_var='LD_RUN_PATH'
12194
case $cc_basename in
12196
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12201
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12205
sysv5* | sco3.2v5* | sco5v6*)
12206
# Note: We can NOT use -z defs as we might desire, because we do not
12207
# link with -lc, and that would cause any symbols used from libc to
12208
# always be unresolved, which means just about no library would
12209
# ever link correctly. If we're not using GNU ld we use -z text
12210
# though, which does catch some bad symbols but isn't as heavy-handed
12212
# For security reasons, it is highly recommended that you always
12213
# use absolute paths for naming shared libraries, and exclude the
12214
# DT_RUNPATH tag from executables and libraries. But doing so
12215
# requires that you compile everything twice, which is a pain.
12216
# So that behaviour is only enabled if SCOABSPATH is set to a
12217
# non-empty value in the environment. Most likely only useful for
12218
# creating official distributions of packages.
12219
# This is a hack until libtool officially supports absolute path
12220
# names for shared libraries.
12221
no_undefined_flag_CXX='${wl}-z,text'
12222
allow_undefined_flag_CXX='${wl}-z,nodefs'
12223
archive_cmds_need_lc_CXX=no
12224
hardcode_shlibpath_var_CXX=no
12225
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12226
hardcode_libdir_separator_CXX=':'
12227
link_all_deplibs_CXX=yes
12228
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12229
runpath_var='LD_RUN_PATH'
12231
case $cc_basename in
12233
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12234
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12237
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12243
case $cc_basename in
12245
# NonStop-UX NCC 3.20
12246
# FIXME: insert proper C++ library support
12250
# FIXME: insert proper C++ library support
12256
# FIXME: insert proper C++ library support
12260
# FIXME: insert proper C++ library support
12264
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12265
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12266
test "$ld_shlibs_CXX" = no && can_build_shared=no
12272
cat > conftest.$ac_ext <<EOF
12276
Foo (void) { a = 0; }
12282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283
(eval $ac_compile) 2>&5
12285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286
(exit $ac_status); }; then
12287
# Parse the compiler output and extract the necessary
12288
# objects, libraries and library flags.
12290
# Sentinel used to keep track of whether or not we are before
12291
# the conftest object file.
12292
pre_test_object_deps_done=no
12294
# The `*' in the case matches for architectures that use `case' in
12295
# $output_verbose_cmd can trigger glob expansion during the loop
12296
# eval without this substitution.
12297
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12299
for p in `eval $output_verbose_link_cmd`; do
12303
# Some compilers place space between "-{L,R}" and the path.
12304
# Remove the space.
12305
if test $p = "-L" \
12306
|| test $p = "-R"; then
12313
if test "$pre_test_object_deps_done" = no; then
12316
# Internal compiler library paths should come after those
12317
# provided the user. The postdeps already come after the
12318
# user supplied libs so there is no need to process them.
12319
if test -z "$compiler_lib_search_path_CXX"; then
12320
compiler_lib_search_path_CXX="${prev}${p}"
12322
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12325
# The "-l" case would never come before the object being
12326
# linked, so don't bother handling this case.
12329
if test -z "$postdeps_CXX"; then
12330
postdeps_CXX="${prev}${p}"
12332
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12338
# This assumes that the test object file only shows up
12339
# once in the compiler output.
12340
if test "$p" = "conftest.$objext"; then
12341
pre_test_object_deps_done=yes
12345
if test "$pre_test_object_deps_done" = no; then
12346
if test -z "$predep_objects_CXX"; then
12347
predep_objects_CXX="$p"
12349
predep_objects_CXX="$predep_objects_CXX $p"
12352
if test -z "$postdep_objects_CXX"; then
12353
postdep_objects_CXX="$p"
12355
postdep_objects_CXX="$postdep_objects_CXX $p"
12360
*) ;; # Ignore the rest.
12368
echo "libtool.m4: error: problem compiling CXX test program"
12371
$rm -f confest.$objext
12373
# PORTME: override above test on systems where it is broken
12376
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12377
# hack all around it, let's just trust "g++" to DTRT.
12378
predep_objects_CXX=
12379
postdep_objects_CXX=
12384
case `$CC -V 2>&1 | sed 5q` in
12388
# The more standards-conforming stlport4 library is
12389
# incompatible with the Cstd library. Avoid specifying
12390
# it if it's in CXXFLAGS. Ignore libCrun as
12391
# -library=stlport4 depends on it.
12392
case " $CXX $CXXFLAGS " in
12393
*" -library=stlport4 "*)
12394
solaris_use_stlport4=yes
12397
if test "$solaris_use_stlport4" != yes; then
12398
postdeps_CXX='-library=Cstd -library=Crun'
12405
case $cc_basename in
12407
# The more standards-conforming stlport4 library is
12408
# incompatible with the Cstd library. Avoid specifying
12409
# it if it's in CXXFLAGS. Ignore libCrun as
12410
# -library=stlport4 depends on it.
12411
case " $CXX $CXXFLAGS " in
12412
*" -library=stlport4 "*)
12413
solaris_use_stlport4=yes
12417
# Adding this requires a known-good setup of shared libraries for
12418
# Sun compiler versions before 5.6, else PIC objects from an old
12419
# archive will be linked into the output, leading to subtle bugs.
12420
if test "$solaris_use_stlport4" != yes; then
12421
postdeps_CXX='-library=Cstd -library=Crun'
12429
case " $postdeps_CXX " in
12430
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12433
lt_prog_compiler_wl_CXX=
12434
lt_prog_compiler_pic_CXX=
12435
lt_prog_compiler_static_CXX=
12437
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12438
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12440
# C++ specific cases for pic, static, wl, etc.
12441
if test "$GXX" = yes; then
12442
lt_prog_compiler_wl_CXX='-Wl,'
12443
lt_prog_compiler_static_CXX='-static'
12447
# All AIX code is PIC.
12448
if test "$host_cpu" = ia64; then
12449
# AIX 5 now supports IA64 processor
12450
lt_prog_compiler_static_CXX='-Bstatic'
12454
# FIXME: we need at least 68020 code to build shared libraries, but
12455
# adding the `-m68020' flag to GCC prevents building anything better,
12457
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12459
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12460
# PIC is the default for these OSes.
12462
mingw* | cygwin* | os2* | pw32*)
12463
# This hack is so that the source file can tell whether it is being
12464
# built for inclusion in a dll (and should export symbols for example).
12465
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12466
# (--disable-auto-import) libraries
12467
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12469
darwin* | rhapsody*)
12470
# PIC is the default on this platform
12471
# Common symbols not allowed in MH_DYLIB files
12472
lt_prog_compiler_pic_CXX='-fno-common'
12475
# DJGPP does not support shared libraries at all
12476
lt_prog_compiler_pic_CXX=
12479
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12480
# Instead, we relocate shared libraries at runtime.
12483
if test -d /usr/nec; then
12484
lt_prog_compiler_pic_CXX=-Kconform_pic
12488
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12489
# not for PA HP-UX.
12494
lt_prog_compiler_pic_CXX='-fPIC'
12499
lt_prog_compiler_pic_CXX='-fPIC'
12505
# All AIX code is PIC.
12506
if test "$host_cpu" = ia64; then
12507
# AIX 5 now supports IA64 processor
12508
lt_prog_compiler_static_CXX='-Bstatic'
12510
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12514
case $cc_basename in
12516
# Green Hills C++ Compiler
12517
# _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"
12522
# PIC is the default on this platform
12523
# Common symbols not allowed in MH_DYLIB files
12524
case $cc_basename in
12526
lt_prog_compiler_pic_CXX='-qnocommon'
12527
lt_prog_compiler_wl_CXX='-Wl,'
12532
case $cc_basename in
12534
lt_prog_compiler_pic_CXX='-KPIC'
12537
# Green Hills C++ Compiler
12538
lt_prog_compiler_pic_CXX='-pic'
12544
freebsd* | dragonfly*)
12545
# FreeBSD uses GNU C++
12547
hpux9* | hpux10* | hpux11*)
12548
case $cc_basename in
12550
lt_prog_compiler_wl_CXX='-Wl,'
12551
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12552
if test "$host_cpu" != ia64; then
12553
lt_prog_compiler_pic_CXX='+Z'
12557
lt_prog_compiler_wl_CXX='-Wl,'
12558
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12564
lt_prog_compiler_pic_CXX='+Z'
12573
# This is c89, which is MS Visual C++ (no shared libs)
12574
# Anyone wants to do a port?
12576
irix5* | irix6* | nonstopux*)
12577
case $cc_basename in
12579
lt_prog_compiler_wl_CXX='-Wl,'
12580
lt_prog_compiler_static_CXX='-non_shared'
12581
# CC pic flag -KPIC is the default.
12587
linux* | k*bsd*-gnu)
12588
case $cc_basename in
12591
lt_prog_compiler_wl_CXX='--backend -Wl,'
12592
lt_prog_compiler_pic_CXX='-fPIC'
12596
lt_prog_compiler_wl_CXX='-Wl,'
12597
lt_prog_compiler_pic_CXX='-KPIC'
12598
lt_prog_compiler_static_CXX='-static'
12601
# Portland Group C++ compiler.
12602
lt_prog_compiler_wl_CXX='-Wl,'
12603
lt_prog_compiler_pic_CXX='-fpic'
12604
lt_prog_compiler_static_CXX='-Bstatic'
12608
# Make sure the PIC flag is empty. It appears that all Alpha
12609
# Linux and Compaq Tru64 Unix objects are PIC.
12610
lt_prog_compiler_pic_CXX=
12611
lt_prog_compiler_static_CXX='-non_shared'
12614
case `$CC -V 2>&1 | sed 5q` in
12617
lt_prog_compiler_pic_CXX='-KPIC'
12618
lt_prog_compiler_static_CXX='-Bstatic'
12619
lt_prog_compiler_wl_CXX='-Qoption ld '
12630
case $cc_basename in
12632
lt_prog_compiler_pic_CXX='-W c,exportall'
12638
netbsd* | netbsdelf*-gnu)
12640
osf3* | osf4* | osf5*)
12641
case $cc_basename in
12643
lt_prog_compiler_wl_CXX='--backend -Wl,'
12646
# Rational C++ 2.4.1
12647
lt_prog_compiler_pic_CXX='-pic'
12650
# Digital/Compaq C++
12651
lt_prog_compiler_wl_CXX='-Wl,'
12652
# Make sure the PIC flag is empty. It appears that all Alpha
12653
# Linux and Compaq Tru64 Unix objects are PIC.
12654
lt_prog_compiler_pic_CXX=
12655
lt_prog_compiler_static_CXX='-non_shared'
12664
case $cc_basename in
12666
# Sun C++ 4.2, 5.x and Centerline C++
12667
lt_prog_compiler_pic_CXX='-KPIC'
12668
lt_prog_compiler_static_CXX='-Bstatic'
12669
lt_prog_compiler_wl_CXX='-Qoption ld '
12672
# Green Hills C++ Compiler
12673
lt_prog_compiler_pic_CXX='-PIC'
12680
case $cc_basename in
12683
lt_prog_compiler_pic_CXX='-pic'
12684
lt_prog_compiler_static_CXX='-Bstatic'
12688
lt_prog_compiler_pic_CXX='-pic'
12695
case $cc_basename in
12697
# NonStop-UX NCC 3.20
12698
lt_prog_compiler_pic_CXX='-KPIC'
12704
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12705
case $cc_basename in
12707
lt_prog_compiler_wl_CXX='-Wl,'
12708
lt_prog_compiler_pic_CXX='-KPIC'
12709
lt_prog_compiler_static_CXX='-Bstatic'
12716
lt_prog_compiler_can_build_shared_CXX=no
12721
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12722
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12725
# Check to make sure the PIC flag actually works.
12727
if test -n "$lt_prog_compiler_pic_CXX"; then
12729
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12730
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12731
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12732
echo $ECHO_N "(cached) $ECHO_C" >&6
12734
lt_prog_compiler_pic_works_CXX=no
12735
ac_outfile=conftest.$ac_objext
12736
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12737
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12738
# Insert the option either (1) after the last *FLAGS variable, or
12739
# (2) before a word containing "conftest.", or (3) at the end.
12740
# Note that $ac_compile itself does not contain backslashes and begins
12741
# with a dollar sign (not a hyphen), so the echo should work correctly.
12742
# The option is referenced via a variable to avoid confusing sed.
12743
lt_compile=`echo "$ac_compile" | $SED \
12744
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12745
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12746
-e 's:$: $lt_compiler_flag:'`
12747
(eval echo "\"\$as_me:12747: $lt_compile\"" >&5)
12748
(eval "$lt_compile" 2>conftest.err)
12750
cat conftest.err >&5
12751
echo "$as_me:12751: \$? = $ac_status" >&5
12752
if (exit $ac_status) && test -s "$ac_outfile"; then
12753
# The compiler can only warn and ignore the option if not recognized
12754
# So say no if there are warnings other than the usual output.
12755
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12756
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12757
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12758
lt_prog_compiler_pic_works_CXX=yes
12764
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12765
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12767
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12768
case $lt_prog_compiler_pic_CXX in
12770
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12773
lt_prog_compiler_pic_CXX=
12774
lt_prog_compiler_can_build_shared_CXX=no
12779
# For platforms which do not support PIC, -DPIC is meaningless:
12781
lt_prog_compiler_pic_CXX=
12784
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12789
# Check to make sure the static flag actually works.
12791
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12792
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12793
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12794
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12795
echo $ECHO_N "(cached) $ECHO_C" >&6
12797
lt_prog_compiler_static_works_CXX=no
12798
save_LDFLAGS="$LDFLAGS"
12799
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12800
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12801
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12802
# The linker can only warn and ignore the option if not recognized
12803
# So say no if there are warnings
12804
if test -s conftest.err; then
12805
# Append any errors to the config.log.
12806
cat conftest.err 1>&5
12807
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12808
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12809
if diff conftest.exp conftest.er2 >/dev/null; then
12810
lt_prog_compiler_static_works_CXX=yes
12813
lt_prog_compiler_static_works_CXX=yes
12817
LDFLAGS="$save_LDFLAGS"
12820
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12821
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12823
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12826
lt_prog_compiler_static_CXX=
12830
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12831
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12832
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12833
echo $ECHO_N "(cached) $ECHO_C" >&6
12835
lt_cv_prog_compiler_c_o_CXX=no
12836
$rm -r conftest 2>/dev/null
12840
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12842
lt_compiler_flag="-o out/conftest2.$ac_objext"
12843
# Insert the option either (1) after the last *FLAGS variable, or
12844
# (2) before a word containing "conftest.", or (3) at the end.
12845
# Note that $ac_compile itself does not contain backslashes and begins
12846
# with a dollar sign (not a hyphen), so the echo should work correctly.
12847
lt_compile=`echo "$ac_compile" | $SED \
12848
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12849
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12850
-e 's:$: $lt_compiler_flag:'`
12851
(eval echo "\"\$as_me:12851: $lt_compile\"" >&5)
12852
(eval "$lt_compile" 2>out/conftest.err)
12854
cat out/conftest.err >&5
12855
echo "$as_me:12855: \$? = $ac_status" >&5
12856
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12858
# The compiler can only warn and ignore the option if not recognized
12859
# So say no if there are warnings
12860
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12861
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12862
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12863
lt_cv_prog_compiler_c_o_CXX=yes
12868
# SGI C++ compiler will create directory out/ii_files/ for
12869
# template instantiation
12870
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12871
$rm out/* && rmdir out
12877
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12878
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12881
hard_links="nottested"
12882
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12883
# do not overwrite the value of need_locks provided by the user
12884
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12885
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12888
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12890
ln conftest.a conftest.b 2>&5 || hard_links=no
12891
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12892
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12893
echo "${ECHO_T}$hard_links" >&6; }
12894
if test "$hard_links" = no; then
12895
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12896
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12903
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12904
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12906
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12909
# If we're using GNU nm, then we don't want the "-C" option.
12910
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12911
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12912
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'
12914
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'
12918
export_symbols_cmds_CXX="$ltdll_cmds"
12921
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'
12923
linux* | k*bsd*-gnu)
12924
link_all_deplibs_CXX=no
12927
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12931
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12932
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12933
test "$ld_shlibs_CXX" = no && can_build_shared=no
12936
# Do we need to explicitly link libc?
12938
case "x$archive_cmds_need_lc_CXX" in
12940
# Assume -lc should be added
12941
archive_cmds_need_lc_CXX=yes
12943
if test "$enable_shared" = yes && test "$GCC" = yes; then
12944
case $archive_cmds_CXX in
12946
# FIXME: we may have to deal with multi-command sequences.
12949
# Test whether the compiler implicitly links with -lc since on some
12950
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12951
# to ld, don't add -lc before -lgcc.
12952
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12953
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12955
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12958
(eval $ac_compile) 2>&5
12960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961
(exit $ac_status); } 2>conftest.err; then
12964
libobjs=conftest.$ac_objext
12966
wl=$lt_prog_compiler_wl_CXX
12967
pic_flag=$lt_prog_compiler_pic_CXX
12973
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12974
allow_undefined_flag_CXX=
12975
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12976
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979
(exit $ac_status); }
12981
archive_cmds_need_lc_CXX=no
12983
archive_cmds_need_lc_CXX=yes
12985
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12987
cat conftest.err 1>&5
12990
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12991
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12998
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12999
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13000
library_names_spec=
13001
libname_spec='lib$name'
13005
postuninstall_cmds=
13009
shlibpath_overrides_runpath=unknown
13011
dynamic_linker="$host_os ld.so"
13012
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13014
need_lib_prefix=unknown
13015
hardcode_into_libs=no
13017
# when you set need_version to no, make sure it does not cause -set_version
13018
# flags to be left without arguments
13019
need_version=unknown
13024
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13025
shlibpath_var=LIBPATH
13027
# AIX 3 has no versioning support, so we append a major version to the name.
13028
soname_spec='${libname}${release}${shared_ext}$major'
13035
hardcode_into_libs=yes
13036
if test "$host_cpu" = ia64; then
13037
# AIX 5 supports IA64
13038
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13039
shlibpath_var=LD_LIBRARY_PATH
13041
# With GCC up to 2.95.x, collect2 would create an import file
13042
# for dependence libraries. The import file would start with
13043
# the line `#! .'. This would cause the generated library to
13044
# depend on `.', always an invalid library. This was fixed in
13045
# development snapshots of GCC prior to 3.0.
13047
aix4 | aix4.[01] | aix4.[01].*)
13048
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13050
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13053
can_build_shared=no
13057
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13058
# soname into executable. Probably we can add versioning support to
13059
# collect2, so additional links can be useful in future.
13060
if test "$aix_use_runtimelinking" = yes; then
13061
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13062
# instead of lib<name>.a to let people know that these are not
13063
# typical AIX shared libraries.
13064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066
# We preserve .a as extension for shared libraries through AIX4.2
13067
# and later when we are not doing run time linking.
13068
library_names_spec='${libname}${release}.a $libname.a'
13069
soname_spec='${libname}${release}${shared_ext}$major'
13071
shlibpath_var=LIBPATH
13076
library_names_spec='$libname.ixlibrary $libname.a'
13077
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13078
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'
13082
library_names_spec='${libname}${shared_ext}'
13083
dynamic_linker="$host_os ld.so"
13084
shlibpath_var=LIBRARY_PATH
13090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13091
soname_spec='${libname}${release}${shared_ext}$major'
13092
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13093
shlibpath_var=LD_LIBRARY_PATH
13094
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13095
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13096
# the default ld.so.conf also contains /usr/contrib/lib and
13097
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13098
# libtool to hard-code these into programs
13101
cygwin* | mingw* | pw32*)
13102
version_type=windows
13107
case $GCC,$host_os in
13108
yes,cygwin* | yes,mingw* | yes,pw32*)
13109
library_names_spec='$libname.dll.a'
13110
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13111
postinstall_cmds='base_file=`basename \${file}`~
13112
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13113
dldir=$destdir/`dirname \$dlpath`~
13114
test -d \$dldir || mkdir -p \$dldir~
13115
$install_prog $dir/$dlname \$dldir/$dlname~
13116
chmod a+x \$dldir/$dlname'
13117
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13118
dlpath=$dir/\$dldll~
13120
shlibpath_overrides_runpath=yes
13124
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13125
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13126
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13129
# MinGW DLLs use traditional 'lib' prefix
13130
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13131
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13132
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13133
# It is most probably a Windows format PATH printed by
13134
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13135
# path with ; separators, and with drive letters. We can handle the
13136
# drive letters (cygwin fileutils understands them), so leave them,
13137
# especially as we might pass files found there to a mingw objdump,
13138
# which wouldn't understand a cygwinified path. Ahh.
13139
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13141
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13145
# pw32 DLLs use 'pw' prefix rather than 'lib'
13146
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13155
dynamic_linker='Win32 ld.exe'
13156
# FIXME: first we should search . and the directory the executable is in
13160
darwin* | rhapsody*)
13161
dynamic_linker="$host_os dyld"
13162
version_type=darwin
13165
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13166
soname_spec='${libname}${release}${major}$shared_ext'
13167
shlibpath_overrides_runpath=yes
13168
shlibpath_var=DYLD_LIBRARY_PATH
13169
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13171
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13179
soname_spec='${libname}${release}${shared_ext}$major'
13180
shlibpath_var=LD_LIBRARY_PATH
13187
freebsd* | dragonfly*)
13188
# DragonFly does not have aout. When/if they implement a new
13189
# versioning mechanism, adjust this.
13190
if test -x /usr/bin/objformat; then
13191
objformat=`/usr/bin/objformat`
13194
freebsd[123]*) objformat=aout ;;
13195
*) objformat=elf ;;
13198
version_type=freebsd-$objformat
13199
case $version_type in
13201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13206
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13210
shlibpath_var=LD_LIBRARY_PATH
13213
shlibpath_overrides_runpath=yes
13215
freebsd3.[01]* | freebsdelf3.[01]*)
13216
shlibpath_overrides_runpath=yes
13217
hardcode_into_libs=yes
13219
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13220
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13221
shlibpath_overrides_runpath=no
13222
hardcode_into_libs=yes
13224
*) # from 4.6 on, and DragonFly
13225
shlibpath_overrides_runpath=yes
13226
hardcode_into_libs=yes
13235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13236
soname_spec='${libname}${release}${shared_ext}$major'
13237
shlibpath_var=LD_LIBRARY_PATH
13238
hardcode_into_libs=yes
13241
hpux9* | hpux10* | hpux11*)
13242
# Give a soname corresponding to the major version so that dld.sl refuses to
13243
# link against other versions.
13250
hardcode_into_libs=yes
13251
dynamic_linker="$host_os dld.so"
13252
shlibpath_var=LD_LIBRARY_PATH
13253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255
soname_spec='${libname}${release}${shared_ext}$major'
13256
if test "X$HPUX_IA64_MODE" = X32; then
13257
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13259
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13261
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13265
hardcode_into_libs=yes
13266
dynamic_linker="$host_os dld.sl"
13267
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13268
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13270
soname_spec='${libname}${release}${shared_ext}$major'
13271
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13272
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13276
dynamic_linker="$host_os dld.sl"
13277
shlibpath_var=SHLIB_PATH
13278
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280
soname_spec='${libname}${release}${shared_ext}$major'
13283
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13284
postinstall_cmds='chmod 555 $lib'
13291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13292
soname_spec='${libname}${release}${shared_ext}$major'
13293
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13294
shlibpath_var=LD_LIBRARY_PATH
13295
shlibpath_overrides_runpath=no
13296
hardcode_into_libs=yes
13299
irix5* | irix6* | nonstopux*)
13301
nonstopux*) version_type=nonstopux ;;
13303
if test "$lt_cv_prog_gnu_ld" = yes; then
13311
soname_spec='${libname}${release}${shared_ext}$major'
13312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13314
irix5* | nonstopux*)
13315
libsuff= shlibsuff=
13318
case $LD in # libtool.m4 will add one of these switches to LD
13319
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13320
libsuff= shlibsuff= libmagic=32-bit;;
13321
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13322
libsuff=32 shlibsuff=N32 libmagic=N32;;
13323
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13324
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13325
*) libsuff= shlibsuff= libmagic=never-match;;
13329
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13330
shlibpath_overrides_runpath=no
13331
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13332
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13333
hardcode_into_libs=yes
13336
# No shared lib support for Linux oldld, aout, or coff.
13337
linux*oldld* | linux*aout* | linux*coff*)
13341
# This must be Linux ELF.
13342
linux* | k*bsd*-gnu)
13346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347
soname_spec='${libname}${release}${shared_ext}$major'
13348
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13349
shlibpath_var=LD_LIBRARY_PATH
13350
shlibpath_overrides_runpath=no
13351
# This implies no fast_install, which is unacceptable.
13352
# Some rework will be needed to allow for fast_install
13353
# before this can be enabled.
13354
hardcode_into_libs=yes
13356
# Append ld.so.conf contents to the search path
13357
if test -f /etc/ld.so.conf; then
13358
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' ' '`
13359
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13362
# We used to test for /lib/ld.so.1 and disable shared libraries on
13363
# powerpc, because MkLinux only supported shared libraries with the
13364
# GNU dynamic linker. Since this was broken with cross compilers,
13365
# most powerpc-linux boxes support dynamic linking these days and
13366
# people can always --disable-shared, the test was removed, and we
13367
# assume the GNU/Linux dynamic linker is in use.
13368
dynamic_linker='GNU/Linux ld.so'
13375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13376
soname_spec='${libname}${release}${shared_ext}$major'
13377
shlibpath_var=LD_LIBRARY_PATH
13378
shlibpath_overrides_runpath=no
13379
hardcode_into_libs=yes
13380
dynamic_linker='NetBSD ld.elf_so'
13387
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13389
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13390
dynamic_linker='NetBSD (a.out) ld.so'
13392
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13393
soname_spec='${libname}${release}${shared_ext}$major'
13394
dynamic_linker='NetBSD ld.elf_so'
13396
shlibpath_var=LD_LIBRARY_PATH
13397
shlibpath_overrides_runpath=yes
13398
hardcode_into_libs=yes
13403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404
shlibpath_var=LD_LIBRARY_PATH
13405
shlibpath_overrides_runpath=yes
13412
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413
soname_spec='${libname}${release}${shared_ext}$major'
13414
shlibpath_var=LD_LIBRARY_PATH
13415
shlibpath_overrides_runpath=yes
13420
sys_lib_dlsearch_path_spec="/usr/lib"
13422
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13424
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13425
*) need_version=no ;;
13427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13428
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13429
shlibpath_var=LD_LIBRARY_PATH
13430
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13432
openbsd2.[89] | openbsd2.[89].*)
13433
shlibpath_overrides_runpath=no
13436
shlibpath_overrides_runpath=yes
13440
shlibpath_overrides_runpath=yes
13445
libname_spec='$name'
13448
library_names_spec='$libname${shared_ext} $libname.a'
13449
dynamic_linker='OS/2 ld.exe'
13450
shlibpath_var=LIBPATH
13453
osf3* | osf4* | osf5*)
13457
soname_spec='${libname}${release}${shared_ext}$major'
13458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459
shlibpath_var=LD_LIBRARY_PATH
13460
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13461
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473
soname_spec='${libname}${release}${shared_ext}$major'
13474
shlibpath_var=LD_LIBRARY_PATH
13475
shlibpath_overrides_runpath=yes
13476
hardcode_into_libs=yes
13477
# ldd complains unless libraries are executable
13478
postinstall_cmds='chmod +x $lib'
13483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13484
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13485
shlibpath_var=LD_LIBRARY_PATH
13486
shlibpath_overrides_runpath=yes
13487
if test "$with_gnu_ld" = yes; then
13495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13496
soname_spec='${libname}${release}${shared_ext}$major'
13497
shlibpath_var=LD_LIBRARY_PATH
13498
case $host_vendor in
13500
shlibpath_overrides_runpath=no
13502
export_dynamic_flag_spec='${wl}-Blargedynsym'
13503
runpath_var=LD_RUN_PATH
13511
shlibpath_overrides_runpath=no
13512
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13518
if test -d /usr/nec ;then
13520
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13521
soname_spec='$libname${shared_ext}.$major'
13522
shlibpath_var=LD_LIBRARY_PATH
13526
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13527
version_type=freebsd-elf
13530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13531
soname_spec='${libname}${release}${shared_ext}$major'
13532
shlibpath_var=LD_LIBRARY_PATH
13533
hardcode_into_libs=yes
13534
if test "$with_gnu_ld" = yes; then
13535
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13536
shlibpath_overrides_runpath=no
13538
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13539
shlibpath_overrides_runpath=yes
13542
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13546
sys_lib_dlsearch_path_spec='/usr/lib'
13551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13552
soname_spec='${libname}${release}${shared_ext}$major'
13553
shlibpath_var=LD_LIBRARY_PATH
13560
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13561
echo "${ECHO_T}$dynamic_linker" >&6; }
13562
test "$dynamic_linker" = no && can_build_shared=no
13564
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13565
if test "$GCC" = yes; then
13566
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13569
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13570
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13571
hardcode_action_CXX=
13572
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13573
test -n "$runpath_var_CXX" || \
13574
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13576
# We can hardcode non-existant directories.
13577
if test "$hardcode_direct_CXX" != no &&
13578
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13579
# have to relink, otherwise we might link with an installed library
13580
# when we should be linking with a yet-to-be-installed one
13581
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13582
test "$hardcode_minus_L_CXX" != no; then
13583
# Linking always hardcodes the temporary library directory.
13584
hardcode_action_CXX=relink
13586
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13587
hardcode_action_CXX=immediate
13590
# We cannot hardcode anything, or else we can only hardcode existing
13592
hardcode_action_CXX=unsupported
13594
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13595
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13597
if test "$hardcode_action_CXX" = relink; then
13598
# Fast installation is not supported
13599
enable_fast_install=no
13600
elif test "$shlibpath_overrides_runpath" = yes ||
13601
test "$enable_shared" = no; then
13602
# Fast installation is not necessary
13603
enable_fast_install=needless
13607
# The else clause should only fire when bootstrapping the
13608
# libtool distribution, otherwise you forgot to ship ltmain.sh
13609
# with your package, and you will get complaints that there are
13610
# no rules to generate ltmain.sh.
13611
if test -f "$ltmain"; then
13612
# See if we are running on zsh, and set the options which allow our commands through
13613
# without removal of \ escapes.
13614
if test -n "${ZSH_VERSION+set}" ; then
13615
setopt NO_GLOB_SUBST
13617
# Now quote all the things that may contain metacharacters while being
13618
# careful not to overquote the AC_SUBSTed values. We take copies of the
13619
# variables and quote the copies for generation of the libtool script.
13620
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13622
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13623
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13624
deplibs_check_method reload_flag reload_cmds need_locks \
13625
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13626
lt_cv_sys_global_symbol_to_c_name_address \
13627
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13628
old_postinstall_cmds old_postuninstall_cmds \
13632
lt_prog_compiler_wl_CXX \
13633
lt_prog_compiler_pic_CXX \
13634
lt_prog_compiler_static_CXX \
13635
lt_prog_compiler_no_builtin_flag_CXX \
13636
export_dynamic_flag_spec_CXX \
13637
thread_safe_flag_spec_CXX \
13638
whole_archive_flag_spec_CXX \
13639
enable_shared_with_static_runtimes_CXX \
13640
old_archive_cmds_CXX \
13641
old_archive_from_new_cmds_CXX \
13642
predep_objects_CXX \
13643
postdep_objects_CXX \
13646
compiler_lib_search_path_CXX \
13648
archive_expsym_cmds_CXX \
13649
postinstall_cmds_CXX \
13650
postuninstall_cmds_CXX \
13651
old_archive_from_expsyms_cmds_CXX \
13652
allow_undefined_flag_CXX \
13653
no_undefined_flag_CXX \
13654
export_symbols_cmds_CXX \
13655
hardcode_libdir_flag_spec_CXX \
13656
hardcode_libdir_flag_spec_ld_CXX \
13657
hardcode_libdir_separator_CXX \
13658
hardcode_automatic_CXX \
13660
module_expsym_cmds_CXX \
13661
lt_cv_prog_compiler_c_o_CXX \
13662
fix_srcfile_path_CXX \
13663
exclude_expsyms_CXX \
13664
include_expsyms_CXX; do
13667
old_archive_cmds_CXX | \
13668
old_archive_from_new_cmds_CXX | \
13669
archive_cmds_CXX | \
13670
archive_expsym_cmds_CXX | \
13671
module_cmds_CXX | \
13672
module_expsym_cmds_CXX | \
13673
old_archive_from_expsyms_cmds_CXX | \
13674
export_symbols_cmds_CXX | \
13675
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13676
postinstall_cmds | postuninstall_cmds | \
13677
old_postinstall_cmds | old_postuninstall_cmds | \
13678
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13679
# Double-quote double-evaled strings.
13680
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13683
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13689
*'\$0 --fallback-echo"')
13690
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13696
cat <<__EOF__ >> "$cfgfile"
13697
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13699
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13701
# Shell to use when invoking shell scripts.
13704
# Whether or not to build shared libraries.
13705
build_libtool_libs=$enable_shared
13707
# Whether or not to build static libraries.
13708
build_old_libs=$enable_static
13710
# Whether or not to add -lc for building shared libraries.
13711
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13713
# Whether or not to disallow shared libs when runtime libs are static
13714
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13716
# Whether or not to optimize for fast installation.
13717
fast_install=$enable_fast_install
13720
host_alias=$host_alias
13724
# The build system.
13725
build_alias=$build_alias
13729
# An echo program that does not interpret backslashes.
13734
AR_FLAGS=$lt_AR_FLAGS
13739
# LTCC compiler flags.
13740
LTCFLAGS=$lt_LTCFLAGS
13742
# A language-specific compiler.
13743
CC=$lt_compiler_CXX
13745
# Is the compiler the GNU C compiler?
13751
# The linker used to build libraries.
13754
# Whether we need hard or soft links.
13757
# A BSD-compatible nm program.
13760
# A symbol stripping program
13763
# Used to examine libraries when file_magic_cmd begins "file"
13764
MAGIC_CMD=$MAGIC_CMD
13766
# Used on cygwin: DLL creation program.
13769
# Used on cygwin: object dumper.
13772
# Used on cygwin: assembler.
13775
# The name of the directory that contains temporary libtool files.
13778
# How to create reloadable object files.
13779
reload_flag=$lt_reload_flag
13780
reload_cmds=$lt_reload_cmds
13782
# How to pass a linker flag through the compiler.
13783
wl=$lt_lt_prog_compiler_wl_CXX
13785
# Object file suffix (normally "o").
13786
objext="$ac_objext"
13788
# Old archive suffix (normally "a").
13791
# Shared library suffix (normally ".so").
13792
shrext_cmds='$shrext_cmds'
13794
# Executable file suffix (normally "").
13797
# Additional compiler flags for building library objects.
13798
pic_flag=$lt_lt_prog_compiler_pic_CXX
13801
# What is the maximum length of a command?
13802
max_cmd_len=$lt_cv_sys_max_cmd_len
13804
# Does compiler simultaneously support -c and -o options?
13805
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13807
# Must we lock files when doing compilation?
13808
need_locks=$lt_need_locks
13810
# Do we need the lib prefix for modules?
13811
need_lib_prefix=$need_lib_prefix
13813
# Do we need a version for libraries?
13814
need_version=$need_version
13816
# Whether dlopen is supported.
13817
dlopen_support=$enable_dlopen
13819
# Whether dlopen of programs is supported.
13820
dlopen_self=$enable_dlopen_self
13822
# Whether dlopen of statically linked programs is supported.
13823
dlopen_self_static=$enable_dlopen_self_static
13825
# Compiler flag to prevent dynamic linking.
13826
link_static_flag=$lt_lt_prog_compiler_static_CXX
13828
# Compiler flag to turn off builtin functions.
13829
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13831
# Compiler flag to allow reflexive dlopens.
13832
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13834
# Compiler flag to generate shared objects directly from archives.
13835
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13837
# Compiler flag to generate thread-safe objects.
13838
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13840
# Library versioning type.
13841
version_type=$version_type
13843
# Format of library name prefix.
13844
libname_spec=$lt_libname_spec
13846
# List of archive names. First name is the real one, the rest are links.
13847
# The last name is the one that the linker finds with -lNAME.
13848
library_names_spec=$lt_library_names_spec
13850
# The coded name of the library, if different from the real name.
13851
soname_spec=$lt_soname_spec
13853
# Commands used to build and install an old-style archive.
13855
old_archive_cmds=$lt_old_archive_cmds_CXX
13856
old_postinstall_cmds=$lt_old_postinstall_cmds
13857
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13859
# Create an old-style archive from a shared archive.
13860
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13862
# Create a temporary old-style archive to link instead of a shared archive.
13863
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13865
# Commands used to build and install a shared archive.
13866
archive_cmds=$lt_archive_cmds_CXX
13867
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13868
postinstall_cmds=$lt_postinstall_cmds
13869
postuninstall_cmds=$lt_postuninstall_cmds
13871
# Commands used to build a loadable module (assumed same as above if empty)
13872
module_cmds=$lt_module_cmds_CXX
13873
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13875
# Commands to strip libraries.
13876
old_striplib=$lt_old_striplib
13877
striplib=$lt_striplib
13879
# Dependencies to place before the objects being linked to create a
13881
predep_objects=$lt_predep_objects_CXX
13883
# Dependencies to place after the objects being linked to create a
13885
postdep_objects=$lt_postdep_objects_CXX
13887
# Dependencies to place before the objects being linked to create a
13889
predeps=$lt_predeps_CXX
13891
# Dependencies to place after the objects being linked to create a
13893
postdeps=$lt_postdeps_CXX
13895
# The library search path used internally by the compiler when linking
13896
# a shared library.
13897
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13899
# Method to check whether dependent libraries are shared objects.
13900
deplibs_check_method=$lt_deplibs_check_method
13902
# Command to use when deplibs_check_method == file_magic.
13903
file_magic_cmd=$lt_file_magic_cmd
13905
# Flag that allows shared libraries with undefined symbols to be built.
13906
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13908
# Flag that forces no undefined symbols.
13909
no_undefined_flag=$lt_no_undefined_flag_CXX
13911
# Commands used to finish a libtool library installation in a directory.
13912
finish_cmds=$lt_finish_cmds
13914
# Same as above, but a single script fragment to be evaled but not shown.
13915
finish_eval=$lt_finish_eval
13917
# Take the output of nm and produce a listing of raw symbols and C names.
13918
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13920
# Transform the output of nm in a proper C declaration
13921
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13923
# Transform the output of nm in a C name address pair
13924
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13926
# This is the shared library runtime path variable.
13927
runpath_var=$runpath_var
13929
# This is the shared library path variable.
13930
shlibpath_var=$shlibpath_var
13932
# Is shlibpath searched before the hard-coded library search path?
13933
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13935
# How to hardcode a shared library path into an executable.
13936
hardcode_action=$hardcode_action_CXX
13938
# Whether we should hardcode library paths into libraries.
13939
hardcode_into_libs=$hardcode_into_libs
13941
# Flag to hardcode \$libdir into a binary during linking.
13942
# This must work even if \$libdir does not exist.
13943
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13945
# If ld is used when linking, flag to hardcode \$libdir into
13946
# a binary during linking. This must work even if \$libdir does
13948
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13950
# Whether we need a single -rpath flag with a separated argument.
13951
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13953
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13954
# resulting binary.
13955
hardcode_direct=$hardcode_direct_CXX
13957
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13958
# resulting binary.
13959
hardcode_minus_L=$hardcode_minus_L_CXX
13961
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13962
# the resulting binary.
13963
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13965
# Set to yes if building a shared library automatically hardcodes DIR into the library
13966
# and all subsequent libraries and executables linked against it.
13967
hardcode_automatic=$hardcode_automatic_CXX
13969
# Variables whose values should be saved in libtool wrapper scripts and
13970
# restored at relink time.
13971
variables_saved_for_relink="$variables_saved_for_relink"
13973
# Whether libtool must link a program against all its dependency libraries.
13974
link_all_deplibs=$link_all_deplibs_CXX
13976
# Compile-time system search path for libraries
13977
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13979
# Run-time system search path for libraries
13980
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13982
# Fix the shell variable \$srcfile for the compiler.
13983
fix_srcfile_path=$lt_fix_srcfile_path
13985
# Set to yes if exported symbols are required.
13986
always_export_symbols=$always_export_symbols_CXX
13988
# The commands to list exported symbols.
13989
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13991
# The commands to extract the exported symbol list from a shared archive.
13992
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13994
# Symbols that should not be listed in the preloaded symbols.
13995
exclude_expsyms=$lt_exclude_expsyms_CXX
13997
# Symbols that must always be exported.
13998
include_expsyms=$lt_include_expsyms_CXX
14000
# ### END LIBTOOL TAG CONFIG: $tagname
14006
# If there is no Makefile yet, we rely on a make rule to execute
14007
# `config.status --recheck' to rerun these tests and create the
14008
# libtool script then.
14009
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14010
if test -f "$ltmain_in"; then
14011
test -f Makefile && make "$ltmain"
14017
ac_cpp='$CPP $CPPFLAGS'
14018
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026
with_gnu_ldcxx=$with_gnu_ld
14027
with_gnu_ld=$lt_save_with_gnu_ld
14028
lt_cv_path_LDCXX=$lt_cv_path_LD
14029
lt_cv_path_LD=$lt_save_path_LD
14030
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14031
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14039
if test -n "$F77" && test "X$F77" != "Xno"; then
14042
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14043
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14047
archive_cmds_need_lc_F77=no
14048
allow_undefined_flag_F77=
14049
always_export_symbols_F77=no
14050
archive_expsym_cmds_F77=
14051
export_dynamic_flag_spec_F77=
14052
hardcode_direct_F77=no
14053
hardcode_libdir_flag_spec_F77=
14054
hardcode_libdir_flag_spec_ld_F77=
14055
hardcode_libdir_separator_F77=
14056
hardcode_minus_L_F77=no
14057
hardcode_automatic_F77=no
14059
module_expsym_cmds_F77=
14060
link_all_deplibs_F77=unknown
14061
old_archive_cmds_F77=$old_archive_cmds
14062
no_undefined_flag_F77=
14063
whole_archive_flag_spec_F77=
14064
enable_shared_with_static_runtimes_F77=no
14066
# Source file extension for f77 test sources.
14069
# Object file extension for compiled f77 test sources.
14073
# Code to be used in simple compile tests
14074
lt_simple_compile_test_code="\
14080
# Code to be used in simple link tests
14081
lt_simple_link_test_code="\
14086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14088
# If no C compiler was specified, use CC.
14091
# If no C compiler flags were specified, use CFLAGS.
14092
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14094
# Allow CC to be a program name with arguments.
14098
# save warnings/boilerplate of simple test code
14099
ac_outfile=conftest.$ac_objext
14100
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14101
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14102
_lt_compiler_boilerplate=`cat conftest.err`
14105
ac_outfile=conftest.$ac_objext
14106
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14107
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14108
_lt_linker_boilerplate=`cat conftest.err`
14112
# Allow CC to be a program name with arguments.
14117
for cc_temp in $compiler""; do
14119
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14120
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14128
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14129
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14130
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14131
echo "${ECHO_T}$can_build_shared" >&6; }
14133
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14134
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14135
test "$can_build_shared" = "no" && enable_shared=no
14137
# On AIX, shared libraries and static libraries use the same namespace, and
14138
# are all built from PIC.
14141
test "$enable_shared" = yes && enable_static=no
14142
if test -n "$RANLIB"; then
14143
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14144
postinstall_cmds='$RANLIB $lib'
14148
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14149
test "$enable_shared" = yes && enable_static=no
14153
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14154
echo "${ECHO_T}$enable_shared" >&6; }
14156
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14157
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14158
# Make sure either enable_shared or enable_static is yes.
14159
test "$enable_shared" = yes || enable_static=yes
14160
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14161
echo "${ECHO_T}$enable_static" >&6; }
14166
lt_prog_compiler_wl_F77=
14167
lt_prog_compiler_pic_F77=
14168
lt_prog_compiler_static_F77=
14170
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14171
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14173
if test "$GCC" = yes; then
14174
lt_prog_compiler_wl_F77='-Wl,'
14175
lt_prog_compiler_static_F77='-static'
14179
# All AIX code is PIC.
14180
if test "$host_cpu" = ia64; then
14181
# AIX 5 now supports IA64 processor
14182
lt_prog_compiler_static_F77='-Bstatic'
14187
# FIXME: we need at least 68020 code to build shared libraries, but
14188
# adding the `-m68020' flag to GCC prevents building anything better,
14190
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14193
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14194
# PIC is the default for these OSes.
14197
mingw* | cygwin* | pw32* | os2*)
14198
# This hack is so that the source file can tell whether it is being
14199
# built for inclusion in a dll (and should export symbols for example).
14200
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14201
# (--disable-auto-import) libraries
14202
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14205
darwin* | rhapsody*)
14206
# PIC is the default on this platform
14207
# Common symbols not allowed in MH_DYLIB files
14208
lt_prog_compiler_pic_F77='-fno-common'
14212
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14213
# Instead, we relocate shared libraries at runtime.
14217
# Just because we use GCC doesn't mean we suddenly get shared libraries
14218
# on systems that don't support them.
14219
lt_prog_compiler_can_build_shared_F77=no
14224
if test -d /usr/nec; then
14225
lt_prog_compiler_pic_F77=-Kconform_pic
14230
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14231
# not for PA HP-UX.
14237
lt_prog_compiler_pic_F77='-fPIC'
14243
lt_prog_compiler_pic_F77='-fPIC'
14247
# PORTME Check for flag to pass linker flags through the system compiler.
14250
lt_prog_compiler_wl_F77='-Wl,'
14251
if test "$host_cpu" = ia64; then
14252
# AIX 5 now supports IA64 processor
14253
lt_prog_compiler_static_F77='-Bstatic'
14255
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14259
# PIC is the default on this platform
14260
# Common symbols not allowed in MH_DYLIB files
14261
case $cc_basename in
14263
lt_prog_compiler_pic_F77='-qnocommon'
14264
lt_prog_compiler_wl_F77='-Wl,'
14269
mingw* | cygwin* | pw32* | os2*)
14270
# This hack is so that the source file can tell whether it is being
14271
# built for inclusion in a dll (and should export symbols for example).
14272
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14275
hpux9* | hpux10* | hpux11*)
14276
lt_prog_compiler_wl_F77='-Wl,'
14277
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14278
# not for PA HP-UX.
14284
lt_prog_compiler_pic_F77='+Z'
14287
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14288
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14291
irix5* | irix6* | nonstopux*)
14292
lt_prog_compiler_wl_F77='-Wl,'
14293
# PIC (with -KPIC) is the default.
14294
lt_prog_compiler_static_F77='-non_shared'
14298
lt_prog_compiler_pic_F77='-KPIC'
14299
lt_prog_compiler_static_F77='-Bstatic'
14302
linux* | k*bsd*-gnu)
14303
case $cc_basename in
14305
lt_prog_compiler_wl_F77='-Wl,'
14306
lt_prog_compiler_pic_F77='-KPIC'
14307
lt_prog_compiler_static_F77='-static'
14309
pgcc* | pgf77* | pgf90* | pgf95*)
14310
# Portland Group compilers (*not* the Pentium gcc compiler,
14311
# which looks to be a dead project)
14312
lt_prog_compiler_wl_F77='-Wl,'
14313
lt_prog_compiler_pic_F77='-fpic'
14314
lt_prog_compiler_static_F77='-Bstatic'
14317
lt_prog_compiler_wl_F77='-Wl,'
14318
# All Alpha code is PIC.
14319
lt_prog_compiler_static_F77='-non_shared'
14322
case `$CC -V 2>&1 | sed 5q` in
14325
lt_prog_compiler_pic_F77='-KPIC'
14326
lt_prog_compiler_static_F77='-Bstatic'
14327
lt_prog_compiler_wl_F77='-Wl,'
14330
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14331
lt_prog_compiler_pic_F77='-KPIC'
14332
lt_prog_compiler_static_F77='-Bstatic'
14333
lt_prog_compiler_wl_F77=''
14340
osf3* | osf4* | osf5*)
14341
lt_prog_compiler_wl_F77='-Wl,'
14342
# All OSF/1 code is PIC.
14343
lt_prog_compiler_static_F77='-non_shared'
14347
lt_prog_compiler_static_F77='-non_shared'
14351
lt_prog_compiler_pic_F77='-KPIC'
14352
lt_prog_compiler_static_F77='-Bstatic'
14353
case $cc_basename in
14354
f77* | f90* | f95*)
14355
lt_prog_compiler_wl_F77='-Qoption ld ';;
14357
lt_prog_compiler_wl_F77='-Wl,';;
14362
lt_prog_compiler_wl_F77='-Qoption ld '
14363
lt_prog_compiler_pic_F77='-PIC'
14364
lt_prog_compiler_static_F77='-Bstatic'
14367
sysv4 | sysv4.2uw2* | sysv4.3*)
14368
lt_prog_compiler_wl_F77='-Wl,'
14369
lt_prog_compiler_pic_F77='-KPIC'
14370
lt_prog_compiler_static_F77='-Bstatic'
14374
if test -d /usr/nec ;then
14375
lt_prog_compiler_pic_F77='-Kconform_pic'
14376
lt_prog_compiler_static_F77='-Bstatic'
14380
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14381
lt_prog_compiler_wl_F77='-Wl,'
14382
lt_prog_compiler_pic_F77='-KPIC'
14383
lt_prog_compiler_static_F77='-Bstatic'
14387
lt_prog_compiler_wl_F77='-Wl,'
14388
lt_prog_compiler_can_build_shared_F77=no
14392
lt_prog_compiler_pic_F77='-pic'
14393
lt_prog_compiler_static_F77='-Bstatic'
14397
lt_prog_compiler_can_build_shared_F77=no
14402
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14403
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14406
# Check to make sure the PIC flag actually works.
14408
if test -n "$lt_prog_compiler_pic_F77"; then
14410
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14411
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14412
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14413
echo $ECHO_N "(cached) $ECHO_C" >&6
14415
lt_prog_compiler_pic_works_F77=no
14416
ac_outfile=conftest.$ac_objext
14417
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14418
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14419
# Insert the option either (1) after the last *FLAGS variable, or
14420
# (2) before a word containing "conftest.", or (3) at the end.
14421
# Note that $ac_compile itself does not contain backslashes and begins
14422
# with a dollar sign (not a hyphen), so the echo should work correctly.
14423
# The option is referenced via a variable to avoid confusing sed.
14424
lt_compile=`echo "$ac_compile" | $SED \
14425
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14426
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14427
-e 's:$: $lt_compiler_flag:'`
14428
(eval echo "\"\$as_me:14428: $lt_compile\"" >&5)
14429
(eval "$lt_compile" 2>conftest.err)
14431
cat conftest.err >&5
14432
echo "$as_me:14432: \$? = $ac_status" >&5
14433
if (exit $ac_status) && test -s "$ac_outfile"; then
14434
# The compiler can only warn and ignore the option if not recognized
14435
# So say no if there are warnings other than the usual output.
14436
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14437
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14438
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14439
lt_prog_compiler_pic_works_F77=yes
14445
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14446
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14448
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14449
case $lt_prog_compiler_pic_F77 in
14451
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14454
lt_prog_compiler_pic_F77=
14455
lt_prog_compiler_can_build_shared_F77=no
14460
# For platforms which do not support PIC, -DPIC is meaningless:
14462
lt_prog_compiler_pic_F77=
14465
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14470
# Check to make sure the static flag actually works.
14472
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14473
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14474
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14475
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14476
echo $ECHO_N "(cached) $ECHO_C" >&6
14478
lt_prog_compiler_static_works_F77=no
14479
save_LDFLAGS="$LDFLAGS"
14480
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14481
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14482
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14483
# The linker can only warn and ignore the option if not recognized
14484
# So say no if there are warnings
14485
if test -s conftest.err; then
14486
# Append any errors to the config.log.
14487
cat conftest.err 1>&5
14488
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14489
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490
if diff conftest.exp conftest.er2 >/dev/null; then
14491
lt_prog_compiler_static_works_F77=yes
14494
lt_prog_compiler_static_works_F77=yes
14498
LDFLAGS="$save_LDFLAGS"
14501
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14502
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14504
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14507
lt_prog_compiler_static_F77=
14511
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14512
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14513
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14514
echo $ECHO_N "(cached) $ECHO_C" >&6
14516
lt_cv_prog_compiler_c_o_F77=no
14517
$rm -r conftest 2>/dev/null
14521
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523
lt_compiler_flag="-o out/conftest2.$ac_objext"
14524
# Insert the option either (1) after the last *FLAGS variable, or
14525
# (2) before a word containing "conftest.", or (3) at the end.
14526
# Note that $ac_compile itself does not contain backslashes and begins
14527
# with a dollar sign (not a hyphen), so the echo should work correctly.
14528
lt_compile=`echo "$ac_compile" | $SED \
14529
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14530
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14531
-e 's:$: $lt_compiler_flag:'`
14532
(eval echo "\"\$as_me:14532: $lt_compile\"" >&5)
14533
(eval "$lt_compile" 2>out/conftest.err)
14535
cat out/conftest.err >&5
14536
echo "$as_me:14536: \$? = $ac_status" >&5
14537
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14539
# The compiler can only warn and ignore the option if not recognized
14540
# So say no if there are warnings
14541
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14542
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14543
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14544
lt_cv_prog_compiler_c_o_F77=yes
14549
# SGI C++ compiler will create directory out/ii_files/ for
14550
# template instantiation
14551
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14552
$rm out/* && rmdir out
14558
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14559
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14562
hard_links="nottested"
14563
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14564
# do not overwrite the value of need_locks provided by the user
14565
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14566
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14569
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14571
ln conftest.a conftest.b 2>&5 || hard_links=no
14572
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14574
echo "${ECHO_T}$hard_links" >&6; }
14575
if test "$hard_links" = no; then
14576
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14577
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14584
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14585
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14588
allow_undefined_flag_F77=
14589
enable_shared_with_static_runtimes_F77=no
14591
archive_expsym_cmds_F77=
14592
old_archive_From_new_cmds_F77=
14593
old_archive_from_expsyms_cmds_F77=
14594
export_dynamic_flag_spec_F77=
14595
whole_archive_flag_spec_F77=
14596
thread_safe_flag_spec_F77=
14597
hardcode_libdir_flag_spec_F77=
14598
hardcode_libdir_flag_spec_ld_F77=
14599
hardcode_libdir_separator_F77=
14600
hardcode_direct_F77=no
14601
hardcode_minus_L_F77=no
14602
hardcode_shlibpath_var_F77=unsupported
14603
link_all_deplibs_F77=unknown
14604
hardcode_automatic_F77=no
14606
module_expsym_cmds_F77=
14607
always_export_symbols_F77=no
14608
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14609
# include_expsyms should be a list of space-separated symbols to be *always*
14610
# included in the symbol list
14611
include_expsyms_F77=
14612
# exclude_expsyms can be an extended regexp of symbols to exclude
14613
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14614
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14615
# as well as any symbol that contains `d'.
14616
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14617
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14618
# platforms (ab)use it in PIC code, but their linkers get confused if
14619
# the symbol is explicitly referenced. Since portable code cannot
14620
# rely on this symbol name, it's probably fine to never include it in
14621
# preloaded symbol tables.
14622
extract_expsyms_cmds=
14623
# Just being paranoid about ensuring that cc_basename is set.
14624
for cc_temp in $compiler""; do
14626
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14627
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14632
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14635
cygwin* | mingw* | pw32*)
14636
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14637
# When not using gcc, we currently assume that we are using
14638
# Microsoft Visual C++.
14639
if test "$GCC" != yes; then
14644
# we just hope/assume this is gcc and not c89 (= MSVC++)
14653
if test "$with_gnu_ld" = yes; then
14654
# If archive_cmds runs LD, not CC, wlarc should be empty
14657
# Set some defaults for GNU ld with shared library support. These
14658
# are reset later if shared libraries are not supported. Putting them
14659
# here allows them to be overridden if necessary.
14660
runpath_var=LD_RUN_PATH
14661
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14662
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14663
# ancient GNU ld didn't support --whole-archive et. al.
14664
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14665
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14667
whole_archive_flag_spec_F77=
14669
supports_anon_versioning=no
14670
case `$LD -v 2>/dev/null` in
14671
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14672
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14673
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14674
*\ 2.11.*) ;; # other 2.11 versions
14675
*) supports_anon_versioning=yes ;;
14678
# See if GNU ld supports shared libraries.
14680
aix3* | aix4* | aix5*)
14681
# On AIX/PPC, the GNU linker is very broken
14682
if test "$host_cpu" != ia64; then
14686
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14687
*** to be unable to reliably create shared libraries on AIX.
14688
*** Therefore, libtool is disabling shared libraries support. If you
14689
*** really care for shared libraries, you may want to modify your PATH
14690
*** so that a non-GNU linker is found, and then restart.
14697
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)'
14698
hardcode_libdir_flag_spec_F77='-L$libdir'
14699
hardcode_minus_L_F77=yes
14701
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14702
# that the semantics of dynamic libraries on AmigaOS, at least up
14703
# to version 4, is to share data among multiple programs linked
14704
# with the same dynamic library. Since this doesn't match the
14705
# behavior of shared libraries on other platforms, we can't use
14711
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14712
allow_undefined_flag_F77=unsupported
14713
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14714
# support --undefined. This deserves some investigation. FIXME
14715
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721
cygwin* | mingw* | pw32*)
14722
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14723
# as there is no search path for DLLs.
14724
hardcode_libdir_flag_spec_F77='-L$libdir'
14725
allow_undefined_flag_F77=unsupported
14726
always_export_symbols_F77=no
14727
enable_shared_with_static_runtimes_F77=yes
14728
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14730
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14731
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14732
# If the export-symbols file already is a .def file (1st line
14733
# is EXPORTS), use it as is; otherwise, prepend...
14734
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14735
cp $export_symbols $output_objdir/$soname.def;
14737
echo EXPORTS > $output_objdir/$soname.def;
14738
cat $export_symbols >> $output_objdir/$soname.def;
14740
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14747
hardcode_direct_F77=no
14748
hardcode_shlibpath_var_F77=no
14749
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14750
export_dynamic_flag_spec_F77='${wl}-E'
14751
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14752
# Instead, shared libraries are loaded at an image base (0x10000000 by
14753
# default) and relocated if they conflict, which is a slow very memory
14754
# consuming and fragmenting process. To avoid this, we pick a random,
14755
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14756
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14757
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'
14758
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'
14761
gnu* | linux* | k*bsd*-gnu)
14762
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14764
case $cc_basename,$host_cpu in
14765
pgcc*) # Portland Group C compiler
14766
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'
14767
tmp_addflag=' $pic_flag'
14769
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14770
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'
14771
tmp_addflag=' $pic_flag -Mnomain' ;;
14772
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14773
tmp_addflag=' -i_dynamic' ;;
14774
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14775
tmp_addflag=' -i_dynamic -nofor_main' ;;
14776
ifc* | ifort*) # Intel Fortran compiler
14777
tmp_addflag=' -nofor_main' ;;
14779
case `$CC -V 2>&1 | sed 5q` in
14780
*Sun\ C*) # Sun C 5.9
14781
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'
14782
tmp_sharedflag='-G' ;;
14783
*Sun\ F*) # Sun Fortran 8.3
14784
tmp_sharedflag='-G' ;;
14786
tmp_sharedflag='-shared' ;;
14788
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
if test $supports_anon_versioning = yes; then
14791
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14792
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14793
$echo "local: *; };" >> $output_objdir/$libname.ver~
14794
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14796
link_all_deplibs_F77=no
14802
netbsd* | netbsdelf*-gnu)
14803
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14804
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14807
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14817
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14818
*** create shared libraries on Solaris systems. Therefore, libtool
14819
*** is disabling shared libraries support. We urge you to upgrade GNU
14820
*** binutils to release 2.9.1 or newer. Another option is to modify
14821
*** your PATH or compiler configuration so that the native linker is
14822
*** used, and then restart.
14825
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14827
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14833
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14834
case `$LD -v 2>&1` in
14835
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14839
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14840
*** reliably create shared libraries on SCO systems. Therefore, libtool
14841
*** is disabling shared libraries support. We urge you to upgrade GNU
14842
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14843
*** your PATH or compiler configuration so that the native linker is
14844
*** used, and then restart.
14849
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14851
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14852
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14861
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863
hardcode_direct_F77=yes
14864
hardcode_shlibpath_var_F77=no
14868
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14869
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14870
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14877
if test "$ld_shlibs_F77" = no; then
14879
hardcode_libdir_flag_spec_F77=
14880
export_dynamic_flag_spec_F77=
14881
whole_archive_flag_spec_F77=
14884
# PORTME fill in a description of your system's linker (not GNU ld)
14887
allow_undefined_flag_F77=unsupported
14888
always_export_symbols_F77=yes
14889
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'
14890
# Note: this linker hardcodes the directories in LIBPATH if there
14891
# are no directories specified by -L.
14892
hardcode_minus_L_F77=yes
14893
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14894
# Neither direct hardcoding nor static linking is supported with a
14896
hardcode_direct_F77=unsupported
14901
if test "$host_cpu" = ia64; then
14902
# On IA64, the linker does run time linking by default, so we don't
14903
# have to do anything special.
14904
aix_use_runtimelinking=no
14905
exp_sym_flag='-Bexport'
14908
# If we're using GNU nm, then we don't want the "-C" option.
14909
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14910
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14911
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'
14913
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'
14915
aix_use_runtimelinking=no
14917
# Test if we are trying to use run time linking or normal
14918
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14919
# need to do runtime linking.
14920
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14921
for ld_flag in $LDFLAGS; do
14922
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14923
aix_use_runtimelinking=yes
14930
exp_sym_flag='-bexport'
14931
no_entry_flag='-bnoentry'
14934
# When large executables or shared objects are built, AIX ld can
14935
# have problems creating the table of contents. If linking a library
14936
# or program results in "error TOC overflow" add -mminimal-toc to
14937
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14938
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14940
archive_cmds_F77=''
14941
hardcode_direct_F77=yes
14942
hardcode_libdir_separator_F77=':'
14943
link_all_deplibs_F77=yes
14945
if test "$GCC" = yes; then
14946
case $host_os in aix4.[012]|aix4.[012].*)
14947
# We only want to do this on AIX 4.2 and lower, the check
14948
# below for broken collect2 doesn't work under 4.3+
14949
collect2name=`${CC} -print-prog-name=collect2`
14950
if test -f "$collect2name" && \
14951
strings "$collect2name" | grep resolve_lib_name >/dev/null
14953
# We have reworked collect2
14956
# We have old collect2
14957
hardcode_direct_F77=unsupported
14958
# It fails to find uninstalled libraries when the uninstalled
14959
# path is not listed in the libpath. Setting hardcode_minus_L
14960
# to unsupported forces relinking
14961
hardcode_minus_L_F77=yes
14962
hardcode_libdir_flag_spec_F77='-L$libdir'
14963
hardcode_libdir_separator_F77=
14967
shared_flag='-shared'
14968
if test "$aix_use_runtimelinking" = yes; then
14969
shared_flag="$shared_flag "'${wl}-G'
14973
if test "$host_cpu" = ia64; then
14974
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14975
# chokes on -Wl,-G. The following line is correct:
14978
if test "$aix_use_runtimelinking" = yes; then
14979
shared_flag='${wl}-G'
14981
shared_flag='${wl}-bM:SRE'
14986
# It seems that -bexpall does not export symbols beginning with
14987
# underscore (_), so it is better to generate a list of symbols to export.
14988
always_export_symbols_F77=yes
14989
if test "$aix_use_runtimelinking" = yes; then
14990
# Warning - without using the other runtime loading flags (-brtl),
14991
# -berok will link without error, but may produce a broken library.
14992
allow_undefined_flag_F77='-berok'
14993
# Determine the default libpath from the value encoded in an empty executable.
14994
cat >conftest.$ac_ext <<_ACEOF
14999
rm -f conftest.$ac_objext conftest$ac_exeext
15000
if { (ac_try="$ac_link"
15001
case "(($ac_try" in
15002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003
*) ac_try_echo=$ac_try;;
15005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006
(eval "$ac_link") 2>conftest.er1
15008
grep -v '^ *+' conftest.er1 >conftest.err
15010
cat conftest.err >&5
15011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012
(exit $ac_status); } && {
15013
test -z "$ac_f77_werror_flag" ||
15014
test ! -s conftest.err
15015
} && test -s conftest$ac_exeext &&
15016
$as_test_x conftest$ac_exeext; then
15018
lt_aix_libpath_sed='
15019
/Import File Strings/,/^$/ {
15025
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15026
# Check for a 64-bit object if we didn't find anything.
15027
if test -z "$aix_libpath"; then
15028
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15031
echo "$as_me: failed program was:" >&5
15032
sed 's/^/| /' conftest.$ac_ext >&5
15037
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15038
conftest$ac_exeext conftest.$ac_ext
15039
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15041
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15042
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"
15044
if test "$host_cpu" = ia64; then
15045
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15046
allow_undefined_flag_F77="-z nodefs"
15047
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"
15049
# Determine the default libpath from the value encoded in an empty executable.
15050
cat >conftest.$ac_ext <<_ACEOF
15055
rm -f conftest.$ac_objext conftest$ac_exeext
15056
if { (ac_try="$ac_link"
15057
case "(($ac_try" in
15058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059
*) ac_try_echo=$ac_try;;
15061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062
(eval "$ac_link") 2>conftest.er1
15064
grep -v '^ *+' conftest.er1 >conftest.err
15066
cat conftest.err >&5
15067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068
(exit $ac_status); } && {
15069
test -z "$ac_f77_werror_flag" ||
15070
test ! -s conftest.err
15071
} && test -s conftest$ac_exeext &&
15072
$as_test_x conftest$ac_exeext; then
15074
lt_aix_libpath_sed='
15075
/Import File Strings/,/^$/ {
15081
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15082
# Check for a 64-bit object if we didn't find anything.
15083
if test -z "$aix_libpath"; then
15084
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15087
echo "$as_me: failed program was:" >&5
15088
sed 's/^/| /' conftest.$ac_ext >&5
15093
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094
conftest$ac_exeext conftest.$ac_ext
15095
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15097
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15098
# Warning - without using the other run time loading flags,
15099
# -berok will link without error, but may produce a broken library.
15100
no_undefined_flag_F77=' ${wl}-bernotok'
15101
allow_undefined_flag_F77=' ${wl}-berok'
15102
# Exported symbols can be pulled into shared objects from archives
15103
whole_archive_flag_spec_F77='$convenience'
15104
archive_cmds_need_lc_F77=yes
15105
# This is similar to how AIX traditionally builds its shared libraries.
15106
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'
15112
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)'
15113
hardcode_libdir_flag_spec_F77='-L$libdir'
15114
hardcode_minus_L_F77=yes
15115
# see comment about different semantics on the GNU ld section
15120
export_dynamic_flag_spec_F77=-rdynamic
15123
cygwin* | mingw* | pw32*)
15124
# When not using gcc, we currently assume that we are using
15125
# Microsoft Visual C++.
15126
# hardcode_libdir_flag_spec is actually meaningless, as there is
15127
# no search path for DLLs.
15128
hardcode_libdir_flag_spec_F77=' '
15129
allow_undefined_flag_F77=unsupported
15130
# Tell ltmain to make .lib files, not .a files.
15132
# Tell ltmain to make .dll files, not .so files.
15134
# FIXME: Setting linknames here is a bad hack.
15135
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15136
# The linker will automatically build a .lib file if we build a DLL.
15137
old_archive_From_new_cmds_F77='true'
15138
# FIXME: Should let the user specify the lib program.
15139
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15140
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15141
enable_shared_with_static_runtimes_F77=yes
15144
darwin* | rhapsody*)
15146
rhapsody* | darwin1.[012])
15147
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15150
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15151
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15153
case ${MACOSX_DEPLOYMENT_TARGET} in
15155
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15158
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15164
archive_cmds_need_lc_F77=no
15165
hardcode_direct_F77=no
15166
hardcode_automatic_F77=yes
15167
hardcode_shlibpath_var_F77=unsupported
15168
whole_archive_flag_spec_F77=''
15169
link_all_deplibs_F77=yes
15170
if test "$GCC" = yes ; then
15171
output_verbose_link_cmd='echo'
15172
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15173
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15174
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15175
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15176
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}'
15178
case $cc_basename in
15180
output_verbose_link_cmd='echo'
15181
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15182
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15183
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15184
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}'
15185
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}'
15195
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196
hardcode_libdir_flag_spec_F77='-L$libdir'
15197
hardcode_shlibpath_var_F77=no
15204
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15205
# support. Future versions do this automatically, but an explicit c++rt0.o
15206
# does not break anything, and helps significantly (at the cost of a little
15209
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15210
hardcode_libdir_flag_spec_F77='-R$libdir'
15211
hardcode_direct_F77=yes
15212
hardcode_shlibpath_var_F77=no
15215
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15217
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218
hardcode_direct_F77=yes
15219
hardcode_minus_L_F77=yes
15220
hardcode_shlibpath_var_F77=no
15223
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15224
freebsd* | dragonfly*)
15225
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15226
hardcode_libdir_flag_spec_F77='-R$libdir'
15227
hardcode_direct_F77=yes
15228
hardcode_shlibpath_var_F77=no
15232
if test "$GCC" = yes; then
15233
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'
15235
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'
15237
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15238
hardcode_libdir_separator_F77=:
15239
hardcode_direct_F77=yes
15241
# hardcode_minus_L: Not really in the search PATH,
15242
# but as the default location of the library.
15243
hardcode_minus_L_F77=yes
15244
export_dynamic_flag_spec_F77='${wl}-E'
15248
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15249
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15251
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15253
if test "$with_gnu_ld" = no; then
15254
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15255
hardcode_libdir_separator_F77=:
15257
hardcode_direct_F77=yes
15258
export_dynamic_flag_spec_F77='${wl}-E'
15260
# hardcode_minus_L: Not really in the search PATH,
15261
# but as the default location of the library.
15262
hardcode_minus_L_F77=yes
15267
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15270
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15273
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15276
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15288
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15292
if test "$with_gnu_ld" = no; then
15293
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15294
hardcode_libdir_separator_F77=:
15298
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15299
hardcode_direct_F77=no
15300
hardcode_shlibpath_var_F77=no
15303
hardcode_direct_F77=yes
15304
export_dynamic_flag_spec_F77='${wl}-E'
15306
# hardcode_minus_L: Not really in the search PATH,
15307
# but as the default location of the library.
15308
hardcode_minus_L_F77=yes
15314
irix5* | irix6* | nonstopux*)
15315
if test "$GCC" = yes; then
15316
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'
15318
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'
15319
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15321
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322
hardcode_libdir_separator_F77=:
15323
link_all_deplibs_F77=yes
15326
netbsd* | netbsdelf*-gnu)
15327
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15328
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15330
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15332
hardcode_libdir_flag_spec_F77='-R$libdir'
15333
hardcode_direct_F77=yes
15334
hardcode_shlibpath_var_F77=no
15338
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339
hardcode_direct_F77=yes
15340
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15341
hardcode_libdir_separator_F77=:
15342
hardcode_shlibpath_var_F77=no
15346
if test -f /usr/libexec/ld.so; then
15347
hardcode_direct_F77=yes
15348
hardcode_shlibpath_var_F77=no
15349
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15351
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15352
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15353
export_dynamic_flag_spec_F77='${wl}-E'
15356
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15357
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15358
hardcode_libdir_flag_spec_F77='-R$libdir'
15361
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15362
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15372
hardcode_libdir_flag_spec_F77='-L$libdir'
15373
hardcode_minus_L_F77=yes
15374
allow_undefined_flag_F77=unsupported
15375
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'
15376
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15380
if test "$GCC" = yes; then
15381
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15382
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'
15384
allow_undefined_flag_F77=' -expect_unresolved \*'
15385
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'
15387
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15388
hardcode_libdir_separator_F77=:
15391
osf4* | osf5*) # as osf3* with the addition of -msym flag
15392
if test "$GCC" = yes; then
15393
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15394
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'
15395
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15397
allow_undefined_flag_F77=' -expect_unresolved \*'
15398
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'
15399
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~
15400
$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'
15402
# Both c and cxx compiler support -rpath directly
15403
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15405
hardcode_libdir_separator_F77=:
15409
no_undefined_flag_F77=' -z text'
15410
if test "$GCC" = yes; then
15412
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15413
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15414
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15417
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15419
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15421
hardcode_libdir_flag_spec_F77='-R$libdir'
15422
hardcode_shlibpath_var_F77=no
15424
solaris2.[0-5] | solaris2.[0-5].*) ;;
15426
# The compiler driver will combine and reorder linker options,
15427
# but understands `-z linker_flag'. GCC discards it without `$wl',
15428
# but is careful enough not to reorder.
15429
# Supported since Solaris 2.6 (maybe 2.5.1?)
15430
if test "$GCC" = yes; then
15431
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15433
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15437
link_all_deplibs_F77=yes
15441
if test "x$host_vendor" = xsequent; then
15442
# Use $CC to link under sequent, because it throws in some extra .o
15443
# files that make .init and .fini sections work.
15444
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15446
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15448
hardcode_libdir_flag_spec_F77='-L$libdir'
15449
hardcode_direct_F77=yes
15450
hardcode_minus_L_F77=yes
15451
hardcode_shlibpath_var_F77=no
15455
case $host_vendor in
15457
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15458
hardcode_direct_F77=yes # is this really true???
15461
## LD is ld it makes a PLAMLIB
15462
## CC just makes a GrossModule.
15463
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15464
reload_cmds_F77='$CC -r -o $output$reload_objs'
15465
hardcode_direct_F77=no
15468
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15472
runpath_var='LD_RUN_PATH'
15473
hardcode_shlibpath_var_F77=no
15477
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478
hardcode_shlibpath_var_F77=no
15479
export_dynamic_flag_spec_F77='-Bexport'
15483
if test -d /usr/nec; then
15484
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485
hardcode_shlibpath_var_F77=no
15486
runpath_var=LD_RUN_PATH
15487
hardcode_runpath_var=yes
15492
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15493
no_undefined_flag_F77='${wl}-z,text'
15494
archive_cmds_need_lc_F77=no
15495
hardcode_shlibpath_var_F77=no
15496
runpath_var='LD_RUN_PATH'
15498
if test "$GCC" = yes; then
15499
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15503
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15507
sysv5* | sco3.2v5* | sco5v6*)
15508
# Note: We can NOT use -z defs as we might desire, because we do not
15509
# link with -lc, and that would cause any symbols used from libc to
15510
# always be unresolved, which means just about no library would
15511
# ever link correctly. If we're not using GNU ld we use -z text
15512
# though, which does catch some bad symbols but isn't as heavy-handed
15514
no_undefined_flag_F77='${wl}-z,text'
15515
allow_undefined_flag_F77='${wl}-z,nodefs'
15516
archive_cmds_need_lc_F77=no
15517
hardcode_shlibpath_var_F77=no
15518
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15519
hardcode_libdir_separator_F77=':'
15520
link_all_deplibs_F77=yes
15521
export_dynamic_flag_spec_F77='${wl}-Bexport'
15522
runpath_var='LD_RUN_PATH'
15524
if test "$GCC" = yes; then
15525
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15528
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15529
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535
hardcode_libdir_flag_spec_F77='-L$libdir'
15536
hardcode_shlibpath_var_F77=no
15545
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15546
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15547
test "$ld_shlibs_F77" = no && can_build_shared=no
15550
# Do we need to explicitly link libc?
15552
case "x$archive_cmds_need_lc_F77" in
15554
# Assume -lc should be added
15555
archive_cmds_need_lc_F77=yes
15557
if test "$enable_shared" = yes && test "$GCC" = yes; then
15558
case $archive_cmds_F77 in
15560
# FIXME: we may have to deal with multi-command sequences.
15563
# Test whether the compiler implicitly links with -lc since on some
15564
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15565
# to ld, don't add -lc before -lgcc.
15566
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15567
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15569
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572
(eval $ac_compile) 2>&5
15574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575
(exit $ac_status); } 2>conftest.err; then
15578
libobjs=conftest.$ac_objext
15580
wl=$lt_prog_compiler_wl_F77
15581
pic_flag=$lt_prog_compiler_pic_F77
15587
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15588
allow_undefined_flag_F77=
15589
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15590
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593
(exit $ac_status); }
15595
archive_cmds_need_lc_F77=no
15597
archive_cmds_need_lc_F77=yes
15599
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15601
cat conftest.err 1>&5
15604
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15605
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15612
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15613
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15614
library_names_spec=
15615
libname_spec='lib$name'
15619
postuninstall_cmds=
15623
shlibpath_overrides_runpath=unknown
15625
dynamic_linker="$host_os ld.so"
15626
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15628
need_lib_prefix=unknown
15629
hardcode_into_libs=no
15631
# when you set need_version to no, make sure it does not cause -set_version
15632
# flags to be left without arguments
15633
need_version=unknown
15638
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15639
shlibpath_var=LIBPATH
15641
# AIX 3 has no versioning support, so we append a major version to the name.
15642
soname_spec='${libname}${release}${shared_ext}$major'
15649
hardcode_into_libs=yes
15650
if test "$host_cpu" = ia64; then
15651
# AIX 5 supports IA64
15652
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15653
shlibpath_var=LD_LIBRARY_PATH
15655
# With GCC up to 2.95.x, collect2 would create an import file
15656
# for dependence libraries. The import file would start with
15657
# the line `#! .'. This would cause the generated library to
15658
# depend on `.', always an invalid library. This was fixed in
15659
# development snapshots of GCC prior to 3.0.
15661
aix4 | aix4.[01] | aix4.[01].*)
15662
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15664
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15667
can_build_shared=no
15671
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15672
# soname into executable. Probably we can add versioning support to
15673
# collect2, so additional links can be useful in future.
15674
if test "$aix_use_runtimelinking" = yes; then
15675
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15676
# instead of lib<name>.a to let people know that these are not
15677
# typical AIX shared libraries.
15678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680
# We preserve .a as extension for shared libraries through AIX4.2
15681
# and later when we are not doing run time linking.
15682
library_names_spec='${libname}${release}.a $libname.a'
15683
soname_spec='${libname}${release}${shared_ext}$major'
15685
shlibpath_var=LIBPATH
15690
library_names_spec='$libname.ixlibrary $libname.a'
15691
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15692
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'
15696
library_names_spec='${libname}${shared_ext}'
15697
dynamic_linker="$host_os ld.so"
15698
shlibpath_var=LIBRARY_PATH
15704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705
soname_spec='${libname}${release}${shared_ext}$major'
15706
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15707
shlibpath_var=LD_LIBRARY_PATH
15708
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15709
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15710
# the default ld.so.conf also contains /usr/contrib/lib and
15711
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15712
# libtool to hard-code these into programs
15715
cygwin* | mingw* | pw32*)
15716
version_type=windows
15721
case $GCC,$host_os in
15722
yes,cygwin* | yes,mingw* | yes,pw32*)
15723
library_names_spec='$libname.dll.a'
15724
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15725
postinstall_cmds='base_file=`basename \${file}`~
15726
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15727
dldir=$destdir/`dirname \$dlpath`~
15728
test -d \$dldir || mkdir -p \$dldir~
15729
$install_prog $dir/$dlname \$dldir/$dlname~
15730
chmod a+x \$dldir/$dlname'
15731
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15732
dlpath=$dir/\$dldll~
15734
shlibpath_overrides_runpath=yes
15738
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15739
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15743
# MinGW DLLs use traditional 'lib' prefix
15744
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15745
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15746
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15747
# It is most probably a Windows format PATH printed by
15748
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15749
# path with ; separators, and with drive letters. We can handle the
15750
# drive letters (cygwin fileutils understands them), so leave them,
15751
# especially as we might pass files found there to a mingw objdump,
15752
# which wouldn't understand a cygwinified path. Ahh.
15753
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15755
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759
# pw32 DLLs use 'pw' prefix rather than 'lib'
15760
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15766
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15769
dynamic_linker='Win32 ld.exe'
15770
# FIXME: first we should search . and the directory the executable is in
15774
darwin* | rhapsody*)
15775
dynamic_linker="$host_os dyld"
15776
version_type=darwin
15779
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15780
soname_spec='${libname}${release}${major}$shared_ext'
15781
shlibpath_overrides_runpath=yes
15782
shlibpath_var=DYLD_LIBRARY_PATH
15783
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15785
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15793
soname_spec='${libname}${release}${shared_ext}$major'
15794
shlibpath_var=LD_LIBRARY_PATH
15801
freebsd* | dragonfly*)
15802
# DragonFly does not have aout. When/if they implement a new
15803
# versioning mechanism, adjust this.
15804
if test -x /usr/bin/objformat; then
15805
objformat=`/usr/bin/objformat`
15808
freebsd[123]*) objformat=aout ;;
15809
*) objformat=elf ;;
15812
version_type=freebsd-$objformat
15813
case $version_type in
15815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15820
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15824
shlibpath_var=LD_LIBRARY_PATH
15827
shlibpath_overrides_runpath=yes
15829
freebsd3.[01]* | freebsdelf3.[01]*)
15830
shlibpath_overrides_runpath=yes
15831
hardcode_into_libs=yes
15833
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15834
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15835
shlibpath_overrides_runpath=no
15836
hardcode_into_libs=yes
15838
*) # from 4.6 on, and DragonFly
15839
shlibpath_overrides_runpath=yes
15840
hardcode_into_libs=yes
15849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15850
soname_spec='${libname}${release}${shared_ext}$major'
15851
shlibpath_var=LD_LIBRARY_PATH
15852
hardcode_into_libs=yes
15855
hpux9* | hpux10* | hpux11*)
15856
# Give a soname corresponding to the major version so that dld.sl refuses to
15857
# link against other versions.
15864
hardcode_into_libs=yes
15865
dynamic_linker="$host_os dld.so"
15866
shlibpath_var=LD_LIBRARY_PATH
15867
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869
soname_spec='${libname}${release}${shared_ext}$major'
15870
if test "X$HPUX_IA64_MODE" = X32; then
15871
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15873
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15875
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15879
hardcode_into_libs=yes
15880
dynamic_linker="$host_os dld.sl"
15881
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15882
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884
soname_spec='${libname}${release}${shared_ext}$major'
15885
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15886
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15890
dynamic_linker="$host_os dld.sl"
15891
shlibpath_var=SHLIB_PATH
15892
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894
soname_spec='${libname}${release}${shared_ext}$major'
15897
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15898
postinstall_cmds='chmod 555 $lib'
15905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15906
soname_spec='${libname}${release}${shared_ext}$major'
15907
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15908
shlibpath_var=LD_LIBRARY_PATH
15909
shlibpath_overrides_runpath=no
15910
hardcode_into_libs=yes
15913
irix5* | irix6* | nonstopux*)
15915
nonstopux*) version_type=nonstopux ;;
15917
if test "$lt_cv_prog_gnu_ld" = yes; then
15925
soname_spec='${libname}${release}${shared_ext}$major'
15926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15928
irix5* | nonstopux*)
15929
libsuff= shlibsuff=
15932
case $LD in # libtool.m4 will add one of these switches to LD
15933
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15934
libsuff= shlibsuff= libmagic=32-bit;;
15935
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15936
libsuff=32 shlibsuff=N32 libmagic=N32;;
15937
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15938
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15939
*) libsuff= shlibsuff= libmagic=never-match;;
15943
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15944
shlibpath_overrides_runpath=no
15945
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15946
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15947
hardcode_into_libs=yes
15950
# No shared lib support for Linux oldld, aout, or coff.
15951
linux*oldld* | linux*aout* | linux*coff*)
15955
# This must be Linux ELF.
15956
linux* | k*bsd*-gnu)
15960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961
soname_spec='${libname}${release}${shared_ext}$major'
15962
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15963
shlibpath_var=LD_LIBRARY_PATH
15964
shlibpath_overrides_runpath=no
15965
# This implies no fast_install, which is unacceptable.
15966
# Some rework will be needed to allow for fast_install
15967
# before this can be enabled.
15968
hardcode_into_libs=yes
15970
# Append ld.so.conf contents to the search path
15971
if test -f /etc/ld.so.conf; then
15972
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' ' '`
15973
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15976
# We used to test for /lib/ld.so.1 and disable shared libraries on
15977
# powerpc, because MkLinux only supported shared libraries with the
15978
# GNU dynamic linker. Since this was broken with cross compilers,
15979
# most powerpc-linux boxes support dynamic linking these days and
15980
# people can always --disable-shared, the test was removed, and we
15981
# assume the GNU/Linux dynamic linker is in use.
15982
dynamic_linker='GNU/Linux ld.so'
15989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15990
soname_spec='${libname}${release}${shared_ext}$major'
15991
shlibpath_var=LD_LIBRARY_PATH
15992
shlibpath_overrides_runpath=no
15993
hardcode_into_libs=yes
15994
dynamic_linker='NetBSD ld.elf_so'
16001
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16003
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16004
dynamic_linker='NetBSD (a.out) ld.so'
16006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16007
soname_spec='${libname}${release}${shared_ext}$major'
16008
dynamic_linker='NetBSD ld.elf_so'
16010
shlibpath_var=LD_LIBRARY_PATH
16011
shlibpath_overrides_runpath=yes
16012
hardcode_into_libs=yes
16017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018
shlibpath_var=LD_LIBRARY_PATH
16019
shlibpath_overrides_runpath=yes
16026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027
soname_spec='${libname}${release}${shared_ext}$major'
16028
shlibpath_var=LD_LIBRARY_PATH
16029
shlibpath_overrides_runpath=yes
16034
sys_lib_dlsearch_path_spec="/usr/lib"
16036
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16038
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16039
*) need_version=no ;;
16041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16042
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16043
shlibpath_var=LD_LIBRARY_PATH
16044
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16046
openbsd2.[89] | openbsd2.[89].*)
16047
shlibpath_overrides_runpath=no
16050
shlibpath_overrides_runpath=yes
16054
shlibpath_overrides_runpath=yes
16059
libname_spec='$name'
16062
library_names_spec='$libname${shared_ext} $libname.a'
16063
dynamic_linker='OS/2 ld.exe'
16064
shlibpath_var=LIBPATH
16067
osf3* | osf4* | osf5*)
16071
soname_spec='${libname}${release}${shared_ext}$major'
16072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073
shlibpath_var=LD_LIBRARY_PATH
16074
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16075
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087
soname_spec='${libname}${release}${shared_ext}$major'
16088
shlibpath_var=LD_LIBRARY_PATH
16089
shlibpath_overrides_runpath=yes
16090
hardcode_into_libs=yes
16091
# ldd complains unless libraries are executable
16092
postinstall_cmds='chmod +x $lib'
16097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16098
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16099
shlibpath_var=LD_LIBRARY_PATH
16100
shlibpath_overrides_runpath=yes
16101
if test "$with_gnu_ld" = yes; then
16109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110
soname_spec='${libname}${release}${shared_ext}$major'
16111
shlibpath_var=LD_LIBRARY_PATH
16112
case $host_vendor in
16114
shlibpath_overrides_runpath=no
16116
export_dynamic_flag_spec='${wl}-Blargedynsym'
16117
runpath_var=LD_RUN_PATH
16125
shlibpath_overrides_runpath=no
16126
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16132
if test -d /usr/nec ;then
16134
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16135
soname_spec='$libname${shared_ext}.$major'
16136
shlibpath_var=LD_LIBRARY_PATH
16140
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16141
version_type=freebsd-elf
16144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16145
soname_spec='${libname}${release}${shared_ext}$major'
16146
shlibpath_var=LD_LIBRARY_PATH
16147
hardcode_into_libs=yes
16148
if test "$with_gnu_ld" = yes; then
16149
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16150
shlibpath_overrides_runpath=no
16152
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16153
shlibpath_overrides_runpath=yes
16156
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16160
sys_lib_dlsearch_path_spec='/usr/lib'
16165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166
soname_spec='${libname}${release}${shared_ext}$major'
16167
shlibpath_var=LD_LIBRARY_PATH
16174
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16175
echo "${ECHO_T}$dynamic_linker" >&6; }
16176
test "$dynamic_linker" = no && can_build_shared=no
16178
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16179
if test "$GCC" = yes; then
16180
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16183
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16184
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16185
hardcode_action_F77=
16186
if test -n "$hardcode_libdir_flag_spec_F77" || \
16187
test -n "$runpath_var_F77" || \
16188
test "X$hardcode_automatic_F77" = "Xyes" ; then
16190
# We can hardcode non-existant directories.
16191
if test "$hardcode_direct_F77" != no &&
16192
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16193
# have to relink, otherwise we might link with an installed library
16194
# when we should be linking with a yet-to-be-installed one
16195
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16196
test "$hardcode_minus_L_F77" != no; then
16197
# Linking always hardcodes the temporary library directory.
16198
hardcode_action_F77=relink
16200
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16201
hardcode_action_F77=immediate
16204
# We cannot hardcode anything, or else we can only hardcode existing
16206
hardcode_action_F77=unsupported
16208
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16209
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16211
if test "$hardcode_action_F77" = relink; then
16212
# Fast installation is not supported
16213
enable_fast_install=no
16214
elif test "$shlibpath_overrides_runpath" = yes ||
16215
test "$enable_shared" = no; then
16216
# Fast installation is not necessary
16217
enable_fast_install=needless
16221
# The else clause should only fire when bootstrapping the
16222
# libtool distribution, otherwise you forgot to ship ltmain.sh
16223
# with your package, and you will get complaints that there are
16224
# no rules to generate ltmain.sh.
16225
if test -f "$ltmain"; then
16226
# See if we are running on zsh, and set the options which allow our commands through
16227
# without removal of \ escapes.
16228
if test -n "${ZSH_VERSION+set}" ; then
16229
setopt NO_GLOB_SUBST
16231
# Now quote all the things that may contain metacharacters while being
16232
# careful not to overquote the AC_SUBSTed values. We take copies of the
16233
# variables and quote the copies for generation of the libtool script.
16234
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16236
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16237
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16238
deplibs_check_method reload_flag reload_cmds need_locks \
16239
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16240
lt_cv_sys_global_symbol_to_c_name_address \
16241
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16242
old_postinstall_cmds old_postuninstall_cmds \
16246
lt_prog_compiler_wl_F77 \
16247
lt_prog_compiler_pic_F77 \
16248
lt_prog_compiler_static_F77 \
16249
lt_prog_compiler_no_builtin_flag_F77 \
16250
export_dynamic_flag_spec_F77 \
16251
thread_safe_flag_spec_F77 \
16252
whole_archive_flag_spec_F77 \
16253
enable_shared_with_static_runtimes_F77 \
16254
old_archive_cmds_F77 \
16255
old_archive_from_new_cmds_F77 \
16256
predep_objects_F77 \
16257
postdep_objects_F77 \
16260
compiler_lib_search_path_F77 \
16262
archive_expsym_cmds_F77 \
16263
postinstall_cmds_F77 \
16264
postuninstall_cmds_F77 \
16265
old_archive_from_expsyms_cmds_F77 \
16266
allow_undefined_flag_F77 \
16267
no_undefined_flag_F77 \
16268
export_symbols_cmds_F77 \
16269
hardcode_libdir_flag_spec_F77 \
16270
hardcode_libdir_flag_spec_ld_F77 \
16271
hardcode_libdir_separator_F77 \
16272
hardcode_automatic_F77 \
16274
module_expsym_cmds_F77 \
16275
lt_cv_prog_compiler_c_o_F77 \
16276
fix_srcfile_path_F77 \
16277
exclude_expsyms_F77 \
16278
include_expsyms_F77; do
16281
old_archive_cmds_F77 | \
16282
old_archive_from_new_cmds_F77 | \
16283
archive_cmds_F77 | \
16284
archive_expsym_cmds_F77 | \
16285
module_cmds_F77 | \
16286
module_expsym_cmds_F77 | \
16287
old_archive_from_expsyms_cmds_F77 | \
16288
export_symbols_cmds_F77 | \
16289
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16290
postinstall_cmds | postuninstall_cmds | \
16291
old_postinstall_cmds | old_postuninstall_cmds | \
16292
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16293
# Double-quote double-evaled strings.
16294
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16297
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16303
*'\$0 --fallback-echo"')
16304
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16310
cat <<__EOF__ >> "$cfgfile"
16311
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16313
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16315
# Shell to use when invoking shell scripts.
16318
# Whether or not to build shared libraries.
16319
build_libtool_libs=$enable_shared
16321
# Whether or not to build static libraries.
16322
build_old_libs=$enable_static
16324
# Whether or not to add -lc for building shared libraries.
16325
build_libtool_need_lc=$archive_cmds_need_lc_F77
16327
# Whether or not to disallow shared libs when runtime libs are static
16328
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16330
# Whether or not to optimize for fast installation.
16331
fast_install=$enable_fast_install
16334
host_alias=$host_alias
16338
# The build system.
16339
build_alias=$build_alias
16343
# An echo program that does not interpret backslashes.
16348
AR_FLAGS=$lt_AR_FLAGS
16353
# LTCC compiler flags.
16354
LTCFLAGS=$lt_LTCFLAGS
16356
# A language-specific compiler.
16357
CC=$lt_compiler_F77
16359
# Is the compiler the GNU C compiler?
16365
# The linker used to build libraries.
16368
# Whether we need hard or soft links.
16371
# A BSD-compatible nm program.
16374
# A symbol stripping program
16377
# Used to examine libraries when file_magic_cmd begins "file"
16378
MAGIC_CMD=$MAGIC_CMD
16380
# Used on cygwin: DLL creation program.
16383
# Used on cygwin: object dumper.
16386
# Used on cygwin: assembler.
16389
# The name of the directory that contains temporary libtool files.
16392
# How to create reloadable object files.
16393
reload_flag=$lt_reload_flag
16394
reload_cmds=$lt_reload_cmds
16396
# How to pass a linker flag through the compiler.
16397
wl=$lt_lt_prog_compiler_wl_F77
16399
# Object file suffix (normally "o").
16400
objext="$ac_objext"
16402
# Old archive suffix (normally "a").
16405
# Shared library suffix (normally ".so").
16406
shrext_cmds='$shrext_cmds'
16408
# Executable file suffix (normally "").
16411
# Additional compiler flags for building library objects.
16412
pic_flag=$lt_lt_prog_compiler_pic_F77
16415
# What is the maximum length of a command?
16416
max_cmd_len=$lt_cv_sys_max_cmd_len
16418
# Does compiler simultaneously support -c and -o options?
16419
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16421
# Must we lock files when doing compilation?
16422
need_locks=$lt_need_locks
16424
# Do we need the lib prefix for modules?
16425
need_lib_prefix=$need_lib_prefix
16427
# Do we need a version for libraries?
16428
need_version=$need_version
16430
# Whether dlopen is supported.
16431
dlopen_support=$enable_dlopen
16433
# Whether dlopen of programs is supported.
16434
dlopen_self=$enable_dlopen_self
16436
# Whether dlopen of statically linked programs is supported.
16437
dlopen_self_static=$enable_dlopen_self_static
16439
# Compiler flag to prevent dynamic linking.
16440
link_static_flag=$lt_lt_prog_compiler_static_F77
16442
# Compiler flag to turn off builtin functions.
16443
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16445
# Compiler flag to allow reflexive dlopens.
16446
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16448
# Compiler flag to generate shared objects directly from archives.
16449
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16451
# Compiler flag to generate thread-safe objects.
16452
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16454
# Library versioning type.
16455
version_type=$version_type
16457
# Format of library name prefix.
16458
libname_spec=$lt_libname_spec
16460
# List of archive names. First name is the real one, the rest are links.
16461
# The last name is the one that the linker finds with -lNAME.
16462
library_names_spec=$lt_library_names_spec
16464
# The coded name of the library, if different from the real name.
16465
soname_spec=$lt_soname_spec
16467
# Commands used to build and install an old-style archive.
16469
old_archive_cmds=$lt_old_archive_cmds_F77
16470
old_postinstall_cmds=$lt_old_postinstall_cmds
16471
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16473
# Create an old-style archive from a shared archive.
16474
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16476
# Create a temporary old-style archive to link instead of a shared archive.
16477
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16479
# Commands used to build and install a shared archive.
16480
archive_cmds=$lt_archive_cmds_F77
16481
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16482
postinstall_cmds=$lt_postinstall_cmds
16483
postuninstall_cmds=$lt_postuninstall_cmds
16485
# Commands used to build a loadable module (assumed same as above if empty)
16486
module_cmds=$lt_module_cmds_F77
16487
module_expsym_cmds=$lt_module_expsym_cmds_F77
16489
# Commands to strip libraries.
16490
old_striplib=$lt_old_striplib
16491
striplib=$lt_striplib
16493
# Dependencies to place before the objects being linked to create a
16495
predep_objects=$lt_predep_objects_F77
16497
# Dependencies to place after the objects being linked to create a
16499
postdep_objects=$lt_postdep_objects_F77
16501
# Dependencies to place before the objects being linked to create a
16503
predeps=$lt_predeps_F77
16505
# Dependencies to place after the objects being linked to create a
16507
postdeps=$lt_postdeps_F77
16509
# The library search path used internally by the compiler when linking
16510
# a shared library.
16511
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16513
# Method to check whether dependent libraries are shared objects.
16514
deplibs_check_method=$lt_deplibs_check_method
16516
# Command to use when deplibs_check_method == file_magic.
16517
file_magic_cmd=$lt_file_magic_cmd
16519
# Flag that allows shared libraries with undefined symbols to be built.
16520
allow_undefined_flag=$lt_allow_undefined_flag_F77
16522
# Flag that forces no undefined symbols.
16523
no_undefined_flag=$lt_no_undefined_flag_F77
16525
# Commands used to finish a libtool library installation in a directory.
16526
finish_cmds=$lt_finish_cmds
16528
# Same as above, but a single script fragment to be evaled but not shown.
16529
finish_eval=$lt_finish_eval
16531
# Take the output of nm and produce a listing of raw symbols and C names.
16532
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16534
# Transform the output of nm in a proper C declaration
16535
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16537
# Transform the output of nm in a C name address pair
16538
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16540
# This is the shared library runtime path variable.
16541
runpath_var=$runpath_var
16543
# This is the shared library path variable.
16544
shlibpath_var=$shlibpath_var
16546
# Is shlibpath searched before the hard-coded library search path?
16547
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16549
# How to hardcode a shared library path into an executable.
16550
hardcode_action=$hardcode_action_F77
16552
# Whether we should hardcode library paths into libraries.
16553
hardcode_into_libs=$hardcode_into_libs
16555
# Flag to hardcode \$libdir into a binary during linking.
16556
# This must work even if \$libdir does not exist.
16557
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16559
# If ld is used when linking, flag to hardcode \$libdir into
16560
# a binary during linking. This must work even if \$libdir does
16562
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16564
# Whether we need a single -rpath flag with a separated argument.
16565
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16567
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16568
# resulting binary.
16569
hardcode_direct=$hardcode_direct_F77
16571
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16572
# resulting binary.
16573
hardcode_minus_L=$hardcode_minus_L_F77
16575
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16576
# the resulting binary.
16577
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16579
# Set to yes if building a shared library automatically hardcodes DIR into the library
16580
# and all subsequent libraries and executables linked against it.
16581
hardcode_automatic=$hardcode_automatic_F77
16583
# Variables whose values should be saved in libtool wrapper scripts and
16584
# restored at relink time.
16585
variables_saved_for_relink="$variables_saved_for_relink"
16587
# Whether libtool must link a program against all its dependency libraries.
16588
link_all_deplibs=$link_all_deplibs_F77
16590
# Compile-time system search path for libraries
16591
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16593
# Run-time system search path for libraries
16594
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16596
# Fix the shell variable \$srcfile for the compiler.
16597
fix_srcfile_path=$lt_fix_srcfile_path
16599
# Set to yes if exported symbols are required.
16600
always_export_symbols=$always_export_symbols_F77
16602
# The commands to list exported symbols.
16603
export_symbols_cmds=$lt_export_symbols_cmds_F77
16605
# The commands to extract the exported symbol list from a shared archive.
16606
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16608
# Symbols that should not be listed in the preloaded symbols.
16609
exclude_expsyms=$lt_exclude_expsyms_F77
16611
# Symbols that must always be exported.
16612
include_expsyms=$lt_include_expsyms_F77
16614
# ### END LIBTOOL TAG CONFIG: $tagname
16620
# If there is no Makefile yet, we rely on a make rule to execute
16621
# `config.status --recheck' to rerun these tests and create the
16622
# libtool script then.
16623
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16624
if test -f "$ltmain_in"; then
16625
test -f Makefile && make "$ltmain"
16631
ac_cpp='$CPP $CPPFLAGS'
16632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16644
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16647
# Source file extension for Java test sources.
16650
# Object file extension for compiled Java test sources.
16654
# Code to be used in simple compile tests
16655
lt_simple_compile_test_code="class foo {}"
16657
# Code to be used in simple link tests
16658
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16660
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16662
# If no C compiler was specified, use CC.
16665
# If no C compiler flags were specified, use CFLAGS.
16666
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16668
# Allow CC to be a program name with arguments.
16672
# save warnings/boilerplate of simple test code
16673
ac_outfile=conftest.$ac_objext
16674
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16675
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16676
_lt_compiler_boilerplate=`cat conftest.err`
16679
ac_outfile=conftest.$ac_objext
16680
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16681
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16682
_lt_linker_boilerplate=`cat conftest.err`
16686
# Allow CC to be a program name with arguments.
16691
for cc_temp in $compiler""; do
16693
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16694
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16699
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16702
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16703
archive_cmds_need_lc_GCJ=no
16705
old_archive_cmds_GCJ=$old_archive_cmds
16708
lt_prog_compiler_no_builtin_flag_GCJ=
16710
if test "$GCC" = yes; then
16711
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16714
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16715
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16716
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16717
echo $ECHO_N "(cached) $ECHO_C" >&6
16719
lt_cv_prog_compiler_rtti_exceptions=no
16720
ac_outfile=conftest.$ac_objext
16721
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16722
lt_compiler_flag="-fno-rtti -fno-exceptions"
16723
# Insert the option either (1) after the last *FLAGS variable, or
16724
# (2) before a word containing "conftest.", or (3) at the end.
16725
# Note that $ac_compile itself does not contain backslashes and begins
16726
# with a dollar sign (not a hyphen), so the echo should work correctly.
16727
# The option is referenced via a variable to avoid confusing sed.
16728
lt_compile=`echo "$ac_compile" | $SED \
16729
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16730
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16731
-e 's:$: $lt_compiler_flag:'`
16732
(eval echo "\"\$as_me:16732: $lt_compile\"" >&5)
16733
(eval "$lt_compile" 2>conftest.err)
16735
cat conftest.err >&5
16736
echo "$as_me:16736: \$? = $ac_status" >&5
16737
if (exit $ac_status) && test -s "$ac_outfile"; then
16738
# The compiler can only warn and ignore the option if not recognized
16739
# So say no if there are warnings other than the usual output.
16740
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16741
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16743
lt_cv_prog_compiler_rtti_exceptions=yes
16749
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16750
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16752
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16753
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16760
lt_prog_compiler_wl_GCJ=
16761
lt_prog_compiler_pic_GCJ=
16762
lt_prog_compiler_static_GCJ=
16764
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16765
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16767
if test "$GCC" = yes; then
16768
lt_prog_compiler_wl_GCJ='-Wl,'
16769
lt_prog_compiler_static_GCJ='-static'
16773
# All AIX code is PIC.
16774
if test "$host_cpu" = ia64; then
16775
# AIX 5 now supports IA64 processor
16776
lt_prog_compiler_static_GCJ='-Bstatic'
16781
# FIXME: we need at least 68020 code to build shared libraries, but
16782
# adding the `-m68020' flag to GCC prevents building anything better,
16784
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16787
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16788
# PIC is the default for these OSes.
16791
mingw* | cygwin* | pw32* | os2*)
16792
# This hack is so that the source file can tell whether it is being
16793
# built for inclusion in a dll (and should export symbols for example).
16794
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16795
# (--disable-auto-import) libraries
16796
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16799
darwin* | rhapsody*)
16800
# PIC is the default on this platform
16801
# Common symbols not allowed in MH_DYLIB files
16802
lt_prog_compiler_pic_GCJ='-fno-common'
16806
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16807
# Instead, we relocate shared libraries at runtime.
16811
# Just because we use GCC doesn't mean we suddenly get shared libraries
16812
# on systems that don't support them.
16813
lt_prog_compiler_can_build_shared_GCJ=no
16818
if test -d /usr/nec; then
16819
lt_prog_compiler_pic_GCJ=-Kconform_pic
16824
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16825
# not for PA HP-UX.
16831
lt_prog_compiler_pic_GCJ='-fPIC'
16837
lt_prog_compiler_pic_GCJ='-fPIC'
16841
# PORTME Check for flag to pass linker flags through the system compiler.
16844
lt_prog_compiler_wl_GCJ='-Wl,'
16845
if test "$host_cpu" = ia64; then
16846
# AIX 5 now supports IA64 processor
16847
lt_prog_compiler_static_GCJ='-Bstatic'
16849
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16853
# PIC is the default on this platform
16854
# Common symbols not allowed in MH_DYLIB files
16855
case $cc_basename in
16857
lt_prog_compiler_pic_GCJ='-qnocommon'
16858
lt_prog_compiler_wl_GCJ='-Wl,'
16863
mingw* | cygwin* | pw32* | os2*)
16864
# This hack is so that the source file can tell whether it is being
16865
# built for inclusion in a dll (and should export symbols for example).
16866
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16869
hpux9* | hpux10* | hpux11*)
16870
lt_prog_compiler_wl_GCJ='-Wl,'
16871
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16872
# not for PA HP-UX.
16878
lt_prog_compiler_pic_GCJ='+Z'
16881
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16882
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16885
irix5* | irix6* | nonstopux*)
16886
lt_prog_compiler_wl_GCJ='-Wl,'
16887
# PIC (with -KPIC) is the default.
16888
lt_prog_compiler_static_GCJ='-non_shared'
16892
lt_prog_compiler_pic_GCJ='-KPIC'
16893
lt_prog_compiler_static_GCJ='-Bstatic'
16896
linux* | k*bsd*-gnu)
16897
case $cc_basename in
16899
lt_prog_compiler_wl_GCJ='-Wl,'
16900
lt_prog_compiler_pic_GCJ='-KPIC'
16901
lt_prog_compiler_static_GCJ='-static'
16903
pgcc* | pgf77* | pgf90* | pgf95*)
16904
# Portland Group compilers (*not* the Pentium gcc compiler,
16905
# which looks to be a dead project)
16906
lt_prog_compiler_wl_GCJ='-Wl,'
16907
lt_prog_compiler_pic_GCJ='-fpic'
16908
lt_prog_compiler_static_GCJ='-Bstatic'
16911
lt_prog_compiler_wl_GCJ='-Wl,'
16912
# All Alpha code is PIC.
16913
lt_prog_compiler_static_GCJ='-non_shared'
16916
case `$CC -V 2>&1 | sed 5q` in
16919
lt_prog_compiler_pic_GCJ='-KPIC'
16920
lt_prog_compiler_static_GCJ='-Bstatic'
16921
lt_prog_compiler_wl_GCJ='-Wl,'
16924
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16925
lt_prog_compiler_pic_GCJ='-KPIC'
16926
lt_prog_compiler_static_GCJ='-Bstatic'
16927
lt_prog_compiler_wl_GCJ=''
16934
osf3* | osf4* | osf5*)
16935
lt_prog_compiler_wl_GCJ='-Wl,'
16936
# All OSF/1 code is PIC.
16937
lt_prog_compiler_static_GCJ='-non_shared'
16941
lt_prog_compiler_static_GCJ='-non_shared'
16945
lt_prog_compiler_pic_GCJ='-KPIC'
16946
lt_prog_compiler_static_GCJ='-Bstatic'
16947
case $cc_basename in
16948
f77* | f90* | f95*)
16949
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16951
lt_prog_compiler_wl_GCJ='-Wl,';;
16956
lt_prog_compiler_wl_GCJ='-Qoption ld '
16957
lt_prog_compiler_pic_GCJ='-PIC'
16958
lt_prog_compiler_static_GCJ='-Bstatic'
16961
sysv4 | sysv4.2uw2* | sysv4.3*)
16962
lt_prog_compiler_wl_GCJ='-Wl,'
16963
lt_prog_compiler_pic_GCJ='-KPIC'
16964
lt_prog_compiler_static_GCJ='-Bstatic'
16968
if test -d /usr/nec ;then
16969
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16970
lt_prog_compiler_static_GCJ='-Bstatic'
16974
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16975
lt_prog_compiler_wl_GCJ='-Wl,'
16976
lt_prog_compiler_pic_GCJ='-KPIC'
16977
lt_prog_compiler_static_GCJ='-Bstatic'
16981
lt_prog_compiler_wl_GCJ='-Wl,'
16982
lt_prog_compiler_can_build_shared_GCJ=no
16986
lt_prog_compiler_pic_GCJ='-pic'
16987
lt_prog_compiler_static_GCJ='-Bstatic'
16991
lt_prog_compiler_can_build_shared_GCJ=no
16996
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16997
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17000
# Check to make sure the PIC flag actually works.
17002
if test -n "$lt_prog_compiler_pic_GCJ"; then
17004
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17005
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17006
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17007
echo $ECHO_N "(cached) $ECHO_C" >&6
17009
lt_prog_compiler_pic_works_GCJ=no
17010
ac_outfile=conftest.$ac_objext
17011
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17012
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17013
# Insert the option either (1) after the last *FLAGS variable, or
17014
# (2) before a word containing "conftest.", or (3) at the end.
17015
# Note that $ac_compile itself does not contain backslashes and begins
17016
# with a dollar sign (not a hyphen), so the echo should work correctly.
17017
# The option is referenced via a variable to avoid confusing sed.
17018
lt_compile=`echo "$ac_compile" | $SED \
17019
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17020
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17021
-e 's:$: $lt_compiler_flag:'`
17022
(eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
17023
(eval "$lt_compile" 2>conftest.err)
17025
cat conftest.err >&5
17026
echo "$as_me:17026: \$? = $ac_status" >&5
17027
if (exit $ac_status) && test -s "$ac_outfile"; then
17028
# The compiler can only warn and ignore the option if not recognized
17029
# So say no if there are warnings other than the usual output.
17030
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17031
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17032
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17033
lt_prog_compiler_pic_works_GCJ=yes
17039
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17040
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17042
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17043
case $lt_prog_compiler_pic_GCJ in
17045
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17048
lt_prog_compiler_pic_GCJ=
17049
lt_prog_compiler_can_build_shared_GCJ=no
17054
# For platforms which do not support PIC, -DPIC is meaningless:
17056
lt_prog_compiler_pic_GCJ=
17059
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17064
# Check to make sure the static flag actually works.
17066
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17067
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17068
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17069
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17070
echo $ECHO_N "(cached) $ECHO_C" >&6
17072
lt_prog_compiler_static_works_GCJ=no
17073
save_LDFLAGS="$LDFLAGS"
17074
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17075
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17076
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17077
# The linker can only warn and ignore the option if not recognized
17078
# So say no if there are warnings
17079
if test -s conftest.err; then
17080
# Append any errors to the config.log.
17081
cat conftest.err 1>&5
17082
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17083
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17084
if diff conftest.exp conftest.er2 >/dev/null; then
17085
lt_prog_compiler_static_works_GCJ=yes
17088
lt_prog_compiler_static_works_GCJ=yes
17092
LDFLAGS="$save_LDFLAGS"
17095
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17096
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17098
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17101
lt_prog_compiler_static_GCJ=
17105
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17106
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17107
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17108
echo $ECHO_N "(cached) $ECHO_C" >&6
17110
lt_cv_prog_compiler_c_o_GCJ=no
17111
$rm -r conftest 2>/dev/null
17115
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
lt_compiler_flag="-o out/conftest2.$ac_objext"
17118
# Insert the option either (1) after the last *FLAGS variable, or
17119
# (2) before a word containing "conftest.", or (3) at the end.
17120
# Note that $ac_compile itself does not contain backslashes and begins
17121
# with a dollar sign (not a hyphen), so the echo should work correctly.
17122
lt_compile=`echo "$ac_compile" | $SED \
17123
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17124
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125
-e 's:$: $lt_compiler_flag:'`
17126
(eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127
(eval "$lt_compile" 2>out/conftest.err)
17129
cat out/conftest.err >&5
17130
echo "$as_me:17130: \$? = $ac_status" >&5
17131
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17133
# The compiler can only warn and ignore the option if not recognized
17134
# So say no if there are warnings
17135
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17136
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17137
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17138
lt_cv_prog_compiler_c_o_GCJ=yes
17143
# SGI C++ compiler will create directory out/ii_files/ for
17144
# template instantiation
17145
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17146
$rm out/* && rmdir out
17152
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17153
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17156
hard_links="nottested"
17157
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17158
# do not overwrite the value of need_locks provided by the user
17159
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17160
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17163
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165
ln conftest.a conftest.b 2>&5 || hard_links=no
17166
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17167
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17168
echo "${ECHO_T}$hard_links" >&6; }
17169
if test "$hard_links" = no; then
17170
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17171
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17178
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17179
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17182
allow_undefined_flag_GCJ=
17183
enable_shared_with_static_runtimes_GCJ=no
17185
archive_expsym_cmds_GCJ=
17186
old_archive_From_new_cmds_GCJ=
17187
old_archive_from_expsyms_cmds_GCJ=
17188
export_dynamic_flag_spec_GCJ=
17189
whole_archive_flag_spec_GCJ=
17190
thread_safe_flag_spec_GCJ=
17191
hardcode_libdir_flag_spec_GCJ=
17192
hardcode_libdir_flag_spec_ld_GCJ=
17193
hardcode_libdir_separator_GCJ=
17194
hardcode_direct_GCJ=no
17195
hardcode_minus_L_GCJ=no
17196
hardcode_shlibpath_var_GCJ=unsupported
17197
link_all_deplibs_GCJ=unknown
17198
hardcode_automatic_GCJ=no
17200
module_expsym_cmds_GCJ=
17201
always_export_symbols_GCJ=no
17202
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17203
# include_expsyms should be a list of space-separated symbols to be *always*
17204
# included in the symbol list
17205
include_expsyms_GCJ=
17206
# exclude_expsyms can be an extended regexp of symbols to exclude
17207
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17208
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17209
# as well as any symbol that contains `d'.
17210
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17211
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17212
# platforms (ab)use it in PIC code, but their linkers get confused if
17213
# the symbol is explicitly referenced. Since portable code cannot
17214
# rely on this symbol name, it's probably fine to never include it in
17215
# preloaded symbol tables.
17216
extract_expsyms_cmds=
17217
# Just being paranoid about ensuring that cc_basename is set.
17218
for cc_temp in $compiler""; do
17220
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17221
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17226
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17229
cygwin* | mingw* | pw32*)
17230
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17231
# When not using gcc, we currently assume that we are using
17232
# Microsoft Visual C++.
17233
if test "$GCC" != yes; then
17238
# we just hope/assume this is gcc and not c89 (= MSVC++)
17247
if test "$with_gnu_ld" = yes; then
17248
# If archive_cmds runs LD, not CC, wlarc should be empty
17251
# Set some defaults for GNU ld with shared library support. These
17252
# are reset later if shared libraries are not supported. Putting them
17253
# here allows them to be overridden if necessary.
17254
runpath_var=LD_RUN_PATH
17255
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17256
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17257
# ancient GNU ld didn't support --whole-archive et. al.
17258
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17259
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17261
whole_archive_flag_spec_GCJ=
17263
supports_anon_versioning=no
17264
case `$LD -v 2>/dev/null` in
17265
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17266
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17267
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17268
*\ 2.11.*) ;; # other 2.11 versions
17269
*) supports_anon_versioning=yes ;;
17272
# See if GNU ld supports shared libraries.
17274
aix3* | aix4* | aix5*)
17275
# On AIX/PPC, the GNU linker is very broken
17276
if test "$host_cpu" != ia64; then
17280
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17281
*** to be unable to reliably create shared libraries on AIX.
17282
*** Therefore, libtool is disabling shared libraries support. If you
17283
*** really care for shared libraries, you may want to modify your PATH
17284
*** so that a non-GNU linker is found, and then restart.
17291
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)'
17292
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17293
hardcode_minus_L_GCJ=yes
17295
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17296
# that the semantics of dynamic libraries on AmigaOS, at least up
17297
# to version 4, is to share data among multiple programs linked
17298
# with the same dynamic library. Since this doesn't match the
17299
# behavior of shared libraries on other platforms, we can't use
17305
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17306
allow_undefined_flag_GCJ=unsupported
17307
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17308
# support --undefined. This deserves some investigation. FIXME
17309
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315
cygwin* | mingw* | pw32*)
17316
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17317
# as there is no search path for DLLs.
17318
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17319
allow_undefined_flag_GCJ=unsupported
17320
always_export_symbols_GCJ=no
17321
enable_shared_with_static_runtimes_GCJ=yes
17322
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17324
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17325
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17326
# If the export-symbols file already is a .def file (1st line
17327
# is EXPORTS), use it as is; otherwise, prepend...
17328
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17329
cp $export_symbols $output_objdir/$soname.def;
17331
echo EXPORTS > $output_objdir/$soname.def;
17332
cat $export_symbols >> $output_objdir/$soname.def;
17334
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17341
hardcode_direct_GCJ=no
17342
hardcode_shlibpath_var_GCJ=no
17343
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17344
export_dynamic_flag_spec_GCJ='${wl}-E'
17345
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17346
# Instead, shared libraries are loaded at an image base (0x10000000 by
17347
# default) and relocated if they conflict, which is a slow very memory
17348
# consuming and fragmenting process. To avoid this, we pick a random,
17349
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17350
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17351
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'
17352
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'
17355
gnu* | linux* | k*bsd*-gnu)
17356
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17358
case $cc_basename,$host_cpu in
17359
pgcc*) # Portland Group C compiler
17360
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'
17361
tmp_addflag=' $pic_flag'
17363
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17364
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'
17365
tmp_addflag=' $pic_flag -Mnomain' ;;
17366
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17367
tmp_addflag=' -i_dynamic' ;;
17368
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17369
tmp_addflag=' -i_dynamic -nofor_main' ;;
17370
ifc* | ifort*) # Intel Fortran compiler
17371
tmp_addflag=' -nofor_main' ;;
17373
case `$CC -V 2>&1 | sed 5q` in
17374
*Sun\ C*) # Sun C 5.9
17375
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'
17376
tmp_sharedflag='-G' ;;
17377
*Sun\ F*) # Sun Fortran 8.3
17378
tmp_sharedflag='-G' ;;
17380
tmp_sharedflag='-shared' ;;
17382
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17384
if test $supports_anon_versioning = yes; then
17385
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17386
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17387
$echo "local: *; };" >> $output_objdir/$libname.ver~
17388
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17390
link_all_deplibs_GCJ=no
17396
netbsd* | netbsdelf*-gnu)
17397
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17398
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17401
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17402
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17407
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17411
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17412
*** create shared libraries on Solaris systems. Therefore, libtool
17413
*** is disabling shared libraries support. We urge you to upgrade GNU
17414
*** binutils to release 2.9.1 or newer. Another option is to modify
17415
*** your PATH or compiler configuration so that the native linker is
17416
*** used, and then restart.
17419
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17420
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17421
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17427
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17428
case `$LD -v 2>&1` in
17429
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17433
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17434
*** reliably create shared libraries on SCO systems. Therefore, libtool
17435
*** is disabling shared libraries support. We urge you to upgrade GNU
17436
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17437
*** your PATH or compiler configuration so that the native linker is
17438
*** used, and then restart.
17443
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17444
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17445
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17446
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17455
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17457
hardcode_direct_GCJ=yes
17458
hardcode_shlibpath_var_GCJ=no
17462
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17463
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17471
if test "$ld_shlibs_GCJ" = no; then
17473
hardcode_libdir_flag_spec_GCJ=
17474
export_dynamic_flag_spec_GCJ=
17475
whole_archive_flag_spec_GCJ=
17478
# PORTME fill in a description of your system's linker (not GNU ld)
17481
allow_undefined_flag_GCJ=unsupported
17482
always_export_symbols_GCJ=yes
17483
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'
17484
# Note: this linker hardcodes the directories in LIBPATH if there
17485
# are no directories specified by -L.
17486
hardcode_minus_L_GCJ=yes
17487
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17488
# Neither direct hardcoding nor static linking is supported with a
17490
hardcode_direct_GCJ=unsupported
17495
if test "$host_cpu" = ia64; then
17496
# On IA64, the linker does run time linking by default, so we don't
17497
# have to do anything special.
17498
aix_use_runtimelinking=no
17499
exp_sym_flag='-Bexport'
17502
# If we're using GNU nm, then we don't want the "-C" option.
17503
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17504
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17505
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'
17507
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'
17509
aix_use_runtimelinking=no
17511
# Test if we are trying to use run time linking or normal
17512
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17513
# need to do runtime linking.
17514
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17515
for ld_flag in $LDFLAGS; do
17516
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17517
aix_use_runtimelinking=yes
17524
exp_sym_flag='-bexport'
17525
no_entry_flag='-bnoentry'
17528
# When large executables or shared objects are built, AIX ld can
17529
# have problems creating the table of contents. If linking a library
17530
# or program results in "error TOC overflow" add -mminimal-toc to
17531
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17532
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17534
archive_cmds_GCJ=''
17535
hardcode_direct_GCJ=yes
17536
hardcode_libdir_separator_GCJ=':'
17537
link_all_deplibs_GCJ=yes
17539
if test "$GCC" = yes; then
17540
case $host_os in aix4.[012]|aix4.[012].*)
17541
# We only want to do this on AIX 4.2 and lower, the check
17542
# below for broken collect2 doesn't work under 4.3+
17543
collect2name=`${CC} -print-prog-name=collect2`
17544
if test -f "$collect2name" && \
17545
strings "$collect2name" | grep resolve_lib_name >/dev/null
17547
# We have reworked collect2
17550
# We have old collect2
17551
hardcode_direct_GCJ=unsupported
17552
# It fails to find uninstalled libraries when the uninstalled
17553
# path is not listed in the libpath. Setting hardcode_minus_L
17554
# to unsupported forces relinking
17555
hardcode_minus_L_GCJ=yes
17556
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557
hardcode_libdir_separator_GCJ=
17561
shared_flag='-shared'
17562
if test "$aix_use_runtimelinking" = yes; then
17563
shared_flag="$shared_flag "'${wl}-G'
17567
if test "$host_cpu" = ia64; then
17568
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17569
# chokes on -Wl,-G. The following line is correct:
17572
if test "$aix_use_runtimelinking" = yes; then
17573
shared_flag='${wl}-G'
17575
shared_flag='${wl}-bM:SRE'
17580
# It seems that -bexpall does not export symbols beginning with
17581
# underscore (_), so it is better to generate a list of symbols to export.
17582
always_export_symbols_GCJ=yes
17583
if test "$aix_use_runtimelinking" = yes; then
17584
# Warning - without using the other runtime loading flags (-brtl),
17585
# -berok will link without error, but may produce a broken library.
17586
allow_undefined_flag_GCJ='-berok'
17587
# Determine the default libpath from the value encoded in an empty executable.
17588
cat >conftest.$ac_ext <<_ACEOF
17591
cat confdefs.h >>conftest.$ac_ext
17592
cat >>conftest.$ac_ext <<_ACEOF
17593
/* end confdefs.h. */
17603
rm -f conftest.$ac_objext conftest$ac_exeext
17604
if { (ac_try="$ac_link"
17605
case "(($ac_try" in
17606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607
*) ac_try_echo=$ac_try;;
17609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610
(eval "$ac_link") 2>conftest.er1
17612
grep -v '^ *+' conftest.er1 >conftest.err
17614
cat conftest.err >&5
17615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616
(exit $ac_status); } && {
17617
test -z "$ac_c_werror_flag" ||
17618
test ! -s conftest.err
17619
} && test -s conftest$ac_exeext &&
17620
$as_test_x conftest$ac_exeext; then
17622
lt_aix_libpath_sed='
17623
/Import File Strings/,/^$/ {
17629
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17630
# Check for a 64-bit object if we didn't find anything.
17631
if test -z "$aix_libpath"; then
17632
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17635
echo "$as_me: failed program was:" >&5
17636
sed 's/^/| /' conftest.$ac_ext >&5
17641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17642
conftest$ac_exeext conftest.$ac_ext
17643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17645
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17646
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"
17648
if test "$host_cpu" = ia64; then
17649
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17650
allow_undefined_flag_GCJ="-z nodefs"
17651
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"
17653
# Determine the default libpath from the value encoded in an empty executable.
17654
cat >conftest.$ac_ext <<_ACEOF
17657
cat confdefs.h >>conftest.$ac_ext
17658
cat >>conftest.$ac_ext <<_ACEOF
17659
/* end confdefs.h. */
17669
rm -f conftest.$ac_objext conftest$ac_exeext
17670
if { (ac_try="$ac_link"
17671
case "(($ac_try" in
17672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673
*) ac_try_echo=$ac_try;;
17675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676
(eval "$ac_link") 2>conftest.er1
17678
grep -v '^ *+' conftest.er1 >conftest.err
17680
cat conftest.err >&5
17681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682
(exit $ac_status); } && {
17683
test -z "$ac_c_werror_flag" ||
17684
test ! -s conftest.err
17685
} && test -s conftest$ac_exeext &&
17686
$as_test_x conftest$ac_exeext; then
17688
lt_aix_libpath_sed='
17689
/Import File Strings/,/^$/ {
17695
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17696
# Check for a 64-bit object if we didn't find anything.
17697
if test -z "$aix_libpath"; then
17698
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17701
echo "$as_me: failed program was:" >&5
17702
sed 's/^/| /' conftest.$ac_ext >&5
17707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17708
conftest$ac_exeext conftest.$ac_ext
17709
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17711
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17712
# Warning - without using the other run time loading flags,
17713
# -berok will link without error, but may produce a broken library.
17714
no_undefined_flag_GCJ=' ${wl}-bernotok'
17715
allow_undefined_flag_GCJ=' ${wl}-berok'
17716
# Exported symbols can be pulled into shared objects from archives
17717
whole_archive_flag_spec_GCJ='$convenience'
17718
archive_cmds_need_lc_GCJ=yes
17719
# This is similar to how AIX traditionally builds its shared libraries.
17720
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'
17726
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)'
17727
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17728
hardcode_minus_L_GCJ=yes
17729
# see comment about different semantics on the GNU ld section
17734
export_dynamic_flag_spec_GCJ=-rdynamic
17737
cygwin* | mingw* | pw32*)
17738
# When not using gcc, we currently assume that we are using
17739
# Microsoft Visual C++.
17740
# hardcode_libdir_flag_spec is actually meaningless, as there is
17741
# no search path for DLLs.
17742
hardcode_libdir_flag_spec_GCJ=' '
17743
allow_undefined_flag_GCJ=unsupported
17744
# Tell ltmain to make .lib files, not .a files.
17746
# Tell ltmain to make .dll files, not .so files.
17748
# FIXME: Setting linknames here is a bad hack.
17749
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17750
# The linker will automatically build a .lib file if we build a DLL.
17751
old_archive_From_new_cmds_GCJ='true'
17752
# FIXME: Should let the user specify the lib program.
17753
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17754
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17755
enable_shared_with_static_runtimes_GCJ=yes
17758
darwin* | rhapsody*)
17760
rhapsody* | darwin1.[012])
17761
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17764
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17765
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17767
case ${MACOSX_DEPLOYMENT_TARGET} in
17769
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17772
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17778
archive_cmds_need_lc_GCJ=no
17779
hardcode_direct_GCJ=no
17780
hardcode_automatic_GCJ=yes
17781
hardcode_shlibpath_var_GCJ=unsupported
17782
whole_archive_flag_spec_GCJ=''
17783
link_all_deplibs_GCJ=yes
17784
if test "$GCC" = yes ; then
17785
output_verbose_link_cmd='echo'
17786
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17787
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17788
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17789
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17790
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}'
17792
case $cc_basename in
17794
output_verbose_link_cmd='echo'
17795
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17796
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17797
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17798
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}'
17799
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}'
17809
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17811
hardcode_shlibpath_var_GCJ=no
17818
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17819
# support. Future versions do this automatically, but an explicit c++rt0.o
17820
# does not break anything, and helps significantly (at the cost of a little
17823
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17824
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17825
hardcode_direct_GCJ=yes
17826
hardcode_shlibpath_var_GCJ=no
17829
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17831
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17832
hardcode_direct_GCJ=yes
17833
hardcode_minus_L_GCJ=yes
17834
hardcode_shlibpath_var_GCJ=no
17837
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17838
freebsd* | dragonfly*)
17839
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17840
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17841
hardcode_direct_GCJ=yes
17842
hardcode_shlibpath_var_GCJ=no
17846
if test "$GCC" = yes; then
17847
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'
17849
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'
17851
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852
hardcode_libdir_separator_GCJ=:
17853
hardcode_direct_GCJ=yes
17855
# hardcode_minus_L: Not really in the search PATH,
17856
# but as the default location of the library.
17857
hardcode_minus_L_GCJ=yes
17858
export_dynamic_flag_spec_GCJ='${wl}-E'
17862
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17863
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17867
if test "$with_gnu_ld" = no; then
17868
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17869
hardcode_libdir_separator_GCJ=:
17871
hardcode_direct_GCJ=yes
17872
export_dynamic_flag_spec_GCJ='${wl}-E'
17874
# hardcode_minus_L: Not really in the search PATH,
17875
# but as the default location of the library.
17876
hardcode_minus_L_GCJ=yes
17881
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17884
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17887
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17890
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17896
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17899
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17902
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17906
if test "$with_gnu_ld" = no; then
17907
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17908
hardcode_libdir_separator_GCJ=:
17912
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17913
hardcode_direct_GCJ=no
17914
hardcode_shlibpath_var_GCJ=no
17917
hardcode_direct_GCJ=yes
17918
export_dynamic_flag_spec_GCJ='${wl}-E'
17920
# hardcode_minus_L: Not really in the search PATH,
17921
# but as the default location of the library.
17922
hardcode_minus_L_GCJ=yes
17928
irix5* | irix6* | nonstopux*)
17929
if test "$GCC" = yes; then
17930
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'
17932
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'
17933
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17935
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17936
hardcode_libdir_separator_GCJ=:
17937
link_all_deplibs_GCJ=yes
17940
netbsd* | netbsdelf*-gnu)
17941
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17942
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17944
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17946
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17947
hardcode_direct_GCJ=yes
17948
hardcode_shlibpath_var_GCJ=no
17952
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17953
hardcode_direct_GCJ=yes
17954
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17955
hardcode_libdir_separator_GCJ=:
17956
hardcode_shlibpath_var_GCJ=no
17960
if test -f /usr/libexec/ld.so; then
17961
hardcode_direct_GCJ=yes
17962
hardcode_shlibpath_var_GCJ=no
17963
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17964
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17965
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17966
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17967
export_dynamic_flag_spec_GCJ='${wl}-E'
17970
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17971
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17972
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17976
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17986
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17987
hardcode_minus_L_GCJ=yes
17988
allow_undefined_flag_GCJ=unsupported
17989
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'
17990
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17994
if test "$GCC" = yes; then
17995
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17996
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'
17998
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17999
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'
18001
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18002
hardcode_libdir_separator_GCJ=:
18005
osf4* | osf5*) # as osf3* with the addition of -msym flag
18006
if test "$GCC" = yes; then
18007
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18008
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'
18009
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18011
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18012
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'
18013
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~
18014
$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'
18016
# Both c and cxx compiler support -rpath directly
18017
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18019
hardcode_libdir_separator_GCJ=:
18023
no_undefined_flag_GCJ=' -z text'
18024
if test "$GCC" = yes; then
18026
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18027
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18028
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18031
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18033
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18035
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18036
hardcode_shlibpath_var_GCJ=no
18038
solaris2.[0-5] | solaris2.[0-5].*) ;;
18040
# The compiler driver will combine and reorder linker options,
18041
# but understands `-z linker_flag'. GCC discards it without `$wl',
18042
# but is careful enough not to reorder.
18043
# Supported since Solaris 2.6 (maybe 2.5.1?)
18044
if test "$GCC" = yes; then
18045
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18047
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18051
link_all_deplibs_GCJ=yes
18055
if test "x$host_vendor" = xsequent; then
18056
# Use $CC to link under sequent, because it throws in some extra .o
18057
# files that make .init and .fini sections work.
18058
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18060
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18062
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18063
hardcode_direct_GCJ=yes
18064
hardcode_minus_L_GCJ=yes
18065
hardcode_shlibpath_var_GCJ=no
18069
case $host_vendor in
18071
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072
hardcode_direct_GCJ=yes # is this really true???
18075
## LD is ld it makes a PLAMLIB
18076
## CC just makes a GrossModule.
18077
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18078
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18079
hardcode_direct_GCJ=no
18082
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18083
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18086
runpath_var='LD_RUN_PATH'
18087
hardcode_shlibpath_var_GCJ=no
18091
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18092
hardcode_shlibpath_var_GCJ=no
18093
export_dynamic_flag_spec_GCJ='-Bexport'
18097
if test -d /usr/nec; then
18098
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18099
hardcode_shlibpath_var_GCJ=no
18100
runpath_var=LD_RUN_PATH
18101
hardcode_runpath_var=yes
18106
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18107
no_undefined_flag_GCJ='${wl}-z,text'
18108
archive_cmds_need_lc_GCJ=no
18109
hardcode_shlibpath_var_GCJ=no
18110
runpath_var='LD_RUN_PATH'
18112
if test "$GCC" = yes; then
18113
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18117
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18121
sysv5* | sco3.2v5* | sco5v6*)
18122
# Note: We can NOT use -z defs as we might desire, because we do not
18123
# link with -lc, and that would cause any symbols used from libc to
18124
# always be unresolved, which means just about no library would
18125
# ever link correctly. If we're not using GNU ld we use -z text
18126
# though, which does catch some bad symbols but isn't as heavy-handed
18128
no_undefined_flag_GCJ='${wl}-z,text'
18129
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18130
archive_cmds_need_lc_GCJ=no
18131
hardcode_shlibpath_var_GCJ=no
18132
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18133
hardcode_libdir_separator_GCJ=':'
18134
link_all_deplibs_GCJ=yes
18135
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18136
runpath_var='LD_RUN_PATH'
18138
if test "$GCC" = yes; then
18139
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18143
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18149
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18150
hardcode_shlibpath_var_GCJ=no
18159
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18160
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18161
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18164
# Do we need to explicitly link libc?
18166
case "x$archive_cmds_need_lc_GCJ" in
18168
# Assume -lc should be added
18169
archive_cmds_need_lc_GCJ=yes
18171
if test "$enable_shared" = yes && test "$GCC" = yes; then
18172
case $archive_cmds_GCJ in
18174
# FIXME: we may have to deal with multi-command sequences.
18177
# Test whether the compiler implicitly links with -lc since on some
18178
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18179
# to ld, don't add -lc before -lgcc.
18180
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18181
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18183
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186
(eval $ac_compile) 2>&5
18188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189
(exit $ac_status); } 2>conftest.err; then
18192
libobjs=conftest.$ac_objext
18194
wl=$lt_prog_compiler_wl_GCJ
18195
pic_flag=$lt_prog_compiler_pic_GCJ
18201
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18202
allow_undefined_flag_GCJ=
18203
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18204
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207
(exit $ac_status); }
18209
archive_cmds_need_lc_GCJ=no
18211
archive_cmds_need_lc_GCJ=yes
18213
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18215
cat conftest.err 1>&5
18218
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18219
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18226
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18227
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18228
library_names_spec=
18229
libname_spec='lib$name'
18233
postuninstall_cmds=
18237
shlibpath_overrides_runpath=unknown
18239
dynamic_linker="$host_os ld.so"
18240
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18242
need_lib_prefix=unknown
18243
hardcode_into_libs=no
18245
# when you set need_version to no, make sure it does not cause -set_version
18246
# flags to be left without arguments
18247
need_version=unknown
18252
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18253
shlibpath_var=LIBPATH
18255
# AIX 3 has no versioning support, so we append a major version to the name.
18256
soname_spec='${libname}${release}${shared_ext}$major'
18263
hardcode_into_libs=yes
18264
if test "$host_cpu" = ia64; then
18265
# AIX 5 supports IA64
18266
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18267
shlibpath_var=LD_LIBRARY_PATH
18269
# With GCC up to 2.95.x, collect2 would create an import file
18270
# for dependence libraries. The import file would start with
18271
# the line `#! .'. This would cause the generated library to
18272
# depend on `.', always an invalid library. This was fixed in
18273
# development snapshots of GCC prior to 3.0.
18275
aix4 | aix4.[01] | aix4.[01].*)
18276
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18278
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18281
can_build_shared=no
18285
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18286
# soname into executable. Probably we can add versioning support to
18287
# collect2, so additional links can be useful in future.
18288
if test "$aix_use_runtimelinking" = yes; then
18289
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18290
# instead of lib<name>.a to let people know that these are not
18291
# typical AIX shared libraries.
18292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18294
# We preserve .a as extension for shared libraries through AIX4.2
18295
# and later when we are not doing run time linking.
18296
library_names_spec='${libname}${release}.a $libname.a'
18297
soname_spec='${libname}${release}${shared_ext}$major'
18299
shlibpath_var=LIBPATH
18304
library_names_spec='$libname.ixlibrary $libname.a'
18305
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18306
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'
18310
library_names_spec='${libname}${shared_ext}'
18311
dynamic_linker="$host_os ld.so"
18312
shlibpath_var=LIBRARY_PATH
18318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18319
soname_spec='${libname}${release}${shared_ext}$major'
18320
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18321
shlibpath_var=LD_LIBRARY_PATH
18322
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18323
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18324
# the default ld.so.conf also contains /usr/contrib/lib and
18325
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18326
# libtool to hard-code these into programs
18329
cygwin* | mingw* | pw32*)
18330
version_type=windows
18335
case $GCC,$host_os in
18336
yes,cygwin* | yes,mingw* | yes,pw32*)
18337
library_names_spec='$libname.dll.a'
18338
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18339
postinstall_cmds='base_file=`basename \${file}`~
18340
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18341
dldir=$destdir/`dirname \$dlpath`~
18342
test -d \$dldir || mkdir -p \$dldir~
18343
$install_prog $dir/$dlname \$dldir/$dlname~
18344
chmod a+x \$dldir/$dlname'
18345
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18346
dlpath=$dir/\$dldll~
18348
shlibpath_overrides_runpath=yes
18352
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18353
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18354
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18357
# MinGW DLLs use traditional 'lib' prefix
18358
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18359
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18360
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18361
# It is most probably a Windows format PATH printed by
18362
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18363
# path with ; separators, and with drive letters. We can handle the
18364
# drive letters (cygwin fileutils understands them), so leave them,
18365
# especially as we might pass files found there to a mingw objdump,
18366
# which wouldn't understand a cygwinified path. Ahh.
18367
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18369
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18373
# pw32 DLLs use 'pw' prefix rather than 'lib'
18374
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18380
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18383
dynamic_linker='Win32 ld.exe'
18384
# FIXME: first we should search . and the directory the executable is in
18388
darwin* | rhapsody*)
18389
dynamic_linker="$host_os dyld"
18390
version_type=darwin
18393
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18394
soname_spec='${libname}${release}${major}$shared_ext'
18395
shlibpath_overrides_runpath=yes
18396
shlibpath_var=DYLD_LIBRARY_PATH
18397
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18399
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
shlibpath_var=LD_LIBRARY_PATH
18415
freebsd* | dragonfly*)
18416
# DragonFly does not have aout. When/if they implement a new
18417
# versioning mechanism, adjust this.
18418
if test -x /usr/bin/objformat; then
18419
objformat=`/usr/bin/objformat`
18422
freebsd[123]*) objformat=aout ;;
18423
*) objformat=elf ;;
18426
version_type=freebsd-$objformat
18427
case $version_type in
18429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18434
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18438
shlibpath_var=LD_LIBRARY_PATH
18441
shlibpath_overrides_runpath=yes
18443
freebsd3.[01]* | freebsdelf3.[01]*)
18444
shlibpath_overrides_runpath=yes
18445
hardcode_into_libs=yes
18447
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18448
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18449
shlibpath_overrides_runpath=no
18450
hardcode_into_libs=yes
18452
*) # from 4.6 on, and DragonFly
18453
shlibpath_overrides_runpath=yes
18454
hardcode_into_libs=yes
18463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18464
soname_spec='${libname}${release}${shared_ext}$major'
18465
shlibpath_var=LD_LIBRARY_PATH
18466
hardcode_into_libs=yes
18469
hpux9* | hpux10* | hpux11*)
18470
# Give a soname corresponding to the major version so that dld.sl refuses to
18471
# link against other versions.
18478
hardcode_into_libs=yes
18479
dynamic_linker="$host_os dld.so"
18480
shlibpath_var=LD_LIBRARY_PATH
18481
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483
soname_spec='${libname}${release}${shared_ext}$major'
18484
if test "X$HPUX_IA64_MODE" = X32; then
18485
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18487
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18489
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18493
hardcode_into_libs=yes
18494
dynamic_linker="$host_os dld.sl"
18495
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18496
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18498
soname_spec='${libname}${release}${shared_ext}$major'
18499
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18500
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18504
dynamic_linker="$host_os dld.sl"
18505
shlibpath_var=SHLIB_PATH
18506
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508
soname_spec='${libname}${release}${shared_ext}$major'
18511
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18512
postinstall_cmds='chmod 555 $lib'
18519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520
soname_spec='${libname}${release}${shared_ext}$major'
18521
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18522
shlibpath_var=LD_LIBRARY_PATH
18523
shlibpath_overrides_runpath=no
18524
hardcode_into_libs=yes
18527
irix5* | irix6* | nonstopux*)
18529
nonstopux*) version_type=nonstopux ;;
18531
if test "$lt_cv_prog_gnu_ld" = yes; then
18539
soname_spec='${libname}${release}${shared_ext}$major'
18540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18542
irix5* | nonstopux*)
18543
libsuff= shlibsuff=
18546
case $LD in # libtool.m4 will add one of these switches to LD
18547
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18548
libsuff= shlibsuff= libmagic=32-bit;;
18549
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18550
libsuff=32 shlibsuff=N32 libmagic=N32;;
18551
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18552
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18553
*) libsuff= shlibsuff= libmagic=never-match;;
18557
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18558
shlibpath_overrides_runpath=no
18559
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18560
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18561
hardcode_into_libs=yes
18564
# No shared lib support for Linux oldld, aout, or coff.
18565
linux*oldld* | linux*aout* | linux*coff*)
18569
# This must be Linux ELF.
18570
linux* | k*bsd*-gnu)
18574
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18575
soname_spec='${libname}${release}${shared_ext}$major'
18576
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18577
shlibpath_var=LD_LIBRARY_PATH
18578
shlibpath_overrides_runpath=no
18579
# This implies no fast_install, which is unacceptable.
18580
# Some rework will be needed to allow for fast_install
18581
# before this can be enabled.
18582
hardcode_into_libs=yes
18584
# Append ld.so.conf contents to the search path
18585
if test -f /etc/ld.so.conf; then
18586
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' ' '`
18587
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18590
# We used to test for /lib/ld.so.1 and disable shared libraries on
18591
# powerpc, because MkLinux only supported shared libraries with the
18592
# GNU dynamic linker. Since this was broken with cross compilers,
18593
# most powerpc-linux boxes support dynamic linking these days and
18594
# people can always --disable-shared, the test was removed, and we
18595
# assume the GNU/Linux dynamic linker is in use.
18596
dynamic_linker='GNU/Linux ld.so'
18603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18604
soname_spec='${libname}${release}${shared_ext}$major'
18605
shlibpath_var=LD_LIBRARY_PATH
18606
shlibpath_overrides_runpath=no
18607
hardcode_into_libs=yes
18608
dynamic_linker='NetBSD ld.elf_so'
18615
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18617
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18618
dynamic_linker='NetBSD (a.out) ld.so'
18620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18621
soname_spec='${libname}${release}${shared_ext}$major'
18622
dynamic_linker='NetBSD ld.elf_so'
18624
shlibpath_var=LD_LIBRARY_PATH
18625
shlibpath_overrides_runpath=yes
18626
hardcode_into_libs=yes
18631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632
shlibpath_var=LD_LIBRARY_PATH
18633
shlibpath_overrides_runpath=yes
18640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641
soname_spec='${libname}${release}${shared_ext}$major'
18642
shlibpath_var=LD_LIBRARY_PATH
18643
shlibpath_overrides_runpath=yes
18648
sys_lib_dlsearch_path_spec="/usr/lib"
18650
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18652
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18653
*) need_version=no ;;
18655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18656
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18657
shlibpath_var=LD_LIBRARY_PATH
18658
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18660
openbsd2.[89] | openbsd2.[89].*)
18661
shlibpath_overrides_runpath=no
18664
shlibpath_overrides_runpath=yes
18668
shlibpath_overrides_runpath=yes
18673
libname_spec='$name'
18676
library_names_spec='$libname${shared_ext} $libname.a'
18677
dynamic_linker='OS/2 ld.exe'
18678
shlibpath_var=LIBPATH
18681
osf3* | osf4* | osf5*)
18685
soname_spec='${libname}${release}${shared_ext}$major'
18686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687
shlibpath_var=LD_LIBRARY_PATH
18688
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18689
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18701
soname_spec='${libname}${release}${shared_ext}$major'
18702
shlibpath_var=LD_LIBRARY_PATH
18703
shlibpath_overrides_runpath=yes
18704
hardcode_into_libs=yes
18705
# ldd complains unless libraries are executable
18706
postinstall_cmds='chmod +x $lib'
18711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18712
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18713
shlibpath_var=LD_LIBRARY_PATH
18714
shlibpath_overrides_runpath=yes
18715
if test "$with_gnu_ld" = yes; then
18723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724
soname_spec='${libname}${release}${shared_ext}$major'
18725
shlibpath_var=LD_LIBRARY_PATH
18726
case $host_vendor in
18728
shlibpath_overrides_runpath=no
18730
export_dynamic_flag_spec='${wl}-Blargedynsym'
18731
runpath_var=LD_RUN_PATH
18739
shlibpath_overrides_runpath=no
18740
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18746
if test -d /usr/nec ;then
18748
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18749
soname_spec='$libname${shared_ext}.$major'
18750
shlibpath_var=LD_LIBRARY_PATH
18754
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18755
version_type=freebsd-elf
18758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18759
soname_spec='${libname}${release}${shared_ext}$major'
18760
shlibpath_var=LD_LIBRARY_PATH
18761
hardcode_into_libs=yes
18762
if test "$with_gnu_ld" = yes; then
18763
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18764
shlibpath_overrides_runpath=no
18766
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18767
shlibpath_overrides_runpath=yes
18770
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18774
sys_lib_dlsearch_path_spec='/usr/lib'
18779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780
soname_spec='${libname}${release}${shared_ext}$major'
18781
shlibpath_var=LD_LIBRARY_PATH
18788
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18789
echo "${ECHO_T}$dynamic_linker" >&6; }
18790
test "$dynamic_linker" = no && can_build_shared=no
18792
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18793
if test "$GCC" = yes; then
18794
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18797
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18798
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18799
hardcode_action_GCJ=
18800
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18801
test -n "$runpath_var_GCJ" || \
18802
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18804
# We can hardcode non-existant directories.
18805
if test "$hardcode_direct_GCJ" != no &&
18806
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18807
# have to relink, otherwise we might link with an installed library
18808
# when we should be linking with a yet-to-be-installed one
18809
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18810
test "$hardcode_minus_L_GCJ" != no; then
18811
# Linking always hardcodes the temporary library directory.
18812
hardcode_action_GCJ=relink
18814
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18815
hardcode_action_GCJ=immediate
18818
# We cannot hardcode anything, or else we can only hardcode existing
18820
hardcode_action_GCJ=unsupported
18822
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18823
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18825
if test "$hardcode_action_GCJ" = relink; then
18826
# Fast installation is not supported
18827
enable_fast_install=no
18828
elif test "$shlibpath_overrides_runpath" = yes ||
18829
test "$enable_shared" = no; then
18830
# Fast installation is not necessary
18831
enable_fast_install=needless
18835
# The else clause should only fire when bootstrapping the
18836
# libtool distribution, otherwise you forgot to ship ltmain.sh
18837
# with your package, and you will get complaints that there are
18838
# no rules to generate ltmain.sh.
18839
if test -f "$ltmain"; then
18840
# See if we are running on zsh, and set the options which allow our commands through
18841
# without removal of \ escapes.
18842
if test -n "${ZSH_VERSION+set}" ; then
18843
setopt NO_GLOB_SUBST
18845
# Now quote all the things that may contain metacharacters while being
18846
# careful not to overquote the AC_SUBSTed values. We take copies of the
18847
# variables and quote the copies for generation of the libtool script.
18848
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18850
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18851
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18852
deplibs_check_method reload_flag reload_cmds need_locks \
18853
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18854
lt_cv_sys_global_symbol_to_c_name_address \
18855
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18856
old_postinstall_cmds old_postuninstall_cmds \
18860
lt_prog_compiler_wl_GCJ \
18861
lt_prog_compiler_pic_GCJ \
18862
lt_prog_compiler_static_GCJ \
18863
lt_prog_compiler_no_builtin_flag_GCJ \
18864
export_dynamic_flag_spec_GCJ \
18865
thread_safe_flag_spec_GCJ \
18866
whole_archive_flag_spec_GCJ \
18867
enable_shared_with_static_runtimes_GCJ \
18868
old_archive_cmds_GCJ \
18869
old_archive_from_new_cmds_GCJ \
18870
predep_objects_GCJ \
18871
postdep_objects_GCJ \
18874
compiler_lib_search_path_GCJ \
18876
archive_expsym_cmds_GCJ \
18877
postinstall_cmds_GCJ \
18878
postuninstall_cmds_GCJ \
18879
old_archive_from_expsyms_cmds_GCJ \
18880
allow_undefined_flag_GCJ \
18881
no_undefined_flag_GCJ \
18882
export_symbols_cmds_GCJ \
18883
hardcode_libdir_flag_spec_GCJ \
18884
hardcode_libdir_flag_spec_ld_GCJ \
18885
hardcode_libdir_separator_GCJ \
18886
hardcode_automatic_GCJ \
18888
module_expsym_cmds_GCJ \
18889
lt_cv_prog_compiler_c_o_GCJ \
18890
fix_srcfile_path_GCJ \
18891
exclude_expsyms_GCJ \
18892
include_expsyms_GCJ; do
18895
old_archive_cmds_GCJ | \
18896
old_archive_from_new_cmds_GCJ | \
18897
archive_cmds_GCJ | \
18898
archive_expsym_cmds_GCJ | \
18899
module_cmds_GCJ | \
18900
module_expsym_cmds_GCJ | \
18901
old_archive_from_expsyms_cmds_GCJ | \
18902
export_symbols_cmds_GCJ | \
18903
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18904
postinstall_cmds | postuninstall_cmds | \
18905
old_postinstall_cmds | old_postuninstall_cmds | \
18906
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18907
# Double-quote double-evaled strings.
18908
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18911
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18917
*'\$0 --fallback-echo"')
18918
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18924
cat <<__EOF__ >> "$cfgfile"
18925
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18927
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18929
# Shell to use when invoking shell scripts.
18932
# Whether or not to build shared libraries.
18933
build_libtool_libs=$enable_shared
18935
# Whether or not to build static libraries.
18936
build_old_libs=$enable_static
18938
# Whether or not to add -lc for building shared libraries.
18939
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18941
# Whether or not to disallow shared libs when runtime libs are static
18942
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18944
# Whether or not to optimize for fast installation.
18945
fast_install=$enable_fast_install
18948
host_alias=$host_alias
18952
# The build system.
18953
build_alias=$build_alias
18957
# An echo program that does not interpret backslashes.
18962
AR_FLAGS=$lt_AR_FLAGS
18967
# LTCC compiler flags.
18968
LTCFLAGS=$lt_LTCFLAGS
18970
# A language-specific compiler.
18971
CC=$lt_compiler_GCJ
18973
# Is the compiler the GNU C compiler?
18979
# The linker used to build libraries.
18982
# Whether we need hard or soft links.
18985
# A BSD-compatible nm program.
18988
# A symbol stripping program
18991
# Used to examine libraries when file_magic_cmd begins "file"
18992
MAGIC_CMD=$MAGIC_CMD
18994
# Used on cygwin: DLL creation program.
18997
# Used on cygwin: object dumper.
19000
# Used on cygwin: assembler.
19003
# The name of the directory that contains temporary libtool files.
19006
# How to create reloadable object files.
19007
reload_flag=$lt_reload_flag
19008
reload_cmds=$lt_reload_cmds
19010
# How to pass a linker flag through the compiler.
19011
wl=$lt_lt_prog_compiler_wl_GCJ
19013
# Object file suffix (normally "o").
19014
objext="$ac_objext"
19016
# Old archive suffix (normally "a").
19019
# Shared library suffix (normally ".so").
19020
shrext_cmds='$shrext_cmds'
19022
# Executable file suffix (normally "").
19025
# Additional compiler flags for building library objects.
19026
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19029
# What is the maximum length of a command?
19030
max_cmd_len=$lt_cv_sys_max_cmd_len
19032
# Does compiler simultaneously support -c and -o options?
19033
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19035
# Must we lock files when doing compilation?
19036
need_locks=$lt_need_locks
19038
# Do we need the lib prefix for modules?
19039
need_lib_prefix=$need_lib_prefix
19041
# Do we need a version for libraries?
19042
need_version=$need_version
19044
# Whether dlopen is supported.
19045
dlopen_support=$enable_dlopen
19047
# Whether dlopen of programs is supported.
19048
dlopen_self=$enable_dlopen_self
19050
# Whether dlopen of statically linked programs is supported.
19051
dlopen_self_static=$enable_dlopen_self_static
19053
# Compiler flag to prevent dynamic linking.
19054
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19056
# Compiler flag to turn off builtin functions.
19057
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19059
# Compiler flag to allow reflexive dlopens.
19060
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19062
# Compiler flag to generate shared objects directly from archives.
19063
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19065
# Compiler flag to generate thread-safe objects.
19066
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19068
# Library versioning type.
19069
version_type=$version_type
19071
# Format of library name prefix.
19072
libname_spec=$lt_libname_spec
19074
# List of archive names. First name is the real one, the rest are links.
19075
# The last name is the one that the linker finds with -lNAME.
19076
library_names_spec=$lt_library_names_spec
19078
# The coded name of the library, if different from the real name.
19079
soname_spec=$lt_soname_spec
19081
# Commands used to build and install an old-style archive.
19083
old_archive_cmds=$lt_old_archive_cmds_GCJ
19084
old_postinstall_cmds=$lt_old_postinstall_cmds
19085
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19087
# Create an old-style archive from a shared archive.
19088
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19090
# Create a temporary old-style archive to link instead of a shared archive.
19091
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19093
# Commands used to build and install a shared archive.
19094
archive_cmds=$lt_archive_cmds_GCJ
19095
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19096
postinstall_cmds=$lt_postinstall_cmds
19097
postuninstall_cmds=$lt_postuninstall_cmds
19099
# Commands used to build a loadable module (assumed same as above if empty)
19100
module_cmds=$lt_module_cmds_GCJ
19101
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19103
# Commands to strip libraries.
19104
old_striplib=$lt_old_striplib
19105
striplib=$lt_striplib
19107
# Dependencies to place before the objects being linked to create a
19109
predep_objects=$lt_predep_objects_GCJ
19111
# Dependencies to place after the objects being linked to create a
19113
postdep_objects=$lt_postdep_objects_GCJ
19115
# Dependencies to place before the objects being linked to create a
19117
predeps=$lt_predeps_GCJ
19119
# Dependencies to place after the objects being linked to create a
19121
postdeps=$lt_postdeps_GCJ
19123
# The library search path used internally by the compiler when linking
19124
# a shared library.
19125
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19127
# Method to check whether dependent libraries are shared objects.
19128
deplibs_check_method=$lt_deplibs_check_method
19130
# Command to use when deplibs_check_method == file_magic.
19131
file_magic_cmd=$lt_file_magic_cmd
19133
# Flag that allows shared libraries with undefined symbols to be built.
19134
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19136
# Flag that forces no undefined symbols.
19137
no_undefined_flag=$lt_no_undefined_flag_GCJ
19139
# Commands used to finish a libtool library installation in a directory.
19140
finish_cmds=$lt_finish_cmds
19142
# Same as above, but a single script fragment to be evaled but not shown.
19143
finish_eval=$lt_finish_eval
19145
# Take the output of nm and produce a listing of raw symbols and C names.
19146
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19148
# Transform the output of nm in a proper C declaration
19149
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19151
# Transform the output of nm in a C name address pair
19152
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19154
# This is the shared library runtime path variable.
19155
runpath_var=$runpath_var
19157
# This is the shared library path variable.
19158
shlibpath_var=$shlibpath_var
19160
# Is shlibpath searched before the hard-coded library search path?
19161
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19163
# How to hardcode a shared library path into an executable.
19164
hardcode_action=$hardcode_action_GCJ
19166
# Whether we should hardcode library paths into libraries.
19167
hardcode_into_libs=$hardcode_into_libs
19169
# Flag to hardcode \$libdir into a binary during linking.
19170
# This must work even if \$libdir does not exist.
19171
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19173
# If ld is used when linking, flag to hardcode \$libdir into
19174
# a binary during linking. This must work even if \$libdir does
19176
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19178
# Whether we need a single -rpath flag with a separated argument.
19179
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19181
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19182
# resulting binary.
19183
hardcode_direct=$hardcode_direct_GCJ
19185
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19186
# resulting binary.
19187
hardcode_minus_L=$hardcode_minus_L_GCJ
19189
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19190
# the resulting binary.
19191
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19193
# Set to yes if building a shared library automatically hardcodes DIR into the library
19194
# and all subsequent libraries and executables linked against it.
19195
hardcode_automatic=$hardcode_automatic_GCJ
19197
# Variables whose values should be saved in libtool wrapper scripts and
19198
# restored at relink time.
19199
variables_saved_for_relink="$variables_saved_for_relink"
19201
# Whether libtool must link a program against all its dependency libraries.
19202
link_all_deplibs=$link_all_deplibs_GCJ
19204
# Compile-time system search path for libraries
19205
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19207
# Run-time system search path for libraries
19208
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19210
# Fix the shell variable \$srcfile for the compiler.
19211
fix_srcfile_path=$lt_fix_srcfile_path
19213
# Set to yes if exported symbols are required.
19214
always_export_symbols=$always_export_symbols_GCJ
19216
# The commands to list exported symbols.
19217
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19219
# The commands to extract the exported symbol list from a shared archive.
19220
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19222
# Symbols that should not be listed in the preloaded symbols.
19223
exclude_expsyms=$lt_exclude_expsyms_GCJ
19225
# Symbols that must always be exported.
19226
include_expsyms=$lt_include_expsyms_GCJ
19228
# ### END LIBTOOL TAG CONFIG: $tagname
19234
# If there is no Makefile yet, we rely on a make rule to execute
19235
# `config.status --recheck' to rerun these tests and create the
19236
# libtool script then.
19237
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19238
if test -f "$ltmain_in"; then
19239
test -f Makefile && make "$ltmain"
19245
ac_cpp='$CPP $CPPFLAGS'
19246
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19260
# Source file extension for RC test sources.
19263
# Object file extension for compiled RC test sources.
19267
# Code to be used in simple compile tests
19268
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19270
# Code to be used in simple link tests
19271
lt_simple_link_test_code="$lt_simple_compile_test_code"
19273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19275
# If no C compiler was specified, use CC.
19278
# If no C compiler flags were specified, use CFLAGS.
19279
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19281
# Allow CC to be a program name with arguments.
19285
# save warnings/boilerplate of simple test code
19286
ac_outfile=conftest.$ac_objext
19287
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19288
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19289
_lt_compiler_boilerplate=`cat conftest.err`
19292
ac_outfile=conftest.$ac_objext
19293
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19294
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19295
_lt_linker_boilerplate=`cat conftest.err`
19299
# Allow CC to be a program name with arguments.
19304
for cc_temp in $compiler""; do
19306
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19307
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19312
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19314
lt_cv_prog_compiler_c_o_RC=yes
19316
# The else clause should only fire when bootstrapping the
19317
# libtool distribution, otherwise you forgot to ship ltmain.sh
19318
# with your package, and you will get complaints that there are
19319
# no rules to generate ltmain.sh.
19320
if test -f "$ltmain"; then
19321
# See if we are running on zsh, and set the options which allow our commands through
19322
# without removal of \ escapes.
19323
if test -n "${ZSH_VERSION+set}" ; then
19324
setopt NO_GLOB_SUBST
19326
# Now quote all the things that may contain metacharacters while being
19327
# careful not to overquote the AC_SUBSTed values. We take copies of the
19328
# variables and quote the copies for generation of the libtool script.
19329
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19331
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19332
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19333
deplibs_check_method reload_flag reload_cmds need_locks \
19334
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19335
lt_cv_sys_global_symbol_to_c_name_address \
19336
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19337
old_postinstall_cmds old_postuninstall_cmds \
19341
lt_prog_compiler_wl_RC \
19342
lt_prog_compiler_pic_RC \
19343
lt_prog_compiler_static_RC \
19344
lt_prog_compiler_no_builtin_flag_RC \
19345
export_dynamic_flag_spec_RC \
19346
thread_safe_flag_spec_RC \
19347
whole_archive_flag_spec_RC \
19348
enable_shared_with_static_runtimes_RC \
19349
old_archive_cmds_RC \
19350
old_archive_from_new_cmds_RC \
19351
predep_objects_RC \
19352
postdep_objects_RC \
19355
compiler_lib_search_path_RC \
19357
archive_expsym_cmds_RC \
19358
postinstall_cmds_RC \
19359
postuninstall_cmds_RC \
19360
old_archive_from_expsyms_cmds_RC \
19361
allow_undefined_flag_RC \
19362
no_undefined_flag_RC \
19363
export_symbols_cmds_RC \
19364
hardcode_libdir_flag_spec_RC \
19365
hardcode_libdir_flag_spec_ld_RC \
19366
hardcode_libdir_separator_RC \
19367
hardcode_automatic_RC \
19369
module_expsym_cmds_RC \
19370
lt_cv_prog_compiler_c_o_RC \
19371
fix_srcfile_path_RC \
19372
exclude_expsyms_RC \
19373
include_expsyms_RC; do
19376
old_archive_cmds_RC | \
19377
old_archive_from_new_cmds_RC | \
19378
archive_cmds_RC | \
19379
archive_expsym_cmds_RC | \
19381
module_expsym_cmds_RC | \
19382
old_archive_from_expsyms_cmds_RC | \
19383
export_symbols_cmds_RC | \
19384
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19385
postinstall_cmds | postuninstall_cmds | \
19386
old_postinstall_cmds | old_postuninstall_cmds | \
19387
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19388
# Double-quote double-evaled strings.
19389
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19392
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19398
*'\$0 --fallback-echo"')
19399
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19405
cat <<__EOF__ >> "$cfgfile"
19406
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19408
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19410
# Shell to use when invoking shell scripts.
19413
# Whether or not to build shared libraries.
19414
build_libtool_libs=$enable_shared
19416
# Whether or not to build static libraries.
19417
build_old_libs=$enable_static
19419
# Whether or not to add -lc for building shared libraries.
19420
build_libtool_need_lc=$archive_cmds_need_lc_RC
19422
# Whether or not to disallow shared libs when runtime libs are static
19423
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19425
# Whether or not to optimize for fast installation.
19426
fast_install=$enable_fast_install
19429
host_alias=$host_alias
19433
# The build system.
19434
build_alias=$build_alias
19438
# An echo program that does not interpret backslashes.
19443
AR_FLAGS=$lt_AR_FLAGS
19448
# LTCC compiler flags.
19449
LTCFLAGS=$lt_LTCFLAGS
19451
# A language-specific compiler.
19454
# Is the compiler the GNU C compiler?
19460
# The linker used to build libraries.
19463
# Whether we need hard or soft links.
19466
# A BSD-compatible nm program.
19469
# A symbol stripping program
19472
# Used to examine libraries when file_magic_cmd begins "file"
19473
MAGIC_CMD=$MAGIC_CMD
19475
# Used on cygwin: DLL creation program.
19478
# Used on cygwin: object dumper.
19481
# Used on cygwin: assembler.
19484
# The name of the directory that contains temporary libtool files.
19487
# How to create reloadable object files.
19488
reload_flag=$lt_reload_flag
19489
reload_cmds=$lt_reload_cmds
19491
# How to pass a linker flag through the compiler.
19492
wl=$lt_lt_prog_compiler_wl_RC
19494
# Object file suffix (normally "o").
19495
objext="$ac_objext"
19497
# Old archive suffix (normally "a").
19500
# Shared library suffix (normally ".so").
19501
shrext_cmds='$shrext_cmds'
19503
# Executable file suffix (normally "").
19506
# Additional compiler flags for building library objects.
19507
pic_flag=$lt_lt_prog_compiler_pic_RC
19510
# What is the maximum length of a command?
19511
max_cmd_len=$lt_cv_sys_max_cmd_len
19513
# Does compiler simultaneously support -c and -o options?
19514
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19516
# Must we lock files when doing compilation?
19517
need_locks=$lt_need_locks
19519
# Do we need the lib prefix for modules?
19520
need_lib_prefix=$need_lib_prefix
19522
# Do we need a version for libraries?
19523
need_version=$need_version
19525
# Whether dlopen is supported.
19526
dlopen_support=$enable_dlopen
19528
# Whether dlopen of programs is supported.
19529
dlopen_self=$enable_dlopen_self
19531
# Whether dlopen of statically linked programs is supported.
19532
dlopen_self_static=$enable_dlopen_self_static
19534
# Compiler flag to prevent dynamic linking.
19535
link_static_flag=$lt_lt_prog_compiler_static_RC
19537
# Compiler flag to turn off builtin functions.
19538
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19540
# Compiler flag to allow reflexive dlopens.
19541
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19543
# Compiler flag to generate shared objects directly from archives.
19544
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19546
# Compiler flag to generate thread-safe objects.
19547
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19549
# Library versioning type.
19550
version_type=$version_type
19552
# Format of library name prefix.
19553
libname_spec=$lt_libname_spec
19555
# List of archive names. First name is the real one, the rest are links.
19556
# The last name is the one that the linker finds with -lNAME.
19557
library_names_spec=$lt_library_names_spec
19559
# The coded name of the library, if different from the real name.
19560
soname_spec=$lt_soname_spec
19562
# Commands used to build and install an old-style archive.
19564
old_archive_cmds=$lt_old_archive_cmds_RC
19565
old_postinstall_cmds=$lt_old_postinstall_cmds
19566
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19568
# Create an old-style archive from a shared archive.
19569
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19571
# Create a temporary old-style archive to link instead of a shared archive.
19572
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19574
# Commands used to build and install a shared archive.
19575
archive_cmds=$lt_archive_cmds_RC
19576
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19577
postinstall_cmds=$lt_postinstall_cmds
19578
postuninstall_cmds=$lt_postuninstall_cmds
19580
# Commands used to build a loadable module (assumed same as above if empty)
19581
module_cmds=$lt_module_cmds_RC
19582
module_expsym_cmds=$lt_module_expsym_cmds_RC
19584
# Commands to strip libraries.
19585
old_striplib=$lt_old_striplib
19586
striplib=$lt_striplib
19588
# Dependencies to place before the objects being linked to create a
19590
predep_objects=$lt_predep_objects_RC
19592
# Dependencies to place after the objects being linked to create a
19594
postdep_objects=$lt_postdep_objects_RC
19596
# Dependencies to place before the objects being linked to create a
19598
predeps=$lt_predeps_RC
19600
# Dependencies to place after the objects being linked to create a
19602
postdeps=$lt_postdeps_RC
19604
# The library search path used internally by the compiler when linking
19605
# a shared library.
19606
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19608
# Method to check whether dependent libraries are shared objects.
19609
deplibs_check_method=$lt_deplibs_check_method
19611
# Command to use when deplibs_check_method == file_magic.
19612
file_magic_cmd=$lt_file_magic_cmd
19614
# Flag that allows shared libraries with undefined symbols to be built.
19615
allow_undefined_flag=$lt_allow_undefined_flag_RC
19617
# Flag that forces no undefined symbols.
19618
no_undefined_flag=$lt_no_undefined_flag_RC
19620
# Commands used to finish a libtool library installation in a directory.
19621
finish_cmds=$lt_finish_cmds
19623
# Same as above, but a single script fragment to be evaled but not shown.
19624
finish_eval=$lt_finish_eval
19626
# Take the output of nm and produce a listing of raw symbols and C names.
19627
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19629
# Transform the output of nm in a proper C declaration
19630
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19632
# Transform the output of nm in a C name address pair
19633
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19635
# This is the shared library runtime path variable.
19636
runpath_var=$runpath_var
19638
# This is the shared library path variable.
19639
shlibpath_var=$shlibpath_var
19641
# Is shlibpath searched before the hard-coded library search path?
19642
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19644
# How to hardcode a shared library path into an executable.
19645
hardcode_action=$hardcode_action_RC
19647
# Whether we should hardcode library paths into libraries.
19648
hardcode_into_libs=$hardcode_into_libs
19650
# Flag to hardcode \$libdir into a binary during linking.
19651
# This must work even if \$libdir does not exist.
19652
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19654
# If ld is used when linking, flag to hardcode \$libdir into
19655
# a binary during linking. This must work even if \$libdir does
19657
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19659
# Whether we need a single -rpath flag with a separated argument.
19660
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19662
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19663
# resulting binary.
19664
hardcode_direct=$hardcode_direct_RC
19666
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19667
# resulting binary.
19668
hardcode_minus_L=$hardcode_minus_L_RC
19670
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19671
# the resulting binary.
19672
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19674
# Set to yes if building a shared library automatically hardcodes DIR into the library
19675
# and all subsequent libraries and executables linked against it.
19676
hardcode_automatic=$hardcode_automatic_RC
19678
# Variables whose values should be saved in libtool wrapper scripts and
19679
# restored at relink time.
19680
variables_saved_for_relink="$variables_saved_for_relink"
19682
# Whether libtool must link a program against all its dependency libraries.
19683
link_all_deplibs=$link_all_deplibs_RC
19685
# Compile-time system search path for libraries
19686
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19688
# Run-time system search path for libraries
19689
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19691
# Fix the shell variable \$srcfile for the compiler.
19692
fix_srcfile_path=$lt_fix_srcfile_path
19694
# Set to yes if exported symbols are required.
19695
always_export_symbols=$always_export_symbols_RC
19697
# The commands to list exported symbols.
19698
export_symbols_cmds=$lt_export_symbols_cmds_RC
19700
# The commands to extract the exported symbol list from a shared archive.
19701
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19703
# Symbols that should not be listed in the preloaded symbols.
19704
exclude_expsyms=$lt_exclude_expsyms_RC
19706
# Symbols that must always be exported.
19707
include_expsyms=$lt_include_expsyms_RC
19709
# ### END LIBTOOL TAG CONFIG: $tagname
19715
# If there is no Makefile yet, we rely on a make rule to execute
19716
# `config.status --recheck' to rerun these tests and create the
19717
# libtool script then.
19718
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19719
if test -f "$ltmain_in"; then
19720
test -f Makefile && make "$ltmain"
19726
ac_cpp='$CPP $CPPFLAGS'
19727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19736
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19737
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19738
{ (exit 1); exit 1; }; }
19742
# Append the new tag name to the list of available tags.
19743
if test -n "$tagname" ; then
19744
available_tags="$available_tags $tagname"
19750
# Now substitute the updated list of available tags.
19751
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19752
mv "${ofile}T" "$ofile"
19756
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19757
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19758
{ (exit 1); exit 1; }; }
19764
# This can be used to rebuild libtool when needed
19765
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19767
# Always use our own libtool.
19768
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19770
# Prevent multiple expansion
11365
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11366
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11367
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11368
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11369
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11370
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11371
$as_echo "yes" >&6; }
11373
# FIXME - insert some real tests, host_os isn't really good enough
11376
if test -n "$STRIP" ; then
11377
striplib="$STRIP -x"
11378
old_striplib="$STRIP -S"
11379
{ $as_echo "$as_me:$LINENO: result: yes" >&5
11380
$as_echo "yes" >&6; }
11382
{ $as_echo "$as_me:$LINENO: result: no" >&5
11383
$as_echo "no" >&6; }
11387
{ $as_echo "$as_me:$LINENO: result: no" >&5
11388
$as_echo "no" >&6; }
11404
# Report which library types will actually be built
11405
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11406
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11407
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11408
$as_echo "$can_build_shared" >&6; }
11410
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11411
$as_echo_n "checking whether to build shared libraries... " >&6; }
11412
test "$can_build_shared" = "no" && enable_shared=no
11414
# On AIX, shared libraries and static libraries use the same namespace, and
11415
# are all built from PIC.
11418
test "$enable_shared" = yes && enable_static=no
11419
if test -n "$RANLIB"; then
11420
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11421
postinstall_cmds='$RANLIB $lib'
11426
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11427
test "$enable_shared" = yes && enable_static=no
11431
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11432
$as_echo "$enable_shared" >&6; }
11434
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11435
$as_echo_n "checking whether to build static libraries... " >&6; }
11436
# Make sure either enable_shared or enable_static is yes.
11437
test "$enable_shared" = yes || enable_static=yes
11438
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11439
$as_echo "$enable_static" >&6; }
11446
ac_cpp='$CPP $CPPFLAGS'
11447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11465
ac_config_commands="$ac_config_commands libtool"
11470
# Only expand once:
11474
# Whether linker support --version-script option
11475
echo '{global:hello; local:*;};' > conftest.ver
11476
{ $as_echo "$as_me:$LINENO: checking whether linker supports -version-script" >&5
11477
$as_echo_n "checking whether linker supports -version-script... " >&6; }
11478
if test "${datrie_cv_have_version_script+set}" = set; then
11479
$as_echo_n "(cached) " >&6
11481
datrie_cv_have_version_script=no
11482
save_LDFLAGS="$LDFLAGS"
11483
LDFLAGS="$LDFLAGS -Wl,-version-script -Wl,conftest.ver"
11484
echo "$lt_simple_link_test_code" > conftest.$ac_ext
11485
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11486
# The linker can only warn and ignore the option if not recognized
11487
# So say no if there are warnings
11488
if test -s conftest.err; then
11489
# Append any errors to the config.log.
11490
cat conftest.err 1>&5
11491
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11492
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11493
if diff conftest.exp conftest.er2 >/dev/null; then
11494
datrie_cv_have_version_script=yes
11497
datrie_cv_have_version_script=yes
11501
LDFLAGS="$save_LDFLAGS"
11504
{ $as_echo "$as_me:$LINENO: result: $datrie_cv_have_version_script" >&5
11505
$as_echo "$datrie_cv_have_version_script" >&6; }
11507
if test x"$datrie_cv_have_version_script" = xyes; then
11514
if test "$datrie_cv_have_version_script" = "yes"; then
11515
LD_HAS_VERSION_SCRIPT_TRUE=
11516
LD_HAS_VERSION_SCRIPT_FALSE='#'
11518
LD_HAS_VERSION_SCRIPT_TRUE='#'
11519
LD_HAS_VERSION_SCRIPT_FALSE=
19792
11523
# Checks for libraries.
11529
# Check in the C library first
11530
{ $as_echo "$as_me:$LINENO: checking for iconv_open" >&5
11531
$as_echo_n "checking for iconv_open... " >&6; }
11532
if test "${ac_cv_func_iconv_open+set}" = set; then
11533
$as_echo_n "(cached) " >&6
11535
cat >conftest.$ac_ext <<_ACEOF
11538
cat confdefs.h >>conftest.$ac_ext
11539
cat >>conftest.$ac_ext <<_ACEOF
11540
/* end confdefs.h. */
11541
/* Define iconv_open to an innocuous variant, in case <limits.h> declares iconv_open.
11542
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11543
#define iconv_open innocuous_iconv_open
11545
/* System header to define __stub macros and hopefully few prototypes,
11546
which can conflict with char iconv_open (); below.
11547
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11548
<limits.h> exists even on freestanding compilers. */
11551
# include <limits.h>
11553
# include <assert.h>
11558
/* Override any GCC internal prototype to avoid an error.
11559
Use char because int might match the return type of a GCC
11560
builtin and then its argument prototype would still apply. */
11564
char iconv_open ();
11565
/* The GNU C library defines this for functions which it implements
11566
to always fail with ENOSYS. Some functions are actually named
11567
something starting with __ and the normal name is an alias. */
11568
#if defined __stub_iconv_open || defined __stub___iconv_open
11575
return iconv_open ();
11580
rm -f conftest.$ac_objext conftest$ac_exeext
11581
if { (ac_try="$ac_link"
11582
case "(($ac_try" in
11583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584
*) ac_try_echo=$ac_try;;
11586
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11587
$as_echo "$ac_try_echo") >&5
11588
(eval "$ac_link") 2>conftest.er1
11590
grep -v '^ *+' conftest.er1 >conftest.err
11592
cat conftest.err >&5
11593
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594
(exit $ac_status); } && {
11595
test -z "$ac_c_werror_flag" ||
11596
test ! -s conftest.err
11597
} && test -s conftest$ac_exeext && {
11598
test "$cross_compiling" = yes ||
11599
$as_test_x conftest$ac_exeext
11601
ac_cv_func_iconv_open=yes
11603
$as_echo "$as_me: failed program was:" >&5
11604
sed 's/^/| /' conftest.$ac_ext >&5
11606
ac_cv_func_iconv_open=no
11609
rm -rf conftest.dSYM
11610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11611
conftest$ac_exeext conftest.$ac_ext
11613
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5
11614
$as_echo "$ac_cv_func_iconv_open" >&6; }
11615
if test "x$ac_cv_func_iconv_open" = x""yes; then
11616
with_libiconv=no; found_iconv=yes
11619
# Check if we have GNU libiconv
11620
if test $found_iconv = "no"; then
11621
{ $as_echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
11622
$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
11623
if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
11624
$as_echo_n "(cached) " >&6
11626
ac_check_lib_save_LIBS=$LIBS
11627
LIBS="-liconv $LIBS"
11628
cat >conftest.$ac_ext <<_ACEOF
11631
cat confdefs.h >>conftest.$ac_ext
11632
cat >>conftest.$ac_ext <<_ACEOF
11633
/* end confdefs.h. */
11635
/* Override any GCC internal prototype to avoid an error.
11636
Use char because int might match the return type of a GCC
11637
builtin and then its argument prototype would still apply. */
11641
char libiconv_open ();
11645
return libiconv_open ();
11650
rm -f conftest.$ac_objext conftest$ac_exeext
11651
if { (ac_try="$ac_link"
11652
case "(($ac_try" in
11653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654
*) ac_try_echo=$ac_try;;
11656
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11657
$as_echo "$ac_try_echo") >&5
11658
(eval "$ac_link") 2>conftest.er1
11660
grep -v '^ *+' conftest.er1 >conftest.err
11662
cat conftest.err >&5
11663
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664
(exit $ac_status); } && {
11665
test -z "$ac_c_werror_flag" ||
11666
test ! -s conftest.err
11667
} && test -s conftest$ac_exeext && {
11668
test "$cross_compiling" = yes ||
11669
$as_test_x conftest$ac_exeext
11671
ac_cv_lib_iconv_libiconv_open=yes
11673
$as_echo "$as_me: failed program was:" >&5
11674
sed 's/^/| /' conftest.$ac_ext >&5
11676
ac_cv_lib_iconv_libiconv_open=no
11679
rm -rf conftest.dSYM
11680
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11681
conftest$ac_exeext conftest.$ac_ext
11682
LIBS=$ac_check_lib_save_LIBS
11684
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
11685
$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
11686
if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then
11687
with_libiconv=gnu; found_iconv=yes
11691
# Check if we have a iconv in -liconv, possibly from vendor
11692
if test $found_iconv = "no"; then
11693
{ $as_echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
11694
$as_echo_n "checking for iconv_open in -liconv... " >&6; }
11695
if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
11696
$as_echo_n "(cached) " >&6
11698
ac_check_lib_save_LIBS=$LIBS
11699
LIBS="-liconv $LIBS"
11700
cat >conftest.$ac_ext <<_ACEOF
11703
cat confdefs.h >>conftest.$ac_ext
11704
cat >>conftest.$ac_ext <<_ACEOF
11705
/* end confdefs.h. */
11707
/* Override any GCC internal prototype to avoid an error.
11708
Use char because int might match the return type of a GCC
11709
builtin and then its argument prototype would still apply. */
11713
char iconv_open ();
11717
return iconv_open ();
11722
rm -f conftest.$ac_objext conftest$ac_exeext
11723
if { (ac_try="$ac_link"
11724
case "(($ac_try" in
11725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726
*) ac_try_echo=$ac_try;;
11728
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11729
$as_echo "$ac_try_echo") >&5
11730
(eval "$ac_link") 2>conftest.er1
11732
grep -v '^ *+' conftest.er1 >conftest.err
11734
cat conftest.err >&5
11735
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736
(exit $ac_status); } && {
11737
test -z "$ac_c_werror_flag" ||
11738
test ! -s conftest.err
11739
} && test -s conftest$ac_exeext && {
11740
test "$cross_compiling" = yes ||
11741
$as_test_x conftest$ac_exeext
11743
ac_cv_lib_iconv_iconv_open=yes
11745
$as_echo "$as_me: failed program was:" >&5
11746
sed 's/^/| /' conftest.$ac_ext >&5
11748
ac_cv_lib_iconv_iconv_open=no
11751
rm -rf conftest.dSYM
11752
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11753
conftest$ac_exeext conftest.$ac_ext
11754
LIBS=$ac_check_lib_save_LIBS
11756
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
11757
$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
11758
if test "x$ac_cv_lib_iconv_iconv_open" = x""yes; then
11759
with_libiconv=native; found_iconv=yes
11763
if test $found_iconv = "no"; then
11764
{ { $as_echo "$as_me:$LINENO: error: *** No usable iconv() implementation found" >&5
11765
$as_echo "$as_me: error: *** No usable iconv() implementation found" >&2;}
11766
{ (exit 1); exit 1; }; }
11769
case $with_libiconv in
11771
ICONV_LIBS="-liconv"
11777
# Checks for locale_charset() and nl_langinfo(CODESET)
11779
{ $as_echo "$as_me:$LINENO: checking for locale_charset in -liconv" >&5
11780
$as_echo_n "checking for locale_charset in -liconv... " >&6; }
11781
if test "${ac_cv_lib_iconv_locale_charset+set}" = set; then
11782
$as_echo_n "(cached) " >&6
11784
ac_check_lib_save_LIBS=$LIBS
11785
LIBS="-liconv $LIBS"
11786
cat >conftest.$ac_ext <<_ACEOF
11789
cat confdefs.h >>conftest.$ac_ext
11790
cat >>conftest.$ac_ext <<_ACEOF
11791
/* end confdefs.h. */
11793
/* Override any GCC internal prototype to avoid an error.
11794
Use char because int might match the return type of a GCC
11795
builtin and then its argument prototype would still apply. */
11799
char locale_charset ();
11803
return locale_charset ();
11808
rm -f conftest.$ac_objext conftest$ac_exeext
11809
if { (ac_try="$ac_link"
11810
case "(($ac_try" in
11811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812
*) ac_try_echo=$ac_try;;
11814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11815
$as_echo "$ac_try_echo") >&5
11816
(eval "$ac_link") 2>conftest.er1
11818
grep -v '^ *+' conftest.er1 >conftest.err
11820
cat conftest.err >&5
11821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822
(exit $ac_status); } && {
11823
test -z "$ac_c_werror_flag" ||
11824
test ! -s conftest.err
11825
} && test -s conftest$ac_exeext && {
11826
test "$cross_compiling" = yes ||
11827
$as_test_x conftest$ac_exeext
11829
ac_cv_lib_iconv_locale_charset=yes
11831
$as_echo "$as_me: failed program was:" >&5
11832
sed 's/^/| /' conftest.$ac_ext >&5
11834
ac_cv_lib_iconv_locale_charset=no
11837
rm -rf conftest.dSYM
11838
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11839
conftest$ac_exeext conftest.$ac_ext
11840
LIBS=$ac_check_lib_save_LIBS
11842
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_locale_charset" >&5
11843
$as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
11844
if test "x$ac_cv_lib_iconv_locale_charset" = x""yes; then
11845
have_locale_charset=yes
11847
have_locale_charset=no
11850
if test x$have_locale_charset = xyes; then
11852
cat >>confdefs.h <<\_ACEOF
11853
#define HAVE_LOCALE_CHARSET 1
11857
{ $as_echo "$as_me:$LINENO: checking for nl_langinfo (CODESET)" >&5
11858
$as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
11859
if test "${datrie_cv_langinfo_codeset+set}" = set; then
11860
$as_echo_n "(cached) " >&6
11862
cat >conftest.$ac_ext <<_ACEOF
11865
cat confdefs.h >>conftest.$ac_ext
11866
cat >>conftest.$ac_ext <<_ACEOF
11867
/* end confdefs.h. */
11868
#include <langinfo.h>
11872
char *codeset = nl_langinfo (CODESET);
11877
rm -f conftest.$ac_objext
11878
if { (ac_try="$ac_compile"
11879
case "(($ac_try" in
11880
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881
*) ac_try_echo=$ac_try;;
11883
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884
$as_echo "$ac_try_echo") >&5
11885
(eval "$ac_compile") 2>conftest.er1
11887
grep -v '^ *+' conftest.er1 >conftest.err
11889
cat conftest.err >&5
11890
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891
(exit $ac_status); } && {
11892
test -z "$ac_c_werror_flag" ||
11893
test ! -s conftest.err
11894
} && test -s conftest.$ac_objext; then
11895
datrie_cv_langinfo_codeset=yes
11897
$as_echo "$as_me: failed program was:" >&5
11898
sed 's/^/| /' conftest.$ac_ext >&5
11900
datrie_cv_langinfo_codeset=no
11903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906
{ $as_echo "$as_me:$LINENO: result: $datrie_cv_langinfo_codeset" >&5
11907
$as_echo "$datrie_cv_langinfo_codeset" >&6; }
11908
if test x$datrie_cv_langinfo_codeset = xyes; then
11910
cat >>confdefs.h <<\_ACEOF
11911
#define HAVE_LANGINFO_CODESET 1
11915
if test x$have_locale_charset = xno && test x$datrie_cv_langinfo_codeset = xno
11917
{ { $as_echo "$as_me:$LINENO: error: *** No locale_charset() nor nl_langinfo(CODESET) found.
11918
Please consider installing GNU libiconv." >&5
11919
$as_echo "$as_me: error: *** No locale_charset() nor nl_langinfo(CODESET) found.
11920
Please consider installing GNU libiconv." >&2;}
11921
{ (exit 1); exit 1; }; }
19794
11925
# Checks for header files.
19795
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19796
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11926
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11927
$as_echo_n "checking for ANSI C header files... " >&6; }
19797
11928
if test "${ac_cv_header_stdc+set}" = set; then
19798
echo $ECHO_N "(cached) $ECHO_C" >&6
11929
$as_echo_n "(cached) " >&6
19800
11931
cat >conftest.$ac_ext <<_ACEOF
19801
11932
/* confdefs.h. */