4495
# Check whether --enable-libtool-lock was given.
4496
if test "${enable_libtool_lock+set}" = set; then
4497
enableval=$enable_libtool_lock;
4500
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4502
# Some flags need to be propagated to the compiler or linker for good
4506
# Find out which ABI we are using.
4507
echo 'int i;' > conftest.$ac_ext
4508
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509
(eval $ac_compile) 2>&5
4511
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
(exit $ac_status); }; then
4513
case `/usr/bin/file conftest.$ac_objext` in
4525
# Find out which ABI we are using.
4526
echo '#line 4526 "configure"' > conftest.$ac_ext
4527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528
(eval $ac_compile) 2>&5
4530
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531
(exit $ac_status); }; then
4532
if test "$lt_cv_prog_gnu_ld" = yes; then
4533
case `/usr/bin/file conftest.$ac_objext` in
4535
LD="${LD-ld} -melf32bsmip"
4538
LD="${LD-ld} -melf32bmipn32"
4541
LD="${LD-ld} -melf64bmip"
4545
case `/usr/bin/file conftest.$ac_objext` in
4561
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4562
s390*-*linux*|sparc*-*linux*)
4563
# Find out which ABI we are using.
4564
echo 'int i;' > conftest.$ac_ext
4565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566
(eval $ac_compile) 2>&5
4568
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); }; then
4570
case `/usr/bin/file conftest.o` in
4573
x86_64-*kfreebsd*-gnu)
4574
LD="${LD-ld} -m elf_i386_fbsd"
4577
LD="${LD-ld} -m elf_i386"
4579
ppc64-*linux*|powerpc64-*linux*)
4580
LD="${LD-ld} -m elf32ppclinux"
4583
LD="${LD-ld} -m elf_s390"
4586
LD="${LD-ld} -m elf32_sparc"
4593
x86_64-*kfreebsd*-gnu)
4594
LD="${LD-ld} -m elf_x86_64_fbsd"
4597
LD="${LD-ld} -m elf_x86_64"
4599
ppc*-*linux*|powerpc*-*linux*)
4600
LD="${LD-ld} -m elf64ppc"
4603
LD="${LD-ld} -m elf64_s390"
4606
LD="${LD-ld} -m elf64_sparc"
4616
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4617
SAVE_CFLAGS="$CFLAGS"
4618
CFLAGS="$CFLAGS -belf"
4619
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4620
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4621
if test "${lt_cv_cc_needs_belf+set}" = set; then
4622
$as_echo_n "(cached) " >&6
4625
ac_cpp='$CPP $CPPFLAGS'
4626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4630
cat >conftest.$ac_ext <<_ACEOF
4633
cat confdefs.h >>conftest.$ac_ext
4634
cat >>conftest.$ac_ext <<_ACEOF
4635
/* end confdefs.h. */
4645
rm -f conftest.$ac_objext conftest$ac_exeext
4646
if { (ac_try="$ac_link"
4648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649
*) ac_try_echo=$ac_try;;
4651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652
$as_echo "$ac_try_echo") >&5
4653
(eval "$ac_link") 2>conftest.er1
4655
grep -v '^ *+' conftest.er1 >conftest.err
4657
cat conftest.err >&5
4658
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659
(exit $ac_status); } && {
4660
test -z "$ac_c_werror_flag" ||
4661
test ! -s conftest.err
4662
} && test -s conftest$ac_exeext && {
4663
test "$cross_compiling" = yes ||
4664
$as_test_x conftest$ac_exeext
4666
lt_cv_cc_needs_belf=yes
4668
$as_echo "$as_me: failed program was:" >&5
4669
sed 's/^/| /' conftest.$ac_ext >&5
4671
lt_cv_cc_needs_belf=no
4674
rm -rf conftest.dSYM
4675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676
conftest$ac_exeext conftest.$ac_ext
4678
ac_cpp='$CPP $CPPFLAGS'
4679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4685
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4686
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4687
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4688
CFLAGS="$SAVE_CFLAGS"
4692
# Find out which ABI we are using.
4693
echo 'int i;' > conftest.$ac_ext
4694
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695
(eval $ac_compile) 2>&5
4697
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698
(exit $ac_status); }; then
4699
case `/usr/bin/file conftest.o` in
4701
case $lt_cv_prog_gnu_ld in
4702
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4704
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4715
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4716
if test -n "$ac_tool_prefix"; then
4717
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4718
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720
$as_echo_n "checking for $ac_word... " >&6; }
4721
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4722
$as_echo_n "(cached) " >&6
4724
if test -n "$DLLTOOL"; then
4725
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731
test -z "$as_dir" && as_dir=.
4732
for ac_exec_ext in '' $ac_executable_extensions; do
4733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4735
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744
DLLTOOL=$ac_cv_prog_DLLTOOL
4745
if test -n "$DLLTOOL"; then
4746
{ $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4747
$as_echo "$DLLTOOL" >&6; }
4749
{ $as_echo "$as_me:$LINENO: result: no" >&5
4750
$as_echo "no" >&6; }
4755
if test -z "$ac_cv_prog_DLLTOOL"; then
4756
ac_ct_DLLTOOL=$DLLTOOL
4757
# Extract the first word of "dlltool", so it can be a program name with args.
4758
set dummy dlltool; ac_word=$2
4759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4760
$as_echo_n "checking for $ac_word... " >&6; }
4761
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4762
$as_echo_n "(cached) " >&6
4764
if test -n "$ac_ct_DLLTOOL"; then
4765
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771
test -z "$as_dir" && as_dir=.
4772
for ac_exec_ext in '' $ac_executable_extensions; do
4773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4775
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4785
if test -n "$ac_ct_DLLTOOL"; then
4786
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4787
$as_echo "$ac_ct_DLLTOOL" >&6; }
4789
{ $as_echo "$as_me:$LINENO: result: no" >&5
4790
$as_echo "no" >&6; }
4793
if test "x$ac_ct_DLLTOOL" = x; then
4796
case $cross_compiling:$ac_tool_warned in
4798
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800
ac_tool_warned=yes ;;
4802
DLLTOOL=$ac_ct_DLLTOOL
4805
DLLTOOL="$ac_cv_prog_DLLTOOL"
4808
if test -n "$ac_tool_prefix"; then
4809
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4810
set dummy ${ac_tool_prefix}as; ac_word=$2
4811
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4812
$as_echo_n "checking for $ac_word... " >&6; }
4813
if test "${ac_cv_prog_AS+set}" = set; then
4814
$as_echo_n "(cached) " >&6
4816
if test -n "$AS"; then
4817
ac_cv_prog_AS="$AS" # Let the user override the test.
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823
test -z "$as_dir" && as_dir=.
4824
for ac_exec_ext in '' $ac_executable_extensions; do
4825
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
ac_cv_prog_AS="${ac_tool_prefix}as"
4827
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837
if test -n "$AS"; then
4838
{ $as_echo "$as_me:$LINENO: result: $AS" >&5
4839
$as_echo "$AS" >&6; }
4841
{ $as_echo "$as_me:$LINENO: result: no" >&5
4842
$as_echo "no" >&6; }
4847
if test -z "$ac_cv_prog_AS"; then
4849
# Extract the first word of "as", so it can be a program name with args.
4850
set dummy as; ac_word=$2
4851
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4852
$as_echo_n "checking for $ac_word... " >&6; }
4853
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4854
$as_echo_n "(cached) " >&6
4856
if test -n "$ac_ct_AS"; then
4857
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863
test -z "$as_dir" && as_dir=.
4864
for ac_exec_ext in '' $ac_executable_extensions; do
4865
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866
ac_cv_prog_ac_ct_AS="as"
4867
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4877
if test -n "$ac_ct_AS"; then
4878
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4879
$as_echo "$ac_ct_AS" >&6; }
4881
{ $as_echo "$as_me:$LINENO: result: no" >&5
4882
$as_echo "no" >&6; }
4885
if test "x$ac_ct_AS" = x; then
4888
case $cross_compiling:$ac_tool_warned in
4890
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892
ac_tool_warned=yes ;;
4900
if test -n "$ac_tool_prefix"; then
4901
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4902
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4904
$as_echo_n "checking for $ac_word... " >&6; }
4905
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4906
$as_echo_n "(cached) " >&6
4908
if test -n "$OBJDUMP"; then
4909
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915
test -z "$as_dir" && as_dir=.
4916
for ac_exec_ext in '' $ac_executable_extensions; do
4917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4919
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928
OBJDUMP=$ac_cv_prog_OBJDUMP
4929
if test -n "$OBJDUMP"; then
4930
{ $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4931
$as_echo "$OBJDUMP" >&6; }
4933
{ $as_echo "$as_me:$LINENO: result: no" >&5
4934
$as_echo "no" >&6; }
4939
if test -z "$ac_cv_prog_OBJDUMP"; then
4940
ac_ct_OBJDUMP=$OBJDUMP
4941
# Extract the first word of "objdump", so it can be a program name with args.
4942
set dummy objdump; ac_word=$2
4943
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4944
$as_echo_n "checking for $ac_word... " >&6; }
4945
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4946
$as_echo_n "(cached) " >&6
4948
if test -n "$ac_ct_OBJDUMP"; then
4949
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955
test -z "$as_dir" && as_dir=.
4956
for ac_exec_ext in '' $ac_executable_extensions; do
4957
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4959
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4969
if test -n "$ac_ct_OBJDUMP"; then
4970
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4971
$as_echo "$ac_ct_OBJDUMP" >&6; }
4973
{ $as_echo "$as_me:$LINENO: result: no" >&5
4974
$as_echo "no" >&6; }
4977
if test "x$ac_ct_OBJDUMP" = x; then
4980
case $cross_compiling:$ac_tool_warned in
4982
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984
ac_tool_warned=yes ;;
4986
OBJDUMP=$ac_ct_OBJDUMP
4989
OBJDUMP="$ac_cv_prog_OBJDUMP"
4996
need_locks="$enable_libtool_lock"
5000
ac_cpp='$CPP $CPPFLAGS'
5001
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5005
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5006
# On Suns, sometimes $CPP names a directory.
5007
if test -n "$CPP" && test -d "$CPP"; then
5010
if test -z "$CPP"; then
5011
if test "${ac_cv_prog_CPP+set}" = set; then
5012
$as_echo_n "(cached) " >&6
5014
# Double quotes because CPP needs to be expanded
5015
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5018
for ac_c_preproc_warn_flag in '' yes
5020
# Use a header file that comes with gcc, so configuring glibc
5021
# with a fresh cross-compiler works.
5022
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023
# <limits.h> exists even on freestanding compilers.
5024
# On the NeXT, cc -E runs the code through the compiler's parser,
5025
# not just through cpp. "Syntax error" is here to catch this case.
5026
cat >conftest.$ac_ext <<_ACEOF
5029
cat confdefs.h >>conftest.$ac_ext
5030
cat >>conftest.$ac_ext <<_ACEOF
5031
/* end confdefs.h. */
5033
# include <limits.h>
5035
# include <assert.h>
5039
if { (ac_try="$ac_cpp conftest.$ac_ext"
5041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042
*) ac_try_echo=$ac_try;;
5044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045
$as_echo "$ac_try_echo") >&5
5046
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048
grep -v '^ *+' conftest.er1 >conftest.err
5050
cat conftest.err >&5
5051
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052
(exit $ac_status); } >/dev/null && {
5053
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054
test ! -s conftest.err
5058
$as_echo "$as_me: failed program was:" >&5
5059
sed 's/^/| /' conftest.$ac_ext >&5
5061
# Broken: fails on valid input.
5065
rm -f conftest.err conftest.$ac_ext
5067
# OK, works on sane cases. Now check whether nonexistent headers
5068
# can be detected and how.
5069
cat >conftest.$ac_ext <<_ACEOF
5072
cat confdefs.h >>conftest.$ac_ext
5073
cat >>conftest.$ac_ext <<_ACEOF
5074
/* end confdefs.h. */
5075
#include <ac_nonexistent.h>
5077
if { (ac_try="$ac_cpp conftest.$ac_ext"
5079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080
*) ac_try_echo=$ac_try;;
5082
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5083
$as_echo "$ac_try_echo") >&5
5084
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086
grep -v '^ *+' conftest.er1 >conftest.err
5088
cat conftest.err >&5
5089
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
(exit $ac_status); } >/dev/null && {
5091
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5092
test ! -s conftest.err
5094
# Broken: success on invalid input.
5097
$as_echo "$as_me: failed program was:" >&5
5098
sed 's/^/| /' conftest.$ac_ext >&5
5100
# Passes both tests.
5105
rm -f conftest.err conftest.$ac_ext
5108
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109
rm -f conftest.err conftest.$ac_ext
5110
if $ac_preproc_ok; then
5122
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5123
$as_echo "$CPP" >&6; }
5125
for ac_c_preproc_warn_flag in '' yes
5127
# Use a header file that comes with gcc, so configuring glibc
5128
# with a fresh cross-compiler works.
5129
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130
# <limits.h> exists even on freestanding compilers.
5131
# On the NeXT, cc -E runs the code through the compiler's parser,
5132
# not just through cpp. "Syntax error" is here to catch this case.
5133
cat >conftest.$ac_ext <<_ACEOF
5136
cat confdefs.h >>conftest.$ac_ext
5137
cat >>conftest.$ac_ext <<_ACEOF
5138
/* end confdefs.h. */
5140
# include <limits.h>
5142
# include <assert.h>
5146
if { (ac_try="$ac_cpp conftest.$ac_ext"
5148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149
*) ac_try_echo=$ac_try;;
5151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152
$as_echo "$ac_try_echo") >&5
5153
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5155
grep -v '^ *+' conftest.er1 >conftest.err
5157
cat conftest.err >&5
5158
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159
(exit $ac_status); } >/dev/null && {
5160
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5161
test ! -s conftest.err
5165
$as_echo "$as_me: failed program was:" >&5
5166
sed 's/^/| /' conftest.$ac_ext >&5
5168
# Broken: fails on valid input.
5172
rm -f conftest.err conftest.$ac_ext
5174
# OK, works on sane cases. Now check whether nonexistent headers
5175
# can be detected and how.
5176
cat >conftest.$ac_ext <<_ACEOF
5179
cat confdefs.h >>conftest.$ac_ext
5180
cat >>conftest.$ac_ext <<_ACEOF
5181
/* end confdefs.h. */
5182
#include <ac_nonexistent.h>
5184
if { (ac_try="$ac_cpp conftest.$ac_ext"
5186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187
*) ac_try_echo=$ac_try;;
5189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5190
$as_echo "$ac_try_echo") >&5
5191
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193
grep -v '^ *+' conftest.er1 >conftest.err
5195
cat conftest.err >&5
5196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197
(exit $ac_status); } >/dev/null && {
5198
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5199
test ! -s conftest.err
5201
# Broken: success on invalid input.
5204
$as_echo "$as_me: failed program was:" >&5
5205
sed 's/^/| /' conftest.$ac_ext >&5
5207
# Passes both tests.
5212
rm -f conftest.err conftest.$ac_ext
5215
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5216
rm -f conftest.err conftest.$ac_ext
5217
if $ac_preproc_ok; then
5220
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5221
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5222
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5223
See \`config.log' for more details." >&5
5224
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5225
See \`config.log' for more details." >&2;}
5226
{ (exit 1); exit 1; }; }; }
5230
ac_cpp='$CPP $CPPFLAGS'
5231
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5237
$as_echo_n "checking for ANSI C header files... " >&6; }
5238
if test "${ac_cv_header_stdc+set}" = set; then
5239
$as_echo_n "(cached) " >&6
5241
cat >conftest.$ac_ext <<_ACEOF
5244
cat confdefs.h >>conftest.$ac_ext
5245
cat >>conftest.$ac_ext <<_ACEOF
5246
/* end confdefs.h. */
5260
rm -f conftest.$ac_objext
5261
if { (ac_try="$ac_compile"
5263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264
*) ac_try_echo=$ac_try;;
5266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267
$as_echo "$ac_try_echo") >&5
5268
(eval "$ac_compile") 2>conftest.er1
5270
grep -v '^ *+' conftest.er1 >conftest.err
5272
cat conftest.err >&5
5273
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274
(exit $ac_status); } && {
5275
test -z "$ac_c_werror_flag" ||
5276
test ! -s conftest.err
5277
} && test -s conftest.$ac_objext; then
5278
ac_cv_header_stdc=yes
5280
$as_echo "$as_me: failed program was:" >&5
5281
sed 's/^/| /' conftest.$ac_ext >&5
5283
ac_cv_header_stdc=no
5286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288
if test $ac_cv_header_stdc = yes; then
5289
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5290
cat >conftest.$ac_ext <<_ACEOF
5293
cat confdefs.h >>conftest.$ac_ext
5294
cat >>conftest.$ac_ext <<_ACEOF
5295
/* end confdefs.h. */
5299
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300
$EGREP "memchr" >/dev/null 2>&1; then
5303
ac_cv_header_stdc=no
5309
if test $ac_cv_header_stdc = yes; then
5310
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5311
cat >conftest.$ac_ext <<_ACEOF
5314
cat confdefs.h >>conftest.$ac_ext
5315
cat >>conftest.$ac_ext <<_ACEOF
5316
/* end confdefs.h. */
5320
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321
$EGREP "free" >/dev/null 2>&1; then
5324
ac_cv_header_stdc=no
5330
if test $ac_cv_header_stdc = yes; then
5331
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332
if test "$cross_compiling" = yes; then
5335
cat >conftest.$ac_ext <<_ACEOF
5338
cat confdefs.h >>conftest.$ac_ext
5339
cat >>conftest.$ac_ext <<_ACEOF
5340
/* end confdefs.h. */
5343
#if ((' ' & 0x0FF) == 0x020)
5344
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5345
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347
# define ISLOWER(c) \
5348
(('a' <= (c) && (c) <= 'i') \
5349
|| ('j' <= (c) && (c) <= 'r') \
5350
|| ('s' <= (c) && (c) <= 'z'))
5351
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5354
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359
for (i = 0; i < 256; i++)
5360
if (XOR (islower (i), ISLOWER (i))
5361
|| toupper (i) != TOUPPER (i))
5366
rm -f conftest$ac_exeext
5367
if { (ac_try="$ac_link"
5369
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370
*) ac_try_echo=$ac_try;;
5372
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373
$as_echo "$ac_try_echo") >&5
5374
(eval "$ac_link") 2>&5
5376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5378
{ (case "(($ac_try" in
5379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380
*) ac_try_echo=$ac_try;;
5382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383
$as_echo "$ac_try_echo") >&5
5384
(eval "$ac_try") 2>&5
5386
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387
(exit $ac_status); }; }; then
5390
$as_echo "$as_me: program exited with status $ac_status" >&5
5391
$as_echo "$as_me: failed program was:" >&5
5392
sed 's/^/| /' conftest.$ac_ext >&5
5395
ac_cv_header_stdc=no
5397
rm -rf conftest.dSYM
5398
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5404
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5405
$as_echo "$ac_cv_header_stdc" >&6; }
5406
if test $ac_cv_header_stdc = yes; then
5408
cat >>confdefs.h <<\_ACEOF
5409
#define STDC_HEADERS 1
5414
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5424
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5425
inttypes.h stdint.h unistd.h
5427
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5428
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5429
$as_echo_n "checking for $ac_header... " >&6; }
5430
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5431
$as_echo_n "(cached) " >&6
5433
cat >conftest.$ac_ext <<_ACEOF
5436
cat confdefs.h >>conftest.$ac_ext
5437
cat >>conftest.$ac_ext <<_ACEOF
5438
/* end confdefs.h. */
5439
$ac_includes_default
5441
#include <$ac_header>
5443
rm -f conftest.$ac_objext
5444
if { (ac_try="$ac_compile"
5446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447
*) ac_try_echo=$ac_try;;
5449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5450
$as_echo "$ac_try_echo") >&5
5451
(eval "$ac_compile") 2>conftest.er1
5453
grep -v '^ *+' conftest.er1 >conftest.err
5455
cat conftest.err >&5
5456
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457
(exit $ac_status); } && {
5458
test -z "$ac_c_werror_flag" ||
5459
test ! -s conftest.err
5460
} && test -s conftest.$ac_objext; then
5461
eval "$as_ac_Header=yes"
5463
$as_echo "$as_me: failed program was:" >&5
5464
sed 's/^/| /' conftest.$ac_ext >&5
5466
eval "$as_ac_Header=no"
5469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471
ac_res=`eval 'as_val=${'$as_ac_Header'}
5472
$as_echo "$as_val"'`
5473
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5474
$as_echo "$ac_res" >&6; }
5475
as_val=`eval 'as_val=${'$as_ac_Header'}
5476
$as_echo "$as_val"'`
5477
if test "x$as_val" = x""yes; then
5478
cat >>confdefs.h <<_ACEOF
5479
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488
for ac_header in dlfcn.h
5490
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493
$as_echo_n "checking for $ac_header... " >&6; }
5494
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495
$as_echo_n "(cached) " >&6
5497
ac_res=`eval 'as_val=${'$as_ac_Header'}
5498
$as_echo "$as_val"'`
5499
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5500
$as_echo "$ac_res" >&6; }
5502
# Is the header compilable?
5503
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504
$as_echo_n "checking $ac_header usability... " >&6; }
5505
cat >conftest.$ac_ext <<_ACEOF
5508
cat confdefs.h >>conftest.$ac_ext
5509
cat >>conftest.$ac_ext <<_ACEOF
5510
/* end confdefs.h. */
5511
$ac_includes_default
5512
#include <$ac_header>
5514
rm -f conftest.$ac_objext
5515
if { (ac_try="$ac_compile"
5517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518
*) ac_try_echo=$ac_try;;
5520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5521
$as_echo "$ac_try_echo") >&5
5522
(eval "$ac_compile") 2>conftest.er1
5524
grep -v '^ *+' conftest.er1 >conftest.err
5526
cat conftest.err >&5
5527
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528
(exit $ac_status); } && {
5529
test -z "$ac_c_werror_flag" ||
5530
test ! -s conftest.err
5531
} && test -s conftest.$ac_objext; then
5532
ac_header_compiler=yes
5534
$as_echo "$as_me: failed program was:" >&5
5535
sed 's/^/| /' conftest.$ac_ext >&5
5537
ac_header_compiler=no
5540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5542
$as_echo "$ac_header_compiler" >&6; }
5544
# Is the header present?
5545
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5546
$as_echo_n "checking $ac_header presence... " >&6; }
5547
cat >conftest.$ac_ext <<_ACEOF
5550
cat confdefs.h >>conftest.$ac_ext
5551
cat >>conftest.$ac_ext <<_ACEOF
5552
/* end confdefs.h. */
5553
#include <$ac_header>
5555
if { (ac_try="$ac_cpp conftest.$ac_ext"
5557
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558
*) ac_try_echo=$ac_try;;
5560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561
$as_echo "$ac_try_echo") >&5
5562
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564
grep -v '^ *+' conftest.er1 >conftest.err
5566
cat conftest.err >&5
5567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568
(exit $ac_status); } >/dev/null && {
5569
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570
test ! -s conftest.err
5572
ac_header_preproc=yes
5574
$as_echo "$as_me: failed program was:" >&5
5575
sed 's/^/| /' conftest.$ac_ext >&5
5577
ac_header_preproc=no
5580
rm -f conftest.err conftest.$ac_ext
5581
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5582
$as_echo "$ac_header_preproc" >&6; }
5584
# So? What about this header?
5585
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5587
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5588
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5589
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5590
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5591
ac_header_preproc=yes
5594
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5595
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5596
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5597
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5598
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5599
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5600
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5601
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5602
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5603
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5604
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5605
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5607
## --------------------------------------------------- ##
5608
## Report this to libmtp-discuss@lists.sourceforge.net ##
5609
## --------------------------------------------------- ##
5611
) | sed "s/^/$as_me: WARNING: /" >&2
5614
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5615
$as_echo_n "checking for $ac_header... " >&6; }
5616
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5617
$as_echo_n "(cached) " >&6
5619
eval "$as_ac_Header=\$ac_header_preproc"
5621
ac_res=`eval 'as_val=${'$as_ac_Header'}
5622
$as_echo "$as_val"'`
5623
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5624
$as_echo "$ac_res" >&6; }
5627
as_val=`eval 'as_val=${'$as_ac_Header'}
5628
$as_echo "$as_val"'`
5629
if test "x$as_val" = x""yes; then
5630
cat >>confdefs.h <<_ACEOF
5631
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639
ac_cpp='$CXXCPP $CPPFLAGS'
5640
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5643
if test -z "$CXX"; then
5644
if test -n "$CCC"; then
5647
if test -n "$ac_tool_prefix"; then
5648
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5650
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653
$as_echo_n "checking for $ac_word... " >&6; }
5654
if test "${ac_cv_prog_CXX+set}" = set; then
5655
$as_echo_n "(cached) " >&6
5657
if test -n "$CXX"; then
5658
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664
test -z "$as_dir" && as_dir=.
5665
for ac_exec_ext in '' $ac_executable_extensions; do
5666
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5668
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678
if test -n "$CXX"; then
5679
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
5680
$as_echo "$CXX" >&6; }
5682
{ $as_echo "$as_me:$LINENO: result: no" >&5
5683
$as_echo "no" >&6; }
5687
test -n "$CXX" && break
5690
if test -z "$CXX"; then
5692
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5694
# Extract the first word of "$ac_prog", so it can be a program name with args.
5695
set dummy $ac_prog; ac_word=$2
5696
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5697
$as_echo_n "checking for $ac_word... " >&6; }
5698
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5699
$as_echo_n "(cached) " >&6
5701
if test -n "$ac_ct_CXX"; then
5702
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708
test -z "$as_dir" && as_dir=.
5709
for ac_exec_ext in '' $ac_executable_extensions; do
5710
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711
ac_cv_prog_ac_ct_CXX="$ac_prog"
5712
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5722
if test -n "$ac_ct_CXX"; then
5723
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5724
$as_echo "$ac_ct_CXX" >&6; }
5726
{ $as_echo "$as_me:$LINENO: result: no" >&5
5727
$as_echo "no" >&6; }
5731
test -n "$ac_ct_CXX" && break
5734
if test "x$ac_ct_CXX" = x; then
5737
case $cross_compiling:$ac_tool_warned in
5739
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5740
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5741
ac_tool_warned=yes ;;
5749
# Provide some information about the compiler.
5750
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5753
{ (ac_try="$ac_compiler --version >&5"
5755
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756
*) ac_try_echo=$ac_try;;
5758
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5759
$as_echo "$ac_try_echo") >&5
5760
(eval "$ac_compiler --version >&5") 2>&5
5762
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763
(exit $ac_status); }
5764
{ (ac_try="$ac_compiler -v >&5"
5766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767
*) ac_try_echo=$ac_try;;
5769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5770
$as_echo "$ac_try_echo") >&5
5771
(eval "$ac_compiler -v >&5") 2>&5
5773
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
(exit $ac_status); }
5775
{ (ac_try="$ac_compiler -V >&5"
5777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778
*) ac_try_echo=$ac_try;;
5780
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5781
$as_echo "$ac_try_echo") >&5
5782
(eval "$ac_compiler -V >&5") 2>&5
5784
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
(exit $ac_status); }
5787
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5788
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5789
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5790
$as_echo_n "(cached) " >&6
5792
cat >conftest.$ac_ext <<_ACEOF
5795
cat confdefs.h >>conftest.$ac_ext
5796
cat >>conftest.$ac_ext <<_ACEOF
5797
/* end confdefs.h. */
5810
rm -f conftest.$ac_objext
5811
if { (ac_try="$ac_compile"
5813
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814
*) ac_try_echo=$ac_try;;
5816
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5817
$as_echo "$ac_try_echo") >&5
5818
(eval "$ac_compile") 2>conftest.er1
5820
grep -v '^ *+' conftest.er1 >conftest.err
5822
cat conftest.err >&5
5823
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
(exit $ac_status); } && {
5825
test -z "$ac_cxx_werror_flag" ||
5826
test ! -s conftest.err
5827
} && test -s conftest.$ac_objext; then
5830
$as_echo "$as_me: failed program was:" >&5
5831
sed 's/^/| /' conftest.$ac_ext >&5
5836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5840
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5841
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5842
if test $ac_compiler_gnu = yes; then
5847
ac_test_CXXFLAGS=${CXXFLAGS+set}
5848
ac_save_CXXFLAGS=$CXXFLAGS
5849
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5850
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5851
if test "${ac_cv_prog_cxx_g+set}" = set; then
5852
$as_echo_n "(cached) " >&6
5854
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5855
ac_cxx_werror_flag=yes
5858
cat >conftest.$ac_ext <<_ACEOF
5861
cat confdefs.h >>conftest.$ac_ext
5862
cat >>conftest.$ac_ext <<_ACEOF
5863
/* end confdefs.h. */
5873
rm -f conftest.$ac_objext
5874
if { (ac_try="$ac_compile"
5876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877
*) ac_try_echo=$ac_try;;
5879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880
$as_echo "$ac_try_echo") >&5
5881
(eval "$ac_compile") 2>conftest.er1
5883
grep -v '^ *+' conftest.er1 >conftest.err
5885
cat conftest.err >&5
5886
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887
(exit $ac_status); } && {
5888
test -z "$ac_cxx_werror_flag" ||
5889
test ! -s conftest.err
5890
} && test -s conftest.$ac_objext; then
5891
ac_cv_prog_cxx_g=yes
5893
$as_echo "$as_me: failed program was:" >&5
5894
sed 's/^/| /' conftest.$ac_ext >&5
5897
cat >conftest.$ac_ext <<_ACEOF
5900
cat confdefs.h >>conftest.$ac_ext
5901
cat >>conftest.$ac_ext <<_ACEOF
5902
/* end confdefs.h. */
5912
rm -f conftest.$ac_objext
5913
if { (ac_try="$ac_compile"
5915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916
*) ac_try_echo=$ac_try;;
5918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5919
$as_echo "$ac_try_echo") >&5
5920
(eval "$ac_compile") 2>conftest.er1
5922
grep -v '^ *+' conftest.er1 >conftest.err
5924
cat conftest.err >&5
5925
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926
(exit $ac_status); } && {
5927
test -z "$ac_cxx_werror_flag" ||
5928
test ! -s conftest.err
5929
} && test -s conftest.$ac_objext; then
5932
$as_echo "$as_me: failed program was:" >&5
5933
sed 's/^/| /' conftest.$ac_ext >&5
5935
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5937
cat >conftest.$ac_ext <<_ACEOF
5940
cat confdefs.h >>conftest.$ac_ext
5941
cat >>conftest.$ac_ext <<_ACEOF
5942
/* end confdefs.h. */
5952
rm -f conftest.$ac_objext
5953
if { (ac_try="$ac_compile"
5955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956
*) ac_try_echo=$ac_try;;
5958
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959
$as_echo "$ac_try_echo") >&5
5960
(eval "$ac_compile") 2>conftest.er1
5962
grep -v '^ *+' conftest.er1 >conftest.err
5964
cat conftest.err >&5
5965
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966
(exit $ac_status); } && {
5967
test -z "$ac_cxx_werror_flag" ||
5968
test ! -s conftest.err
5969
} && test -s conftest.$ac_objext; then
5970
ac_cv_prog_cxx_g=yes
5972
$as_echo "$as_me: failed program was:" >&5
5973
sed 's/^/| /' conftest.$ac_ext >&5
5978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5987
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5988
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5989
if test "$ac_test_CXXFLAGS" = set; then
5990
CXXFLAGS=$ac_save_CXXFLAGS
5991
elif test $ac_cv_prog_cxx_g = yes; then
5992
if test "$GXX" = yes; then
5998
if test "$GXX" = yes; then
6005
ac_cpp='$CXXCPP $CPPFLAGS'
6006
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6010
depcc="$CXX" am_compiler_list=
6012
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6013
$as_echo_n "checking dependency style of $depcc... " >&6; }
6014
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6015
$as_echo_n "(cached) " >&6
6017
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6018
# We make a subdir and do the tests there. Otherwise we can end up
6019
# making bogus files that we don't know about and never remove. For
6020
# instance it was reported that on HP-UX the gcc test will end up
6021
# making a dummy file named `D' -- because `-MD' means `put the output
6024
# Copy depcomp to subdir because otherwise we won't find it if we're
6025
# using a relative directory.
6026
cp "$am_depcomp" conftest.dir
6028
# We will build objects and dependencies in a subdirectory because
6029
# it helps to detect inapplicable dependency modes. For instance
6030
# both Tru64's cc and ICC support -MD to output dependencies as a
6031
# side effect of compilation, but ICC will put the dependencies in
6032
# the current directory while Tru64 will put them in the object
6036
am_cv_CXX_dependencies_compiler_type=none
6037
if test "$am_compiler_list" = ""; then
6038
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6040
for depmode in $am_compiler_list; do
6041
# Setup a source with many dependencies, because some compilers
6042
# like to wrap large dependency lists on column 80 (with \), and
6043
# we should not choose a depcomp mode which is confused by this.
6045
# We need to recreate these files for each test, as the compiler may
6046
# overwrite some of them when testing with obscure command lines.
6047
# This happens at least with the AIX C compiler.
6049
for i in 1 2 3 4 5 6; do
6050
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6051
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6052
# Solaris 8's {/usr,}/bin/sh.
6053
touch sub/conftst$i.h
6055
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6059
# after this tag, mechanisms are not by side-effect, so they'll
6060
# only be used when explicitly requested
6061
if test "x$enable_dependency_tracking" = xyes; then
6069
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6070
# mode. It turns out that the SunPro C++ compiler does not properly
6071
# handle `-M -o', and we need to detect this.
6072
if depmode=$depmode \
6073
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6074
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6075
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6076
>/dev/null 2>conftest.err &&
6077
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6078
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6079
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6080
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6081
# icc doesn't choke on unknown options, it will just issue warnings
6082
# or remarks (even with -Werror). So we grep stderr for any message
6083
# that says an option was ignored or not supported.
6084
# When given -MP, icc 7.0 and 7.1 complain thusly:
6085
# icc: Command line warning: ignoring option '-M'; no argument required
6086
# The diagnosis changed in icc 8.0:
6087
# icc: Command line remark: option '-MP' not supported
6088
if (grep 'ignoring option' conftest.err ||
6089
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6090
am_cv_CXX_dependencies_compiler_type=$depmode
6099
am_cv_CXX_dependencies_compiler_type=none
6103
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6104
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6105
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6108
test "x$enable_dependency_tracking" != xno \
6109
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6110
am__fastdepCXX_TRUE=
6111
am__fastdepCXX_FALSE='#'
6113
am__fastdepCXX_TRUE='#'
6114
am__fastdepCXX_FALSE=
6120
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6121
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6122
(test "X$CXX" != "Xg++"))) ; then
6124
ac_cpp='$CXXCPP $CPPFLAGS'
6125
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6128
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6129
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6130
if test -z "$CXXCPP"; then
6131
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6132
$as_echo_n "(cached) " >&6
6134
# Double quotes because CXXCPP needs to be expanded
6135
for CXXCPP in "$CXX -E" "/lib/cpp"
6138
for ac_cxx_preproc_warn_flag in '' yes
6140
# Use a header file that comes with gcc, so configuring glibc
6141
# with a fresh cross-compiler works.
6142
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143
# <limits.h> exists even on freestanding compilers.
6144
# On the NeXT, cc -E runs the code through the compiler's parser,
6145
# not just through cpp. "Syntax error" is here to catch this case.
6146
cat >conftest.$ac_ext <<_ACEOF
6149
cat confdefs.h >>conftest.$ac_ext
6150
cat >>conftest.$ac_ext <<_ACEOF
6151
/* end confdefs.h. */
6153
# include <limits.h>
6155
# include <assert.h>
6159
if { (ac_try="$ac_cpp conftest.$ac_ext"
6161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162
*) ac_try_echo=$ac_try;;
6164
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165
$as_echo "$ac_try_echo") >&5
6166
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168
grep -v '^ *+' conftest.er1 >conftest.err
6170
cat conftest.err >&5
6171
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172
(exit $ac_status); } >/dev/null && {
6173
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6174
test ! -s conftest.err
6178
$as_echo "$as_me: failed program was:" >&5
6179
sed 's/^/| /' conftest.$ac_ext >&5
6181
# Broken: fails on valid input.
6185
rm -f conftest.err conftest.$ac_ext
6187
# OK, works on sane cases. Now check whether nonexistent headers
6188
# can be detected and how.
6189
cat >conftest.$ac_ext <<_ACEOF
6192
cat confdefs.h >>conftest.$ac_ext
6193
cat >>conftest.$ac_ext <<_ACEOF
6194
/* end confdefs.h. */
6195
#include <ac_nonexistent.h>
6197
if { (ac_try="$ac_cpp conftest.$ac_ext"
6199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200
*) ac_try_echo=$ac_try;;
6202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6203
$as_echo "$ac_try_echo") >&5
6204
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6206
grep -v '^ *+' conftest.er1 >conftest.err
6208
cat conftest.err >&5
6209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
(exit $ac_status); } >/dev/null && {
6211
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6212
test ! -s conftest.err
6214
# Broken: success on invalid input.
6217
$as_echo "$as_me: failed program was:" >&5
6218
sed 's/^/| /' conftest.$ac_ext >&5
6220
# Passes both tests.
6225
rm -f conftest.err conftest.$ac_ext
6228
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229
rm -f conftest.err conftest.$ac_ext
6230
if $ac_preproc_ok; then
6235
ac_cv_prog_CXXCPP=$CXXCPP
6238
CXXCPP=$ac_cv_prog_CXXCPP
6240
ac_cv_prog_CXXCPP=$CXXCPP
6242
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6243
$as_echo "$CXXCPP" >&6; }
6245
for ac_cxx_preproc_warn_flag in '' yes
6247
# Use a header file that comes with gcc, so configuring glibc
6248
# with a fresh cross-compiler works.
6249
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250
# <limits.h> exists even on freestanding compilers.
6251
# On the NeXT, cc -E runs the code through the compiler's parser,
6252
# not just through cpp. "Syntax error" is here to catch this case.
6253
cat >conftest.$ac_ext <<_ACEOF
6256
cat confdefs.h >>conftest.$ac_ext
6257
cat >>conftest.$ac_ext <<_ACEOF
6258
/* end confdefs.h. */
6260
# include <limits.h>
6262
# include <assert.h>
6266
if { (ac_try="$ac_cpp conftest.$ac_ext"
6268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269
*) ac_try_echo=$ac_try;;
6271
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272
$as_echo "$ac_try_echo") >&5
6273
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6275
grep -v '^ *+' conftest.er1 >conftest.err
6277
cat conftest.err >&5
6278
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279
(exit $ac_status); } >/dev/null && {
6280
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6281
test ! -s conftest.err
6285
$as_echo "$as_me: failed program was:" >&5
6286
sed 's/^/| /' conftest.$ac_ext >&5
6288
# Broken: fails on valid input.
6292
rm -f conftest.err conftest.$ac_ext
6294
# OK, works on sane cases. Now check whether nonexistent headers
6295
# can be detected and how.
6296
cat >conftest.$ac_ext <<_ACEOF
6299
cat confdefs.h >>conftest.$ac_ext
6300
cat >>conftest.$ac_ext <<_ACEOF
6301
/* end confdefs.h. */
6302
#include <ac_nonexistent.h>
6304
if { (ac_try="$ac_cpp conftest.$ac_ext"
6306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307
*) ac_try_echo=$ac_try;;
6309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6310
$as_echo "$ac_try_echo") >&5
6311
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313
grep -v '^ *+' conftest.er1 >conftest.err
6315
cat conftest.err >&5
6316
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317
(exit $ac_status); } >/dev/null && {
6318
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6319
test ! -s conftest.err
6321
# Broken: success on invalid input.
6324
$as_echo "$as_me: failed program was:" >&5
6325
sed 's/^/| /' conftest.$ac_ext >&5
6327
# Passes both tests.
6332
rm -f conftest.err conftest.$ac_ext
6335
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336
rm -f conftest.err conftest.$ac_ext
6337
if $ac_preproc_ok; then
6340
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6341
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6342
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6343
See \`config.log' for more details." >&5
6344
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6345
See \`config.log' for more details." >&2;}
6346
{ (exit 1); exit 1; }; }; }
6350
ac_cpp='$CXXCPP $CPPFLAGS'
6351
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6352
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6353
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6359
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6360
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6361
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6362
if test -n "$ac_tool_prefix"; then
6363
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
6365
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6366
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6367
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6368
$as_echo_n "checking for $ac_word... " >&6; }
6369
if test "${ac_cv_prog_F77+set}" = set; then
6370
$as_echo_n "(cached) " >&6
6372
if test -n "$F77"; then
6373
ac_cv_prog_F77="$F77" # Let the user override the test.
6375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379
test -z "$as_dir" && as_dir=.
6380
for ac_exec_ext in '' $ac_executable_extensions; do
6381
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6383
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393
if test -n "$F77"; then
6394
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
6395
$as_echo "$F77" >&6; }
6397
{ $as_echo "$as_me:$LINENO: result: no" >&5
6398
$as_echo "no" >&6; }
6402
test -n "$F77" && break
6405
if test -z "$F77"; then
6407
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
6409
# Extract the first word of "$ac_prog", so it can be a program name with args.
6410
set dummy $ac_prog; ac_word=$2
6411
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6412
$as_echo_n "checking for $ac_word... " >&6; }
6413
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6414
$as_echo_n "(cached) " >&6
6416
if test -n "$ac_ct_F77"; then
6417
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423
test -z "$as_dir" && as_dir=.
6424
for ac_exec_ext in '' $ac_executable_extensions; do
6425
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426
ac_cv_prog_ac_ct_F77="$ac_prog"
6427
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6437
if test -n "$ac_ct_F77"; then
6438
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6439
$as_echo "$ac_ct_F77" >&6; }
6441
{ $as_echo "$as_me:$LINENO: result: no" >&5
6442
$as_echo "no" >&6; }
6446
test -n "$ac_ct_F77" && break
6449
if test "x$ac_ct_F77" = x; then
6452
case $cross_compiling:$ac_tool_warned in
6454
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6455
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456
ac_tool_warned=yes ;;
6463
# Provide some information about the compiler.
6464
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6467
{ (ac_try="$ac_compiler --version >&5"
6469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470
*) ac_try_echo=$ac_try;;
6472
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6473
$as_echo "$ac_try_echo") >&5
6474
(eval "$ac_compiler --version >&5") 2>&5
6476
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
(exit $ac_status); }
6478
{ (ac_try="$ac_compiler -v >&5"
6480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481
*) ac_try_echo=$ac_try;;
6483
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484
$as_echo "$ac_try_echo") >&5
6485
(eval "$ac_compiler -v >&5") 2>&5
6487
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488
(exit $ac_status); }
6489
{ (ac_try="$ac_compiler -V >&5"
6491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492
*) ac_try_echo=$ac_try;;
6494
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495
$as_echo "$ac_try_echo") >&5
6496
(eval "$ac_compiler -V >&5") 2>&5
6498
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
(exit $ac_status); }
6502
# If we don't use `.F' as extension, the preprocessor is not run on the
6503
# input file. (Note that this only needs to work for GNU compilers.)
6506
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6507
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6508
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6509
$as_echo_n "(cached) " >&6
6511
cat >conftest.$ac_ext <<_ACEOF
6519
rm -f conftest.$ac_objext
6520
if { (ac_try="$ac_compile"
6522
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523
*) ac_try_echo=$ac_try;;
6525
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6526
$as_echo "$ac_try_echo") >&5
6527
(eval "$ac_compile") 2>conftest.er1
6529
grep -v '^ *+' conftest.er1 >conftest.err
6531
cat conftest.err >&5
6532
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533
(exit $ac_status); } && {
6534
test -z "$ac_f77_werror_flag" ||
6535
test ! -s conftest.err
6536
} && test -s conftest.$ac_objext; then
6539
$as_echo "$as_me: failed program was:" >&5
6540
sed 's/^/| /' conftest.$ac_ext >&5
6545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6549
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6550
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6552
ac_test_FFLAGS=${FFLAGS+set}
6553
ac_save_FFLAGS=$FFLAGS
6555
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6556
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6557
if test "${ac_cv_prog_f77_g+set}" = set; then
6558
$as_echo_n "(cached) " >&6
6561
cat >conftest.$ac_ext <<_ACEOF
6566
rm -f conftest.$ac_objext
6567
if { (ac_try="$ac_compile"
6569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570
*) ac_try_echo=$ac_try;;
6572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6573
$as_echo "$ac_try_echo") >&5
6574
(eval "$ac_compile") 2>conftest.er1
6576
grep -v '^ *+' conftest.er1 >conftest.err
6578
cat conftest.err >&5
6579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); } && {
6581
test -z "$ac_f77_werror_flag" ||
6582
test ! -s conftest.err
6583
} && test -s conftest.$ac_objext; then
6584
ac_cv_prog_f77_g=yes
6586
$as_echo "$as_me: failed program was:" >&5
6587
sed 's/^/| /' conftest.$ac_ext >&5
6592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6596
$as_echo "$ac_cv_prog_f77_g" >&6; }
6597
if test "$ac_test_FFLAGS" = set; then
6598
FFLAGS=$ac_save_FFLAGS
6599
elif test $ac_cv_prog_f77_g = yes; then
6600
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6606
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6613
if test $ac_compiler_gnu = yes; then
6619
ac_cpp='$CPP $CPPFLAGS'
6620
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6627
# find the maximum length of command line arguments
6628
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6629
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6630
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6631
$as_echo_n "(cached) " >&6
6638
# On DJGPP, this test can blow up pretty badly due to problems in libc
6639
# (any single argument exceeding 2000 bytes causes a buffer overrun
6640
# during glob expansion). Even if it were fixed, the result of this
6641
# check would be larger than it should be.
6642
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6646
# Under GNU Hurd, this test is not required because there is
6647
# no limit to the length of command line arguments.
6648
# Libtool will interpret -1 as no limit whatsoever
6649
lt_cv_sys_max_cmd_len=-1;
6653
# On Win9x/ME, this test blows up -- it succeeds, but takes
6654
# about 5 minutes as the teststring grows exponentially.
6655
# Worse, since 9x/ME are not pre-emptively multitasking,
6656
# you end up with a "frozen" computer, even though with patience
6657
# the test eventually succeeds (with a max line length of 256k).
6658
# Instead, let's just punt: use the minimum linelength reported by
6659
# all of the supported platforms: 8192 (on NT/2K/XP).
6660
lt_cv_sys_max_cmd_len=8192;
6664
# On AmigaOS with pdksh, this test takes hours, literally.
6665
# So we just punt and use a minimum line length of 8192.
6666
lt_cv_sys_max_cmd_len=8192;
6669
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6670
# This has been around since 386BSD, at least. Likely further.
6671
if test -x /sbin/sysctl; then
6672
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6673
elif test -x /usr/sbin/sysctl; then
6674
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6676
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6678
# And add a safety zone
6679
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6680
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6684
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6685
lt_cv_sys_max_cmd_len=196608
6689
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6690
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6691
# nice to cause kernel panics so lets avoid the loop below.
6692
# First set a reasonable default.
6693
lt_cv_sys_max_cmd_len=16384
6695
if test -x /sbin/sysconfig; then
6696
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6697
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6702
lt_cv_sys_max_cmd_len=102400
6704
sysv5* | sco5v6* | sysv4.2uw2*)
6705
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6706
if test -n "$kargmax"; then
6707
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6709
lt_cv_sys_max_cmd_len=32768
6713
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6714
if test -n "$lt_cv_sys_max_cmd_len"; then
6715
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6716
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6718
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6719
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6720
= "XX$teststring") >/dev/null 2>&1 &&
6721
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6722
lt_cv_sys_max_cmd_len=$new_result &&
6723
test $i != 17 # 1/2 MB should be enough
6726
teststring=$teststring$teststring
6729
# Add a significant safety factor because C++ compilers can tack on massive
6730
# amounts of additional arguments before passing them to the linker.
6731
# It appears as though 1/2 is a usable value.
6732
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6739
if test -n $lt_cv_sys_max_cmd_len ; then
6740
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6741
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6743
{ $as_echo "$as_me:$LINENO: result: none" >&5
6744
$as_echo "none" >&6; }
6751
5723
# Check for command to grab the raw symbol name followed by C symbol from nm.
6752
5724
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6753
5725
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11688
11596
{ (exit 1); exit 1; }; }
11689
11597
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11690
11598
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11691
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11599
if test "${acl_cv_prog_gnu_ld+set}" = set; then
11692
11600
$as_echo_n "(cached) " >&6
11694
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11602
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11695
11603
case `$LD -v 2>&1 </dev/null` in
11696
11604
*GNU* | *'with BFD'*)
11697
lt_cv_prog_gnu_ld=yes
11605
acl_cv_prog_gnu_ld=yes ;;
11700
lt_cv_prog_gnu_ld=no
11607
acl_cv_prog_gnu_ld=no ;;
11704
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11705
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11706
with_gnu_ld=$lt_cv_prog_gnu_ld
11710
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11711
# archiving commands below assume that GNU ld is being used.
11712
if test "$with_gnu_ld" = yes; then
11713
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11714
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'
11716
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11717
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11719
# If archive_cmds runs LD, not CC, wlarc should be empty
11720
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11721
# investigate it a little bit more. (MM)
11724
# ancient GNU ld didn't support --whole-archive et. al.
11725
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11726
grep 'no-whole-archive' > /dev/null; then
11727
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11729
whole_archive_flag_spec_CXX=
11735
# A generic and very simple default shared library creation
11736
# command for GNU C++ for the case where it uses the native
11737
# linker, instead of GNU ld. If possible, this setting should
11738
# overridden to take advantage of the native linker features on
11739
# the platform it is being used on.
11740
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11610
{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11611
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11612
with_gnu_ld=$acl_cv_prog_gnu_ld
11617
{ $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11618
$as_echo_n "checking for shared library run path origin... " >&6; }
11619
if test "${acl_cv_rpath+set}" = set; then
11620
$as_echo_n "(cached) " >&6
11623
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11624
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11626
rm -f ./conftest.sh
11630
{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11631
$as_echo "$acl_cv_rpath" >&6; }
11633
acl_libext="$acl_cv_libext"
11634
acl_shlibext="$acl_cv_shlibext"
11635
acl_libname_spec="$acl_cv_libname_spec"
11636
acl_library_names_spec="$acl_cv_library_names_spec"
11637
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11638
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11639
acl_hardcode_direct="$acl_cv_hardcode_direct"
11640
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11641
# Check whether --enable-rpath was given.
11642
if test "${enable_rpath+set}" = set; then
11643
enableval=$enable_rpath; :
11651
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11652
if test -n "$searchpath"; then
11653
acl_save_IFS="${IFS= }"; IFS=":"
11654
for searchdir in $searchpath; do
11655
if test -d "$searchdir"; then
11656
case "$searchdir" in
11657
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11658
*) searchdir=`cd "$searchdir" && pwd`
11659
case "$searchdir" in
11660
*/lib64 ) acl_libdirstem=lib64 ;;
11665
IFS="$acl_save_IFS"
11743
# Commands to make compiler produce verbose output that lists
11744
# what "hidden" libraries, object files and flags are used when
11745
# linking a shared library.
11746
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11754
# PORTME: fill in a description of your system's C++ link characteristics
11755
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11756
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11760
# FIXME: insert proper C++ library support
11764
if test "$host_cpu" = ia64; then
11765
# On IA64, the linker does run time linking by default, so we don't
11766
# have to do anything special.
11767
aix_use_runtimelinking=no
11768
exp_sym_flag='-Bexport'
11771
aix_use_runtimelinking=no
11773
# Test if we are trying to use run time linking or normal
11774
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11775
# need to do runtime linking.
11776
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11777
for ld_flag in $LDFLAGS; do
11780
aix_use_runtimelinking=yes
11788
exp_sym_flag='-bexport'
11789
no_entry_flag='-bnoentry'
11792
# When large executables or shared objects are built, AIX ld can
11793
# have problems creating the table of contents. If linking a library
11794
# or program results in "error TOC overflow" add -mminimal-toc to
11795
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11796
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11798
archive_cmds_CXX=''
11799
hardcode_direct_CXX=yes
11800
hardcode_libdir_separator_CXX=':'
11801
link_all_deplibs_CXX=yes
11803
if test "$GXX" = yes; then
11804
case $host_os in aix4.[012]|aix4.[012].*)
11805
# We only want to do this on AIX 4.2 and lower, the check
11806
# below for broken collect2 doesn't work under 4.3+
11807
collect2name=`${CC} -print-prog-name=collect2`
11808
if test -f "$collect2name" && \
11809
strings "$collect2name" | grep resolve_lib_name >/dev/null
11811
# We have reworked collect2
11814
# We have old collect2
11815
hardcode_direct_CXX=unsupported
11816
# It fails to find uninstalled libraries when the uninstalled
11817
# path is not listed in the libpath. Setting hardcode_minus_L
11818
# to unsupported forces relinking
11819
hardcode_minus_L_CXX=yes
11820
hardcode_libdir_flag_spec_CXX='-L$libdir'
11821
hardcode_libdir_separator_CXX=
11825
shared_flag='-shared'
11826
if test "$aix_use_runtimelinking" = yes; then
11827
shared_flag="$shared_flag "'${wl}-G'
11831
if test "$host_cpu" = ia64; then
11832
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11833
# chokes on -Wl,-G. The following line is correct:
11678
acl_save_prefix="$prefix"
11679
prefix="$acl_final_prefix"
11680
acl_save_exec_prefix="$exec_prefix"
11681
exec_prefix="$acl_final_exec_prefix"
11683
eval additional_includedir=\"$includedir\"
11684
eval additional_libdir=\"$libdir\"
11686
exec_prefix="$acl_save_exec_prefix"
11687
prefix="$acl_save_prefix"
11690
# Check whether --with-libiconv-prefix was given.
11691
if test "${with_libiconv_prefix+set}" = set; then
11692
withval=$with_libiconv_prefix;
11693
if test "X$withval" = "Xno"; then
11696
if test "X$withval" = "X"; then
11698
acl_save_prefix="$prefix"
11699
prefix="$acl_final_prefix"
11700
acl_save_exec_prefix="$exec_prefix"
11701
exec_prefix="$acl_final_exec_prefix"
11703
eval additional_includedir=\"$includedir\"
11704
eval additional_libdir=\"$libdir\"
11706
exec_prefix="$acl_save_exec_prefix"
11707
prefix="$acl_save_prefix"
11836
if test "$aix_use_runtimelinking" = yes; then
11837
shared_flag='${wl}-G'
11839
shared_flag='${wl}-bM:SRE'
11844
# It seems that -bexpall does not export symbols beginning with
11845
# underscore (_), so it is better to generate a list of symbols to export.
11846
always_export_symbols_CXX=yes
11847
if test "$aix_use_runtimelinking" = yes; then
11848
# Warning - without using the other runtime loading flags (-brtl),
11849
# -berok will link without error, but may produce a broken library.
11850
allow_undefined_flag_CXX='-berok'
11851
# Determine the default libpath from the value encoded in an empty executable.
11710
additional_includedir="$withval/include"
11711
additional_libdir="$withval/$acl_libdirstem"
11723
names_already_handled=
11724
names_next_round='iconv '
11725
while test -n "$names_next_round"; do
11726
names_this_round="$names_next_round"
11728
for name in $names_this_round; do
11730
for n in $names_already_handled; do
11731
if test "$n" = "$name"; then
11732
already_handled=yes
11736
if test -z "$already_handled"; then
11737
names_already_handled="$names_already_handled $name"
11738
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11739
eval value=\"\$HAVE_LIB$uppername\"
11740
if test -n "$value"; then
11741
if test "$value" = yes; then
11742
eval value=\"\$LIB$uppername\"
11743
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11744
eval value=\"\$LTLIB$uppername\"
11745
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11754
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11755
if test -n "$acl_shlibext"; then
11756
shrext=".$acl_shlibext" # typically: shrext=.so
11760
if test $use_additional = yes; then
11761
dir="$additional_libdir"
11762
if test -n "$acl_shlibext"; then
11763
if test -f "$dir/$libname$shrext"; then
11765
found_so="$dir/$libname$shrext"
11767
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11768
ver=`(cd "$dir" && \
11769
for f in "$libname$shrext".*; do echo "$f"; done \
11770
| sed -e "s,^$libname$shrext\\\\.,," \
11771
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11772
| sed 1q ) 2>/dev/null`
11773
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11775
found_so="$dir/$libname$shrext.$ver"
11778
eval library_names=\"$acl_library_names_spec\"
11779
for f in $library_names; do
11780
if test -f "$dir/$f"; then
11789
if test "X$found_dir" = "X"; then
11790
if test -f "$dir/$libname.$acl_libext"; then
11792
found_a="$dir/$libname.$acl_libext"
11795
if test "X$found_dir" != "X"; then
11796
if test -f "$dir/$libname.la"; then
11797
found_la="$dir/$libname.la"
11801
if test "X$found_dir" = "X"; then
11802
for x in $LDFLAGS $LTLIBICONV; do
11804
acl_save_prefix="$prefix"
11805
prefix="$acl_final_prefix"
11806
acl_save_exec_prefix="$exec_prefix"
11807
exec_prefix="$acl_final_exec_prefix"
11809
exec_prefix="$acl_save_exec_prefix"
11810
prefix="$acl_save_prefix"
11814
dir=`echo "X$x" | sed -e 's/^X-L//'`
11815
if test -n "$acl_shlibext"; then
11816
if test -f "$dir/$libname$shrext"; then
11818
found_so="$dir/$libname$shrext"
11820
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11821
ver=`(cd "$dir" && \
11822
for f in "$libname$shrext".*; do echo "$f"; done \
11823
| sed -e "s,^$libname$shrext\\\\.,," \
11824
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11825
| sed 1q ) 2>/dev/null`
11826
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11828
found_so="$dir/$libname$shrext.$ver"
11831
eval library_names=\"$acl_library_names_spec\"
11832
for f in $library_names; do
11833
if test -f "$dir/$f"; then
11842
if test "X$found_dir" = "X"; then
11843
if test -f "$dir/$libname.$acl_libext"; then
11845
found_a="$dir/$libname.$acl_libext"
11848
if test "X$found_dir" != "X"; then
11849
if test -f "$dir/$libname.la"; then
11850
found_la="$dir/$libname.la"
11855
if test "X$found_dir" != "X"; then
11860
if test "X$found_dir" != "X"; then
11861
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11862
if test "X$found_so" != "X"; then
11863
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11864
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11867
for x in $ltrpathdirs; do
11868
if test "X$x" = "X$found_dir"; then
11873
if test -z "$haveit"; then
11874
ltrpathdirs="$ltrpathdirs $found_dir"
11876
if test "$acl_hardcode_direct" = yes; then
11877
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11879
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11880
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11882
for x in $rpathdirs; do
11883
if test "X$x" = "X$found_dir"; then
11888
if test -z "$haveit"; then
11889
rpathdirs="$rpathdirs $found_dir"
11893
for x in $LDFLAGS $LIBICONV; do
11895
acl_save_prefix="$prefix"
11896
prefix="$acl_final_prefix"
11897
acl_save_exec_prefix="$exec_prefix"
11898
exec_prefix="$acl_final_exec_prefix"
11900
exec_prefix="$acl_save_exec_prefix"
11901
prefix="$acl_save_prefix"
11903
if test "X$x" = "X-L$found_dir"; then
11908
if test -z "$haveit"; then
11909
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11911
if test "$acl_hardcode_minus_L" != no; then
11912
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11914
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11920
if test "X$found_a" != "X"; then
11921
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11923
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11926
additional_includedir=
11927
case "$found_dir" in
11928
*/$acl_libdirstem | */$acl_libdirstem/)
11929
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11930
LIBICONV_PREFIX="$basedir"
11931
additional_includedir="$basedir/include"
11934
if test "X$additional_includedir" != "X"; then
11935
if test "X$additional_includedir" != "X/usr/include"; then
11937
if test "X$additional_includedir" = "X/usr/local/include"; then
11938
if test -n "$GCC"; then
11940
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11944
if test -z "$haveit"; then
11945
for x in $CPPFLAGS $INCICONV; do
11947
acl_save_prefix="$prefix"
11948
prefix="$acl_final_prefix"
11949
acl_save_exec_prefix="$exec_prefix"
11950
exec_prefix="$acl_final_exec_prefix"
11952
exec_prefix="$acl_save_exec_prefix"
11953
prefix="$acl_save_prefix"
11955
if test "X$x" = "X-I$additional_includedir"; then
11960
if test -z "$haveit"; then
11961
if test -d "$additional_includedir"; then
11962
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11968
if test -n "$found_la"; then
11969
save_libdir="$libdir"
11970
case "$found_la" in
11971
*/* | *\\*) . "$found_la" ;;
11972
*) . "./$found_la" ;;
11974
libdir="$save_libdir"
11975
for dep in $dependency_libs; do
11978
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11979
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11981
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11982
if test -n "$GCC"; then
11984
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11988
if test -z "$haveit"; then
11990
for x in $LDFLAGS $LIBICONV; do
11992
acl_save_prefix="$prefix"
11993
prefix="$acl_final_prefix"
11994
acl_save_exec_prefix="$exec_prefix"
11995
exec_prefix="$acl_final_exec_prefix"
11997
exec_prefix="$acl_save_exec_prefix"
11998
prefix="$acl_save_prefix"
12000
if test "X$x" = "X-L$additional_libdir"; then
12005
if test -z "$haveit"; then
12006
if test -d "$additional_libdir"; then
12007
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12011
for x in $LDFLAGS $LTLIBICONV; do
12013
acl_save_prefix="$prefix"
12014
prefix="$acl_final_prefix"
12015
acl_save_exec_prefix="$exec_prefix"
12016
exec_prefix="$acl_final_exec_prefix"
12018
exec_prefix="$acl_save_exec_prefix"
12019
prefix="$acl_save_prefix"
12021
if test "X$x" = "X-L$additional_libdir"; then
12026
if test -z "$haveit"; then
12027
if test -d "$additional_libdir"; then
12028
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12035
dir=`echo "X$dep" | sed -e 's/^X-R//'`
12036
if test "$enable_rpath" != no; then
12038
for x in $rpathdirs; do
12039
if test "X$x" = "X$dir"; then
12044
if test -z "$haveit"; then
12045
rpathdirs="$rpathdirs $dir"
12048
for x in $ltrpathdirs; do
12049
if test "X$x" = "X$dir"; then
12054
if test -z "$haveit"; then
12055
ltrpathdirs="$ltrpathdirs $dir"
12060
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12063
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12066
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12067
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12073
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12074
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12080
if test "X$rpathdirs" != "X"; then
12081
if test -n "$acl_hardcode_libdir_separator"; then
12083
for found_dir in $rpathdirs; do
12084
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12086
acl_save_libdir="$libdir"
12088
eval flag=\"$acl_hardcode_libdir_flag_spec\"
12089
libdir="$acl_save_libdir"
12090
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12092
for found_dir in $rpathdirs; do
12093
acl_save_libdir="$libdir"
12094
libdir="$found_dir"
12095
eval flag=\"$acl_hardcode_libdir_flag_spec\"
12096
libdir="$acl_save_libdir"
12097
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12101
if test "X$ltrpathdirs" != "X"; then
12102
for found_dir in $ltrpathdirs; do
12103
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12113
am_save_CPPFLAGS="$CPPFLAGS"
12115
for element in $INCICONV; do
12117
for x in $CPPFLAGS; do
12119
acl_save_prefix="$prefix"
12120
prefix="$acl_final_prefix"
12121
acl_save_exec_prefix="$exec_prefix"
12122
exec_prefix="$acl_final_exec_prefix"
12124
exec_prefix="$acl_save_exec_prefix"
12125
prefix="$acl_save_prefix"
12127
if test "X$x" = "X$element"; then
12132
if test -z "$haveit"; then
12133
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12138
{ $as_echo "$as_me:$LINENO: checking for iconv" >&5
12139
$as_echo_n "checking for iconv... " >&6; }
12140
if test "${am_cv_func_iconv+set}" = set; then
12141
$as_echo_n "(cached) " >&6
12144
am_cv_func_iconv="no, consider installing GNU libiconv"
12146
cat >conftest.$ac_ext <<_ACEOF
12149
cat confdefs.h >>conftest.$ac_ext
12150
cat >>conftest.$ac_ext <<_ACEOF
12151
/* end confdefs.h. */
12152
#include <stdlib.h>
12157
iconv_t cd = iconv_open("","");
12158
iconv(cd,NULL,NULL,NULL,NULL);
12164
rm -f conftest.$ac_objext conftest$ac_exeext
12165
if { (ac_try="$ac_link"
12166
case "(($ac_try" in
12167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168
*) ac_try_echo=$ac_try;;
12170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171
$as_echo "$ac_try_echo") >&5
12172
(eval "$ac_link") 2>conftest.er1
12174
grep -v '^ *+' conftest.er1 >conftest.err
12176
cat conftest.err >&5
12177
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178
(exit $ac_status); } && {
12179
test -z "$ac_c_werror_flag" ||
12180
test ! -s conftest.err
12181
} && test -s conftest$ac_exeext && {
12182
test "$cross_compiling" = yes ||
12183
$as_test_x conftest$ac_exeext
12185
am_cv_func_iconv=yes
12187
$as_echo "$as_me: failed program was:" >&5
12188
sed 's/^/| /' conftest.$ac_ext >&5
12193
rm -rf conftest.dSYM
12194
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195
conftest$ac_exeext conftest.$ac_ext
12196
if test "$am_cv_func_iconv" != yes; then
12197
am_save_LIBS="$LIBS"
12198
LIBS="$LIBS $LIBICONV"
11852
12199
cat >conftest.$ac_ext <<_ACEOF
11853
12200
/* confdefs.h. */
11855
12202
cat confdefs.h >>conftest.$ac_ext
11856
12203
cat >>conftest.$ac_ext <<_ACEOF
11857
12204
/* end confdefs.h. */
11867
rm -f conftest.$ac_objext conftest$ac_exeext
11868
if { (ac_try="$ac_link"
11869
case "(($ac_try" in
11870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871
*) ac_try_echo=$ac_try;;
11873
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11874
$as_echo "$ac_try_echo") >&5
11875
(eval "$ac_link") 2>conftest.er1
11877
grep -v '^ *+' conftest.er1 >conftest.err
11879
cat conftest.err >&5
11880
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881
(exit $ac_status); } && {
11882
test -z "$ac_cxx_werror_flag" ||
11883
test ! -s conftest.err
11884
} && test -s conftest$ac_exeext && {
11885
test "$cross_compiling" = yes ||
11886
$as_test_x conftest$ac_exeext
11889
lt_aix_libpath_sed='
11890
/Import File Strings/,/^$/ {
11896
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11897
# Check for a 64-bit object if we didn't find anything.
11898
if test -z "$aix_libpath"; then
11899
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11902
$as_echo "$as_me: failed program was:" >&5
11903
sed 's/^/| /' conftest.$ac_ext >&5
11908
rm -rf conftest.dSYM
11909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11910
conftest$ac_exeext conftest.$ac_ext
11911
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11913
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11915
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"
11917
if test "$host_cpu" = ia64; then
11918
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11919
allow_undefined_flag_CXX="-z nodefs"
11920
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"
11922
# Determine the default libpath from the value encoded in an empty executable.
11923
cat >conftest.$ac_ext <<_ACEOF
11926
cat confdefs.h >>conftest.$ac_ext
11927
cat >>conftest.$ac_ext <<_ACEOF
11928
/* end confdefs.h. */
11938
rm -f conftest.$ac_objext conftest$ac_exeext
11939
if { (ac_try="$ac_link"
11940
case "(($ac_try" in
11941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942
*) ac_try_echo=$ac_try;;
11944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945
$as_echo "$ac_try_echo") >&5
11946
(eval "$ac_link") 2>conftest.er1
11948
grep -v '^ *+' conftest.er1 >conftest.err
11950
cat conftest.err >&5
11951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952
(exit $ac_status); } && {
11953
test -z "$ac_cxx_werror_flag" ||
11954
test ! -s conftest.err
11955
} && test -s conftest$ac_exeext && {
11956
test "$cross_compiling" = yes ||
11957
$as_test_x conftest$ac_exeext
11960
lt_aix_libpath_sed='
11961
/Import File Strings/,/^$/ {
11967
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11968
# Check for a 64-bit object if we didn't find anything.
11969
if test -z "$aix_libpath"; then
11970
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11973
$as_echo "$as_me: failed program was:" >&5
11974
sed 's/^/| /' conftest.$ac_ext >&5
11979
rm -rf conftest.dSYM
11980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11981
conftest$ac_exeext conftest.$ac_ext
11982
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11984
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11985
# Warning - without using the other run time loading flags,
11986
# -berok will link without error, but may produce a broken library.
11987
no_undefined_flag_CXX=' ${wl}-bernotok'
11988
allow_undefined_flag_CXX=' ${wl}-berok'
11989
# Exported symbols can be pulled into shared objects from archives
11990
whole_archive_flag_spec_CXX='$convenience'
11991
archive_cmds_need_lc_CXX=yes
11992
# This is similar to how AIX traditionally builds its shared libraries.
11993
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'
11999
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12000
allow_undefined_flag_CXX=unsupported
12001
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12002
# support --undefined. This deserves some investigation. FIXME
12003
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12010
case $cc_basename in
12012
# FIXME: insert proper C++ library support
12018
cygwin* | mingw* | pw32*)
12019
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12020
# as there is no search path for DLLs.
12021
hardcode_libdir_flag_spec_CXX='-L$libdir'
12022
allow_undefined_flag_CXX=unsupported
12023
always_export_symbols_CXX=no
12024
enable_shared_with_static_runtimes_CXX=yes
12026
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12027
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'
12028
# If the export-symbols file already is a .def file (1st line
12029
# is EXPORTS), use it as is; otherwise, prepend...
12030
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12031
cp $export_symbols $output_objdir/$soname.def;
12033
echo EXPORTS > $output_objdir/$soname.def;
12034
cat $export_symbols >> $output_objdir/$soname.def;
12036
$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'
12041
darwin* | rhapsody*)
12042
archive_cmds_need_lc_CXX=no
12043
hardcode_direct_CXX=no
12044
hardcode_automatic_CXX=yes
12045
hardcode_shlibpath_var_CXX=unsupported
12046
whole_archive_flag_spec_CXX=''
12047
link_all_deplibs_CXX=yes
12048
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12049
if test "$GXX" = yes ; then
12050
output_verbose_link_cmd='echo'
12051
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12052
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12053
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12054
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12055
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12056
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12057
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12060
case $cc_basename in
12062
output_verbose_link_cmd='echo'
12063
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'
12064
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12065
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12066
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}'
12067
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}'
12077
case $cc_basename in
12079
# FIXME: insert proper C++ library support
12083
# Green Hills C++ Compiler
12084
# FIXME: insert proper C++ library support
12088
# FIXME: insert proper C++ library support
12094
# C++ shared libraries reported to be fairly broken before switch to ELF
12098
archive_cmds_need_lc_CXX=no
12100
freebsd* | dragonfly*)
12101
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12108
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12109
hardcode_libdir_separator_CXX=:
12110
export_dynamic_flag_spec_CXX='${wl}-E'
12111
hardcode_direct_CXX=yes
12112
hardcode_minus_L_CXX=yes # Not in the search PATH,
12113
# but as the default
12114
# location of the library.
12116
case $cc_basename in
12118
# FIXME: insert proper C++ library support
12122
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'
12123
# Commands to make compiler produce verbose output that lists
12124
# what "hidden" libraries, object files and flags are used when
12125
# linking a shared library.
12127
# There doesn't appear to be a way to prevent this compiler from
12128
# explicitly linking system object files so we need to strip them
12129
# from the output so that they don't get included in the library
12131
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'
12134
if test "$GXX" = yes; then
12135
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'
12137
# FIXME: insert proper C++ library support
12144
if test $with_gnu_ld = no; then
12145
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12146
hardcode_libdir_separator_CXX=:
12151
export_dynamic_flag_spec_CXX='${wl}-E'
12157
hardcode_direct_CXX=no
12158
hardcode_shlibpath_var_CXX=no
12161
hardcode_direct_CXX=yes
12162
hardcode_minus_L_CXX=yes # Not in the search PATH,
12163
# but as the default
12164
# location of the library.
12168
case $cc_basename in
12170
# FIXME: insert proper C++ library support
12176
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12179
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12182
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12185
# Commands to make compiler produce verbose output that lists
12186
# what "hidden" libraries, object files and flags are used when
12187
# linking a shared library.
12189
# There doesn't appear to be a way to prevent this compiler from
12190
# explicitly linking system object files so we need to strip them
12191
# from the output so that they don't get included in the library
12193
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'
12196
if test "$GXX" = yes; then
12197
if test $with_gnu_ld = no; then
12200
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12203
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206
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'
12211
# FIXME: insert proper C++ library support
12218
hardcode_direct_CXX=no
12219
hardcode_shlibpath_var_CXX=no
12220
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12221
export_dynamic_flag_spec_CXX='${wl}-E'
12222
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12223
# Instead, shared libraries are loaded at an image base (0x10000000 by
12224
# default) and relocated if they conflict, which is a slow very memory
12225
# consuming and fragmenting process. To avoid this, we pick a random,
12226
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12227
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12228
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'
12229
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'
12232
case $cc_basename in
12235
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'
12237
# Archives containing C++ object files must be created using
12238
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12239
# necessary to make sure instantiated templates are included
12241
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12244
if test "$GXX" = yes; then
12245
if test "$with_gnu_ld" = no; then
12246
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'
12248
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'
12251
link_all_deplibs_CXX=yes
12254
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12255
hardcode_libdir_separator_CXX=:
12257
linux* | k*bsd*-gnu)
12258
case $cc_basename in
12260
# Kuck and Associates, Inc. (KAI) C++ Compiler
12262
# KCC will only create a shared library if the output file
12263
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12264
# to its proper name (with version) after linking.
12265
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'
12266
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'
12267
# Commands to make compiler produce verbose output that lists
12268
# what "hidden" libraries, object files and flags are used when
12269
# linking a shared library.
12271
# There doesn't appear to be a way to prevent this compiler from
12272
# explicitly linking system object files so we need to strip them
12273
# from the output so that they don't get included in the library
12275
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'
12277
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12278
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12280
# Archives containing C++ object files must be created using
12281
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12282
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12287
# version 8.0 and above of icpc choke on multiply defined symbols
12288
# if we add $predep_objects and $postdep_objects, however 7.1 and
12289
# earlier do not add the objects themselves.
12290
case `$CC -V 2>&1` in
12292
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293
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'
12295
*) # Version 8.0 or newer
12298
ia64*) tmp_idyn=' -i_dynamic';;
12300
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301
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'
12304
archive_cmds_need_lc_CXX=no
12305
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12306
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12307
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12310
# Portland Group C++ compiler
12311
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12312
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'
12314
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12315
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12316
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'
12320
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12321
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'
12323
runpath_var=LD_RUN_PATH
12324
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12325
hardcode_libdir_separator_CXX=:
12327
# Commands to make compiler produce verbose output that lists
12328
# what "hidden" libraries, object files and flags are used when
12329
# linking a shared library.
12331
# There doesn't appear to be a way to prevent this compiler from
12332
# explicitly linking system object files so we need to strip them
12333
# from the output so that they don't get included in the library
12335
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'
12338
case `$CC -V 2>&1 | sed 5q` in
12341
no_undefined_flag_CXX=' -zdefs'
12342
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343
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'
12344
hardcode_libdir_flag_spec_CXX='-R$libdir'
12345
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'
12347
# Not sure whether something based on
12348
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12350
output_verbose_link_cmd='echo'
12352
# Archives containing C++ object files must be created using
12353
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12354
# necessary to make sure instantiated templates are included
12356
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12363
# FIXME: insert proper C++ library support
12367
# FIXME: insert proper C++ library support
12371
case $cc_basename in
12373
# FIXME: insert proper C++ library support
12377
# FIXME: insert proper C++ library support
12383
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12384
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12386
hardcode_libdir_flag_spec_CXX='-R$libdir'
12387
hardcode_direct_CXX=yes
12388
hardcode_shlibpath_var_CXX=no
12390
# Workaround some broken pre-1.5 toolchains
12391
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12394
# C++ shared libraries are fairly broken
12398
if test -f /usr/libexec/ld.so; then
12399
hardcode_direct_CXX=yes
12400
hardcode_shlibpath_var_CXX=no
12401
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12402
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12403
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12404
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12405
export_dynamic_flag_spec_CXX='${wl}-E'
12406
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12408
output_verbose_link_cmd='echo'
12414
case $cc_basename in
12416
# Kuck and Associates, Inc. (KAI) C++ Compiler
12418
# KCC will only create a shared library if the output file
12419
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12420
# to its proper name (with version) after linking.
12421
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'
12423
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12424
hardcode_libdir_separator_CXX=:
12426
# Archives containing C++ object files must be created using
12427
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12428
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12432
# Rational C++ 2.4.1
12433
# FIXME: insert proper C++ library support
12437
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12438
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'
12440
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12441
hardcode_libdir_separator_CXX=:
12443
# Commands to make compiler produce verbose output that lists
12444
# what "hidden" libraries, object files and flags are used when
12445
# linking a shared library.
12447
# There doesn't appear to be a way to prevent this compiler from
12448
# explicitly linking system object files so we need to strip them
12449
# from the output so that they don't get included in the library
12451
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'
12454
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12455
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12456
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'
12458
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12459
hardcode_libdir_separator_CXX=:
12461
# Commands to make compiler produce verbose output that lists
12462
# what "hidden" libraries, object files and flags are used when
12463
# linking a shared library.
12464
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12467
# FIXME: insert proper C++ library support
12474
case $cc_basename in
12476
# Kuck and Associates, Inc. (KAI) C++ Compiler
12478
# KCC will only create a shared library if the output file
12479
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12480
# to its proper name (with version) after linking.
12481
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'
12483
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12484
hardcode_libdir_separator_CXX=:
12486
# Archives containing C++ object files must be created using
12487
# the KAI C++ compiler.
12488
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12491
# Rational C++ 2.4.1
12492
# FIXME: insert proper C++ library support
12496
allow_undefined_flag_CXX=' -expect_unresolved \*'
12497
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'
12498
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12499
echo "-hidden">> $lib.exp~
12500
$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~
12503
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12504
hardcode_libdir_separator_CXX=:
12506
# Commands to make compiler produce verbose output that lists
12507
# what "hidden" libraries, object files and flags are used when
12508
# linking a shared library.
12510
# There doesn't appear to be a way to prevent this compiler from
12511
# explicitly linking system object files so we need to strip them
12512
# from the output so that they don't get included in the library
12514
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'
12517
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12518
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12519
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'
12521
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12522
hardcode_libdir_separator_CXX=:
12524
# Commands to make compiler produce verbose output that lists
12525
# what "hidden" libraries, object files and flags are used when
12526
# linking a shared library.
12527
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12530
# FIXME: insert proper C++ library support
12537
# FIXME: insert proper C++ library support
12541
case $cc_basename in
12544
# FIXME: insert proper C++ library support
12549
# FIXME: insert proper C++ library support
12553
# FIXME: insert proper C++ library support
12559
case $cc_basename in
12561
# Sun C++ 4.2, 5.x and Centerline C++
12562
archive_cmds_need_lc_CXX=yes
12563
no_undefined_flag_CXX=' -zdefs'
12564
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12565
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12566
$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'
12568
hardcode_libdir_flag_spec_CXX='-R$libdir'
12569
hardcode_shlibpath_var_CXX=no
12571
solaris2.[0-5] | solaris2.[0-5].*) ;;
12573
# The compiler driver will combine and reorder linker options,
12574
# but understands `-z linker_flag'.
12575
# Supported since Solaris 2.6 (maybe 2.5.1?)
12576
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12579
link_all_deplibs_CXX=yes
12581
output_verbose_link_cmd='echo'
12583
# Archives containing C++ object files must be created using
12584
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12585
# necessary to make sure instantiated templates are included
12587
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12590
# Green Hills C++ Compiler
12591
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12593
# The C++ compiler must be used to create the archive.
12594
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12597
# GNU C++ compiler with Solaris linker
12598
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12599
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12600
if $CC --version | grep -v '^2\.7' > /dev/null; then
12601
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12602
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12603
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12605
# Commands to make compiler produce verbose output that lists
12606
# what "hidden" libraries, object files and flags are used when
12607
# linking a shared library.
12608
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12610
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12612
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12613
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12614
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12616
# Commands to make compiler produce verbose output that lists
12617
# what "hidden" libraries, object files and flags are used when
12618
# linking a shared library.
12619
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12622
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12624
solaris2.[0-5] | solaris2.[0-5].*) ;;
12626
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12633
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12634
no_undefined_flag_CXX='${wl}-z,text'
12635
archive_cmds_need_lc_CXX=no
12636
hardcode_shlibpath_var_CXX=no
12637
runpath_var='LD_RUN_PATH'
12639
case $cc_basename in
12641
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12650
sysv5* | sco3.2v5* | sco5v6*)
12651
# Note: We can NOT use -z defs as we might desire, because we do not
12652
# link with -lc, and that would cause any symbols used from libc to
12653
# always be unresolved, which means just about no library would
12654
# ever link correctly. If we're not using GNU ld we use -z text
12655
# though, which does catch some bad symbols but isn't as heavy-handed
12657
# For security reasons, it is highly recommended that you always
12658
# use absolute paths for naming shared libraries, and exclude the
12659
# DT_RUNPATH tag from executables and libraries. But doing so
12660
# requires that you compile everything twice, which is a pain.
12661
# So that behaviour is only enabled if SCOABSPATH is set to a
12662
# non-empty value in the environment. Most likely only useful for
12663
# creating official distributions of packages.
12664
# This is a hack until libtool officially supports absolute path
12665
# names for shared libraries.
12666
no_undefined_flag_CXX='${wl}-z,text'
12667
allow_undefined_flag_CXX='${wl}-z,nodefs'
12668
archive_cmds_need_lc_CXX=no
12669
hardcode_shlibpath_var_CXX=no
12670
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12671
hardcode_libdir_separator_CXX=':'
12672
link_all_deplibs_CXX=yes
12673
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12674
runpath_var='LD_RUN_PATH'
12676
case $cc_basename in
12678
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12679
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12682
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12683
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12688
case $cc_basename in
12690
# NonStop-UX NCC 3.20
12691
# FIXME: insert proper C++ library support
12695
# FIXME: insert proper C++ library support
12701
# FIXME: insert proper C++ library support
12705
# FIXME: insert proper C++ library support
12709
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12710
$as_echo "$ld_shlibs_CXX" >&6; }
12711
test "$ld_shlibs_CXX" = no && can_build_shared=no
12716
cat > conftest.$ac_ext <<EOF
12720
Foo (void) { a = 0; }
12726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727
(eval $ac_compile) 2>&5
12729
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730
(exit $ac_status); }; then
12731
# Parse the compiler output and extract the necessary
12732
# objects, libraries and library flags.
12734
# Sentinel used to keep track of whether or not we are before
12735
# the conftest object file.
12736
pre_test_object_deps_done=no
12738
# The `*' in the case matches for architectures that use `case' in
12739
# $output_verbose_cmd can trigger glob expansion during the loop
12740
# eval without this substitution.
12741
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12743
for p in `eval $output_verbose_link_cmd`; do
12747
# Some compilers place space between "-{L,R}" and the path.
12748
# Remove the space.
12749
if test $p = "-L" \
12750
|| test $p = "-R"; then
12757
if test "$pre_test_object_deps_done" = no; then
12760
# Internal compiler library paths should come after those
12761
# provided the user. The postdeps already come after the
12762
# user supplied libs so there is no need to process them.
12763
if test -z "$compiler_lib_search_path_CXX"; then
12764
compiler_lib_search_path_CXX="${prev}${p}"
12766
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12769
# The "-l" case would never come before the object being
12770
# linked, so don't bother handling this case.
12773
if test -z "$postdeps_CXX"; then
12774
postdeps_CXX="${prev}${p}"
12776
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12782
# This assumes that the test object file only shows up
12783
# once in the compiler output.
12784
if test "$p" = "conftest.$objext"; then
12785
pre_test_object_deps_done=yes
12789
if test "$pre_test_object_deps_done" = no; then
12790
if test -z "$predep_objects_CXX"; then
12791
predep_objects_CXX="$p"
12793
predep_objects_CXX="$predep_objects_CXX $p"
12796
if test -z "$postdep_objects_CXX"; then
12797
postdep_objects_CXX="$p"
12799
postdep_objects_CXX="$postdep_objects_CXX $p"
12804
*) ;; # Ignore the rest.
12812
echo "libtool.m4: error: problem compiling CXX test program"
12815
$rm -f confest.$objext
12817
compiler_lib_search_dirs_CXX=
12818
if test -n "$compiler_lib_search_path_CXX"; then
12819
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12822
# PORTME: override above test on systems where it is broken
12825
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12826
# hack all around it, let's just trust "g++" to DTRT.
12827
predep_objects_CXX=
12828
postdep_objects_CXX=
12833
case `$CC -V 2>&1 | sed 5q` in
12837
# The more standards-conforming stlport4 library is
12838
# incompatible with the Cstd library. Avoid specifying
12839
# it if it's in CXXFLAGS. Ignore libCrun as
12840
# -library=stlport4 depends on it.
12841
case " $CXX $CXXFLAGS " in
12842
*" -library=stlport4 "*)
12843
solaris_use_stlport4=yes
12846
if test "$solaris_use_stlport4" != yes; then
12847
postdeps_CXX='-library=Cstd -library=Crun'
12854
case $cc_basename in
12856
# The more standards-conforming stlport4 library is
12857
# incompatible with the Cstd library. Avoid specifying
12858
# it if it's in CXXFLAGS. Ignore libCrun as
12859
# -library=stlport4 depends on it.
12860
case " $CXX $CXXFLAGS " in
12861
*" -library=stlport4 "*)
12862
solaris_use_stlport4=yes
12866
# Adding this requires a known-good setup of shared libraries for
12867
# Sun compiler versions before 5.6, else PIC objects from an old
12868
# archive will be linked into the output, leading to subtle bugs.
12869
if test "$solaris_use_stlport4" != yes; then
12870
postdeps_CXX='-library=Cstd -library=Crun'
12877
case " $postdeps_CXX " in
12878
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12881
lt_prog_compiler_wl_CXX=
12882
lt_prog_compiler_pic_CXX=
12883
lt_prog_compiler_static_CXX=
12885
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12886
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12888
# C++ specific cases for pic, static, wl, etc.
12889
if test "$GXX" = yes; then
12890
lt_prog_compiler_wl_CXX='-Wl,'
12891
lt_prog_compiler_static_CXX='-static'
12895
# All AIX code is PIC.
12896
if test "$host_cpu" = ia64; then
12897
# AIX 5 now supports IA64 processor
12898
lt_prog_compiler_static_CXX='-Bstatic'
12902
# FIXME: we need at least 68020 code to build shared libraries, but
12903
# adding the `-m68020' flag to GCC prevents building anything better,
12905
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12907
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12908
# PIC is the default for these OSes.
12910
mingw* | cygwin* | os2* | pw32*)
12911
# This hack is so that the source file can tell whether it is being
12912
# built for inclusion in a dll (and should export symbols for example).
12913
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12914
# (--disable-auto-import) libraries
12915
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12917
darwin* | rhapsody*)
12918
# PIC is the default on this platform
12919
# Common symbols not allowed in MH_DYLIB files
12920
lt_prog_compiler_pic_CXX='-fno-common'
12923
# DJGPP does not support shared libraries at all
12924
lt_prog_compiler_pic_CXX=
12927
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12928
# Instead, we relocate shared libraries at runtime.
12931
if test -d /usr/nec; then
12932
lt_prog_compiler_pic_CXX=-Kconform_pic
12936
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937
# not for PA HP-UX.
12942
lt_prog_compiler_pic_CXX='-fPIC'
12947
lt_prog_compiler_pic_CXX='-fPIC'
12953
# All AIX code is PIC.
12954
if test "$host_cpu" = ia64; then
12955
# AIX 5 now supports IA64 processor
12956
lt_prog_compiler_static_CXX='-Bstatic'
12958
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12962
case $cc_basename in
12964
# Green Hills C++ Compiler
12965
# _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"
12970
# PIC is the default on this platform
12971
# Common symbols not allowed in MH_DYLIB files
12972
case $cc_basename in
12974
lt_prog_compiler_pic_CXX='-qnocommon'
12975
lt_prog_compiler_wl_CXX='-Wl,'
12205
#include <stdlib.h>
12210
iconv_t cd = iconv_open("","");
12211
iconv(cd,NULL,NULL,NULL,NULL);
12217
rm -f conftest.$ac_objext conftest$ac_exeext
12218
if { (ac_try="$ac_link"
12219
case "(($ac_try" in
12220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221
*) ac_try_echo=$ac_try;;
12223
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12224
$as_echo "$ac_try_echo") >&5
12225
(eval "$ac_link") 2>conftest.er1
12227
grep -v '^ *+' conftest.er1 >conftest.err
12229
cat conftest.err >&5
12230
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231
(exit $ac_status); } && {
12232
test -z "$ac_c_werror_flag" ||
12233
test ! -s conftest.err
12234
} && test -s conftest$ac_exeext && {
12235
test "$cross_compiling" = yes ||
12236
$as_test_x conftest$ac_exeext
12238
am_cv_lib_iconv=yes
12239
am_cv_func_iconv=yes
12241
$as_echo "$as_me: failed program was:" >&5
12242
sed 's/^/| /' conftest.$ac_ext >&5
12247
rm -rf conftest.dSYM
12248
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12249
conftest$ac_exeext conftest.$ac_ext
12250
LIBS="$am_save_LIBS"
12254
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12255
$as_echo "$am_cv_func_iconv" >&6; }
12256
if test "$am_cv_func_iconv" = yes; then
12257
{ $as_echo "$as_me:$LINENO: checking for working iconv" >&5
12258
$as_echo_n "checking for working iconv... " >&6; }
12259
if test "${am_cv_func_iconv_works+set}" = set; then
12260
$as_echo_n "(cached) " >&6
12263
am_save_LIBS="$LIBS"
12264
if test $am_cv_lib_iconv = yes; then
12265
LIBS="$LIBS $LIBICONV"
12267
if test "$cross_compiling" = yes; then
12269
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12270
*) am_cv_func_iconv_works="guessing yes" ;;
12980
case $cc_basename in
12982
lt_prog_compiler_pic_CXX='-KPIC'
12985
# Green Hills C++ Compiler
12986
lt_prog_compiler_pic_CXX='-pic'
12992
freebsd* | dragonfly*)
12993
# FreeBSD uses GNU C++
12995
hpux9* | hpux10* | hpux11*)
12996
case $cc_basename in
12998
lt_prog_compiler_wl_CXX='-Wl,'
12999
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13000
if test "$host_cpu" != ia64; then
13001
lt_prog_compiler_pic_CXX='+Z'
13005
lt_prog_compiler_wl_CXX='-Wl,'
13006
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13012
lt_prog_compiler_pic_CXX='+Z'
13021
# This is c89, which is MS Visual C++ (no shared libs)
13022
# Anyone wants to do a port?
13024
irix5* | irix6* | nonstopux*)
13025
case $cc_basename in
13027
lt_prog_compiler_wl_CXX='-Wl,'
13028
lt_prog_compiler_static_CXX='-non_shared'
13029
# CC pic flag -KPIC is the default.
13035
linux* | k*bsd*-gnu)
13036
case $cc_basename in
13039
lt_prog_compiler_wl_CXX='--backend -Wl,'
13040
lt_prog_compiler_pic_CXX='-fPIC'
13044
lt_prog_compiler_wl_CXX='-Wl,'
13045
lt_prog_compiler_pic_CXX='-KPIC'
13046
lt_prog_compiler_static_CXX='-static'
13049
# Portland Group C++ compiler.
13050
lt_prog_compiler_wl_CXX='-Wl,'
13051
lt_prog_compiler_pic_CXX='-fpic'
13052
lt_prog_compiler_static_CXX='-Bstatic'
13056
# Make sure the PIC flag is empty. It appears that all Alpha
13057
# Linux and Compaq Tru64 Unix objects are PIC.
13058
lt_prog_compiler_pic_CXX=
13059
lt_prog_compiler_static_CXX='-non_shared'
13062
case `$CC -V 2>&1 | sed 5q` in
13065
lt_prog_compiler_pic_CXX='-KPIC'
13066
lt_prog_compiler_static_CXX='-Bstatic'
13067
lt_prog_compiler_wl_CXX='-Qoption ld '
13078
case $cc_basename in
13080
lt_prog_compiler_pic_CXX='-W c,exportall'
13088
osf3* | osf4* | osf5*)
13089
case $cc_basename in
13091
lt_prog_compiler_wl_CXX='--backend -Wl,'
13094
# Rational C++ 2.4.1
13095
lt_prog_compiler_pic_CXX='-pic'
13098
# Digital/Compaq C++
13099
lt_prog_compiler_wl_CXX='-Wl,'
13100
# Make sure the PIC flag is empty. It appears that all Alpha
13101
# Linux and Compaq Tru64 Unix objects are PIC.
13102
lt_prog_compiler_pic_CXX=
13103
lt_prog_compiler_static_CXX='-non_shared'
13112
case $cc_basename in
13114
# Sun C++ 4.2, 5.x and Centerline C++
13115
lt_prog_compiler_pic_CXX='-KPIC'
13116
lt_prog_compiler_static_CXX='-Bstatic'
13117
lt_prog_compiler_wl_CXX='-Qoption ld '
13120
# Green Hills C++ Compiler
13121
lt_prog_compiler_pic_CXX='-PIC'
13128
case $cc_basename in
13131
lt_prog_compiler_pic_CXX='-pic'
13132
lt_prog_compiler_static_CXX='-Bstatic'
13136
lt_prog_compiler_pic_CXX='-pic'
13143
case $cc_basename in
13145
# NonStop-UX NCC 3.20
13146
lt_prog_compiler_pic_CXX='-KPIC'
13152
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13153
case $cc_basename in
13155
lt_prog_compiler_wl_CXX='-Wl,'
13156
lt_prog_compiler_pic_CXX='-KPIC'
13157
lt_prog_compiler_static_CXX='-Bstatic'
13164
lt_prog_compiler_can_build_shared_CXX=no
13169
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13170
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13173
# Check to make sure the PIC flag actually works.
13175
if test -n "$lt_prog_compiler_pic_CXX"; then
13177
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13178
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13179
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13180
$as_echo_n "(cached) " >&6
13182
lt_cv_prog_compiler_pic_works_CXX=no
13183
ac_outfile=conftest.$ac_objext
13184
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13185
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13186
# Insert the option either (1) after the last *FLAGS variable, or
13187
# (2) before a word containing "conftest.", or (3) at the end.
13188
# Note that $ac_compile itself does not contain backslashes and begins
13189
# with a dollar sign (not a hyphen), so the echo should work correctly.
13190
# The option is referenced via a variable to avoid confusing sed.
13191
lt_compile=`echo "$ac_compile" | $SED \
13192
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13193
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13194
-e 's:$: $lt_compiler_flag:'`
13195
(eval echo "\"\$as_me:13195: $lt_compile\"" >&5)
13196
(eval "$lt_compile" 2>conftest.err)
13198
cat conftest.err >&5
13199
echo "$as_me:13199: \$? = $ac_status" >&5
13200
if (exit $ac_status) && test -s "$ac_outfile"; then
13201
# The compiler can only warn and ignore the option if not recognized
13202
# So say no if there are warnings other than the usual output.
13203
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13204
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13205
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13206
lt_cv_prog_compiler_pic_works_CXX=yes
13212
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13213
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13215
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13216
case $lt_prog_compiler_pic_CXX in
13218
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13221
lt_prog_compiler_pic_CXX=
13222
lt_prog_compiler_can_build_shared_CXX=no
13227
# For platforms which do not support PIC, -DPIC is meaningless:
13229
lt_prog_compiler_pic_CXX=
13232
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13237
# Check to make sure the static flag actually works.
13239
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13240
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13241
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13242
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13243
$as_echo_n "(cached) " >&6
13245
lt_cv_prog_compiler_static_works_CXX=no
13246
save_LDFLAGS="$LDFLAGS"
13247
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13248
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13249
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13250
# The linker can only warn and ignore the option if not recognized
13251
# So say no if there are warnings
13252
if test -s conftest.err; then
13253
# Append any errors to the config.log.
13254
cat conftest.err 1>&5
13255
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13256
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13257
if diff conftest.exp conftest.er2 >/dev/null; then
13258
lt_cv_prog_compiler_static_works_CXX=yes
13261
lt_cv_prog_compiler_static_works_CXX=yes
13265
LDFLAGS="$save_LDFLAGS"
13268
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13269
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13271
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13274
lt_prog_compiler_static_CXX=
13278
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13279
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13280
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13281
$as_echo_n "(cached) " >&6
13283
lt_cv_prog_compiler_c_o_CXX=no
13284
$rm -r conftest 2>/dev/null
13288
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13290
lt_compiler_flag="-o out/conftest2.$ac_objext"
13291
# Insert the option either (1) after the last *FLAGS variable, or
13292
# (2) before a word containing "conftest.", or (3) at the end.
13293
# Note that $ac_compile itself does not contain backslashes and begins
13294
# with a dollar sign (not a hyphen), so the echo should work correctly.
13295
lt_compile=`echo "$ac_compile" | $SED \
13296
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13297
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13298
-e 's:$: $lt_compiler_flag:'`
13299
(eval echo "\"\$as_me:13299: $lt_compile\"" >&5)
13300
(eval "$lt_compile" 2>out/conftest.err)
13302
cat out/conftest.err >&5
13303
echo "$as_me:13303: \$? = $ac_status" >&5
13304
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13306
# The compiler can only warn and ignore the option if not recognized
13307
# So say no if there are warnings
13308
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13309
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13310
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13311
lt_cv_prog_compiler_c_o_CXX=yes
13316
# SGI C++ compiler will create directory out/ii_files/ for
13317
# template instantiation
13318
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13319
$rm out/* && rmdir out
13325
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13326
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13329
hard_links="nottested"
13330
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13331
# do not overwrite the value of need_locks provided by the user
13332
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13333
$as_echo_n "checking if we can lock with hard links... " >&6; }
13336
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13338
ln conftest.a conftest.b 2>&5 || hard_links=no
13339
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13340
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13341
$as_echo "$hard_links" >&6; }
13342
if test "$hard_links" = no; then
13343
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13344
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13351
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13352
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13354
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13357
# If we're using GNU nm, then we don't want the "-C" option.
13358
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13359
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360
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'
13362
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'
13366
export_symbols_cmds_CXX="$ltdll_cmds"
13369
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'
13372
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13375
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13377
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13378
$as_echo "$ld_shlibs_CXX" >&6; }
13379
test "$ld_shlibs_CXX" = no && can_build_shared=no
13382
# Do we need to explicitly link libc?
13384
case "x$archive_cmds_need_lc_CXX" in
13386
# Assume -lc should be added
13387
archive_cmds_need_lc_CXX=yes
13389
if test "$enable_shared" = yes && test "$GCC" = yes; then
13390
case $archive_cmds_CXX in
13392
# FIXME: we may have to deal with multi-command sequences.
13395
# Test whether the compiler implicitly links with -lc since on some
13396
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13397
# to ld, don't add -lc before -lgcc.
13398
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13399
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13401
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404
(eval $ac_compile) 2>&5
13406
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407
(exit $ac_status); } 2>conftest.err; then
13410
libobjs=conftest.$ac_objext
13412
wl=$lt_prog_compiler_wl_CXX
13413
pic_flag=$lt_prog_compiler_pic_CXX
13419
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13420
allow_undefined_flag_CXX=
13421
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13422
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13424
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425
(exit $ac_status); }
13427
archive_cmds_need_lc_CXX=no
13429
archive_cmds_need_lc_CXX=yes
13431
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13433
cat conftest.err 1>&5
13436
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13437
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13444
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13445
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13446
library_names_spec=
13447
libname_spec='lib$name'
13451
postuninstall_cmds=
13455
shlibpath_overrides_runpath=unknown
13457
dynamic_linker="$host_os ld.so"
13458
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13460
need_lib_prefix=unknown
13461
hardcode_into_libs=no
13463
# when you set need_version to no, make sure it does not cause -set_version
13464
# flags to be left without arguments
13465
need_version=unknown
13470
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13471
shlibpath_var=LIBPATH
13473
# AIX 3 has no versioning support, so we append a major version to the name.
13474
soname_spec='${libname}${release}${shared_ext}$major'
13481
hardcode_into_libs=yes
13482
if test "$host_cpu" = ia64; then
13483
# AIX 5 supports IA64
13484
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13485
shlibpath_var=LD_LIBRARY_PATH
13487
# With GCC up to 2.95.x, collect2 would create an import file
13488
# for dependence libraries. The import file would start with
13489
# the line `#! .'. This would cause the generated library to
13490
# depend on `.', always an invalid library. This was fixed in
13491
# development snapshots of GCC prior to 3.0.
13493
aix4 | aix4.[01] | aix4.[01].*)
13494
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13496
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13499
can_build_shared=no
13503
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13504
# soname into executable. Probably we can add versioning support to
13505
# collect2, so additional links can be useful in future.
13506
if test "$aix_use_runtimelinking" = yes; then
13507
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13508
# instead of lib<name>.a to let people know that these are not
13509
# typical AIX shared libraries.
13510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512
# We preserve .a as extension for shared libraries through AIX4.2
13513
# and later when we are not doing run time linking.
13514
library_names_spec='${libname}${release}.a $libname.a'
13515
soname_spec='${libname}${release}${shared_ext}$major'
13517
shlibpath_var=LIBPATH
13522
library_names_spec='$libname.ixlibrary $libname.a'
13523
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13524
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'
13528
library_names_spec='${libname}${shared_ext}'
13529
dynamic_linker="$host_os ld.so"
13530
shlibpath_var=LIBRARY_PATH
13536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537
soname_spec='${libname}${release}${shared_ext}$major'
13538
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13539
shlibpath_var=LD_LIBRARY_PATH
13540
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13541
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13542
# the default ld.so.conf also contains /usr/contrib/lib and
13543
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13544
# libtool to hard-code these into programs
13547
cygwin* | mingw* | pw32*)
13548
version_type=windows
13553
case $GCC,$host_os in
13554
yes,cygwin* | yes,mingw* | yes,pw32*)
13555
library_names_spec='$libname.dll.a'
13556
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13557
postinstall_cmds='base_file=`basename \${file}`~
13558
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13559
dldir=$destdir/`dirname \$dlpath`~
13560
test -d \$dldir || mkdir -p \$dldir~
13561
$install_prog $dir/$dlname \$dldir/$dlname~
13562
chmod a+x \$dldir/$dlname'
13563
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13564
dlpath=$dir/\$dldll~
13566
shlibpath_overrides_runpath=yes
13570
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13571
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13572
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13575
# MinGW DLLs use traditional 'lib' prefix
13576
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13577
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13578
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13579
# It is most probably a Windows format PATH printed by
13580
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13581
# path with ; separators, and with drive letters. We can handle the
13582
# drive letters (cygwin fileutils understands them), so leave them,
13583
# especially as we might pass files found there to a mingw objdump,
13584
# which wouldn't understand a cygwinified path. Ahh.
13585
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13587
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13591
# pw32 DLLs use 'pw' prefix rather than 'lib'
13592
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13598
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13601
dynamic_linker='Win32 ld.exe'
13602
# FIXME: first we should search . and the directory the executable is in
13606
darwin* | rhapsody*)
13607
dynamic_linker="$host_os dyld"
13608
version_type=darwin
13611
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13612
soname_spec='${libname}${release}${major}$shared_ext'
13613
shlibpath_overrides_runpath=yes
13614
shlibpath_var=DYLD_LIBRARY_PATH
13615
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13617
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13625
soname_spec='${libname}${release}${shared_ext}$major'
13626
shlibpath_var=LD_LIBRARY_PATH
13633
freebsd* | dragonfly*)
13634
# DragonFly does not have aout. When/if they implement a new
13635
# versioning mechanism, adjust this.
13636
if test -x /usr/bin/objformat; then
13637
objformat=`/usr/bin/objformat`
13640
freebsd[123]*) objformat=aout ;;
13641
*) objformat=elf ;;
13644
version_type=freebsd-$objformat
13645
case $version_type in
13647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13652
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13656
shlibpath_var=LD_LIBRARY_PATH
13659
shlibpath_overrides_runpath=yes
13661
freebsd3.[01]* | freebsdelf3.[01]*)
13662
shlibpath_overrides_runpath=yes
13663
hardcode_into_libs=yes
13665
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13666
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13667
shlibpath_overrides_runpath=no
13668
hardcode_into_libs=yes
13670
*) # from 4.6 on, and DragonFly
13671
shlibpath_overrides_runpath=yes
13672
hardcode_into_libs=yes
13681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13682
soname_spec='${libname}${release}${shared_ext}$major'
13683
shlibpath_var=LD_LIBRARY_PATH
13684
hardcode_into_libs=yes
13687
hpux9* | hpux10* | hpux11*)
13688
# Give a soname corresponding to the major version so that dld.sl refuses to
13689
# link against other versions.
13696
hardcode_into_libs=yes
13697
dynamic_linker="$host_os dld.so"
13698
shlibpath_var=LD_LIBRARY_PATH
13699
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701
soname_spec='${libname}${release}${shared_ext}$major'
13702
if test "X$HPUX_IA64_MODE" = X32; then
13703
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13705
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13707
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13711
hardcode_into_libs=yes
13712
dynamic_linker="$host_os dld.sl"
13713
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13714
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716
soname_spec='${libname}${release}${shared_ext}$major'
13717
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13718
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13722
dynamic_linker="$host_os dld.sl"
13723
shlibpath_var=SHLIB_PATH
13724
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726
soname_spec='${libname}${release}${shared_ext}$major'
13729
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13730
postinstall_cmds='chmod 555 $lib'
13737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13738
soname_spec='${libname}${release}${shared_ext}$major'
13739
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13740
shlibpath_var=LD_LIBRARY_PATH
13741
shlibpath_overrides_runpath=no
13742
hardcode_into_libs=yes
13745
irix5* | irix6* | nonstopux*)
13747
nonstopux*) version_type=nonstopux ;;
13749
if test "$lt_cv_prog_gnu_ld" = yes; then
13757
soname_spec='${libname}${release}${shared_ext}$major'
13758
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13760
irix5* | nonstopux*)
13761
libsuff= shlibsuff=
13764
case $LD in # libtool.m4 will add one of these switches to LD
13765
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13766
libsuff= shlibsuff= libmagic=32-bit;;
13767
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13768
libsuff=32 shlibsuff=N32 libmagic=N32;;
13769
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13770
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13771
*) libsuff= shlibsuff= libmagic=never-match;;
13775
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13776
shlibpath_overrides_runpath=no
13777
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13778
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13779
hardcode_into_libs=yes
13782
# No shared lib support for Linux oldld, aout, or coff.
13783
linux*oldld* | linux*aout* | linux*coff*)
13787
# This must be Linux ELF.
13788
linux* | k*bsd*-gnu)
13792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793
soname_spec='${libname}${release}${shared_ext}$major'
13794
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13795
shlibpath_var=LD_LIBRARY_PATH
13796
shlibpath_overrides_runpath=no
13797
# This implies no fast_install, which is unacceptable.
13798
# Some rework will be needed to allow for fast_install
13799
# before this can be enabled.
13800
hardcode_into_libs=yes
13801
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13802
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13804
# Append ld.so.conf contents to the search path
13805
if test -f /etc/ld.so.conf; then
13806
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' ' '`
13807
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13810
# We used to test for /lib/ld.so.1 and disable shared libraries on
13811
# powerpc, because MkLinux only supported shared libraries with the
13812
# GNU dynamic linker. Since this was broken with cross compilers,
13813
# most powerpc-linux boxes support dynamic linking these days and
13814
# people can always --disable-shared, the test was removed, and we
13815
# assume the GNU/Linux dynamic linker is in use.
13816
dynamic_linker='GNU/Linux ld.so'
13823
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13825
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13826
dynamic_linker='NetBSD (a.out) ld.so'
13828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13829
soname_spec='${libname}${release}${shared_ext}$major'
13830
dynamic_linker='NetBSD ld.elf_so'
13832
shlibpath_var=LD_LIBRARY_PATH
13833
shlibpath_overrides_runpath=yes
13834
hardcode_into_libs=yes
13839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840
shlibpath_var=LD_LIBRARY_PATH
13841
shlibpath_overrides_runpath=yes
13848
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13849
soname_spec='${libname}${release}${shared_ext}$major'
13850
shlibpath_var=LD_LIBRARY_PATH
13851
shlibpath_overrides_runpath=yes
13856
sys_lib_dlsearch_path_spec="/usr/lib"
13858
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13860
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13861
*) need_version=no ;;
13863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13864
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13865
shlibpath_var=LD_LIBRARY_PATH
13866
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13868
openbsd2.[89] | openbsd2.[89].*)
13869
shlibpath_overrides_runpath=no
13872
shlibpath_overrides_runpath=yes
13876
shlibpath_overrides_runpath=yes
13881
libname_spec='$name'
13884
library_names_spec='$libname${shared_ext} $libname.a'
13885
dynamic_linker='OS/2 ld.exe'
13886
shlibpath_var=LIBPATH
13889
osf3* | osf4* | osf5*)
13893
soname_spec='${libname}${release}${shared_ext}$major'
13894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895
shlibpath_var=LD_LIBRARY_PATH
13896
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13897
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909
soname_spec='${libname}${release}${shared_ext}$major'
13910
shlibpath_var=LD_LIBRARY_PATH
13911
shlibpath_overrides_runpath=yes
13912
hardcode_into_libs=yes
13913
# ldd complains unless libraries are executable
13914
postinstall_cmds='chmod +x $lib'
13919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13921
shlibpath_var=LD_LIBRARY_PATH
13922
shlibpath_overrides_runpath=yes
13923
if test "$with_gnu_ld" = yes; then
13931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932
soname_spec='${libname}${release}${shared_ext}$major'
13933
shlibpath_var=LD_LIBRARY_PATH
13934
case $host_vendor in
13936
shlibpath_overrides_runpath=no
13938
export_dynamic_flag_spec='${wl}-Blargedynsym'
13939
runpath_var=LD_RUN_PATH
13947
shlibpath_overrides_runpath=no
13948
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13954
if test -d /usr/nec ;then
13956
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13957
soname_spec='$libname${shared_ext}.$major'
13958
shlibpath_var=LD_LIBRARY_PATH
13962
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13963
version_type=freebsd-elf
13966
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13967
soname_spec='${libname}${release}${shared_ext}$major'
13968
shlibpath_var=LD_LIBRARY_PATH
13969
hardcode_into_libs=yes
13970
if test "$with_gnu_ld" = yes; then
13971
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13972
shlibpath_overrides_runpath=no
13974
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13975
shlibpath_overrides_runpath=yes
13978
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13982
sys_lib_dlsearch_path_spec='/usr/lib'
13987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988
soname_spec='${libname}${release}${shared_ext}$major'
13989
shlibpath_var=LD_LIBRARY_PATH
13996
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13997
$as_echo "$dynamic_linker" >&6; }
13998
test "$dynamic_linker" = no && can_build_shared=no
14000
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14001
$as_echo_n "(cached) " >&6
14003
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14006
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14007
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14008
$as_echo_n "(cached) " >&6
14010
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14013
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14015
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14016
if test "$GCC" = yes; then
14017
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14020
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14021
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14022
hardcode_action_CXX=
14023
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14024
test -n "$runpath_var_CXX" || \
14025
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14027
# We can hardcode non-existant directories.
14028
if test "$hardcode_direct_CXX" != no &&
14029
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14030
# have to relink, otherwise we might link with an installed library
14031
# when we should be linking with a yet-to-be-installed one
14032
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14033
test "$hardcode_minus_L_CXX" != no; then
14034
# Linking always hardcodes the temporary library directory.
14035
hardcode_action_CXX=relink
14037
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14038
hardcode_action_CXX=immediate
14041
# We cannot hardcode anything, or else we can only hardcode existing
14043
hardcode_action_CXX=unsupported
14045
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14046
$as_echo "$hardcode_action_CXX" >&6; }
14048
if test "$hardcode_action_CXX" = relink; then
14049
# Fast installation is not supported
14050
enable_fast_install=no
14051
elif test "$shlibpath_overrides_runpath" = yes ||
14052
test "$enable_shared" = no; then
14053
# Fast installation is not necessary
14054
enable_fast_install=needless
14058
# The else clause should only fire when bootstrapping the
14059
# libtool distribution, otherwise you forgot to ship ltmain.sh
14060
# with your package, and you will get complaints that there are
14061
# no rules to generate ltmain.sh.
14062
if test -f "$ltmain"; then
14063
# See if we are running on zsh, and set the options which allow our commands through
14064
# without removal of \ escapes.
14065
if test -n "${ZSH_VERSION+set}" ; then
14066
setopt NO_GLOB_SUBST
14068
# Now quote all the things that may contain metacharacters while being
14069
# careful not to overquote the AC_SUBSTed values. We take copies of the
14070
# variables and quote the copies for generation of the libtool script.
14071
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14073
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14074
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14075
deplibs_check_method reload_flag reload_cmds need_locks \
14076
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14077
lt_cv_sys_global_symbol_to_c_name_address \
14078
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14079
old_postinstall_cmds old_postuninstall_cmds \
14083
lt_prog_compiler_wl_CXX \
14084
lt_prog_compiler_pic_CXX \
14085
lt_prog_compiler_static_CXX \
14086
lt_prog_compiler_no_builtin_flag_CXX \
14087
export_dynamic_flag_spec_CXX \
14088
thread_safe_flag_spec_CXX \
14089
whole_archive_flag_spec_CXX \
14090
enable_shared_with_static_runtimes_CXX \
14091
old_archive_cmds_CXX \
14092
old_archive_from_new_cmds_CXX \
14093
predep_objects_CXX \
14094
postdep_objects_CXX \
14097
compiler_lib_search_path_CXX \
14098
compiler_lib_search_dirs_CXX \
14100
archive_expsym_cmds_CXX \
14101
postinstall_cmds_CXX \
14102
postuninstall_cmds_CXX \
14103
old_archive_from_expsyms_cmds_CXX \
14104
allow_undefined_flag_CXX \
14105
no_undefined_flag_CXX \
14106
export_symbols_cmds_CXX \
14107
hardcode_libdir_flag_spec_CXX \
14108
hardcode_libdir_flag_spec_ld_CXX \
14109
hardcode_libdir_separator_CXX \
14110
hardcode_automatic_CXX \
14112
module_expsym_cmds_CXX \
14113
lt_cv_prog_compiler_c_o_CXX \
14114
fix_srcfile_path_CXX \
14115
exclude_expsyms_CXX \
14116
include_expsyms_CXX; do
14119
old_archive_cmds_CXX | \
14120
old_archive_from_new_cmds_CXX | \
14121
archive_cmds_CXX | \
14122
archive_expsym_cmds_CXX | \
14123
module_cmds_CXX | \
14124
module_expsym_cmds_CXX | \
14125
old_archive_from_expsyms_cmds_CXX | \
14126
export_symbols_cmds_CXX | \
14127
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14128
postinstall_cmds | postuninstall_cmds | \
14129
old_postinstall_cmds | old_postuninstall_cmds | \
14130
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14131
# Double-quote double-evaled strings.
14132
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14135
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14141
*'\$0 --fallback-echo"')
14142
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14148
cat <<__EOF__ >> "$cfgfile"
14149
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14151
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14153
# Shell to use when invoking shell scripts.
14156
# Whether or not to build shared libraries.
14157
build_libtool_libs=$enable_shared
14159
# Whether or not to build static libraries.
14160
build_old_libs=$enable_static
14162
# Whether or not to add -lc for building shared libraries.
14163
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14165
# Whether or not to disallow shared libs when runtime libs are static
14166
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14168
# Whether or not to optimize for fast installation.
14169
fast_install=$enable_fast_install
14172
host_alias=$host_alias
14176
# The build system.
14177
build_alias=$build_alias
14181
# An echo program that does not interpret backslashes.
14186
AR_FLAGS=$lt_AR_FLAGS
14191
# LTCC compiler flags.
14192
LTCFLAGS=$lt_LTCFLAGS
14194
# A language-specific compiler.
14195
CC=$lt_compiler_CXX
14197
# Is the compiler the GNU C compiler?
14203
# The linker used to build libraries.
14206
# Whether we need hard or soft links.
14209
# A BSD-compatible nm program.
14212
# A symbol stripping program
14215
# Used to examine libraries when file_magic_cmd begins "file"
14216
MAGIC_CMD=$MAGIC_CMD
14218
# Used on cygwin: DLL creation program.
14221
# Used on cygwin: object dumper.
14224
# Used on cygwin: assembler.
14227
# The name of the directory that contains temporary libtool files.
14230
# How to create reloadable object files.
14231
reload_flag=$lt_reload_flag
14232
reload_cmds=$lt_reload_cmds
14234
# How to pass a linker flag through the compiler.
14235
wl=$lt_lt_prog_compiler_wl_CXX
14237
# Object file suffix (normally "o").
14238
objext="$ac_objext"
14240
# Old archive suffix (normally "a").
14243
# Shared library suffix (normally ".so").
14244
shrext_cmds='$shrext_cmds'
14246
# Executable file suffix (normally "").
14249
# Additional compiler flags for building library objects.
14250
pic_flag=$lt_lt_prog_compiler_pic_CXX
14253
# What is the maximum length of a command?
14254
max_cmd_len=$lt_cv_sys_max_cmd_len
14256
# Does compiler simultaneously support -c and -o options?
14257
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14259
# Must we lock files when doing compilation?
14260
need_locks=$lt_need_locks
14262
# Do we need the lib prefix for modules?
14263
need_lib_prefix=$need_lib_prefix
14265
# Do we need a version for libraries?
14266
need_version=$need_version
14268
# Whether dlopen is supported.
14269
dlopen_support=$enable_dlopen
14271
# Whether dlopen of programs is supported.
14272
dlopen_self=$enable_dlopen_self
14274
# Whether dlopen of statically linked programs is supported.
14275
dlopen_self_static=$enable_dlopen_self_static
14277
# Compiler flag to prevent dynamic linking.
14278
link_static_flag=$lt_lt_prog_compiler_static_CXX
14280
# Compiler flag to turn off builtin functions.
14281
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14283
# Compiler flag to allow reflexive dlopens.
14284
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14286
# Compiler flag to generate shared objects directly from archives.
14287
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14289
# Compiler flag to generate thread-safe objects.
14290
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14292
# Library versioning type.
14293
version_type=$version_type
14295
# Format of library name prefix.
14296
libname_spec=$lt_libname_spec
14298
# List of archive names. First name is the real one, the rest are links.
14299
# The last name is the one that the linker finds with -lNAME.
14300
library_names_spec=$lt_library_names_spec
14302
# The coded name of the library, if different from the real name.
14303
soname_spec=$lt_soname_spec
14305
# Commands used to build and install an old-style archive.
14307
old_archive_cmds=$lt_old_archive_cmds_CXX
14308
old_postinstall_cmds=$lt_old_postinstall_cmds
14309
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14311
# Create an old-style archive from a shared archive.
14312
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14314
# Create a temporary old-style archive to link instead of a shared archive.
14315
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14317
# Commands used to build and install a shared archive.
14318
archive_cmds=$lt_archive_cmds_CXX
14319
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14320
postinstall_cmds=$lt_postinstall_cmds
14321
postuninstall_cmds=$lt_postuninstall_cmds
14323
# Commands used to build a loadable module (assumed same as above if empty)
14324
module_cmds=$lt_module_cmds_CXX
14325
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14327
# Commands to strip libraries.
14328
old_striplib=$lt_old_striplib
14329
striplib=$lt_striplib
14331
# Dependencies to place before the objects being linked to create a
14333
predep_objects=$lt_predep_objects_CXX
14335
# Dependencies to place after the objects being linked to create a
14337
postdep_objects=$lt_postdep_objects_CXX
14339
# Dependencies to place before the objects being linked to create a
14341
predeps=$lt_predeps_CXX
14343
# Dependencies to place after the objects being linked to create a
14345
postdeps=$lt_postdeps_CXX
14347
# The directories searched by this compiler when creating a shared
14349
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14351
# The library search path used internally by the compiler when linking
14352
# a shared library.
14353
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14355
# Method to check whether dependent libraries are shared objects.
14356
deplibs_check_method=$lt_deplibs_check_method
14358
# Command to use when deplibs_check_method == file_magic.
14359
file_magic_cmd=$lt_file_magic_cmd
14361
# Flag that allows shared libraries with undefined symbols to be built.
14362
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14364
# Flag that forces no undefined symbols.
14365
no_undefined_flag=$lt_no_undefined_flag_CXX
14367
# Commands used to finish a libtool library installation in a directory.
14368
finish_cmds=$lt_finish_cmds
14370
# Same as above, but a single script fragment to be evaled but not shown.
14371
finish_eval=$lt_finish_eval
14373
# Take the output of nm and produce a listing of raw symbols and C names.
14374
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14376
# Transform the output of nm in a proper C declaration
14377
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14379
# Transform the output of nm in a C name address pair
14380
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14382
# This is the shared library runtime path variable.
14383
runpath_var=$runpath_var
14385
# This is the shared library path variable.
14386
shlibpath_var=$shlibpath_var
14388
# Is shlibpath searched before the hard-coded library search path?
14389
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14391
# How to hardcode a shared library path into an executable.
14392
hardcode_action=$hardcode_action_CXX
14394
# Whether we should hardcode library paths into libraries.
14395
hardcode_into_libs=$hardcode_into_libs
14397
# Flag to hardcode \$libdir into a binary during linking.
14398
# This must work even if \$libdir does not exist.
14399
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14401
# If ld is used when linking, flag to hardcode \$libdir into
14402
# a binary during linking. This must work even if \$libdir does
14404
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14406
# Whether we need a single -rpath flag with a separated argument.
14407
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14409
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14410
# resulting binary.
14411
hardcode_direct=$hardcode_direct_CXX
14413
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14414
# resulting binary.
14415
hardcode_minus_L=$hardcode_minus_L_CXX
14417
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14418
# the resulting binary.
14419
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14421
# Set to yes if building a shared library automatically hardcodes DIR into the library
14422
# and all subsequent libraries and executables linked against it.
14423
hardcode_automatic=$hardcode_automatic_CXX
14425
# Variables whose values should be saved in libtool wrapper scripts and
14426
# restored at relink time.
14427
variables_saved_for_relink="$variables_saved_for_relink"
14429
# Whether libtool must link a program against all its dependency libraries.
14430
link_all_deplibs=$link_all_deplibs_CXX
14432
# Compile-time system search path for libraries
14433
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14435
# Run-time system search path for libraries
14436
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14438
# Fix the shell variable \$srcfile for the compiler.
14439
fix_srcfile_path=$lt_fix_srcfile_path
14441
# Set to yes if exported symbols are required.
14442
always_export_symbols=$always_export_symbols_CXX
14444
# The commands to list exported symbols.
14445
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14447
# The commands to extract the exported symbol list from a shared archive.
14448
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14450
# Symbols that should not be listed in the preloaded symbols.
14451
exclude_expsyms=$lt_exclude_expsyms_CXX
14453
# Symbols that must always be exported.
14454
include_expsyms=$lt_include_expsyms_CXX
14456
# ### END LIBTOOL TAG CONFIG: $tagname
14462
# If there is no Makefile yet, we rely on a make rule to execute
14463
# `config.status --recheck' to rerun these tests and create the
14464
# libtool script then.
14465
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14466
if test -f "$ltmain_in"; then
14467
test -f Makefile && make "$ltmain"
14473
ac_cpp='$CPP $CPPFLAGS'
14474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14482
with_gnu_ldcxx=$with_gnu_ld
14483
with_gnu_ld=$lt_save_with_gnu_ld
14484
lt_cv_path_LDCXX=$lt_cv_path_LD
14485
lt_cv_path_LD=$lt_save_path_LD
14486
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14487
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14495
if test -n "$F77" && test "X$F77" != "Xno"; then
14498
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14499
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14500
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14503
archive_cmds_need_lc_F77=no
14504
allow_undefined_flag_F77=
14505
always_export_symbols_F77=no
14506
archive_expsym_cmds_F77=
14507
export_dynamic_flag_spec_F77=
14508
hardcode_direct_F77=no
14509
hardcode_libdir_flag_spec_F77=
14510
hardcode_libdir_flag_spec_ld_F77=
14511
hardcode_libdir_separator_F77=
14512
hardcode_minus_L_F77=no
14513
hardcode_automatic_F77=no
14515
module_expsym_cmds_F77=
14516
link_all_deplibs_F77=unknown
14517
old_archive_cmds_F77=$old_archive_cmds
14518
no_undefined_flag_F77=
14519
whole_archive_flag_spec_F77=
14520
enable_shared_with_static_runtimes_F77=no
14522
# Source file extension for f77 test sources.
14525
# Object file extension for compiled f77 test sources.
14529
# Code to be used in simple compile tests
14530
lt_simple_compile_test_code="\
14536
# Code to be used in simple link tests
14537
lt_simple_link_test_code="\
14542
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14544
# If no C compiler was specified, use CC.
14547
# If no C compiler flags were specified, use CFLAGS.
14548
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14550
# Allow CC to be a program name with arguments.
14554
# save warnings/boilerplate of simple test code
14555
ac_outfile=conftest.$ac_objext
14556
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14557
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14558
_lt_compiler_boilerplate=`cat conftest.err`
14561
ac_outfile=conftest.$ac_objext
14562
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14563
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14564
_lt_linker_boilerplate=`cat conftest.err`
14568
# Allow CC to be a program name with arguments.
14573
for cc_temp in $compiler""; do
14575
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14576
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14581
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14584
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14585
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14586
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14587
$as_echo "$can_build_shared" >&6; }
14589
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14590
$as_echo_n "checking whether to build shared libraries... " >&6; }
14591
test "$can_build_shared" = "no" && enable_shared=no
14593
# On AIX, shared libraries and static libraries use the same namespace, and
14594
# are all built from PIC.
14597
test "$enable_shared" = yes && enable_static=no
14598
if test -n "$RANLIB"; then
14599
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14600
postinstall_cmds='$RANLIB $lib'
14604
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605
test "$enable_shared" = yes && enable_static=no
14609
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14610
$as_echo "$enable_shared" >&6; }
14612
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613
$as_echo_n "checking whether to build static libraries... " >&6; }
14614
# Make sure either enable_shared or enable_static is yes.
14615
test "$enable_shared" = yes || enable_static=yes
14616
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14617
$as_echo "$enable_static" >&6; }
14622
lt_prog_compiler_wl_F77=
14623
lt_prog_compiler_pic_F77=
14624
lt_prog_compiler_static_F77=
14626
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14627
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14629
if test "$GCC" = yes; then
14630
lt_prog_compiler_wl_F77='-Wl,'
14631
lt_prog_compiler_static_F77='-static'
14635
# All AIX code is PIC.
14636
if test "$host_cpu" = ia64; then
14637
# AIX 5 now supports IA64 processor
14638
lt_prog_compiler_static_F77='-Bstatic'
14643
# FIXME: we need at least 68020 code to build shared libraries, but
14644
# adding the `-m68020' flag to GCC prevents building anything better,
14646
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14649
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650
# PIC is the default for these OSes.
14653
mingw* | cygwin* | pw32* | os2*)
14654
# This hack is so that the source file can tell whether it is being
14655
# built for inclusion in a dll (and should export symbols for example).
14656
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14657
# (--disable-auto-import) libraries
14658
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14661
darwin* | rhapsody*)
14662
# PIC is the default on this platform
14663
# Common symbols not allowed in MH_DYLIB files
14664
lt_prog_compiler_pic_F77='-fno-common'
14668
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14669
# Instead, we relocate shared libraries at runtime.
14673
# Just because we use GCC doesn't mean we suddenly get shared libraries
14674
# on systems that don't support them.
14675
lt_prog_compiler_can_build_shared_F77=no
14680
if test -d /usr/nec; then
14681
lt_prog_compiler_pic_F77=-Kconform_pic
14686
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14687
# not for PA HP-UX.
14693
lt_prog_compiler_pic_F77='-fPIC'
14699
lt_prog_compiler_pic_F77='-fPIC'
14703
# PORTME Check for flag to pass linker flags through the system compiler.
14706
lt_prog_compiler_wl_F77='-Wl,'
14707
if test "$host_cpu" = ia64; then
14708
# AIX 5 now supports IA64 processor
14709
lt_prog_compiler_static_F77='-Bstatic'
14711
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14715
# PIC is the default on this platform
14716
# Common symbols not allowed in MH_DYLIB files
14717
case $cc_basename in
14719
lt_prog_compiler_pic_F77='-qnocommon'
14720
lt_prog_compiler_wl_F77='-Wl,'
14725
mingw* | cygwin* | pw32* | os2*)
14726
# This hack is so that the source file can tell whether it is being
14727
# built for inclusion in a dll (and should export symbols for example).
14728
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14731
hpux9* | hpux10* | hpux11*)
14732
lt_prog_compiler_wl_F77='-Wl,'
14733
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14734
# not for PA HP-UX.
14740
lt_prog_compiler_pic_F77='+Z'
14743
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14744
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14747
irix5* | irix6* | nonstopux*)
14748
lt_prog_compiler_wl_F77='-Wl,'
14749
# PIC (with -KPIC) is the default.
14750
lt_prog_compiler_static_F77='-non_shared'
14754
lt_prog_compiler_pic_F77='-KPIC'
14755
lt_prog_compiler_static_F77='-Bstatic'
14758
linux* | k*bsd*-gnu)
14759
case $cc_basename in
14761
lt_prog_compiler_wl_F77='-Wl,'
14762
lt_prog_compiler_pic_F77='-KPIC'
14763
lt_prog_compiler_static_F77='-static'
14765
pgcc* | pgf77* | pgf90* | pgf95*)
14766
# Portland Group compilers (*not* the Pentium gcc compiler,
14767
# which looks to be a dead project)
14768
lt_prog_compiler_wl_F77='-Wl,'
14769
lt_prog_compiler_pic_F77='-fpic'
14770
lt_prog_compiler_static_F77='-Bstatic'
14773
lt_prog_compiler_wl_F77='-Wl,'
14774
# All Alpha code is PIC.
14775
lt_prog_compiler_static_F77='-non_shared'
14778
case `$CC -V 2>&1 | sed 5q` in
14781
lt_prog_compiler_pic_F77='-KPIC'
14782
lt_prog_compiler_static_F77='-Bstatic'
14783
lt_prog_compiler_wl_F77='-Wl,'
14786
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14787
lt_prog_compiler_pic_F77='-KPIC'
14788
lt_prog_compiler_static_F77='-Bstatic'
14789
lt_prog_compiler_wl_F77=''
14796
osf3* | osf4* | osf5*)
14797
lt_prog_compiler_wl_F77='-Wl,'
14798
# All OSF/1 code is PIC.
14799
lt_prog_compiler_static_F77='-non_shared'
14803
lt_prog_compiler_static_F77='-non_shared'
14807
lt_prog_compiler_pic_F77='-KPIC'
14808
lt_prog_compiler_static_F77='-Bstatic'
14809
case $cc_basename in
14810
f77* | f90* | f95*)
14811
lt_prog_compiler_wl_F77='-Qoption ld ';;
14813
lt_prog_compiler_wl_F77='-Wl,';;
14818
lt_prog_compiler_wl_F77='-Qoption ld '
14819
lt_prog_compiler_pic_F77='-PIC'
14820
lt_prog_compiler_static_F77='-Bstatic'
14823
sysv4 | sysv4.2uw2* | sysv4.3*)
14824
lt_prog_compiler_wl_F77='-Wl,'
14825
lt_prog_compiler_pic_F77='-KPIC'
14826
lt_prog_compiler_static_F77='-Bstatic'
14830
if test -d /usr/nec ;then
14831
lt_prog_compiler_pic_F77='-Kconform_pic'
14832
lt_prog_compiler_static_F77='-Bstatic'
14836
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14837
lt_prog_compiler_wl_F77='-Wl,'
14838
lt_prog_compiler_pic_F77='-KPIC'
14839
lt_prog_compiler_static_F77='-Bstatic'
14843
lt_prog_compiler_wl_F77='-Wl,'
14844
lt_prog_compiler_can_build_shared_F77=no
14848
lt_prog_compiler_pic_F77='-pic'
14849
lt_prog_compiler_static_F77='-Bstatic'
14853
lt_prog_compiler_can_build_shared_F77=no
14858
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14859
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14862
# Check to make sure the PIC flag actually works.
14864
if test -n "$lt_prog_compiler_pic_F77"; then
14866
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14867
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14868
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14869
$as_echo_n "(cached) " >&6
14871
lt_cv_prog_compiler_pic_works_F77=no
14872
ac_outfile=conftest.$ac_objext
14873
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14874
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14875
# Insert the option either (1) after the last *FLAGS variable, or
14876
# (2) before a word containing "conftest.", or (3) at the end.
14877
# Note that $ac_compile itself does not contain backslashes and begins
14878
# with a dollar sign (not a hyphen), so the echo should work correctly.
14879
# The option is referenced via a variable to avoid confusing sed.
14880
lt_compile=`echo "$ac_compile" | $SED \
14881
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14882
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14883
-e 's:$: $lt_compiler_flag:'`
14884
(eval echo "\"\$as_me:14884: $lt_compile\"" >&5)
14885
(eval "$lt_compile" 2>conftest.err)
14887
cat conftest.err >&5
14888
echo "$as_me:14888: \$? = $ac_status" >&5
14889
if (exit $ac_status) && test -s "$ac_outfile"; then
14890
# The compiler can only warn and ignore the option if not recognized
14891
# So say no if there are warnings other than the usual output.
14892
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14893
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14894
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14895
lt_cv_prog_compiler_pic_works_F77=yes
14901
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14902
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14904
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14905
case $lt_prog_compiler_pic_F77 in
14907
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14910
lt_prog_compiler_pic_F77=
14911
lt_prog_compiler_can_build_shared_F77=no
14916
# For platforms which do not support PIC, -DPIC is meaningless:
14918
lt_prog_compiler_pic_F77=
14921
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14926
# Check to make sure the static flag actually works.
14928
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14929
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14930
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14931
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14932
$as_echo_n "(cached) " >&6
14934
lt_cv_prog_compiler_static_works_F77=no
14935
save_LDFLAGS="$LDFLAGS"
14936
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14937
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14938
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14939
# The linker can only warn and ignore the option if not recognized
14940
# So say no if there are warnings
14941
if test -s conftest.err; then
14942
# Append any errors to the config.log.
14943
cat conftest.err 1>&5
14944
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14945
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14946
if diff conftest.exp conftest.er2 >/dev/null; then
14947
lt_cv_prog_compiler_static_works_F77=yes
14950
lt_cv_prog_compiler_static_works_F77=yes
14954
LDFLAGS="$save_LDFLAGS"
14957
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14958
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14960
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14963
lt_prog_compiler_static_F77=
14967
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14968
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14969
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14970
$as_echo_n "(cached) " >&6
14972
lt_cv_prog_compiler_c_o_F77=no
14973
$rm -r conftest 2>/dev/null
14977
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14979
lt_compiler_flag="-o out/conftest2.$ac_objext"
14980
# Insert the option either (1) after the last *FLAGS variable, or
14981
# (2) before a word containing "conftest.", or (3) at the end.
14982
# Note that $ac_compile itself does not contain backslashes and begins
14983
# with a dollar sign (not a hyphen), so the echo should work correctly.
14984
lt_compile=`echo "$ac_compile" | $SED \
14985
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14986
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14987
-e 's:$: $lt_compiler_flag:'`
14988
(eval echo "\"\$as_me:14988: $lt_compile\"" >&5)
14989
(eval "$lt_compile" 2>out/conftest.err)
14991
cat out/conftest.err >&5
14992
echo "$as_me:14992: \$? = $ac_status" >&5
14993
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14995
# The compiler can only warn and ignore the option if not recognized
14996
# So say no if there are warnings
14997
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14998
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14999
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15000
lt_cv_prog_compiler_c_o_F77=yes
15005
# SGI C++ compiler will create directory out/ii_files/ for
15006
# template instantiation
15007
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15008
$rm out/* && rmdir out
15014
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15015
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15018
hard_links="nottested"
15019
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15020
# do not overwrite the value of need_locks provided by the user
15021
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15022
$as_echo_n "checking if we can lock with hard links... " >&6; }
15025
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15027
ln conftest.a conftest.b 2>&5 || hard_links=no
15028
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15029
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15030
$as_echo "$hard_links" >&6; }
15031
if test "$hard_links" = no; then
15032
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15033
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15040
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15041
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15044
allow_undefined_flag_F77=
15045
enable_shared_with_static_runtimes_F77=no
15047
archive_expsym_cmds_F77=
15048
old_archive_From_new_cmds_F77=
15049
old_archive_from_expsyms_cmds_F77=
15050
export_dynamic_flag_spec_F77=
15051
whole_archive_flag_spec_F77=
15052
thread_safe_flag_spec_F77=
15053
hardcode_libdir_flag_spec_F77=
15054
hardcode_libdir_flag_spec_ld_F77=
15055
hardcode_libdir_separator_F77=
15056
hardcode_direct_F77=no
15057
hardcode_minus_L_F77=no
15058
hardcode_shlibpath_var_F77=unsupported
15059
link_all_deplibs_F77=unknown
15060
hardcode_automatic_F77=no
15062
module_expsym_cmds_F77=
15063
always_export_symbols_F77=no
15064
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15065
# include_expsyms should be a list of space-separated symbols to be *always*
15066
# included in the symbol list
15067
include_expsyms_F77=
15068
# exclude_expsyms can be an extended regexp of symbols to exclude
15069
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15070
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15071
# as well as any symbol that contains `d'.
15072
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15073
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15074
# platforms (ab)use it in PIC code, but their linkers get confused if
15075
# the symbol is explicitly referenced. Since portable code cannot
15076
# rely on this symbol name, it's probably fine to never include it in
15077
# preloaded symbol tables.
15078
# Exclude shared library initialization/finalization symbols.
15079
extract_expsyms_cmds=
15080
# Just being paranoid about ensuring that cc_basename is set.
15081
for cc_temp in $compiler""; do
15083
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15084
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15089
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15092
cygwin* | mingw* | pw32*)
15093
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15094
# When not using gcc, we currently assume that we are using
15095
# Microsoft Visual C++.
15096
if test "$GCC" != yes; then
15101
# we just hope/assume this is gcc and not c89 (= MSVC++)
15110
if test "$with_gnu_ld" = yes; then
15111
# If archive_cmds runs LD, not CC, wlarc should be empty
15114
# Set some defaults for GNU ld with shared library support. These
15115
# are reset later if shared libraries are not supported. Putting them
15116
# here allows them to be overridden if necessary.
15117
runpath_var=LD_RUN_PATH
15118
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15119
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15120
# ancient GNU ld didn't support --whole-archive et. al.
15121
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15122
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15124
whole_archive_flag_spec_F77=
15126
supports_anon_versioning=no
15127
case `$LD -v 2>/dev/null` in
15128
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15129
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15130
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15131
*\ 2.11.*) ;; # other 2.11 versions
15132
*) supports_anon_versioning=yes ;;
15135
# See if GNU ld supports shared libraries.
15138
# On AIX/PPC, the GNU linker is very broken
15139
if test "$host_cpu" != ia64; then
15143
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15144
*** to be unable to reliably create shared libraries on AIX.
15145
*** Therefore, libtool is disabling shared libraries support. If you
15146
*** really care for shared libraries, you may want to modify your PATH
15147
*** so that a non-GNU linker is found, and then restart.
15154
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)'
15155
hardcode_libdir_flag_spec_F77='-L$libdir'
15156
hardcode_minus_L_F77=yes
15158
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15159
# that the semantics of dynamic libraries on AmigaOS, at least up
15160
# to version 4, is to share data among multiple programs linked
15161
# with the same dynamic library. Since this doesn't match the
15162
# behavior of shared libraries on other platforms, we can't use
15168
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169
allow_undefined_flag_F77=unsupported
15170
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15171
# support --undefined. This deserves some investigation. FIXME
15172
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15178
cygwin* | mingw* | pw32*)
15179
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15180
# as there is no search path for DLLs.
15181
hardcode_libdir_flag_spec_F77='-L$libdir'
15182
allow_undefined_flag_F77=unsupported
15183
always_export_symbols_F77=no
15184
enable_shared_with_static_runtimes_F77=yes
15185
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15187
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15188
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15189
# If the export-symbols file already is a .def file (1st line
15190
# is EXPORTS), use it as is; otherwise, prepend...
15191
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15192
cp $export_symbols $output_objdir/$soname.def;
15194
echo EXPORTS > $output_objdir/$soname.def;
15195
cat $export_symbols >> $output_objdir/$soname.def;
15197
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15204
hardcode_direct_F77=no
15205
hardcode_shlibpath_var_F77=no
15206
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15207
export_dynamic_flag_spec_F77='${wl}-E'
15208
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15209
# Instead, shared libraries are loaded at an image base (0x10000000 by
15210
# default) and relocated if they conflict, which is a slow very memory
15211
# consuming and fragmenting process. To avoid this, we pick a random,
15212
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15213
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15214
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'
15215
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'
15218
gnu* | linux* | k*bsd*-gnu)
15219
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15221
case $cc_basename,$host_cpu in
15222
pgcc*) # Portland Group C compiler
15223
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'
15224
tmp_addflag=' $pic_flag'
15226
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15227
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'
15228
tmp_addflag=' $pic_flag -Mnomain' ;;
15229
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15230
tmp_addflag=' -i_dynamic' ;;
15231
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15232
tmp_addflag=' -i_dynamic -nofor_main' ;;
15233
ifc* | ifort*) # Intel Fortran compiler
15234
tmp_addflag=' -nofor_main' ;;
15236
case `$CC -V 2>&1 | sed 5q` in
15237
*Sun\ C*) # Sun C 5.9
15238
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'
15239
tmp_sharedflag='-G' ;;
15240
*Sun\ F*) # Sun Fortran 8.3
15241
tmp_sharedflag='-G' ;;
15243
tmp_sharedflag='-shared' ;;
15245
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15247
if test $supports_anon_versioning = yes; then
15248
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15249
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15250
$echo "local: *; };" >> $output_objdir/$libname.ver~
15251
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15259
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15260
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15263
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15269
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15273
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15274
*** create shared libraries on Solaris systems. Therefore, libtool
15275
*** is disabling shared libraries support. We urge you to upgrade GNU
15276
*** binutils to release 2.9.1 or newer. Another option is to modify
15277
*** your PATH or compiler configuration so that the native linker is
15278
*** used, and then restart.
15281
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15282
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15289
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15290
case `$LD -v 2>&1` in
15291
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15295
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15296
*** reliably create shared libraries on SCO systems. Therefore, libtool
15297
*** is disabling shared libraries support. We urge you to upgrade GNU
15298
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15299
*** your PATH or compiler configuration so that the native linker is
15300
*** used, and then restart.
15305
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15306
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15307
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15308
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15317
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15319
hardcode_direct_F77=yes
15320
hardcode_shlibpath_var_F77=no
15324
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15325
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15326
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15333
if test "$ld_shlibs_F77" = no; then
15335
hardcode_libdir_flag_spec_F77=
15336
export_dynamic_flag_spec_F77=
15337
whole_archive_flag_spec_F77=
15340
# PORTME fill in a description of your system's linker (not GNU ld)
15343
allow_undefined_flag_F77=unsupported
15344
always_export_symbols_F77=yes
15345
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'
15346
# Note: this linker hardcodes the directories in LIBPATH if there
15347
# are no directories specified by -L.
15348
hardcode_minus_L_F77=yes
15349
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15350
# Neither direct hardcoding nor static linking is supported with a
15352
hardcode_direct_F77=unsupported
15357
if test "$host_cpu" = ia64; then
15358
# On IA64, the linker does run time linking by default, so we don't
15359
# have to do anything special.
15360
aix_use_runtimelinking=no
15361
exp_sym_flag='-Bexport'
15364
# If we're using GNU nm, then we don't want the "-C" option.
15365
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15366
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15367
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'
15369
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'
15371
aix_use_runtimelinking=no
15373
# Test if we are trying to use run time linking or normal
15374
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15375
# need to do runtime linking.
15376
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15377
for ld_flag in $LDFLAGS; do
15378
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15379
aix_use_runtimelinking=yes
15386
exp_sym_flag='-bexport'
15387
no_entry_flag='-bnoentry'
15390
# When large executables or shared objects are built, AIX ld can
15391
# have problems creating the table of contents. If linking a library
15392
# or program results in "error TOC overflow" add -mminimal-toc to
15393
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15394
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15396
archive_cmds_F77=''
15397
hardcode_direct_F77=yes
15398
hardcode_libdir_separator_F77=':'
15399
link_all_deplibs_F77=yes
15401
if test "$GCC" = yes; then
15402
case $host_os in aix4.[012]|aix4.[012].*)
15403
# We only want to do this on AIX 4.2 and lower, the check
15404
# below for broken collect2 doesn't work under 4.3+
15405
collect2name=`${CC} -print-prog-name=collect2`
15406
if test -f "$collect2name" && \
15407
strings "$collect2name" | grep resolve_lib_name >/dev/null
15409
# We have reworked collect2
15412
# We have old collect2
15413
hardcode_direct_F77=unsupported
15414
# It fails to find uninstalled libraries when the uninstalled
15415
# path is not listed in the libpath. Setting hardcode_minus_L
15416
# to unsupported forces relinking
15417
hardcode_minus_L_F77=yes
15418
hardcode_libdir_flag_spec_F77='-L$libdir'
15419
hardcode_libdir_separator_F77=
15423
shared_flag='-shared'
15424
if test "$aix_use_runtimelinking" = yes; then
15425
shared_flag="$shared_flag "'${wl}-G'
15429
if test "$host_cpu" = ia64; then
15430
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15431
# chokes on -Wl,-G. The following line is correct:
15434
if test "$aix_use_runtimelinking" = yes; then
15435
shared_flag='${wl}-G'
15437
shared_flag='${wl}-bM:SRE'
15442
# It seems that -bexpall does not export symbols beginning with
15443
# underscore (_), so it is better to generate a list of symbols to export.
15444
always_export_symbols_F77=yes
15445
if test "$aix_use_runtimelinking" = yes; then
15446
# Warning - without using the other runtime loading flags (-brtl),
15447
# -berok will link without error, but may produce a broken library.
15448
allow_undefined_flag_F77='-berok'
15449
# Determine the default libpath from the value encoded in an empty executable.
15450
cat >conftest.$ac_ext <<_ACEOF
15455
rm -f conftest.$ac_objext conftest$ac_exeext
15456
if { (ac_try="$ac_link"
15457
case "(($ac_try" in
15458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459
*) ac_try_echo=$ac_try;;
15461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15462
$as_echo "$ac_try_echo") >&5
15463
(eval "$ac_link") 2>conftest.er1
15465
grep -v '^ *+' conftest.er1 >conftest.err
15467
cat conftest.err >&5
15468
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469
(exit $ac_status); } && {
15470
test -z "$ac_f77_werror_flag" ||
15471
test ! -s conftest.err
15472
} && test -s conftest$ac_exeext && {
15473
test "$cross_compiling" = yes ||
15474
$as_test_x conftest$ac_exeext
15477
lt_aix_libpath_sed='
15478
/Import File Strings/,/^$/ {
15484
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15485
# Check for a 64-bit object if we didn't find anything.
15486
if test -z "$aix_libpath"; then
15487
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15490
$as_echo "$as_me: failed program was:" >&5
15491
sed 's/^/| /' conftest.$ac_ext >&5
15496
rm -rf conftest.dSYM
15497
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15498
conftest$ac_exeext conftest.$ac_ext
15499
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15501
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15502
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"
15504
if test "$host_cpu" = ia64; then
15505
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15506
allow_undefined_flag_F77="-z nodefs"
15507
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"
15509
# Determine the default libpath from the value encoded in an empty executable.
15510
cat >conftest.$ac_ext <<_ACEOF
15515
rm -f conftest.$ac_objext conftest$ac_exeext
15516
if { (ac_try="$ac_link"
15517
case "(($ac_try" in
15518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519
*) ac_try_echo=$ac_try;;
15521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15522
$as_echo "$ac_try_echo") >&5
15523
(eval "$ac_link") 2>conftest.er1
15525
grep -v '^ *+' conftest.er1 >conftest.err
15527
cat conftest.err >&5
15528
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529
(exit $ac_status); } && {
15530
test -z "$ac_f77_werror_flag" ||
15531
test ! -s conftest.err
15532
} && test -s conftest$ac_exeext && {
15533
test "$cross_compiling" = yes ||
15534
$as_test_x conftest$ac_exeext
15537
lt_aix_libpath_sed='
15538
/Import File Strings/,/^$/ {
15544
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15545
# Check for a 64-bit object if we didn't find anything.
15546
if test -z "$aix_libpath"; then
15547
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15550
$as_echo "$as_me: failed program was:" >&5
15551
sed 's/^/| /' conftest.$ac_ext >&5
15556
rm -rf conftest.dSYM
15557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558
conftest$ac_exeext conftest.$ac_ext
15559
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15561
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15562
# Warning - without using the other run time loading flags,
15563
# -berok will link without error, but may produce a broken library.
15564
no_undefined_flag_F77=' ${wl}-bernotok'
15565
allow_undefined_flag_F77=' ${wl}-berok'
15566
# Exported symbols can be pulled into shared objects from archives
15567
whole_archive_flag_spec_F77='$convenience'
15568
archive_cmds_need_lc_F77=yes
15569
# This is similar to how AIX traditionally builds its shared libraries.
15570
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'
15576
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)'
15577
hardcode_libdir_flag_spec_F77='-L$libdir'
15578
hardcode_minus_L_F77=yes
15579
# see comment about different semantics on the GNU ld section
15584
export_dynamic_flag_spec_F77=-rdynamic
15587
cygwin* | mingw* | pw32*)
15588
# When not using gcc, we currently assume that we are using
15589
# Microsoft Visual C++.
15590
# hardcode_libdir_flag_spec is actually meaningless, as there is
15591
# no search path for DLLs.
15592
hardcode_libdir_flag_spec_F77=' '
15593
allow_undefined_flag_F77=unsupported
15594
# Tell ltmain to make .lib files, not .a files.
15596
# Tell ltmain to make .dll files, not .so files.
15598
# FIXME: Setting linknames here is a bad hack.
15599
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15600
# The linker will automatically build a .lib file if we build a DLL.
15601
old_archive_From_new_cmds_F77='true'
15602
# FIXME: Should let the user specify the lib program.
15603
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15604
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15605
enable_shared_with_static_runtimes_F77=yes
15608
darwin* | rhapsody*)
15610
rhapsody* | darwin1.[012])
15611
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15614
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15615
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15617
case ${MACOSX_DEPLOYMENT_TARGET} in
15619
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15622
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15628
archive_cmds_need_lc_F77=no
15629
hardcode_direct_F77=no
15630
hardcode_automatic_F77=yes
15631
hardcode_shlibpath_var_F77=unsupported
15632
whole_archive_flag_spec_F77=''
15633
link_all_deplibs_F77=yes
15634
if test "$GCC" = yes ; then
15635
output_verbose_link_cmd='echo'
15636
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15637
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15638
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15639
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15641
case $cc_basename in
15643
output_verbose_link_cmd='echo'
15644
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15645
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15646
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15647
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}'
15648
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}'
15658
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659
hardcode_libdir_flag_spec_F77='-L$libdir'
15660
hardcode_shlibpath_var_F77=no
15667
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15668
# support. Future versions do this automatically, but an explicit c++rt0.o
15669
# does not break anything, and helps significantly (at the cost of a little
15672
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15673
hardcode_libdir_flag_spec_F77='-R$libdir'
15674
hardcode_direct_F77=yes
15675
hardcode_shlibpath_var_F77=no
15678
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15680
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15681
hardcode_direct_F77=yes
15682
hardcode_minus_L_F77=yes
15683
hardcode_shlibpath_var_F77=no
15686
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15687
freebsd* | dragonfly*)
15688
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15689
hardcode_libdir_flag_spec_F77='-R$libdir'
15690
hardcode_direct_F77=yes
15691
hardcode_shlibpath_var_F77=no
15695
if test "$GCC" = yes; then
15696
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'
15698
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'
15700
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15701
hardcode_libdir_separator_F77=:
15702
hardcode_direct_F77=yes
15704
# hardcode_minus_L: Not really in the search PATH,
15705
# but as the default location of the library.
15706
hardcode_minus_L_F77=yes
15707
export_dynamic_flag_spec_F77='${wl}-E'
15711
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15712
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15714
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15716
if test "$with_gnu_ld" = no; then
15717
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15718
hardcode_libdir_separator_F77=:
15720
hardcode_direct_F77=yes
15721
export_dynamic_flag_spec_F77='${wl}-E'
15723
# hardcode_minus_L: Not really in the search PATH,
15724
# but as the default location of the library.
15725
hardcode_minus_L_F77=yes
15730
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15733
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15736
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15739
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15745
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15751
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15755
if test "$with_gnu_ld" = no; then
15756
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15757
hardcode_libdir_separator_F77=:
15761
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15762
hardcode_direct_F77=no
15763
hardcode_shlibpath_var_F77=no
15766
hardcode_direct_F77=yes
15767
export_dynamic_flag_spec_F77='${wl}-E'
15769
# hardcode_minus_L: Not really in the search PATH,
15770
# but as the default location of the library.
15771
hardcode_minus_L_F77=yes
15777
irix5* | irix6* | nonstopux*)
15778
if test "$GCC" = yes; then
15779
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'
15781
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'
15782
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15784
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15785
hardcode_libdir_separator_F77=:
15786
link_all_deplibs_F77=yes
15790
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15791
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15793
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15795
hardcode_libdir_flag_spec_F77='-R$libdir'
15796
hardcode_direct_F77=yes
15797
hardcode_shlibpath_var_F77=no
15801
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802
hardcode_direct_F77=yes
15803
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15804
hardcode_libdir_separator_F77=:
15805
hardcode_shlibpath_var_F77=no
15809
if test -f /usr/libexec/ld.so; then
15810
hardcode_direct_F77=yes
15811
hardcode_shlibpath_var_F77=no
15812
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15813
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15814
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15815
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15816
export_dynamic_flag_spec_F77='${wl}-E'
15819
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15820
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15821
hardcode_libdir_flag_spec_F77='-R$libdir'
15824
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15825
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15835
hardcode_libdir_flag_spec_F77='-L$libdir'
15836
hardcode_minus_L_F77=yes
15837
allow_undefined_flag_F77=unsupported
15838
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'
15839
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15843
if test "$GCC" = yes; then
15844
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15845
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'
15847
allow_undefined_flag_F77=' -expect_unresolved \*'
15848
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'
15850
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15851
hardcode_libdir_separator_F77=:
15854
osf4* | osf5*) # as osf3* with the addition of -msym flag
15855
if test "$GCC" = yes; then
15856
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15857
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'
15858
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15860
allow_undefined_flag_F77=' -expect_unresolved \*'
15861
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'
15862
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~
15863
$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'
15865
# Both c and cxx compiler support -rpath directly
15866
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15868
hardcode_libdir_separator_F77=:
15872
no_undefined_flag_F77=' -z text'
15873
if test "$GCC" = yes; then
15875
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15876
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15877
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15880
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15882
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15884
hardcode_libdir_flag_spec_F77='-R$libdir'
15885
hardcode_shlibpath_var_F77=no
15887
solaris2.[0-5] | solaris2.[0-5].*) ;;
15889
# The compiler driver will combine and reorder linker options,
15890
# but understands `-z linker_flag'. GCC discards it without `$wl',
15891
# but is careful enough not to reorder.
15892
# Supported since Solaris 2.6 (maybe 2.5.1?)
15893
if test "$GCC" = yes; then
15894
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15896
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15900
link_all_deplibs_F77=yes
15904
if test "x$host_vendor" = xsequent; then
15905
# Use $CC to link under sequent, because it throws in some extra .o
15906
# files that make .init and .fini sections work.
15907
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15909
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15911
hardcode_libdir_flag_spec_F77='-L$libdir'
15912
hardcode_direct_F77=yes
15913
hardcode_minus_L_F77=yes
15914
hardcode_shlibpath_var_F77=no
15918
case $host_vendor in
15920
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921
hardcode_direct_F77=yes # is this really true???
15924
## LD is ld it makes a PLAMLIB
15925
## CC just makes a GrossModule.
15926
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15927
reload_cmds_F77='$CC -r -o $output$reload_objs'
15928
hardcode_direct_F77=no
15931
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15935
runpath_var='LD_RUN_PATH'
15936
hardcode_shlibpath_var_F77=no
15940
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15941
hardcode_shlibpath_var_F77=no
15942
export_dynamic_flag_spec_F77='-Bexport'
15946
if test -d /usr/nec; then
15947
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948
hardcode_shlibpath_var_F77=no
15949
runpath_var=LD_RUN_PATH
15950
hardcode_runpath_var=yes
15955
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15956
no_undefined_flag_F77='${wl}-z,text'
15957
archive_cmds_need_lc_F77=no
15958
hardcode_shlibpath_var_F77=no
15959
runpath_var='LD_RUN_PATH'
15961
if test "$GCC" = yes; then
15962
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15970
sysv5* | sco3.2v5* | sco5v6*)
15971
# Note: We can NOT use -z defs as we might desire, because we do not
15972
# link with -lc, and that would cause any symbols used from libc to
15973
# always be unresolved, which means just about no library would
15974
# ever link correctly. If we're not using GNU ld we use -z text
15975
# though, which does catch some bad symbols but isn't as heavy-handed
15977
no_undefined_flag_F77='${wl}-z,text'
15978
allow_undefined_flag_F77='${wl}-z,nodefs'
15979
archive_cmds_need_lc_F77=no
15980
hardcode_shlibpath_var_F77=no
15981
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15982
hardcode_libdir_separator_F77=':'
15983
link_all_deplibs_F77=yes
15984
export_dynamic_flag_spec_F77='${wl}-Bexport'
15985
runpath_var='LD_RUN_PATH'
15987
if test "$GCC" = yes; then
15988
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15991
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15997
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998
hardcode_libdir_flag_spec_F77='-L$libdir'
15999
hardcode_shlibpath_var_F77=no
16008
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16009
$as_echo "$ld_shlibs_F77" >&6; }
16010
test "$ld_shlibs_F77" = no && can_build_shared=no
16013
# Do we need to explicitly link libc?
16015
case "x$archive_cmds_need_lc_F77" in
16017
# Assume -lc should be added
16018
archive_cmds_need_lc_F77=yes
16020
if test "$enable_shared" = yes && test "$GCC" = yes; then
16021
case $archive_cmds_F77 in
16023
# FIXME: we may have to deal with multi-command sequences.
16026
# Test whether the compiler implicitly links with -lc since on some
16027
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16028
# to ld, don't add -lc before -lgcc.
16029
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16030
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16032
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035
(eval $ac_compile) 2>&5
16037
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038
(exit $ac_status); } 2>conftest.err; then
16041
libobjs=conftest.$ac_objext
16043
wl=$lt_prog_compiler_wl_F77
16044
pic_flag=$lt_prog_compiler_pic_F77
16050
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16051
allow_undefined_flag_F77=
16052
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16053
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16055
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056
(exit $ac_status); }
16058
archive_cmds_need_lc_F77=no
16060
archive_cmds_need_lc_F77=yes
16062
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16064
cat conftest.err 1>&5
16067
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16068
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16075
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16076
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16077
library_names_spec=
16078
libname_spec='lib$name'
16082
postuninstall_cmds=
16086
shlibpath_overrides_runpath=unknown
16088
dynamic_linker="$host_os ld.so"
16089
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16091
need_lib_prefix=unknown
16092
hardcode_into_libs=no
16094
# when you set need_version to no, make sure it does not cause -set_version
16095
# flags to be left without arguments
16096
need_version=unknown
16101
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16102
shlibpath_var=LIBPATH
16104
# AIX 3 has no versioning support, so we append a major version to the name.
16105
soname_spec='${libname}${release}${shared_ext}$major'
16112
hardcode_into_libs=yes
16113
if test "$host_cpu" = ia64; then
16114
# AIX 5 supports IA64
16115
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16116
shlibpath_var=LD_LIBRARY_PATH
16118
# With GCC up to 2.95.x, collect2 would create an import file
16119
# for dependence libraries. The import file would start with
16120
# the line `#! .'. This would cause the generated library to
16121
# depend on `.', always an invalid library. This was fixed in
16122
# development snapshots of GCC prior to 3.0.
16124
aix4 | aix4.[01] | aix4.[01].*)
16125
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16127
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16130
can_build_shared=no
16134
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16135
# soname into executable. Probably we can add versioning support to
16136
# collect2, so additional links can be useful in future.
16137
if test "$aix_use_runtimelinking" = yes; then
16138
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16139
# instead of lib<name>.a to let people know that these are not
16140
# typical AIX shared libraries.
16141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143
# We preserve .a as extension for shared libraries through AIX4.2
16144
# and later when we are not doing run time linking.
16145
library_names_spec='${libname}${release}.a $libname.a'
16146
soname_spec='${libname}${release}${shared_ext}$major'
16148
shlibpath_var=LIBPATH
16153
library_names_spec='$libname.ixlibrary $libname.a'
16154
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16155
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'
16159
library_names_spec='${libname}${shared_ext}'
16160
dynamic_linker="$host_os ld.so"
16161
shlibpath_var=LIBRARY_PATH
16167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168
soname_spec='${libname}${release}${shared_ext}$major'
16169
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16170
shlibpath_var=LD_LIBRARY_PATH
16171
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16172
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16173
# the default ld.so.conf also contains /usr/contrib/lib and
16174
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16175
# libtool to hard-code these into programs
16178
cygwin* | mingw* | pw32*)
16179
version_type=windows
16184
case $GCC,$host_os in
16185
yes,cygwin* | yes,mingw* | yes,pw32*)
16186
library_names_spec='$libname.dll.a'
16187
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16188
postinstall_cmds='base_file=`basename \${file}`~
16189
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16190
dldir=$destdir/`dirname \$dlpath`~
16191
test -d \$dldir || mkdir -p \$dldir~
16192
$install_prog $dir/$dlname \$dldir/$dlname~
16193
chmod a+x \$dldir/$dlname'
16194
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16195
dlpath=$dir/\$dldll~
16197
shlibpath_overrides_runpath=yes
16201
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16202
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16206
# MinGW DLLs use traditional 'lib' prefix
16207
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16208
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16209
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16210
# It is most probably a Windows format PATH printed by
16211
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16212
# path with ; separators, and with drive letters. We can handle the
16213
# drive letters (cygwin fileutils understands them), so leave them,
16214
# especially as we might pass files found there to a mingw objdump,
16215
# which wouldn't understand a cygwinified path. Ahh.
16216
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16218
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16222
# pw32 DLLs use 'pw' prefix rather than 'lib'
16223
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16229
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16232
dynamic_linker='Win32 ld.exe'
16233
# FIXME: first we should search . and the directory the executable is in
16237
darwin* | rhapsody*)
16238
dynamic_linker="$host_os dyld"
16239
version_type=darwin
16242
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16243
soname_spec='${libname}${release}${major}$shared_ext'
16244
shlibpath_overrides_runpath=yes
16245
shlibpath_var=DYLD_LIBRARY_PATH
16246
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16248
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16256
soname_spec='${libname}${release}${shared_ext}$major'
16257
shlibpath_var=LD_LIBRARY_PATH
16264
freebsd* | dragonfly*)
16265
# DragonFly does not have aout. When/if they implement a new
16266
# versioning mechanism, adjust this.
16267
if test -x /usr/bin/objformat; then
16268
objformat=`/usr/bin/objformat`
16271
freebsd[123]*) objformat=aout ;;
16272
*) objformat=elf ;;
16275
version_type=freebsd-$objformat
16276
case $version_type in
16278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16283
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16287
shlibpath_var=LD_LIBRARY_PATH
16290
shlibpath_overrides_runpath=yes
16292
freebsd3.[01]* | freebsdelf3.[01]*)
16293
shlibpath_overrides_runpath=yes
16294
hardcode_into_libs=yes
16296
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16297
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16298
shlibpath_overrides_runpath=no
16299
hardcode_into_libs=yes
16301
*) # from 4.6 on, and DragonFly
16302
shlibpath_overrides_runpath=yes
16303
hardcode_into_libs=yes
16312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16313
soname_spec='${libname}${release}${shared_ext}$major'
16314
shlibpath_var=LD_LIBRARY_PATH
16315
hardcode_into_libs=yes
16318
hpux9* | hpux10* | hpux11*)
16319
# Give a soname corresponding to the major version so that dld.sl refuses to
16320
# link against other versions.
16327
hardcode_into_libs=yes
16328
dynamic_linker="$host_os dld.so"
16329
shlibpath_var=LD_LIBRARY_PATH
16330
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332
soname_spec='${libname}${release}${shared_ext}$major'
16333
if test "X$HPUX_IA64_MODE" = X32; then
16334
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16336
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16338
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16342
hardcode_into_libs=yes
16343
dynamic_linker="$host_os dld.sl"
16344
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347
soname_spec='${libname}${release}${shared_ext}$major'
16348
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16353
dynamic_linker="$host_os dld.sl"
16354
shlibpath_var=SHLIB_PATH
16355
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357
soname_spec='${libname}${release}${shared_ext}$major'
16360
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16361
postinstall_cmds='chmod 555 $lib'
16368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369
soname_spec='${libname}${release}${shared_ext}$major'
16370
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16371
shlibpath_var=LD_LIBRARY_PATH
16372
shlibpath_overrides_runpath=no
16373
hardcode_into_libs=yes
16376
irix5* | irix6* | nonstopux*)
16378
nonstopux*) version_type=nonstopux ;;
16380
if test "$lt_cv_prog_gnu_ld" = yes; then
16388
soname_spec='${libname}${release}${shared_ext}$major'
16389
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16391
irix5* | nonstopux*)
16392
libsuff= shlibsuff=
16395
case $LD in # libtool.m4 will add one of these switches to LD
16396
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16397
libsuff= shlibsuff= libmagic=32-bit;;
16398
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16399
libsuff=32 shlibsuff=N32 libmagic=N32;;
16400
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16401
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16402
*) libsuff= shlibsuff= libmagic=never-match;;
16406
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16407
shlibpath_overrides_runpath=no
16408
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16409
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16410
hardcode_into_libs=yes
16413
# No shared lib support for Linux oldld, aout, or coff.
16414
linux*oldld* | linux*aout* | linux*coff*)
16418
# This must be Linux ELF.
16419
linux* | k*bsd*-gnu)
16423
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424
soname_spec='${libname}${release}${shared_ext}$major'
16425
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16426
shlibpath_var=LD_LIBRARY_PATH
16427
shlibpath_overrides_runpath=no
16428
# This implies no fast_install, which is unacceptable.
16429
# Some rework will be needed to allow for fast_install
16430
# before this can be enabled.
16431
hardcode_into_libs=yes
16432
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16433
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16435
# Append ld.so.conf contents to the search path
16436
if test -f /etc/ld.so.conf; then
16437
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' ' '`
16438
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16441
# We used to test for /lib/ld.so.1 and disable shared libraries on
16442
# powerpc, because MkLinux only supported shared libraries with the
16443
# GNU dynamic linker. Since this was broken with cross compilers,
16444
# most powerpc-linux boxes support dynamic linking these days and
16445
# people can always --disable-shared, the test was removed, and we
16446
# assume the GNU/Linux dynamic linker is in use.
16447
dynamic_linker='GNU/Linux ld.so'
16454
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16457
dynamic_linker='NetBSD (a.out) ld.so'
16459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16460
soname_spec='${libname}${release}${shared_ext}$major'
16461
dynamic_linker='NetBSD ld.elf_so'
16463
shlibpath_var=LD_LIBRARY_PATH
16464
shlibpath_overrides_runpath=yes
16465
hardcode_into_libs=yes
16470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471
shlibpath_var=LD_LIBRARY_PATH
16472
shlibpath_overrides_runpath=yes
16479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480
soname_spec='${libname}${release}${shared_ext}$major'
16481
shlibpath_var=LD_LIBRARY_PATH
16482
shlibpath_overrides_runpath=yes
16487
sys_lib_dlsearch_path_spec="/usr/lib"
16489
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16491
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16492
*) need_version=no ;;
16494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16495
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16496
shlibpath_var=LD_LIBRARY_PATH
16497
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16499
openbsd2.[89] | openbsd2.[89].*)
16500
shlibpath_overrides_runpath=no
16503
shlibpath_overrides_runpath=yes
16507
shlibpath_overrides_runpath=yes
16512
libname_spec='$name'
16515
library_names_spec='$libname${shared_ext} $libname.a'
16516
dynamic_linker='OS/2 ld.exe'
16517
shlibpath_var=LIBPATH
16520
osf3* | osf4* | osf5*)
16524
soname_spec='${libname}${release}${shared_ext}$major'
16525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526
shlibpath_var=LD_LIBRARY_PATH
16527
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16528
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540
soname_spec='${libname}${release}${shared_ext}$major'
16541
shlibpath_var=LD_LIBRARY_PATH
16542
shlibpath_overrides_runpath=yes
16543
hardcode_into_libs=yes
16544
# ldd complains unless libraries are executable
16545
postinstall_cmds='chmod +x $lib'
16550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16551
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16552
shlibpath_var=LD_LIBRARY_PATH
16553
shlibpath_overrides_runpath=yes
16554
if test "$with_gnu_ld" = yes; then
16562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563
soname_spec='${libname}${release}${shared_ext}$major'
16564
shlibpath_var=LD_LIBRARY_PATH
16565
case $host_vendor in
16567
shlibpath_overrides_runpath=no
16569
export_dynamic_flag_spec='${wl}-Blargedynsym'
16570
runpath_var=LD_RUN_PATH
16578
shlibpath_overrides_runpath=no
16579
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16585
if test -d /usr/nec ;then
16587
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16588
soname_spec='$libname${shared_ext}.$major'
16589
shlibpath_var=LD_LIBRARY_PATH
16593
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16594
version_type=freebsd-elf
16597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16598
soname_spec='${libname}${release}${shared_ext}$major'
16599
shlibpath_var=LD_LIBRARY_PATH
16600
hardcode_into_libs=yes
16601
if test "$with_gnu_ld" = yes; then
16602
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16603
shlibpath_overrides_runpath=no
16605
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16606
shlibpath_overrides_runpath=yes
16609
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16613
sys_lib_dlsearch_path_spec='/usr/lib'
16618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619
soname_spec='${libname}${release}${shared_ext}$major'
16620
shlibpath_var=LD_LIBRARY_PATH
16627
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16628
$as_echo "$dynamic_linker" >&6; }
16629
test "$dynamic_linker" = no && can_build_shared=no
16631
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16632
$as_echo_n "(cached) " >&6
16634
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16637
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16638
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16639
$as_echo_n "(cached) " >&6
16641
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16644
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16646
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16647
if test "$GCC" = yes; then
16648
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16651
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16652
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16653
hardcode_action_F77=
16654
if test -n "$hardcode_libdir_flag_spec_F77" || \
16655
test -n "$runpath_var_F77" || \
16656
test "X$hardcode_automatic_F77" = "Xyes" ; then
16658
# We can hardcode non-existant directories.
16659
if test "$hardcode_direct_F77" != no &&
16660
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16661
# have to relink, otherwise we might link with an installed library
16662
# when we should be linking with a yet-to-be-installed one
16663
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16664
test "$hardcode_minus_L_F77" != no; then
16665
# Linking always hardcodes the temporary library directory.
16666
hardcode_action_F77=relink
16668
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16669
hardcode_action_F77=immediate
16672
# We cannot hardcode anything, or else we can only hardcode existing
16674
hardcode_action_F77=unsupported
16676
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16677
$as_echo "$hardcode_action_F77" >&6; }
16679
if test "$hardcode_action_F77" = relink; then
16680
# Fast installation is not supported
16681
enable_fast_install=no
16682
elif test "$shlibpath_overrides_runpath" = yes ||
16683
test "$enable_shared" = no; then
16684
# Fast installation is not necessary
16685
enable_fast_install=needless
16689
# The else clause should only fire when bootstrapping the
16690
# libtool distribution, otherwise you forgot to ship ltmain.sh
16691
# with your package, and you will get complaints that there are
16692
# no rules to generate ltmain.sh.
16693
if test -f "$ltmain"; then
16694
# See if we are running on zsh, and set the options which allow our commands through
16695
# without removal of \ escapes.
16696
if test -n "${ZSH_VERSION+set}" ; then
16697
setopt NO_GLOB_SUBST
16699
# Now quote all the things that may contain metacharacters while being
16700
# careful not to overquote the AC_SUBSTed values. We take copies of the
16701
# variables and quote the copies for generation of the libtool script.
16702
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16704
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16705
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16706
deplibs_check_method reload_flag reload_cmds need_locks \
16707
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16708
lt_cv_sys_global_symbol_to_c_name_address \
16709
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16710
old_postinstall_cmds old_postuninstall_cmds \
16714
lt_prog_compiler_wl_F77 \
16715
lt_prog_compiler_pic_F77 \
16716
lt_prog_compiler_static_F77 \
16717
lt_prog_compiler_no_builtin_flag_F77 \
16718
export_dynamic_flag_spec_F77 \
16719
thread_safe_flag_spec_F77 \
16720
whole_archive_flag_spec_F77 \
16721
enable_shared_with_static_runtimes_F77 \
16722
old_archive_cmds_F77 \
16723
old_archive_from_new_cmds_F77 \
16724
predep_objects_F77 \
16725
postdep_objects_F77 \
16728
compiler_lib_search_path_F77 \
16729
compiler_lib_search_dirs_F77 \
16731
archive_expsym_cmds_F77 \
16732
postinstall_cmds_F77 \
16733
postuninstall_cmds_F77 \
16734
old_archive_from_expsyms_cmds_F77 \
16735
allow_undefined_flag_F77 \
16736
no_undefined_flag_F77 \
16737
export_symbols_cmds_F77 \
16738
hardcode_libdir_flag_spec_F77 \
16739
hardcode_libdir_flag_spec_ld_F77 \
16740
hardcode_libdir_separator_F77 \
16741
hardcode_automatic_F77 \
16743
module_expsym_cmds_F77 \
16744
lt_cv_prog_compiler_c_o_F77 \
16745
fix_srcfile_path_F77 \
16746
exclude_expsyms_F77 \
16747
include_expsyms_F77; do
16750
old_archive_cmds_F77 | \
16751
old_archive_from_new_cmds_F77 | \
16752
archive_cmds_F77 | \
16753
archive_expsym_cmds_F77 | \
16754
module_cmds_F77 | \
16755
module_expsym_cmds_F77 | \
16756
old_archive_from_expsyms_cmds_F77 | \
16757
export_symbols_cmds_F77 | \
16758
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16759
postinstall_cmds | postuninstall_cmds | \
16760
old_postinstall_cmds | old_postuninstall_cmds | \
16761
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16762
# Double-quote double-evaled strings.
16763
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16766
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16772
*'\$0 --fallback-echo"')
16773
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16779
cat <<__EOF__ >> "$cfgfile"
16780
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16782
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16784
# Shell to use when invoking shell scripts.
16787
# Whether or not to build shared libraries.
16788
build_libtool_libs=$enable_shared
16790
# Whether or not to build static libraries.
16791
build_old_libs=$enable_static
16793
# Whether or not to add -lc for building shared libraries.
16794
build_libtool_need_lc=$archive_cmds_need_lc_F77
16796
# Whether or not to disallow shared libs when runtime libs are static
16797
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16799
# Whether or not to optimize for fast installation.
16800
fast_install=$enable_fast_install
16803
host_alias=$host_alias
16807
# The build system.
16808
build_alias=$build_alias
16812
# An echo program that does not interpret backslashes.
16817
AR_FLAGS=$lt_AR_FLAGS
16822
# LTCC compiler flags.
16823
LTCFLAGS=$lt_LTCFLAGS
16825
# A language-specific compiler.
16826
CC=$lt_compiler_F77
16828
# Is the compiler the GNU C compiler?
16834
# The linker used to build libraries.
16837
# Whether we need hard or soft links.
16840
# A BSD-compatible nm program.
16843
# A symbol stripping program
16846
# Used to examine libraries when file_magic_cmd begins "file"
16847
MAGIC_CMD=$MAGIC_CMD
16849
# Used on cygwin: DLL creation program.
16852
# Used on cygwin: object dumper.
16855
# Used on cygwin: assembler.
16858
# The name of the directory that contains temporary libtool files.
16861
# How to create reloadable object files.
16862
reload_flag=$lt_reload_flag
16863
reload_cmds=$lt_reload_cmds
16865
# How to pass a linker flag through the compiler.
16866
wl=$lt_lt_prog_compiler_wl_F77
16868
# Object file suffix (normally "o").
16869
objext="$ac_objext"
16871
# Old archive suffix (normally "a").
16874
# Shared library suffix (normally ".so").
16875
shrext_cmds='$shrext_cmds'
16877
# Executable file suffix (normally "").
16880
# Additional compiler flags for building library objects.
16881
pic_flag=$lt_lt_prog_compiler_pic_F77
16884
# What is the maximum length of a command?
16885
max_cmd_len=$lt_cv_sys_max_cmd_len
16887
# Does compiler simultaneously support -c and -o options?
16888
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16890
# Must we lock files when doing compilation?
16891
need_locks=$lt_need_locks
16893
# Do we need the lib prefix for modules?
16894
need_lib_prefix=$need_lib_prefix
16896
# Do we need a version for libraries?
16897
need_version=$need_version
16899
# Whether dlopen is supported.
16900
dlopen_support=$enable_dlopen
16902
# Whether dlopen of programs is supported.
16903
dlopen_self=$enable_dlopen_self
16905
# Whether dlopen of statically linked programs is supported.
16906
dlopen_self_static=$enable_dlopen_self_static
16908
# Compiler flag to prevent dynamic linking.
16909
link_static_flag=$lt_lt_prog_compiler_static_F77
16911
# Compiler flag to turn off builtin functions.
16912
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16914
# Compiler flag to allow reflexive dlopens.
16915
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16917
# Compiler flag to generate shared objects directly from archives.
16918
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16920
# Compiler flag to generate thread-safe objects.
16921
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16923
# Library versioning type.
16924
version_type=$version_type
16926
# Format of library name prefix.
16927
libname_spec=$lt_libname_spec
16929
# List of archive names. First name is the real one, the rest are links.
16930
# The last name is the one that the linker finds with -lNAME.
16931
library_names_spec=$lt_library_names_spec
16933
# The coded name of the library, if different from the real name.
16934
soname_spec=$lt_soname_spec
16936
# Commands used to build and install an old-style archive.
16938
old_archive_cmds=$lt_old_archive_cmds_F77
16939
old_postinstall_cmds=$lt_old_postinstall_cmds
16940
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16942
# Create an old-style archive from a shared archive.
16943
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16945
# Create a temporary old-style archive to link instead of a shared archive.
16946
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16948
# Commands used to build and install a shared archive.
16949
archive_cmds=$lt_archive_cmds_F77
16950
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16951
postinstall_cmds=$lt_postinstall_cmds
16952
postuninstall_cmds=$lt_postuninstall_cmds
16954
# Commands used to build a loadable module (assumed same as above if empty)
16955
module_cmds=$lt_module_cmds_F77
16956
module_expsym_cmds=$lt_module_expsym_cmds_F77
16958
# Commands to strip libraries.
16959
old_striplib=$lt_old_striplib
16960
striplib=$lt_striplib
16962
# Dependencies to place before the objects being linked to create a
16964
predep_objects=$lt_predep_objects_F77
16966
# Dependencies to place after the objects being linked to create a
16968
postdep_objects=$lt_postdep_objects_F77
16970
# Dependencies to place before the objects being linked to create a
16972
predeps=$lt_predeps_F77
16974
# Dependencies to place after the objects being linked to create a
16976
postdeps=$lt_postdeps_F77
16978
# The directories searched by this compiler when creating a shared
16980
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16982
# The library search path used internally by the compiler when linking
16983
# a shared library.
16984
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16986
# Method to check whether dependent libraries are shared objects.
16987
deplibs_check_method=$lt_deplibs_check_method
16989
# Command to use when deplibs_check_method == file_magic.
16990
file_magic_cmd=$lt_file_magic_cmd
16992
# Flag that allows shared libraries with undefined symbols to be built.
16993
allow_undefined_flag=$lt_allow_undefined_flag_F77
16995
# Flag that forces no undefined symbols.
16996
no_undefined_flag=$lt_no_undefined_flag_F77
16998
# Commands used to finish a libtool library installation in a directory.
16999
finish_cmds=$lt_finish_cmds
17001
# Same as above, but a single script fragment to be evaled but not shown.
17002
finish_eval=$lt_finish_eval
17004
# Take the output of nm and produce a listing of raw symbols and C names.
17005
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17007
# Transform the output of nm in a proper C declaration
17008
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17010
# Transform the output of nm in a C name address pair
17011
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17013
# This is the shared library runtime path variable.
17014
runpath_var=$runpath_var
17016
# This is the shared library path variable.
17017
shlibpath_var=$shlibpath_var
17019
# Is shlibpath searched before the hard-coded library search path?
17020
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17022
# How to hardcode a shared library path into an executable.
17023
hardcode_action=$hardcode_action_F77
17025
# Whether we should hardcode library paths into libraries.
17026
hardcode_into_libs=$hardcode_into_libs
17028
# Flag to hardcode \$libdir into a binary during linking.
17029
# This must work even if \$libdir does not exist.
17030
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17032
# If ld is used when linking, flag to hardcode \$libdir into
17033
# a binary during linking. This must work even if \$libdir does
17035
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17037
# Whether we need a single -rpath flag with a separated argument.
17038
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17040
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17041
# resulting binary.
17042
hardcode_direct=$hardcode_direct_F77
17044
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17045
# resulting binary.
17046
hardcode_minus_L=$hardcode_minus_L_F77
17048
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17049
# the resulting binary.
17050
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17052
# Set to yes if building a shared library automatically hardcodes DIR into the library
17053
# and all subsequent libraries and executables linked against it.
17054
hardcode_automatic=$hardcode_automatic_F77
17056
# Variables whose values should be saved in libtool wrapper scripts and
17057
# restored at relink time.
17058
variables_saved_for_relink="$variables_saved_for_relink"
17060
# Whether libtool must link a program against all its dependency libraries.
17061
link_all_deplibs=$link_all_deplibs_F77
17063
# Compile-time system search path for libraries
17064
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17066
# Run-time system search path for libraries
17067
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17069
# Fix the shell variable \$srcfile for the compiler.
17070
fix_srcfile_path=$lt_fix_srcfile_path
17072
# Set to yes if exported symbols are required.
17073
always_export_symbols=$always_export_symbols_F77
17075
# The commands to list exported symbols.
17076
export_symbols_cmds=$lt_export_symbols_cmds_F77
17078
# The commands to extract the exported symbol list from a shared archive.
17079
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17081
# Symbols that should not be listed in the preloaded symbols.
17082
exclude_expsyms=$lt_exclude_expsyms_F77
17084
# Symbols that must always be exported.
17085
include_expsyms=$lt_include_expsyms_F77
17087
# ### END LIBTOOL TAG CONFIG: $tagname
17093
# If there is no Makefile yet, we rely on a make rule to execute
17094
# `config.status --recheck' to rerun these tests and create the
17095
# libtool script then.
17096
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17097
if test -f "$ltmain_in"; then
17098
test -f Makefile && make "$ltmain"
17104
ac_cpp='$CPP $CPPFLAGS'
17105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17117
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17120
# Source file extension for Java test sources.
17123
# Object file extension for compiled Java test sources.
17127
# Code to be used in simple compile tests
17128
lt_simple_compile_test_code="class foo {}"
17130
# Code to be used in simple link tests
17131
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17133
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17135
# If no C compiler was specified, use CC.
17138
# If no C compiler flags were specified, use CFLAGS.
17139
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17141
# Allow CC to be a program name with arguments.
17145
# save warnings/boilerplate of simple test code
17146
ac_outfile=conftest.$ac_objext
17147
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17148
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17149
_lt_compiler_boilerplate=`cat conftest.err`
17152
ac_outfile=conftest.$ac_objext
17153
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17154
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17155
_lt_linker_boilerplate=`cat conftest.err`
17159
# Allow CC to be a program name with arguments.
17164
for cc_temp in $compiler""; do
17166
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17167
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17172
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17175
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17176
archive_cmds_need_lc_GCJ=no
17178
old_archive_cmds_GCJ=$old_archive_cmds
17181
lt_prog_compiler_no_builtin_flag_GCJ=
17183
if test "$GCC" = yes; then
17184
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17187
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17188
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17189
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17190
$as_echo_n "(cached) " >&6
17192
lt_cv_prog_compiler_rtti_exceptions=no
17193
ac_outfile=conftest.$ac_objext
17194
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17195
lt_compiler_flag="-fno-rtti -fno-exceptions"
17196
# Insert the option either (1) after the last *FLAGS variable, or
17197
# (2) before a word containing "conftest.", or (3) at the end.
17198
# Note that $ac_compile itself does not contain backslashes and begins
17199
# with a dollar sign (not a hyphen), so the echo should work correctly.
17200
# The option is referenced via a variable to avoid confusing sed.
17201
lt_compile=`echo "$ac_compile" | $SED \
17202
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17203
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17204
-e 's:$: $lt_compiler_flag:'`
17205
(eval echo "\"\$as_me:17205: $lt_compile\"" >&5)
17206
(eval "$lt_compile" 2>conftest.err)
17208
cat conftest.err >&5
17209
echo "$as_me:17209: \$? = $ac_status" >&5
17210
if (exit $ac_status) && test -s "$ac_outfile"; then
17211
# The compiler can only warn and ignore the option if not recognized
17212
# So say no if there are warnings other than the usual output.
17213
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17214
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17215
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17216
lt_cv_prog_compiler_rtti_exceptions=yes
17222
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17223
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17225
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17226
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17233
lt_prog_compiler_wl_GCJ=
17234
lt_prog_compiler_pic_GCJ=
17235
lt_prog_compiler_static_GCJ=
17237
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17238
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17240
if test "$GCC" = yes; then
17241
lt_prog_compiler_wl_GCJ='-Wl,'
17242
lt_prog_compiler_static_GCJ='-static'
17246
# All AIX code is PIC.
17247
if test "$host_cpu" = ia64; then
17248
# AIX 5 now supports IA64 processor
17249
lt_prog_compiler_static_GCJ='-Bstatic'
17254
# FIXME: we need at least 68020 code to build shared libraries, but
17255
# adding the `-m68020' flag to GCC prevents building anything better,
17257
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17260
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17261
# PIC is the default for these OSes.
17264
mingw* | cygwin* | pw32* | os2*)
17265
# This hack is so that the source file can tell whether it is being
17266
# built for inclusion in a dll (and should export symbols for example).
17267
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17268
# (--disable-auto-import) libraries
17272
darwin* | rhapsody*)
17273
# PIC is the default on this platform
17274
# Common symbols not allowed in MH_DYLIB files
17275
lt_prog_compiler_pic_GCJ='-fno-common'
17279
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17280
# Instead, we relocate shared libraries at runtime.
17284
# Just because we use GCC doesn't mean we suddenly get shared libraries
17285
# on systems that don't support them.
17286
lt_prog_compiler_can_build_shared_GCJ=no
17291
if test -d /usr/nec; then
17292
lt_prog_compiler_pic_GCJ=-Kconform_pic
17297
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17298
# not for PA HP-UX.
17304
lt_prog_compiler_pic_GCJ='-fPIC'
17310
lt_prog_compiler_pic_GCJ='-fPIC'
17314
# PORTME Check for flag to pass linker flags through the system compiler.
17317
lt_prog_compiler_wl_GCJ='-Wl,'
17318
if test "$host_cpu" = ia64; then
17319
# AIX 5 now supports IA64 processor
17320
lt_prog_compiler_static_GCJ='-Bstatic'
17322
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17326
# PIC is the default on this platform
17327
# Common symbols not allowed in MH_DYLIB files
17328
case $cc_basename in
17330
lt_prog_compiler_pic_GCJ='-qnocommon'
17331
lt_prog_compiler_wl_GCJ='-Wl,'
17336
mingw* | cygwin* | pw32* | os2*)
17337
# This hack is so that the source file can tell whether it is being
17338
# built for inclusion in a dll (and should export symbols for example).
17342
hpux9* | hpux10* | hpux11*)
17343
lt_prog_compiler_wl_GCJ='-Wl,'
17344
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17345
# not for PA HP-UX.
17351
lt_prog_compiler_pic_GCJ='+Z'
17354
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17355
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17358
irix5* | irix6* | nonstopux*)
17359
lt_prog_compiler_wl_GCJ='-Wl,'
17360
# PIC (with -KPIC) is the default.
17361
lt_prog_compiler_static_GCJ='-non_shared'
17365
lt_prog_compiler_pic_GCJ='-KPIC'
17366
lt_prog_compiler_static_GCJ='-Bstatic'
17369
linux* | k*bsd*-gnu)
17370
case $cc_basename in
17372
lt_prog_compiler_wl_GCJ='-Wl,'
17373
lt_prog_compiler_pic_GCJ='-KPIC'
17374
lt_prog_compiler_static_GCJ='-static'
17376
pgcc* | pgf77* | pgf90* | pgf95*)
17377
# Portland Group compilers (*not* the Pentium gcc compiler,
17378
# which looks to be a dead project)
17379
lt_prog_compiler_wl_GCJ='-Wl,'
17380
lt_prog_compiler_pic_GCJ='-fpic'
17381
lt_prog_compiler_static_GCJ='-Bstatic'
17384
lt_prog_compiler_wl_GCJ='-Wl,'
17385
# All Alpha code is PIC.
17386
lt_prog_compiler_static_GCJ='-non_shared'
17389
case `$CC -V 2>&1 | sed 5q` in
17392
lt_prog_compiler_pic_GCJ='-KPIC'
17393
lt_prog_compiler_static_GCJ='-Bstatic'
17394
lt_prog_compiler_wl_GCJ='-Wl,'
17397
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17398
lt_prog_compiler_pic_GCJ='-KPIC'
17399
lt_prog_compiler_static_GCJ='-Bstatic'
17400
lt_prog_compiler_wl_GCJ=''
17407
osf3* | osf4* | osf5*)
17408
lt_prog_compiler_wl_GCJ='-Wl,'
17409
# All OSF/1 code is PIC.
17410
lt_prog_compiler_static_GCJ='-non_shared'
17414
lt_prog_compiler_static_GCJ='-non_shared'
17418
lt_prog_compiler_pic_GCJ='-KPIC'
17419
lt_prog_compiler_static_GCJ='-Bstatic'
17420
case $cc_basename in
17421
f77* | f90* | f95*)
17422
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17424
lt_prog_compiler_wl_GCJ='-Wl,';;
17429
lt_prog_compiler_wl_GCJ='-Qoption ld '
17430
lt_prog_compiler_pic_GCJ='-PIC'
17431
lt_prog_compiler_static_GCJ='-Bstatic'
17434
sysv4 | sysv4.2uw2* | sysv4.3*)
17435
lt_prog_compiler_wl_GCJ='-Wl,'
17436
lt_prog_compiler_pic_GCJ='-KPIC'
17437
lt_prog_compiler_static_GCJ='-Bstatic'
17441
if test -d /usr/nec ;then
17442
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17443
lt_prog_compiler_static_GCJ='-Bstatic'
17447
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17448
lt_prog_compiler_wl_GCJ='-Wl,'
17449
lt_prog_compiler_pic_GCJ='-KPIC'
17450
lt_prog_compiler_static_GCJ='-Bstatic'
17454
lt_prog_compiler_wl_GCJ='-Wl,'
17455
lt_prog_compiler_can_build_shared_GCJ=no
17459
lt_prog_compiler_pic_GCJ='-pic'
17460
lt_prog_compiler_static_GCJ='-Bstatic'
17464
lt_prog_compiler_can_build_shared_GCJ=no
17469
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17470
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17473
# Check to make sure the PIC flag actually works.
17475
if test -n "$lt_prog_compiler_pic_GCJ"; then
17477
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17478
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17479
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17480
$as_echo_n "(cached) " >&6
17482
lt_cv_prog_compiler_pic_works_GCJ=no
17483
ac_outfile=conftest.$ac_objext
17484
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17485
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17486
# Insert the option either (1) after the last *FLAGS variable, or
17487
# (2) before a word containing "conftest.", or (3) at the end.
17488
# Note that $ac_compile itself does not contain backslashes and begins
17489
# with a dollar sign (not a hyphen), so the echo should work correctly.
17490
# The option is referenced via a variable to avoid confusing sed.
17491
lt_compile=`echo "$ac_compile" | $SED \
17492
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17493
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17494
-e 's:$: $lt_compiler_flag:'`
17495
(eval echo "\"\$as_me:17495: $lt_compile\"" >&5)
17496
(eval "$lt_compile" 2>conftest.err)
17498
cat conftest.err >&5
17499
echo "$as_me:17499: \$? = $ac_status" >&5
17500
if (exit $ac_status) && test -s "$ac_outfile"; then
17501
# The compiler can only warn and ignore the option if not recognized
17502
# So say no if there are warnings other than the usual output.
17503
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17504
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17505
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17506
lt_cv_prog_compiler_pic_works_GCJ=yes
17512
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17513
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17515
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17516
case $lt_prog_compiler_pic_GCJ in
17518
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17521
lt_prog_compiler_pic_GCJ=
17522
lt_prog_compiler_can_build_shared_GCJ=no
17527
# For platforms which do not support PIC, -DPIC is meaningless:
17529
lt_prog_compiler_pic_GCJ=
17532
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17537
# Check to make sure the static flag actually works.
17539
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17540
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17541
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17542
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17543
$as_echo_n "(cached) " >&6
17545
lt_cv_prog_compiler_static_works_GCJ=no
17546
save_LDFLAGS="$LDFLAGS"
17547
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17548
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17549
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17550
# The linker can only warn and ignore the option if not recognized
17551
# So say no if there are warnings
17552
if test -s conftest.err; then
17553
# Append any errors to the config.log.
17554
cat conftest.err 1>&5
17555
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17556
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17557
if diff conftest.exp conftest.er2 >/dev/null; then
17558
lt_cv_prog_compiler_static_works_GCJ=yes
17561
lt_cv_prog_compiler_static_works_GCJ=yes
17565
LDFLAGS="$save_LDFLAGS"
17568
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17569
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17571
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17574
lt_prog_compiler_static_GCJ=
17578
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17579
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17580
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17581
$as_echo_n "(cached) " >&6
17583
lt_cv_prog_compiler_c_o_GCJ=no
17584
$rm -r conftest 2>/dev/null
17588
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17590
lt_compiler_flag="-o out/conftest2.$ac_objext"
17591
# Insert the option either (1) after the last *FLAGS variable, or
17592
# (2) before a word containing "conftest.", or (3) at the end.
17593
# Note that $ac_compile itself does not contain backslashes and begins
17594
# with a dollar sign (not a hyphen), so the echo should work correctly.
17595
lt_compile=`echo "$ac_compile" | $SED \
17596
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17597
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17598
-e 's:$: $lt_compiler_flag:'`
17599
(eval echo "\"\$as_me:17599: $lt_compile\"" >&5)
17600
(eval "$lt_compile" 2>out/conftest.err)
17602
cat out/conftest.err >&5
17603
echo "$as_me:17603: \$? = $ac_status" >&5
17604
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17606
# The compiler can only warn and ignore the option if not recognized
17607
# So say no if there are warnings
17608
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17609
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17610
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17611
lt_cv_prog_compiler_c_o_GCJ=yes
17616
# SGI C++ compiler will create directory out/ii_files/ for
17617
# template instantiation
17618
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17619
$rm out/* && rmdir out
17625
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17626
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17629
hard_links="nottested"
17630
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17631
# do not overwrite the value of need_locks provided by the user
17632
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17633
$as_echo_n "checking if we can lock with hard links... " >&6; }
17636
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17638
ln conftest.a conftest.b 2>&5 || hard_links=no
17639
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17640
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17641
$as_echo "$hard_links" >&6; }
17642
if test "$hard_links" = no; then
17643
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17644
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17651
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17652
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17655
allow_undefined_flag_GCJ=
17656
enable_shared_with_static_runtimes_GCJ=no
17658
archive_expsym_cmds_GCJ=
17659
old_archive_From_new_cmds_GCJ=
17660
old_archive_from_expsyms_cmds_GCJ=
17661
export_dynamic_flag_spec_GCJ=
17662
whole_archive_flag_spec_GCJ=
17663
thread_safe_flag_spec_GCJ=
17664
hardcode_libdir_flag_spec_GCJ=
17665
hardcode_libdir_flag_spec_ld_GCJ=
17666
hardcode_libdir_separator_GCJ=
17667
hardcode_direct_GCJ=no
17668
hardcode_minus_L_GCJ=no
17669
hardcode_shlibpath_var_GCJ=unsupported
17670
link_all_deplibs_GCJ=unknown
17671
hardcode_automatic_GCJ=no
17673
module_expsym_cmds_GCJ=
17674
always_export_symbols_GCJ=no
17675
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17676
# include_expsyms should be a list of space-separated symbols to be *always*
17677
# included in the symbol list
17678
include_expsyms_GCJ=
17679
# exclude_expsyms can be an extended regexp of symbols to exclude
17680
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17681
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17682
# as well as any symbol that contains `d'.
17683
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17684
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17685
# platforms (ab)use it in PIC code, but their linkers get confused if
17686
# the symbol is explicitly referenced. Since portable code cannot
17687
# rely on this symbol name, it's probably fine to never include it in
17688
# preloaded symbol tables.
17689
# Exclude shared library initialization/finalization symbols.
17690
extract_expsyms_cmds=
17691
# Just being paranoid about ensuring that cc_basename is set.
17692
for cc_temp in $compiler""; do
17694
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17695
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17700
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17703
cygwin* | mingw* | pw32*)
17704
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17705
# When not using gcc, we currently assume that we are using
17706
# Microsoft Visual C++.
17707
if test "$GCC" != yes; then
17712
# we just hope/assume this is gcc and not c89 (= MSVC++)
17721
if test "$with_gnu_ld" = yes; then
17722
# If archive_cmds runs LD, not CC, wlarc should be empty
17725
# Set some defaults for GNU ld with shared library support. These
17726
# are reset later if shared libraries are not supported. Putting them
17727
# here allows them to be overridden if necessary.
17728
runpath_var=LD_RUN_PATH
17729
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17730
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17731
# ancient GNU ld didn't support --whole-archive et. al.
17732
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17733
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17735
whole_archive_flag_spec_GCJ=
17737
supports_anon_versioning=no
17738
case `$LD -v 2>/dev/null` in
17739
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17740
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17741
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17742
*\ 2.11.*) ;; # other 2.11 versions
17743
*) supports_anon_versioning=yes ;;
17746
# See if GNU ld supports shared libraries.
17749
# On AIX/PPC, the GNU linker is very broken
17750
if test "$host_cpu" != ia64; then
17754
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17755
*** to be unable to reliably create shared libraries on AIX.
17756
*** Therefore, libtool is disabling shared libraries support. If you
17757
*** really care for shared libraries, you may want to modify your PATH
17758
*** so that a non-GNU linker is found, and then restart.
17765
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)'
17766
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17767
hardcode_minus_L_GCJ=yes
17769
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17770
# that the semantics of dynamic libraries on AmigaOS, at least up
17771
# to version 4, is to share data among multiple programs linked
17772
# with the same dynamic library. Since this doesn't match the
17773
# behavior of shared libraries on other platforms, we can't use
17779
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17780
allow_undefined_flag_GCJ=unsupported
17781
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17782
# support --undefined. This deserves some investigation. FIXME
17783
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17789
cygwin* | mingw* | pw32*)
17790
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17791
# as there is no search path for DLLs.
17792
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793
allow_undefined_flag_GCJ=unsupported
17794
always_export_symbols_GCJ=no
17795
enable_shared_with_static_runtimes_GCJ=yes
17796
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17798
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17799
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17800
# If the export-symbols file already is a .def file (1st line
17801
# is EXPORTS), use it as is; otherwise, prepend...
17802
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17803
cp $export_symbols $output_objdir/$soname.def;
17805
echo EXPORTS > $output_objdir/$soname.def;
17806
cat $export_symbols >> $output_objdir/$soname.def;
17808
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17815
hardcode_direct_GCJ=no
17816
hardcode_shlibpath_var_GCJ=no
17817
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17818
export_dynamic_flag_spec_GCJ='${wl}-E'
17819
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17820
# Instead, shared libraries are loaded at an image base (0x10000000 by
17821
# default) and relocated if they conflict, which is a slow very memory
17822
# consuming and fragmenting process. To avoid this, we pick a random,
17823
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17824
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17825
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'
17826
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'
17829
gnu* | linux* | k*bsd*-gnu)
17830
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17832
case $cc_basename,$host_cpu in
17833
pgcc*) # Portland Group C compiler
17834
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'
17835
tmp_addflag=' $pic_flag'
17837
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17838
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'
17839
tmp_addflag=' $pic_flag -Mnomain' ;;
17840
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17841
tmp_addflag=' -i_dynamic' ;;
17842
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17843
tmp_addflag=' -i_dynamic -nofor_main' ;;
17844
ifc* | ifort*) # Intel Fortran compiler
17845
tmp_addflag=' -nofor_main' ;;
17847
case `$CC -V 2>&1 | sed 5q` in
17848
*Sun\ C*) # Sun C 5.9
17849
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'
17850
tmp_sharedflag='-G' ;;
17851
*Sun\ F*) # Sun Fortran 8.3
17852
tmp_sharedflag='-G' ;;
17854
tmp_sharedflag='-shared' ;;
17856
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17858
if test $supports_anon_versioning = yes; then
17859
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17860
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17861
$echo "local: *; };" >> $output_objdir/$libname.ver~
17862
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17870
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17871
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17874
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17875
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17880
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17884
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17885
*** create shared libraries on Solaris systems. Therefore, libtool
17886
*** is disabling shared libraries support. We urge you to upgrade GNU
17887
*** binutils to release 2.9.1 or newer. Another option is to modify
17888
*** your PATH or compiler configuration so that the native linker is
17889
*** used, and then restart.
17892
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17893
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17894
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17900
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17901
case `$LD -v 2>&1` in
17902
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17906
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17907
*** reliably create shared libraries on SCO systems. Therefore, libtool
17908
*** is disabling shared libraries support. We urge you to upgrade GNU
17909
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17910
*** your PATH or compiler configuration so that the native linker is
17911
*** used, and then restart.
17916
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17917
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17918
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17919
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17928
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17930
hardcode_direct_GCJ=yes
17931
hardcode_shlibpath_var_GCJ=no
17935
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17936
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17944
if test "$ld_shlibs_GCJ" = no; then
17946
hardcode_libdir_flag_spec_GCJ=
17947
export_dynamic_flag_spec_GCJ=
17948
whole_archive_flag_spec_GCJ=
17951
# PORTME fill in a description of your system's linker (not GNU ld)
17954
allow_undefined_flag_GCJ=unsupported
17955
always_export_symbols_GCJ=yes
17956
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'
17957
# Note: this linker hardcodes the directories in LIBPATH if there
17958
# are no directories specified by -L.
17959
hardcode_minus_L_GCJ=yes
17960
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17961
# Neither direct hardcoding nor static linking is supported with a
17963
hardcode_direct_GCJ=unsupported
17968
if test "$host_cpu" = ia64; then
17969
# On IA64, the linker does run time linking by default, so we don't
17970
# have to do anything special.
17971
aix_use_runtimelinking=no
17972
exp_sym_flag='-Bexport'
17975
# If we're using GNU nm, then we don't want the "-C" option.
17976
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17977
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17978
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'
17980
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'
17982
aix_use_runtimelinking=no
17984
# Test if we are trying to use run time linking or normal
17985
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17986
# need to do runtime linking.
17987
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17988
for ld_flag in $LDFLAGS; do
17989
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17990
aix_use_runtimelinking=yes
17997
exp_sym_flag='-bexport'
17998
no_entry_flag='-bnoentry'
18001
# When large executables or shared objects are built, AIX ld can
18002
# have problems creating the table of contents. If linking a library
18003
# or program results in "error TOC overflow" add -mminimal-toc to
18004
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18005
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18007
archive_cmds_GCJ=''
18008
hardcode_direct_GCJ=yes
18009
hardcode_libdir_separator_GCJ=':'
18010
link_all_deplibs_GCJ=yes
18012
if test "$GCC" = yes; then
18013
case $host_os in aix4.[012]|aix4.[012].*)
18014
# We only want to do this on AIX 4.2 and lower, the check
18015
# below for broken collect2 doesn't work under 4.3+
18016
collect2name=`${CC} -print-prog-name=collect2`
18017
if test -f "$collect2name" && \
18018
strings "$collect2name" | grep resolve_lib_name >/dev/null
18020
# We have reworked collect2
18023
# We have old collect2
18024
hardcode_direct_GCJ=unsupported
18025
# It fails to find uninstalled libraries when the uninstalled
18026
# path is not listed in the libpath. Setting hardcode_minus_L
18027
# to unsupported forces relinking
18028
hardcode_minus_L_GCJ=yes
18029
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18030
hardcode_libdir_separator_GCJ=
18034
shared_flag='-shared'
18035
if test "$aix_use_runtimelinking" = yes; then
18036
shared_flag="$shared_flag "'${wl}-G'
18040
if test "$host_cpu" = ia64; then
18041
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18042
# chokes on -Wl,-G. The following line is correct:
18045
if test "$aix_use_runtimelinking" = yes; then
18046
shared_flag='${wl}-G'
18048
shared_flag='${wl}-bM:SRE'
18053
# It seems that -bexpall does not export symbols beginning with
18054
# underscore (_), so it is better to generate a list of symbols to export.
18055
always_export_symbols_GCJ=yes
18056
if test "$aix_use_runtimelinking" = yes; then
18057
# Warning - without using the other runtime loading flags (-brtl),
18058
# -berok will link without error, but may produce a broken library.
18059
allow_undefined_flag_GCJ='-berok'
18060
# Determine the default libpath from the value encoded in an empty executable.
18061
cat >conftest.$ac_ext <<_ACEOF
18064
cat confdefs.h >>conftest.$ac_ext
18065
cat >>conftest.$ac_ext <<_ACEOF
18066
/* end confdefs.h. */
18076
rm -f conftest.$ac_objext conftest$ac_exeext
18077
if { (ac_try="$ac_link"
18078
case "(($ac_try" in
18079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080
*) ac_try_echo=$ac_try;;
18082
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18083
$as_echo "$ac_try_echo") >&5
18084
(eval "$ac_link") 2>conftest.er1
18086
grep -v '^ *+' conftest.er1 >conftest.err
18088
cat conftest.err >&5
18089
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090
(exit $ac_status); } && {
18091
test -z "$ac_c_werror_flag" ||
18092
test ! -s conftest.err
18093
} && test -s conftest$ac_exeext && {
18094
test "$cross_compiling" = yes ||
18095
$as_test_x conftest$ac_exeext
18098
lt_aix_libpath_sed='
18099
/Import File Strings/,/^$/ {
18105
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18106
# Check for a 64-bit object if we didn't find anything.
18107
if test -z "$aix_libpath"; then
18108
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18111
$as_echo "$as_me: failed program was:" >&5
18112
sed 's/^/| /' conftest.$ac_ext >&5
18117
rm -rf conftest.dSYM
18118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119
conftest$ac_exeext conftest.$ac_ext
18120
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18122
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18123
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"
18125
if test "$host_cpu" = ia64; then
18126
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18127
allow_undefined_flag_GCJ="-z nodefs"
18128
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"
18130
# Determine the default libpath from the value encoded in an empty executable.
18131
cat >conftest.$ac_ext <<_ACEOF
18134
cat confdefs.h >>conftest.$ac_ext
18135
cat >>conftest.$ac_ext <<_ACEOF
18136
/* end confdefs.h. */
18146
rm -f conftest.$ac_objext conftest$ac_exeext
18147
if { (ac_try="$ac_link"
18148
case "(($ac_try" in
18149
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150
*) ac_try_echo=$ac_try;;
18152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18153
$as_echo "$ac_try_echo") >&5
18154
(eval "$ac_link") 2>conftest.er1
18156
grep -v '^ *+' conftest.er1 >conftest.err
18158
cat conftest.err >&5
18159
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160
(exit $ac_status); } && {
18161
test -z "$ac_c_werror_flag" ||
18162
test ! -s conftest.err
18163
} && test -s conftest$ac_exeext && {
18164
test "$cross_compiling" = yes ||
18165
$as_test_x conftest$ac_exeext
18168
lt_aix_libpath_sed='
18169
/Import File Strings/,/^$/ {
18175
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18176
# Check for a 64-bit object if we didn't find anything.
18177
if test -z "$aix_libpath"; then
18178
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18181
$as_echo "$as_me: failed program was:" >&5
18182
sed 's/^/| /' conftest.$ac_ext >&5
18187
rm -rf conftest.dSYM
18188
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189
conftest$ac_exeext conftest.$ac_ext
18190
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18192
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18193
# Warning - without using the other run time loading flags,
18194
# -berok will link without error, but may produce a broken library.
18195
no_undefined_flag_GCJ=' ${wl}-bernotok'
18196
allow_undefined_flag_GCJ=' ${wl}-berok'
18197
# Exported symbols can be pulled into shared objects from archives
18198
whole_archive_flag_spec_GCJ='$convenience'
18199
archive_cmds_need_lc_GCJ=yes
18200
# This is similar to how AIX traditionally builds its shared libraries.
18201
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'
18207
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)'
18208
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18209
hardcode_minus_L_GCJ=yes
18210
# see comment about different semantics on the GNU ld section
18215
export_dynamic_flag_spec_GCJ=-rdynamic
18218
cygwin* | mingw* | pw32*)
18219
# When not using gcc, we currently assume that we are using
18220
# Microsoft Visual C++.
18221
# hardcode_libdir_flag_spec is actually meaningless, as there is
18222
# no search path for DLLs.
18223
hardcode_libdir_flag_spec_GCJ=' '
18224
allow_undefined_flag_GCJ=unsupported
18225
# Tell ltmain to make .lib files, not .a files.
18227
# Tell ltmain to make .dll files, not .so files.
18229
# FIXME: Setting linknames here is a bad hack.
18230
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18231
# The linker will automatically build a .lib file if we build a DLL.
18232
old_archive_From_new_cmds_GCJ='true'
18233
# FIXME: Should let the user specify the lib program.
18234
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18235
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18236
enable_shared_with_static_runtimes_GCJ=yes
18239
darwin* | rhapsody*)
18241
rhapsody* | darwin1.[012])
18242
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18245
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18246
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18248
case ${MACOSX_DEPLOYMENT_TARGET} in
18250
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18253
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18259
archive_cmds_need_lc_GCJ=no
18260
hardcode_direct_GCJ=no
18261
hardcode_automatic_GCJ=yes
18262
hardcode_shlibpath_var_GCJ=unsupported
18263
whole_archive_flag_spec_GCJ=''
18264
link_all_deplibs_GCJ=yes
18265
if test "$GCC" = yes ; then
18266
output_verbose_link_cmd='echo'
18267
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18268
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18269
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18270
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18272
case $cc_basename in
18274
output_verbose_link_cmd='echo'
18275
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18276
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18277
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18278
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}'
18279
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}'
18289
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291
hardcode_shlibpath_var_GCJ=no
18298
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18299
# support. Future versions do this automatically, but an explicit c++rt0.o
18300
# does not break anything, and helps significantly (at the cost of a little
18303
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18304
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18305
hardcode_direct_GCJ=yes
18306
hardcode_shlibpath_var_GCJ=no
18309
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18311
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18312
hardcode_direct_GCJ=yes
18313
hardcode_minus_L_GCJ=yes
18314
hardcode_shlibpath_var_GCJ=no
18317
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18318
freebsd* | dragonfly*)
18319
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18320
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18321
hardcode_direct_GCJ=yes
18322
hardcode_shlibpath_var_GCJ=no
18326
if test "$GCC" = yes; then
18327
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'
18329
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'
18331
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18332
hardcode_libdir_separator_GCJ=:
18333
hardcode_direct_GCJ=yes
18335
# hardcode_minus_L: Not really in the search PATH,
18336
# but as the default location of the library.
18337
hardcode_minus_L_GCJ=yes
18338
export_dynamic_flag_spec_GCJ='${wl}-E'
18342
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18343
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18345
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18347
if test "$with_gnu_ld" = no; then
18348
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18349
hardcode_libdir_separator_GCJ=:
18351
hardcode_direct_GCJ=yes
18352
export_dynamic_flag_spec_GCJ='${wl}-E'
18354
# hardcode_minus_L: Not really in the search PATH,
18355
# but as the default location of the library.
18356
hardcode_minus_L_GCJ=yes
18361
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18364
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18367
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18370
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18376
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18379
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18382
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18386
if test "$with_gnu_ld" = no; then
18387
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18388
hardcode_libdir_separator_GCJ=:
18392
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18393
hardcode_direct_GCJ=no
18394
hardcode_shlibpath_var_GCJ=no
18397
hardcode_direct_GCJ=yes
18398
export_dynamic_flag_spec_GCJ='${wl}-E'
18400
# hardcode_minus_L: Not really in the search PATH,
18401
# but as the default location of the library.
18402
hardcode_minus_L_GCJ=yes
18408
irix5* | irix6* | nonstopux*)
18409
if test "$GCC" = yes; then
18410
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'
18412
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'
18413
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18415
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18416
hardcode_libdir_separator_GCJ=:
18417
link_all_deplibs_GCJ=yes
18421
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18422
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18424
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18426
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18427
hardcode_direct_GCJ=yes
18428
hardcode_shlibpath_var_GCJ=no
18432
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18433
hardcode_direct_GCJ=yes
18434
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18435
hardcode_libdir_separator_GCJ=:
18436
hardcode_shlibpath_var_GCJ=no
18440
if test -f /usr/libexec/ld.so; then
18441
hardcode_direct_GCJ=yes
18442
hardcode_shlibpath_var_GCJ=no
18443
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18444
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18445
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18446
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18447
export_dynamic_flag_spec_GCJ='${wl}-E'
18450
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18451
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18452
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18455
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18456
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18466
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18467
hardcode_minus_L_GCJ=yes
18468
allow_undefined_flag_GCJ=unsupported
18469
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'
18470
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18474
if test "$GCC" = yes; then
18475
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18476
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'
18478
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18479
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'
18481
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18482
hardcode_libdir_separator_GCJ=:
18485
osf4* | osf5*) # as osf3* with the addition of -msym flag
18486
if test "$GCC" = yes; then
18487
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18488
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'
18489
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18491
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18492
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'
18493
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~
18494
$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'
18496
# Both c and cxx compiler support -rpath directly
18497
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18499
hardcode_libdir_separator_GCJ=:
18503
no_undefined_flag_GCJ=' -z text'
18504
if test "$GCC" = yes; then
18506
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18507
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18508
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18511
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18512
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18513
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18515
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516
hardcode_shlibpath_var_GCJ=no
18518
solaris2.[0-5] | solaris2.[0-5].*) ;;
18520
# The compiler driver will combine and reorder linker options,
18521
# but understands `-z linker_flag'. GCC discards it without `$wl',
18522
# but is careful enough not to reorder.
18523
# Supported since Solaris 2.6 (maybe 2.5.1?)
18524
if test "$GCC" = yes; then
18525
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18527
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18531
link_all_deplibs_GCJ=yes
18535
if test "x$host_vendor" = xsequent; then
18536
# Use $CC to link under sequent, because it throws in some extra .o
18537
# files that make .init and .fini sections work.
18538
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18540
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18542
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18543
hardcode_direct_GCJ=yes
18544
hardcode_minus_L_GCJ=yes
18545
hardcode_shlibpath_var_GCJ=no
18549
case $host_vendor in
18551
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18552
hardcode_direct_GCJ=yes # is this really true???
18555
## LD is ld it makes a PLAMLIB
18556
## CC just makes a GrossModule.
18557
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18558
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18559
hardcode_direct_GCJ=no
18562
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18566
runpath_var='LD_RUN_PATH'
18567
hardcode_shlibpath_var_GCJ=no
18571
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18572
hardcode_shlibpath_var_GCJ=no
18573
export_dynamic_flag_spec_GCJ='-Bexport'
18577
if test -d /usr/nec; then
18578
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18579
hardcode_shlibpath_var_GCJ=no
18580
runpath_var=LD_RUN_PATH
18581
hardcode_runpath_var=yes
18586
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18587
no_undefined_flag_GCJ='${wl}-z,text'
18588
archive_cmds_need_lc_GCJ=no
18589
hardcode_shlibpath_var_GCJ=no
18590
runpath_var='LD_RUN_PATH'
18592
if test "$GCC" = yes; then
18593
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18594
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18596
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18597
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18601
sysv5* | sco3.2v5* | sco5v6*)
18602
# Note: We can NOT use -z defs as we might desire, because we do not
18603
# link with -lc, and that would cause any symbols used from libc to
18604
# always be unresolved, which means just about no library would
18605
# ever link correctly. If we're not using GNU ld we use -z text
18606
# though, which does catch some bad symbols but isn't as heavy-handed
18608
no_undefined_flag_GCJ='${wl}-z,text'
18609
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18610
archive_cmds_need_lc_GCJ=no
18611
hardcode_shlibpath_var_GCJ=no
18612
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18613
hardcode_libdir_separator_GCJ=':'
18614
link_all_deplibs_GCJ=yes
18615
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18616
runpath_var='LD_RUN_PATH'
18618
if test "$GCC" = yes; then
18619
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18620
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18622
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18623
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18628
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18630
hardcode_shlibpath_var_GCJ=no
18639
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18640
$as_echo "$ld_shlibs_GCJ" >&6; }
18641
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18644
# Do we need to explicitly link libc?
18646
case "x$archive_cmds_need_lc_GCJ" in
18648
# Assume -lc should be added
18649
archive_cmds_need_lc_GCJ=yes
18651
if test "$enable_shared" = yes && test "$GCC" = yes; then
18652
case $archive_cmds_GCJ in
18654
# FIXME: we may have to deal with multi-command sequences.
18657
# Test whether the compiler implicitly links with -lc since on some
18658
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18659
# to ld, don't add -lc before -lgcc.
18660
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18661
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18663
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18666
(eval $ac_compile) 2>&5
18668
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669
(exit $ac_status); } 2>conftest.err; then
18672
libobjs=conftest.$ac_objext
18674
wl=$lt_prog_compiler_wl_GCJ
18675
pic_flag=$lt_prog_compiler_pic_GCJ
18681
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18682
allow_undefined_flag_GCJ=
18683
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18684
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18686
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687
(exit $ac_status); }
18689
archive_cmds_need_lc_GCJ=no
18691
archive_cmds_need_lc_GCJ=yes
18693
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18695
cat conftest.err 1>&5
18698
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18699
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18706
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18707
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18708
library_names_spec=
18709
libname_spec='lib$name'
18713
postuninstall_cmds=
18717
shlibpath_overrides_runpath=unknown
18719
dynamic_linker="$host_os ld.so"
18720
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18722
need_lib_prefix=unknown
18723
hardcode_into_libs=no
18725
# when you set need_version to no, make sure it does not cause -set_version
18726
# flags to be left without arguments
18727
need_version=unknown
18732
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18733
shlibpath_var=LIBPATH
18735
# AIX 3 has no versioning support, so we append a major version to the name.
18736
soname_spec='${libname}${release}${shared_ext}$major'
18743
hardcode_into_libs=yes
18744
if test "$host_cpu" = ia64; then
18745
# AIX 5 supports IA64
18746
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18747
shlibpath_var=LD_LIBRARY_PATH
18749
# With GCC up to 2.95.x, collect2 would create an import file
18750
# for dependence libraries. The import file would start with
18751
# the line `#! .'. This would cause the generated library to
18752
# depend on `.', always an invalid library. This was fixed in
18753
# development snapshots of GCC prior to 3.0.
18755
aix4 | aix4.[01] | aix4.[01].*)
18756
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18758
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18761
can_build_shared=no
18765
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18766
# soname into executable. Probably we can add versioning support to
18767
# collect2, so additional links can be useful in future.
18768
if test "$aix_use_runtimelinking" = yes; then
18769
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18770
# instead of lib<name>.a to let people know that these are not
18771
# typical AIX shared libraries.
18772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774
# We preserve .a as extension for shared libraries through AIX4.2
18775
# and later when we are not doing run time linking.
18776
library_names_spec='${libname}${release}.a $libname.a'
18777
soname_spec='${libname}${release}${shared_ext}$major'
18779
shlibpath_var=LIBPATH
18784
library_names_spec='$libname.ixlibrary $libname.a'
18785
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18786
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'
18790
library_names_spec='${libname}${shared_ext}'
18791
dynamic_linker="$host_os ld.so"
18792
shlibpath_var=LIBRARY_PATH
18798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799
soname_spec='${libname}${release}${shared_ext}$major'
18800
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18801
shlibpath_var=LD_LIBRARY_PATH
18802
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18803
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18804
# the default ld.so.conf also contains /usr/contrib/lib and
18805
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18806
# libtool to hard-code these into programs
18809
cygwin* | mingw* | pw32*)
18810
version_type=windows
18815
case $GCC,$host_os in
18816
yes,cygwin* | yes,mingw* | yes,pw32*)
18817
library_names_spec='$libname.dll.a'
18818
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18819
postinstall_cmds='base_file=`basename \${file}`~
18820
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18821
dldir=$destdir/`dirname \$dlpath`~
18822
test -d \$dldir || mkdir -p \$dldir~
18823
$install_prog $dir/$dlname \$dldir/$dlname~
18824
chmod a+x \$dldir/$dlname'
18825
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18826
dlpath=$dir/\$dldll~
18828
shlibpath_overrides_runpath=yes
18832
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18833
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18834
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18837
# MinGW DLLs use traditional 'lib' prefix
18838
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18839
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18840
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18841
# It is most probably a Windows format PATH printed by
18842
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18843
# path with ; separators, and with drive letters. We can handle the
18844
# drive letters (cygwin fileutils understands them), so leave them,
18845
# especially as we might pass files found there to a mingw objdump,
18846
# which wouldn't understand a cygwinified path. Ahh.
18847
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18849
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18853
# pw32 DLLs use 'pw' prefix rather than 'lib'
18854
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18860
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18863
dynamic_linker='Win32 ld.exe'
18864
# FIXME: first we should search . and the directory the executable is in
18868
darwin* | rhapsody*)
18869
dynamic_linker="$host_os dyld"
18870
version_type=darwin
18873
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18874
soname_spec='${libname}${release}${major}$shared_ext'
18875
shlibpath_overrides_runpath=yes
18876
shlibpath_var=DYLD_LIBRARY_PATH
18877
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18879
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18887
soname_spec='${libname}${release}${shared_ext}$major'
18888
shlibpath_var=LD_LIBRARY_PATH
18895
freebsd* | dragonfly*)
18896
# DragonFly does not have aout. When/if they implement a new
18897
# versioning mechanism, adjust this.
18898
if test -x /usr/bin/objformat; then
18899
objformat=`/usr/bin/objformat`
18902
freebsd[123]*) objformat=aout ;;
18903
*) objformat=elf ;;
18906
version_type=freebsd-$objformat
18907
case $version_type in
18909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18914
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18918
shlibpath_var=LD_LIBRARY_PATH
18921
shlibpath_overrides_runpath=yes
18923
freebsd3.[01]* | freebsdelf3.[01]*)
18924
shlibpath_overrides_runpath=yes
18925
hardcode_into_libs=yes
18927
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18928
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18929
shlibpath_overrides_runpath=no
18930
hardcode_into_libs=yes
18932
*) # from 4.6 on, and DragonFly
18933
shlibpath_overrides_runpath=yes
18934
hardcode_into_libs=yes
18943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18944
soname_spec='${libname}${release}${shared_ext}$major'
18945
shlibpath_var=LD_LIBRARY_PATH
18946
hardcode_into_libs=yes
18949
hpux9* | hpux10* | hpux11*)
18950
# Give a soname corresponding to the major version so that dld.sl refuses to
18951
# link against other versions.
18958
hardcode_into_libs=yes
18959
dynamic_linker="$host_os dld.so"
18960
shlibpath_var=LD_LIBRARY_PATH
18961
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18962
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963
soname_spec='${libname}${release}${shared_ext}$major'
18964
if test "X$HPUX_IA64_MODE" = X32; then
18965
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18967
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18969
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18973
hardcode_into_libs=yes
18974
dynamic_linker="$host_os dld.sl"
18975
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18976
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978
soname_spec='${libname}${release}${shared_ext}$major'
18979
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18980
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18984
dynamic_linker="$host_os dld.sl"
18985
shlibpath_var=SHLIB_PATH
18986
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988
soname_spec='${libname}${release}${shared_ext}$major'
18991
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18992
postinstall_cmds='chmod 555 $lib'
18999
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19000
soname_spec='${libname}${release}${shared_ext}$major'
19001
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19002
shlibpath_var=LD_LIBRARY_PATH
19003
shlibpath_overrides_runpath=no
19004
hardcode_into_libs=yes
19007
irix5* | irix6* | nonstopux*)
19009
nonstopux*) version_type=nonstopux ;;
19011
if test "$lt_cv_prog_gnu_ld" = yes; then
19019
soname_spec='${libname}${release}${shared_ext}$major'
19020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19022
irix5* | nonstopux*)
19023
libsuff= shlibsuff=
19026
case $LD in # libtool.m4 will add one of these switches to LD
19027
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19028
libsuff= shlibsuff= libmagic=32-bit;;
19029
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19030
libsuff=32 shlibsuff=N32 libmagic=N32;;
19031
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19032
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19033
*) libsuff= shlibsuff= libmagic=never-match;;
19037
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19038
shlibpath_overrides_runpath=no
19039
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19040
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19041
hardcode_into_libs=yes
19044
# No shared lib support for Linux oldld, aout, or coff.
19045
linux*oldld* | linux*aout* | linux*coff*)
19049
# This must be Linux ELF.
19050
linux* | k*bsd*-gnu)
19054
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19055
soname_spec='${libname}${release}${shared_ext}$major'
19056
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19057
shlibpath_var=LD_LIBRARY_PATH
19058
shlibpath_overrides_runpath=no
19059
# This implies no fast_install, which is unacceptable.
19060
# Some rework will be needed to allow for fast_install
19061
# before this can be enabled.
19062
hardcode_into_libs=yes
19063
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19064
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19066
# Append ld.so.conf contents to the search path
19067
if test -f /etc/ld.so.conf; then
19068
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' ' '`
19069
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19072
# We used to test for /lib/ld.so.1 and disable shared libraries on
19073
# powerpc, because MkLinux only supported shared libraries with the
19074
# GNU dynamic linker. Since this was broken with cross compilers,
19075
# most powerpc-linux boxes support dynamic linking these days and
19076
# people can always --disable-shared, the test was removed, and we
19077
# assume the GNU/Linux dynamic linker is in use.
19078
dynamic_linker='GNU/Linux ld.so'
19085
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19087
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19088
dynamic_linker='NetBSD (a.out) ld.so'
19090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19091
soname_spec='${libname}${release}${shared_ext}$major'
19092
dynamic_linker='NetBSD ld.elf_so'
19094
shlibpath_var=LD_LIBRARY_PATH
19095
shlibpath_overrides_runpath=yes
19096
hardcode_into_libs=yes
19101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102
shlibpath_var=LD_LIBRARY_PATH
19103
shlibpath_overrides_runpath=yes
19110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111
soname_spec='${libname}${release}${shared_ext}$major'
19112
shlibpath_var=LD_LIBRARY_PATH
19113
shlibpath_overrides_runpath=yes
19118
sys_lib_dlsearch_path_spec="/usr/lib"
19120
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19122
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19123
*) need_version=no ;;
19125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19126
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19127
shlibpath_var=LD_LIBRARY_PATH
19128
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19130
openbsd2.[89] | openbsd2.[89].*)
19131
shlibpath_overrides_runpath=no
19134
shlibpath_overrides_runpath=yes
19138
shlibpath_overrides_runpath=yes
19143
libname_spec='$name'
19146
library_names_spec='$libname${shared_ext} $libname.a'
19147
dynamic_linker='OS/2 ld.exe'
19148
shlibpath_var=LIBPATH
19151
osf3* | osf4* | osf5*)
19155
soname_spec='${libname}${release}${shared_ext}$major'
19156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19157
shlibpath_var=LD_LIBRARY_PATH
19158
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19159
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171
soname_spec='${libname}${release}${shared_ext}$major'
19172
shlibpath_var=LD_LIBRARY_PATH
19173
shlibpath_overrides_runpath=yes
19174
hardcode_into_libs=yes
19175
# ldd complains unless libraries are executable
19176
postinstall_cmds='chmod +x $lib'
19181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19182
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19183
shlibpath_var=LD_LIBRARY_PATH
19184
shlibpath_overrides_runpath=yes
19185
if test "$with_gnu_ld" = yes; then
19193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194
soname_spec='${libname}${release}${shared_ext}$major'
19195
shlibpath_var=LD_LIBRARY_PATH
19196
case $host_vendor in
19198
shlibpath_overrides_runpath=no
19200
export_dynamic_flag_spec='${wl}-Blargedynsym'
19201
runpath_var=LD_RUN_PATH
19209
shlibpath_overrides_runpath=no
19210
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19216
if test -d /usr/nec ;then
19218
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19219
soname_spec='$libname${shared_ext}.$major'
19220
shlibpath_var=LD_LIBRARY_PATH
19224
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19225
version_type=freebsd-elf
19228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19229
soname_spec='${libname}${release}${shared_ext}$major'
19230
shlibpath_var=LD_LIBRARY_PATH
19231
hardcode_into_libs=yes
19232
if test "$with_gnu_ld" = yes; then
19233
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19234
shlibpath_overrides_runpath=no
19236
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19237
shlibpath_overrides_runpath=yes
19240
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19244
sys_lib_dlsearch_path_spec='/usr/lib'
19249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250
soname_spec='${libname}${release}${shared_ext}$major'
19251
shlibpath_var=LD_LIBRARY_PATH
19258
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19259
$as_echo "$dynamic_linker" >&6; }
19260
test "$dynamic_linker" = no && can_build_shared=no
19262
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19263
$as_echo_n "(cached) " >&6
19265
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19268
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19269
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19270
$as_echo_n "(cached) " >&6
19272
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19275
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19277
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19278
if test "$GCC" = yes; then
19279
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19282
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19283
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19284
hardcode_action_GCJ=
19285
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19286
test -n "$runpath_var_GCJ" || \
19287
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19289
# We can hardcode non-existant directories.
19290
if test "$hardcode_direct_GCJ" != no &&
19291
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19292
# have to relink, otherwise we might link with an installed library
19293
# when we should be linking with a yet-to-be-installed one
19294
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19295
test "$hardcode_minus_L_GCJ" != no; then
19296
# Linking always hardcodes the temporary library directory.
19297
hardcode_action_GCJ=relink
19299
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19300
hardcode_action_GCJ=immediate
19303
# We cannot hardcode anything, or else we can only hardcode existing
19305
hardcode_action_GCJ=unsupported
19307
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19308
$as_echo "$hardcode_action_GCJ" >&6; }
19310
if test "$hardcode_action_GCJ" = relink; then
19311
# Fast installation is not supported
19312
enable_fast_install=no
19313
elif test "$shlibpath_overrides_runpath" = yes ||
19314
test "$enable_shared" = no; then
19315
# Fast installation is not necessary
19316
enable_fast_install=needless
19320
# The else clause should only fire when bootstrapping the
19321
# libtool distribution, otherwise you forgot to ship ltmain.sh
19322
# with your package, and you will get complaints that there are
19323
# no rules to generate ltmain.sh.
19324
if test -f "$ltmain"; then
19325
# See if we are running on zsh, and set the options which allow our commands through
19326
# without removal of \ escapes.
19327
if test -n "${ZSH_VERSION+set}" ; then
19328
setopt NO_GLOB_SUBST
19330
# Now quote all the things that may contain metacharacters while being
19331
# careful not to overquote the AC_SUBSTed values. We take copies of the
19332
# variables and quote the copies for generation of the libtool script.
19333
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19335
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19336
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19337
deplibs_check_method reload_flag reload_cmds need_locks \
19338
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19339
lt_cv_sys_global_symbol_to_c_name_address \
19340
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19341
old_postinstall_cmds old_postuninstall_cmds \
19345
lt_prog_compiler_wl_GCJ \
19346
lt_prog_compiler_pic_GCJ \
19347
lt_prog_compiler_static_GCJ \
19348
lt_prog_compiler_no_builtin_flag_GCJ \
19349
export_dynamic_flag_spec_GCJ \
19350
thread_safe_flag_spec_GCJ \
19351
whole_archive_flag_spec_GCJ \
19352
enable_shared_with_static_runtimes_GCJ \
19353
old_archive_cmds_GCJ \
19354
old_archive_from_new_cmds_GCJ \
19355
predep_objects_GCJ \
19356
postdep_objects_GCJ \
19359
compiler_lib_search_path_GCJ \
19360
compiler_lib_search_dirs_GCJ \
19362
archive_expsym_cmds_GCJ \
19363
postinstall_cmds_GCJ \
19364
postuninstall_cmds_GCJ \
19365
old_archive_from_expsyms_cmds_GCJ \
19366
allow_undefined_flag_GCJ \
19367
no_undefined_flag_GCJ \
19368
export_symbols_cmds_GCJ \
19369
hardcode_libdir_flag_spec_GCJ \
19370
hardcode_libdir_flag_spec_ld_GCJ \
19371
hardcode_libdir_separator_GCJ \
19372
hardcode_automatic_GCJ \
19374
module_expsym_cmds_GCJ \
19375
lt_cv_prog_compiler_c_o_GCJ \
19376
fix_srcfile_path_GCJ \
19377
exclude_expsyms_GCJ \
19378
include_expsyms_GCJ; do
19381
old_archive_cmds_GCJ | \
19382
old_archive_from_new_cmds_GCJ | \
19383
archive_cmds_GCJ | \
19384
archive_expsym_cmds_GCJ | \
19385
module_cmds_GCJ | \
19386
module_expsym_cmds_GCJ | \
19387
old_archive_from_expsyms_cmds_GCJ | \
19388
export_symbols_cmds_GCJ | \
19389
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19390
postinstall_cmds | postuninstall_cmds | \
19391
old_postinstall_cmds | old_postuninstall_cmds | \
19392
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19393
# Double-quote double-evaled strings.
19394
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19397
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19403
*'\$0 --fallback-echo"')
19404
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19410
cat <<__EOF__ >> "$cfgfile"
19411
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19413
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19415
# Shell to use when invoking shell scripts.
19418
# Whether or not to build shared libraries.
19419
build_libtool_libs=$enable_shared
19421
# Whether or not to build static libraries.
19422
build_old_libs=$enable_static
19424
# Whether or not to add -lc for building shared libraries.
19425
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19427
# Whether or not to disallow shared libs when runtime libs are static
19428
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19430
# Whether or not to optimize for fast installation.
19431
fast_install=$enable_fast_install
19434
host_alias=$host_alias
19438
# The build system.
19439
build_alias=$build_alias
19443
# An echo program that does not interpret backslashes.
19448
AR_FLAGS=$lt_AR_FLAGS
19453
# LTCC compiler flags.
19454
LTCFLAGS=$lt_LTCFLAGS
19456
# A language-specific compiler.
19457
CC=$lt_compiler_GCJ
19459
# Is the compiler the GNU C compiler?
19465
# The linker used to build libraries.
19468
# Whether we need hard or soft links.
19471
# A BSD-compatible nm program.
19474
# A symbol stripping program
19477
# Used to examine libraries when file_magic_cmd begins "file"
19478
MAGIC_CMD=$MAGIC_CMD
19480
# Used on cygwin: DLL creation program.
19483
# Used on cygwin: object dumper.
19486
# Used on cygwin: assembler.
19489
# The name of the directory that contains temporary libtool files.
19492
# How to create reloadable object files.
19493
reload_flag=$lt_reload_flag
19494
reload_cmds=$lt_reload_cmds
19496
# How to pass a linker flag through the compiler.
19497
wl=$lt_lt_prog_compiler_wl_GCJ
19499
# Object file suffix (normally "o").
19500
objext="$ac_objext"
19502
# Old archive suffix (normally "a").
19505
# Shared library suffix (normally ".so").
19506
shrext_cmds='$shrext_cmds'
19508
# Executable file suffix (normally "").
19511
# Additional compiler flags for building library objects.
19512
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19515
# What is the maximum length of a command?
19516
max_cmd_len=$lt_cv_sys_max_cmd_len
19518
# Does compiler simultaneously support -c and -o options?
19519
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19521
# Must we lock files when doing compilation?
19522
need_locks=$lt_need_locks
19524
# Do we need the lib prefix for modules?
19525
need_lib_prefix=$need_lib_prefix
19527
# Do we need a version for libraries?
19528
need_version=$need_version
19530
# Whether dlopen is supported.
19531
dlopen_support=$enable_dlopen
19533
# Whether dlopen of programs is supported.
19534
dlopen_self=$enable_dlopen_self
19536
# Whether dlopen of statically linked programs is supported.
19537
dlopen_self_static=$enable_dlopen_self_static
19539
# Compiler flag to prevent dynamic linking.
19540
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19542
# Compiler flag to turn off builtin functions.
19543
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19545
# Compiler flag to allow reflexive dlopens.
19546
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19548
# Compiler flag to generate shared objects directly from archives.
19549
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19551
# Compiler flag to generate thread-safe objects.
19552
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19554
# Library versioning type.
19555
version_type=$version_type
19557
# Format of library name prefix.
19558
libname_spec=$lt_libname_spec
19560
# List of archive names. First name is the real one, the rest are links.
19561
# The last name is the one that the linker finds with -lNAME.
19562
library_names_spec=$lt_library_names_spec
19564
# The coded name of the library, if different from the real name.
19565
soname_spec=$lt_soname_spec
19567
# Commands used to build and install an old-style archive.
19569
old_archive_cmds=$lt_old_archive_cmds_GCJ
19570
old_postinstall_cmds=$lt_old_postinstall_cmds
19571
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19573
# Create an old-style archive from a shared archive.
19574
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19576
# Create a temporary old-style archive to link instead of a shared archive.
19577
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19579
# Commands used to build and install a shared archive.
19580
archive_cmds=$lt_archive_cmds_GCJ
19581
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19582
postinstall_cmds=$lt_postinstall_cmds
19583
postuninstall_cmds=$lt_postuninstall_cmds
19585
# Commands used to build a loadable module (assumed same as above if empty)
19586
module_cmds=$lt_module_cmds_GCJ
19587
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19589
# Commands to strip libraries.
19590
old_striplib=$lt_old_striplib
19591
striplib=$lt_striplib
19593
# Dependencies to place before the objects being linked to create a
19595
predep_objects=$lt_predep_objects_GCJ
19597
# Dependencies to place after the objects being linked to create a
19599
postdep_objects=$lt_postdep_objects_GCJ
19601
# Dependencies to place before the objects being linked to create a
19603
predeps=$lt_predeps_GCJ
19605
# Dependencies to place after the objects being linked to create a
19607
postdeps=$lt_postdeps_GCJ
19609
# The directories searched by this compiler when creating a shared
19611
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19613
# The library search path used internally by the compiler when linking
19614
# a shared library.
19615
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19617
# Method to check whether dependent libraries are shared objects.
19618
deplibs_check_method=$lt_deplibs_check_method
19620
# Command to use when deplibs_check_method == file_magic.
19621
file_magic_cmd=$lt_file_magic_cmd
19623
# Flag that allows shared libraries with undefined symbols to be built.
19624
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19626
# Flag that forces no undefined symbols.
19627
no_undefined_flag=$lt_no_undefined_flag_GCJ
19629
# Commands used to finish a libtool library installation in a directory.
19630
finish_cmds=$lt_finish_cmds
19632
# Same as above, but a single script fragment to be evaled but not shown.
19633
finish_eval=$lt_finish_eval
19635
# Take the output of nm and produce a listing of raw symbols and C names.
19636
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19638
# Transform the output of nm in a proper C declaration
19639
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19641
# Transform the output of nm in a C name address pair
19642
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19644
# This is the shared library runtime path variable.
19645
runpath_var=$runpath_var
19647
# This is the shared library path variable.
19648
shlibpath_var=$shlibpath_var
19650
# Is shlibpath searched before the hard-coded library search path?
19651
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19653
# How to hardcode a shared library path into an executable.
19654
hardcode_action=$hardcode_action_GCJ
19656
# Whether we should hardcode library paths into libraries.
19657
hardcode_into_libs=$hardcode_into_libs
19659
# Flag to hardcode \$libdir into a binary during linking.
19660
# This must work even if \$libdir does not exist.
19661
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19663
# If ld is used when linking, flag to hardcode \$libdir into
19664
# a binary during linking. This must work even if \$libdir does
19666
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19668
# Whether we need a single -rpath flag with a separated argument.
19669
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19671
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19672
# resulting binary.
19673
hardcode_direct=$hardcode_direct_GCJ
19675
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19676
# resulting binary.
19677
hardcode_minus_L=$hardcode_minus_L_GCJ
19679
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19680
# the resulting binary.
19681
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19683
# Set to yes if building a shared library automatically hardcodes DIR into the library
19684
# and all subsequent libraries and executables linked against it.
19685
hardcode_automatic=$hardcode_automatic_GCJ
19687
# Variables whose values should be saved in libtool wrapper scripts and
19688
# restored at relink time.
19689
variables_saved_for_relink="$variables_saved_for_relink"
19691
# Whether libtool must link a program against all its dependency libraries.
19692
link_all_deplibs=$link_all_deplibs_GCJ
19694
# Compile-time system search path for libraries
19695
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19697
# Run-time system search path for libraries
19698
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19700
# Fix the shell variable \$srcfile for the compiler.
19701
fix_srcfile_path=$lt_fix_srcfile_path
19703
# Set to yes if exported symbols are required.
19704
always_export_symbols=$always_export_symbols_GCJ
19706
# The commands to list exported symbols.
19707
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19709
# The commands to extract the exported symbol list from a shared archive.
19710
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19712
# Symbols that should not be listed in the preloaded symbols.
19713
exclude_expsyms=$lt_exclude_expsyms_GCJ
19715
# Symbols that must always be exported.
19716
include_expsyms=$lt_include_expsyms_GCJ
19718
# ### END LIBTOOL TAG CONFIG: $tagname
19724
# If there is no Makefile yet, we rely on a make rule to execute
19725
# `config.status --recheck' to rerun these tests and create the
19726
# libtool script then.
19727
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19728
if test -f "$ltmain_in"; then
19729
test -f Makefile && make "$ltmain"
19735
ac_cpp='$CPP $CPPFLAGS'
19736
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
# Source file extension for RC test sources.
19753
# Object file extension for compiled RC test sources.
19757
# Code to be used in simple compile tests
19758
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19760
# Code to be used in simple link tests
19761
lt_simple_link_test_code="$lt_simple_compile_test_code"
19763
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19765
# If no C compiler was specified, use CC.
19768
# If no C compiler flags were specified, use CFLAGS.
19769
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19771
# Allow CC to be a program name with arguments.
19775
# save warnings/boilerplate of simple test code
19776
ac_outfile=conftest.$ac_objext
19777
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19778
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19779
_lt_compiler_boilerplate=`cat conftest.err`
19782
ac_outfile=conftest.$ac_objext
19783
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19784
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19785
_lt_linker_boilerplate=`cat conftest.err`
19789
# Allow CC to be a program name with arguments.
19794
for cc_temp in $compiler""; do
19796
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19797
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19802
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19804
lt_cv_prog_compiler_c_o_RC=yes
19806
# The else clause should only fire when bootstrapping the
19807
# libtool distribution, otherwise you forgot to ship ltmain.sh
19808
# with your package, and you will get complaints that there are
19809
# no rules to generate ltmain.sh.
19810
if test -f "$ltmain"; then
19811
# See if we are running on zsh, and set the options which allow our commands through
19812
# without removal of \ escapes.
19813
if test -n "${ZSH_VERSION+set}" ; then
19814
setopt NO_GLOB_SUBST
19816
# Now quote all the things that may contain metacharacters while being
19817
# careful not to overquote the AC_SUBSTed values. We take copies of the
19818
# variables and quote the copies for generation of the libtool script.
19819
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19821
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19822
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19823
deplibs_check_method reload_flag reload_cmds need_locks \
19824
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19825
lt_cv_sys_global_symbol_to_c_name_address \
19826
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19827
old_postinstall_cmds old_postuninstall_cmds \
19831
lt_prog_compiler_wl_RC \
19832
lt_prog_compiler_pic_RC \
19833
lt_prog_compiler_static_RC \
19834
lt_prog_compiler_no_builtin_flag_RC \
19835
export_dynamic_flag_spec_RC \
19836
thread_safe_flag_spec_RC \
19837
whole_archive_flag_spec_RC \
19838
enable_shared_with_static_runtimes_RC \
19839
old_archive_cmds_RC \
19840
old_archive_from_new_cmds_RC \
19841
predep_objects_RC \
19842
postdep_objects_RC \
19845
compiler_lib_search_path_RC \
19846
compiler_lib_search_dirs_RC \
19848
archive_expsym_cmds_RC \
19849
postinstall_cmds_RC \
19850
postuninstall_cmds_RC \
19851
old_archive_from_expsyms_cmds_RC \
19852
allow_undefined_flag_RC \
19853
no_undefined_flag_RC \
19854
export_symbols_cmds_RC \
19855
hardcode_libdir_flag_spec_RC \
19856
hardcode_libdir_flag_spec_ld_RC \
19857
hardcode_libdir_separator_RC \
19858
hardcode_automatic_RC \
19860
module_expsym_cmds_RC \
19861
lt_cv_prog_compiler_c_o_RC \
19862
fix_srcfile_path_RC \
19863
exclude_expsyms_RC \
19864
include_expsyms_RC; do
19867
old_archive_cmds_RC | \
19868
old_archive_from_new_cmds_RC | \
19869
archive_cmds_RC | \
19870
archive_expsym_cmds_RC | \
19872
module_expsym_cmds_RC | \
19873
old_archive_from_expsyms_cmds_RC | \
19874
export_symbols_cmds_RC | \
19875
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19876
postinstall_cmds | postuninstall_cmds | \
19877
old_postinstall_cmds | old_postuninstall_cmds | \
19878
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19879
# Double-quote double-evaled strings.
19880
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19883
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19889
*'\$0 --fallback-echo"')
19890
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19896
cat <<__EOF__ >> "$cfgfile"
19897
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19899
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19901
# Shell to use when invoking shell scripts.
19904
# Whether or not to build shared libraries.
19905
build_libtool_libs=$enable_shared
19907
# Whether or not to build static libraries.
19908
build_old_libs=$enable_static
19910
# Whether or not to add -lc for building shared libraries.
19911
build_libtool_need_lc=$archive_cmds_need_lc_RC
19913
# Whether or not to disallow shared libs when runtime libs are static
19914
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19916
# Whether or not to optimize for fast installation.
19917
fast_install=$enable_fast_install
19920
host_alias=$host_alias
19924
# The build system.
19925
build_alias=$build_alias
19929
# An echo program that does not interpret backslashes.
19934
AR_FLAGS=$lt_AR_FLAGS
19939
# LTCC compiler flags.
19940
LTCFLAGS=$lt_LTCFLAGS
19942
# A language-specific compiler.
19945
# Is the compiler the GNU C compiler?
19951
# The linker used to build libraries.
19954
# Whether we need hard or soft links.
19957
# A BSD-compatible nm program.
19960
# A symbol stripping program
19963
# Used to examine libraries when file_magic_cmd begins "file"
19964
MAGIC_CMD=$MAGIC_CMD
19966
# Used on cygwin: DLL creation program.
19969
# Used on cygwin: object dumper.
19972
# Used on cygwin: assembler.
19975
# The name of the directory that contains temporary libtool files.
19978
# How to create reloadable object files.
19979
reload_flag=$lt_reload_flag
19980
reload_cmds=$lt_reload_cmds
19982
# How to pass a linker flag through the compiler.
19983
wl=$lt_lt_prog_compiler_wl_RC
19985
# Object file suffix (normally "o").
19986
objext="$ac_objext"
19988
# Old archive suffix (normally "a").
19991
# Shared library suffix (normally ".so").
19992
shrext_cmds='$shrext_cmds'
19994
# Executable file suffix (normally "").
19997
# Additional compiler flags for building library objects.
19998
pic_flag=$lt_lt_prog_compiler_pic_RC
20001
# What is the maximum length of a command?
20002
max_cmd_len=$lt_cv_sys_max_cmd_len
20004
# Does compiler simultaneously support -c and -o options?
20005
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20007
# Must we lock files when doing compilation?
20008
need_locks=$lt_need_locks
20010
# Do we need the lib prefix for modules?
20011
need_lib_prefix=$need_lib_prefix
20013
# Do we need a version for libraries?
20014
need_version=$need_version
20016
# Whether dlopen is supported.
20017
dlopen_support=$enable_dlopen
20019
# Whether dlopen of programs is supported.
20020
dlopen_self=$enable_dlopen_self
20022
# Whether dlopen of statically linked programs is supported.
20023
dlopen_self_static=$enable_dlopen_self_static
20025
# Compiler flag to prevent dynamic linking.
20026
link_static_flag=$lt_lt_prog_compiler_static_RC
20028
# Compiler flag to turn off builtin functions.
20029
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20031
# Compiler flag to allow reflexive dlopens.
20032
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20034
# Compiler flag to generate shared objects directly from archives.
20035
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20037
# Compiler flag to generate thread-safe objects.
20038
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20040
# Library versioning type.
20041
version_type=$version_type
20043
# Format of library name prefix.
20044
libname_spec=$lt_libname_spec
20046
# List of archive names. First name is the real one, the rest are links.
20047
# The last name is the one that the linker finds with -lNAME.
20048
library_names_spec=$lt_library_names_spec
20050
# The coded name of the library, if different from the real name.
20051
soname_spec=$lt_soname_spec
20053
# Commands used to build and install an old-style archive.
20055
old_archive_cmds=$lt_old_archive_cmds_RC
20056
old_postinstall_cmds=$lt_old_postinstall_cmds
20057
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20059
# Create an old-style archive from a shared archive.
20060
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20062
# Create a temporary old-style archive to link instead of a shared archive.
20063
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20065
# Commands used to build and install a shared archive.
20066
archive_cmds=$lt_archive_cmds_RC
20067
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20068
postinstall_cmds=$lt_postinstall_cmds
20069
postuninstall_cmds=$lt_postuninstall_cmds
20071
# Commands used to build a loadable module (assumed same as above if empty)
20072
module_cmds=$lt_module_cmds_RC
20073
module_expsym_cmds=$lt_module_expsym_cmds_RC
20075
# Commands to strip libraries.
20076
old_striplib=$lt_old_striplib
20077
striplib=$lt_striplib
20079
# Dependencies to place before the objects being linked to create a
20081
predep_objects=$lt_predep_objects_RC
20083
# Dependencies to place after the objects being linked to create a
20085
postdep_objects=$lt_postdep_objects_RC
20087
# Dependencies to place before the objects being linked to create a
20089
predeps=$lt_predeps_RC
20091
# Dependencies to place after the objects being linked to create a
20093
postdeps=$lt_postdeps_RC
20095
# The directories searched by this compiler when creating a shared
20097
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20099
# The library search path used internally by the compiler when linking
20100
# a shared library.
20101
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20103
# Method to check whether dependent libraries are shared objects.
20104
deplibs_check_method=$lt_deplibs_check_method
20106
# Command to use when deplibs_check_method == file_magic.
20107
file_magic_cmd=$lt_file_magic_cmd
20109
# Flag that allows shared libraries with undefined symbols to be built.
20110
allow_undefined_flag=$lt_allow_undefined_flag_RC
20112
# Flag that forces no undefined symbols.
20113
no_undefined_flag=$lt_no_undefined_flag_RC
20115
# Commands used to finish a libtool library installation in a directory.
20116
finish_cmds=$lt_finish_cmds
20118
# Same as above, but a single script fragment to be evaled but not shown.
20119
finish_eval=$lt_finish_eval
20121
# Take the output of nm and produce a listing of raw symbols and C names.
20122
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20124
# Transform the output of nm in a proper C declaration
20125
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20127
# Transform the output of nm in a C name address pair
20128
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20130
# This is the shared library runtime path variable.
20131
runpath_var=$runpath_var
20133
# This is the shared library path variable.
20134
shlibpath_var=$shlibpath_var
20136
# Is shlibpath searched before the hard-coded library search path?
20137
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20139
# How to hardcode a shared library path into an executable.
20140
hardcode_action=$hardcode_action_RC
20142
# Whether we should hardcode library paths into libraries.
20143
hardcode_into_libs=$hardcode_into_libs
20145
# Flag to hardcode \$libdir into a binary during linking.
20146
# This must work even if \$libdir does not exist.
20147
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20149
# If ld is used when linking, flag to hardcode \$libdir into
20150
# a binary during linking. This must work even if \$libdir does
20152
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20154
# Whether we need a single -rpath flag with a separated argument.
20155
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20157
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20158
# resulting binary.
20159
hardcode_direct=$hardcode_direct_RC
20161
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20162
# resulting binary.
20163
hardcode_minus_L=$hardcode_minus_L_RC
20165
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20166
# the resulting binary.
20167
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20169
# Set to yes if building a shared library automatically hardcodes DIR into the library
20170
# and all subsequent libraries and executables linked against it.
20171
hardcode_automatic=$hardcode_automatic_RC
20173
# Variables whose values should be saved in libtool wrapper scripts and
20174
# restored at relink time.
20175
variables_saved_for_relink="$variables_saved_for_relink"
20177
# Whether libtool must link a program against all its dependency libraries.
20178
link_all_deplibs=$link_all_deplibs_RC
20180
# Compile-time system search path for libraries
20181
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20183
# Run-time system search path for libraries
20184
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20186
# Fix the shell variable \$srcfile for the compiler.
20187
fix_srcfile_path=$lt_fix_srcfile_path
20189
# Set to yes if exported symbols are required.
20190
always_export_symbols=$always_export_symbols_RC
20192
# The commands to list exported symbols.
20193
export_symbols_cmds=$lt_export_symbols_cmds_RC
20195
# The commands to extract the exported symbol list from a shared archive.
20196
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20198
# Symbols that should not be listed in the preloaded symbols.
20199
exclude_expsyms=$lt_exclude_expsyms_RC
20201
# Symbols that must always be exported.
20202
include_expsyms=$lt_include_expsyms_RC
20204
# ### END LIBTOOL TAG CONFIG: $tagname
20210
# If there is no Makefile yet, we rely on a make rule to execute
20211
# `config.status --recheck' to rerun these tests and create the
20212
# libtool script then.
20213
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20214
if test -f "$ltmain_in"; then
20215
test -f Makefile && make "$ltmain"
20221
ac_cpp='$CPP $CPPFLAGS'
20222
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20223
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20224
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20231
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20232
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20233
{ (exit 1); exit 1; }; }
20237
# Append the new tag name to the list of available tags.
20238
if test -n "$tagname" ; then
20239
available_tags="$available_tags $tagname"
20245
# Now substitute the updated list of available tags.
20246
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20247
mv "${ofile}T" "$ofile"
20251
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20252
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20253
{ (exit 1); exit 1; }; }
20259
# This can be used to rebuild libtool when needed
20260
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20262
# Always use our own libtool.
20263
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20265
# Prevent multiple expansion
12273
cat >conftest.$ac_ext <<_ACEOF
12276
cat confdefs.h >>conftest.$ac_ext
12277
cat >>conftest.$ac_ext <<_ACEOF
12278
/* end confdefs.h. */
12281
#include <string.h>
12284
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12287
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12288
if (cd_utf8_to_88591 != (iconv_t)(-1))
12290
static const char input[] = "\342\202\254"; /* EURO SIGN */
12292
const char *inptr = input;
12293
size_t inbytesleft = strlen (input);
12294
char *outptr = buf;
12295
size_t outbytesleft = sizeof (buf);
12296
size_t res = iconv (cd_utf8_to_88591,
12297
(char **) &inptr, &inbytesleft,
12298
&outptr, &outbytesleft);
12303
#if 0 /* This bug could be worked around by the caller. */
12304
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12306
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12307
if (cd_88591_to_utf8 != (iconv_t)(-1))
12309
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12311
const char *inptr = input;
12312
size_t inbytesleft = strlen (input);
12313
char *outptr = buf;
12314
size_t outbytesleft = sizeof (buf);
12315
size_t res = iconv (cd_88591_to_utf8,
12316
(char **) &inptr, &inbytesleft,
12317
&outptr, &outbytesleft);
12323
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12325
if (/* Try standardized names. */
12326
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12327
/* Try IRIX, OSF/1 names. */
12328
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12329
/* Try AIX names. */
12330
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12331
/* Try HP-UX names. */
12332
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12337
rm -f conftest$ac_exeext
12338
if { (ac_try="$ac_link"
12339
case "(($ac_try" in
12340
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341
*) ac_try_echo=$ac_try;;
12343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12344
$as_echo "$ac_try_echo") >&5
12345
(eval "$ac_link") 2>&5
12347
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12349
{ (case "(($ac_try" in
12350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351
*) ac_try_echo=$ac_try;;
12353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354
$as_echo "$ac_try_echo") >&5
12355
(eval "$ac_try") 2>&5
12357
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358
(exit $ac_status); }; }; then
12359
am_cv_func_iconv_works=yes
12361
$as_echo "$as_me: program exited with status $ac_status" >&5
12362
$as_echo "$as_me: failed program was:" >&5
12363
sed 's/^/| /' conftest.$ac_ext >&5
12365
( exit $ac_status )
12366
am_cv_func_iconv_works=no
12368
rm -rf conftest.dSYM
12369
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12373
LIBS="$am_save_LIBS"
12376
{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
12377
$as_echo "$am_cv_func_iconv_works" >&6; }
12378
case "$am_cv_func_iconv_works" in
12379
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
12380
*) am_func_iconv=yes ;;
12383
am_func_iconv=no am_cv_lib_iconv=no
12385
if test "$am_func_iconv" = yes; then
12387
cat >>confdefs.h <<\_ACEOF
12388
#define HAVE_ICONV 1
12392
if test "$am_cv_lib_iconv" = yes; then
12393
{ $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12394
$as_echo_n "checking how to link with libiconv... " >&6; }
12395
{ $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
12396
$as_echo "$LIBICONV" >&6; }
12398
CPPFLAGS="$am_save_CPPFLAGS"
12405
if test "$am_cv_func_iconv" = yes; then
12406
{ $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
12407
$as_echo_n "checking for iconv declaration... " >&6; }
12408
if test "${am_cv_proto_iconv+set}" = set; then
12409
$as_echo_n "(cached) " >&6
12412
cat >conftest.$ac_ext <<_ACEOF
12415
cat confdefs.h >>conftest.$ac_ext
12416
cat >>conftest.$ac_ext <<_ACEOF
12417
/* end confdefs.h. */
12419
#include <stdlib.h>
12425
#if defined(__STDC__) || defined(__cplusplus)
12426
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12439
rm -f conftest.$ac_objext
12440
if { (ac_try="$ac_compile"
12441
case "(($ac_try" in
12442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443
*) ac_try_echo=$ac_try;;
12445
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12446
$as_echo "$ac_try_echo") >&5
12447
(eval "$ac_compile") 2>conftest.er1
12449
grep -v '^ *+' conftest.er1 >conftest.err
12451
cat conftest.err >&5
12452
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453
(exit $ac_status); } && {
12454
test -z "$ac_c_werror_flag" ||
12455
test ! -s conftest.err
12456
} && test -s conftest.$ac_objext; then
12457
am_cv_proto_iconv_arg1=""
12459
$as_echo "$as_me: failed program was:" >&5
12460
sed 's/^/| /' conftest.$ac_ext >&5
12462
am_cv_proto_iconv_arg1="const"
12465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12469
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12470
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
12471
}$am_cv_proto_iconv" >&5
12473
}$am_cv_proto_iconv" >&6; }
12475
cat >>confdefs.h <<_ACEOF
12476
#define ICONV_CONST $am_cv_proto_iconv_arg1
20286
12482
# Check for doxygen