3785
5561
#include <$ac_header>
3787
5563
rm -f conftest.$ac_objext
3788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789
(eval $ac_compile) 2>conftest.er1
5564
if { (ac_try="$ac_compile"
5566
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567
*) ac_try_echo=$ac_try;;
5569
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5570
$as_echo "$ac_try_echo") >&5
5571
(eval "$ac_compile") 2>conftest.er1
3791
5573
grep -v '^ *+' conftest.er1 >conftest.err
3792
5574
rm -f conftest.er1
3793
5575
cat conftest.err >&5
3794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); } &&
3796
{ ac_try='test -z "$ac_c_werror_flag"
3797
|| test ! -s conftest.err'
3798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
(exit $ac_status); }; } &&
3803
{ ac_try='test -s conftest.$ac_objext'
3804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
(exit $ac_status); }; }; then
5576
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); } && {
5578
test -z "$ac_c_werror_flag" ||
5579
test ! -s conftest.err
5580
} && test -s conftest.$ac_objext; then
3809
5581
eval "$as_ac_Header=yes"
3811
echo "$as_me: failed program was:" >&5
3812
sed 's/^/| /' conftest.$ac_ext >&5
3814
eval "$as_ac_Header=no"
3816
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821
cat >>confdefs.h <<_ACEOF
3822
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583
$as_echo "$as_me: failed program was:" >&5
5584
sed 's/^/| /' conftest.$ac_ext >&5
5586
eval "$as_ac_Header=no"
5589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591
ac_res=`eval 'as_val=${'$as_ac_Header'}
5592
$as_echo "$as_val"'`
5593
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5594
$as_echo "$ac_res" >&6; }
5595
as_val=`eval 'as_val=${'$as_ac_Header'}
5596
$as_echo "$as_val"'`
5597
if test "x$as_val" = x""yes; then
5598
cat >>confdefs.h <<_ACEOF
5599
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608
for ac_header in dlfcn.h
5610
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5611
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5612
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5613
$as_echo_n "checking for $ac_header... " >&6; }
5614
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5615
$as_echo_n "(cached) " >&6
5617
ac_res=`eval 'as_val=${'$as_ac_Header'}
5618
$as_echo "$as_val"'`
5619
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5620
$as_echo "$ac_res" >&6; }
5622
# Is the header compilable?
5623
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5624
$as_echo_n "checking $ac_header usability... " >&6; }
5625
cat >conftest.$ac_ext <<_ACEOF
5628
cat confdefs.h >>conftest.$ac_ext
5629
cat >>conftest.$ac_ext <<_ACEOF
5630
/* end confdefs.h. */
5631
$ac_includes_default
5632
#include <$ac_header>
5634
rm -f conftest.$ac_objext
5635
if { (ac_try="$ac_compile"
5637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638
*) ac_try_echo=$ac_try;;
5640
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5641
$as_echo "$ac_try_echo") >&5
5642
(eval "$ac_compile") 2>conftest.er1
5644
grep -v '^ *+' conftest.er1 >conftest.err
5646
cat conftest.err >&5
5647
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648
(exit $ac_status); } && {
5649
test -z "$ac_c_werror_flag" ||
5650
test ! -s conftest.err
5651
} && test -s conftest.$ac_objext; then
5652
ac_header_compiler=yes
5654
$as_echo "$as_me: failed program was:" >&5
5655
sed 's/^/| /' conftest.$ac_ext >&5
5657
ac_header_compiler=no
5660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5662
$as_echo "$ac_header_compiler" >&6; }
5664
# Is the header present?
5665
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5666
$as_echo_n "checking $ac_header presence... " >&6; }
5667
cat >conftest.$ac_ext <<_ACEOF
5670
cat confdefs.h >>conftest.$ac_ext
5671
cat >>conftest.$ac_ext <<_ACEOF
5672
/* end confdefs.h. */
5673
#include <$ac_header>
5675
if { (ac_try="$ac_cpp conftest.$ac_ext"
5677
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678
*) ac_try_echo=$ac_try;;
5680
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5681
$as_echo "$ac_try_echo") >&5
5682
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684
grep -v '^ *+' conftest.er1 >conftest.err
5686
cat conftest.err >&5
5687
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688
(exit $ac_status); } >/dev/null && {
5689
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5690
test ! -s conftest.err
5692
ac_header_preproc=yes
5694
$as_echo "$as_me: failed program was:" >&5
5695
sed 's/^/| /' conftest.$ac_ext >&5
5697
ac_header_preproc=no
5700
rm -f conftest.err conftest.$ac_ext
5701
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5702
$as_echo "$ac_header_preproc" >&6; }
5704
# So? What about this header?
5705
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5707
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5708
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5709
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5710
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5711
ac_header_preproc=yes
5714
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5715
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5716
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5717
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5718
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5719
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5720
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5721
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5722
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5723
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5724
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5725
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5727
## ------------------------------------------------ ##
5728
## Report this to sblim-devel@lists.sourceforge.net ##
5729
## ------------------------------------------------ ##
5731
) | sed "s/^/$as_me: WARNING: /" >&2
5734
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5735
$as_echo_n "checking for $ac_header... " >&6; }
5736
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737
$as_echo_n "(cached) " >&6
5739
eval "$as_ac_Header=\$ac_header_preproc"
5741
ac_res=`eval 'as_val=${'$as_ac_Header'}
5742
$as_echo "$as_val"'`
5743
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5744
$as_echo "$ac_res" >&6; }
5747
as_val=`eval 'as_val=${'$as_ac_Header'}
5748
$as_echo "$as_val"'`
5749
if test "x$as_val" = x""yes; then
5750
cat >>confdefs.h <<_ACEOF
5751
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5759
ac_cpp='$CXXCPP $CPPFLAGS'
5760
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5763
if test -z "$CXX"; then
5764
if test -n "$CCC"; then
5767
if test -n "$ac_tool_prefix"; then
5768
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5770
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5771
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5772
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5773
$as_echo_n "checking for $ac_word... " >&6; }
5774
if test "${ac_cv_prog_CXX+set}" = set; then
5775
$as_echo_n "(cached) " >&6
5777
if test -n "$CXX"; then
5778
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784
test -z "$as_dir" && as_dir=.
5785
for ac_exec_ext in '' $ac_executable_extensions; do
5786
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5788
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798
if test -n "$CXX"; then
5799
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
5800
$as_echo "$CXX" >&6; }
5802
{ $as_echo "$as_me:$LINENO: result: no" >&5
5803
$as_echo "no" >&6; }
5807
test -n "$CXX" && break
5810
if test -z "$CXX"; then
5812
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5814
# Extract the first word of "$ac_prog", so it can be a program name with args.
5815
set dummy $ac_prog; ac_word=$2
5816
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5817
$as_echo_n "checking for $ac_word... " >&6; }
5818
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5819
$as_echo_n "(cached) " >&6
5821
if test -n "$ac_ct_CXX"; then
5822
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828
test -z "$as_dir" && as_dir=.
5829
for ac_exec_ext in '' $ac_executable_extensions; do
5830
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831
ac_cv_prog_ac_ct_CXX="$ac_prog"
5832
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5842
if test -n "$ac_ct_CXX"; then
5843
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5844
$as_echo "$ac_ct_CXX" >&6; }
5846
{ $as_echo "$as_me:$LINENO: result: no" >&5
5847
$as_echo "no" >&6; }
5851
test -n "$ac_ct_CXX" && break
5854
if test "x$ac_ct_CXX" = x; then
5857
case $cross_compiling:$ac_tool_warned in
5859
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5860
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861
ac_tool_warned=yes ;;
5869
# Provide some information about the compiler.
5870
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5873
{ (ac_try="$ac_compiler --version >&5"
5875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876
*) ac_try_echo=$ac_try;;
5878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5879
$as_echo "$ac_try_echo") >&5
5880
(eval "$ac_compiler --version >&5") 2>&5
5882
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883
(exit $ac_status); }
5884
{ (ac_try="$ac_compiler -v >&5"
5886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887
*) ac_try_echo=$ac_try;;
5889
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5890
$as_echo "$ac_try_echo") >&5
5891
(eval "$ac_compiler -v >&5") 2>&5
5893
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894
(exit $ac_status); }
5895
{ (ac_try="$ac_compiler -V >&5"
5897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898
*) ac_try_echo=$ac_try;;
5900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901
$as_echo "$ac_try_echo") >&5
5902
(eval "$ac_compiler -V >&5") 2>&5
5904
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905
(exit $ac_status); }
5907
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5908
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5909
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5910
$as_echo_n "(cached) " >&6
5912
cat >conftest.$ac_ext <<_ACEOF
5915
cat confdefs.h >>conftest.$ac_ext
5916
cat >>conftest.$ac_ext <<_ACEOF
5917
/* end confdefs.h. */
5930
rm -f conftest.$ac_objext
5931
if { (ac_try="$ac_compile"
5933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934
*) ac_try_echo=$ac_try;;
5936
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5937
$as_echo "$ac_try_echo") >&5
5938
(eval "$ac_compile") 2>conftest.er1
5940
grep -v '^ *+' conftest.er1 >conftest.err
5942
cat conftest.err >&5
5943
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944
(exit $ac_status); } && {
5945
test -z "$ac_cxx_werror_flag" ||
5946
test ! -s conftest.err
5947
} && test -s conftest.$ac_objext; then
5950
$as_echo "$as_me: failed program was:" >&5
5951
sed 's/^/| /' conftest.$ac_ext >&5
5956
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5960
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5961
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5962
if test $ac_compiler_gnu = yes; then
5967
ac_test_CXXFLAGS=${CXXFLAGS+set}
5968
ac_save_CXXFLAGS=$CXXFLAGS
5969
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5970
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5971
if test "${ac_cv_prog_cxx_g+set}" = set; then
5972
$as_echo_n "(cached) " >&6
5974
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5975
ac_cxx_werror_flag=yes
5978
cat >conftest.$ac_ext <<_ACEOF
5981
cat confdefs.h >>conftest.$ac_ext
5982
cat >>conftest.$ac_ext <<_ACEOF
5983
/* end confdefs.h. */
5993
rm -f conftest.$ac_objext
5994
if { (ac_try="$ac_compile"
5996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997
*) ac_try_echo=$ac_try;;
5999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000
$as_echo "$ac_try_echo") >&5
6001
(eval "$ac_compile") 2>conftest.er1
6003
grep -v '^ *+' conftest.er1 >conftest.err
6005
cat conftest.err >&5
6006
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
(exit $ac_status); } && {
6008
test -z "$ac_cxx_werror_flag" ||
6009
test ! -s conftest.err
6010
} && test -s conftest.$ac_objext; then
6011
ac_cv_prog_cxx_g=yes
6013
$as_echo "$as_me: failed program was:" >&5
6014
sed 's/^/| /' conftest.$ac_ext >&5
6017
cat >conftest.$ac_ext <<_ACEOF
6020
cat confdefs.h >>conftest.$ac_ext
6021
cat >>conftest.$ac_ext <<_ACEOF
6022
/* end confdefs.h. */
6032
rm -f conftest.$ac_objext
6033
if { (ac_try="$ac_compile"
6035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036
*) ac_try_echo=$ac_try;;
6038
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6039
$as_echo "$ac_try_echo") >&5
6040
(eval "$ac_compile") 2>conftest.er1
6042
grep -v '^ *+' conftest.er1 >conftest.err
6044
cat conftest.err >&5
6045
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046
(exit $ac_status); } && {
6047
test -z "$ac_cxx_werror_flag" ||
6048
test ! -s conftest.err
6049
} && test -s conftest.$ac_objext; then
6052
$as_echo "$as_me: failed program was:" >&5
6053
sed 's/^/| /' conftest.$ac_ext >&5
6055
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6057
cat >conftest.$ac_ext <<_ACEOF
6060
cat confdefs.h >>conftest.$ac_ext
6061
cat >>conftest.$ac_ext <<_ACEOF
6062
/* end confdefs.h. */
6072
rm -f conftest.$ac_objext
6073
if { (ac_try="$ac_compile"
6075
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076
*) ac_try_echo=$ac_try;;
6078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6079
$as_echo "$ac_try_echo") >&5
6080
(eval "$ac_compile") 2>conftest.er1
6082
grep -v '^ *+' conftest.er1 >conftest.err
6084
cat conftest.err >&5
6085
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086
(exit $ac_status); } && {
6087
test -z "$ac_cxx_werror_flag" ||
6088
test ! -s conftest.err
6089
} && test -s conftest.$ac_objext; then
6090
ac_cv_prog_cxx_g=yes
6092
$as_echo "$as_me: failed program was:" >&5
6093
sed 's/^/| /' conftest.$ac_ext >&5
6098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6107
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6108
$as_echo "$ac_cv_prog_cxx_g" >&6; }
6109
if test "$ac_test_CXXFLAGS" = set; then
6110
CXXFLAGS=$ac_save_CXXFLAGS
6111
elif test $ac_cv_prog_cxx_g = yes; then
6112
if test "$GXX" = yes; then
6118
if test "$GXX" = yes; then
6125
ac_cpp='$CXXCPP $CPPFLAGS'
6126
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6130
depcc="$CXX" am_compiler_list=
6132
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6133
$as_echo_n "checking dependency style of $depcc... " >&6; }
6134
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6135
$as_echo_n "(cached) " >&6
6137
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6138
# We make a subdir and do the tests there. Otherwise we can end up
6139
# making bogus files that we don't know about and never remove. For
6140
# instance it was reported that on HP-UX the gcc test will end up
6141
# making a dummy file named `D' -- because `-MD' means `put the output
6144
# Copy depcomp to subdir because otherwise we won't find it if we're
6145
# using a relative directory.
6146
cp "$am_depcomp" conftest.dir
6148
# We will build objects and dependencies in a subdirectory because
6149
# it helps to detect inapplicable dependency modes. For instance
6150
# both Tru64's cc and ICC support -MD to output dependencies as a
6151
# side effect of compilation, but ICC will put the dependencies in
6152
# the current directory while Tru64 will put them in the object
6156
am_cv_CXX_dependencies_compiler_type=none
6157
if test "$am_compiler_list" = ""; then
6158
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6160
for depmode in $am_compiler_list; do
6161
# Setup a source with many dependencies, because some compilers
6162
# like to wrap large dependency lists on column 80 (with \), and
6163
# we should not choose a depcomp mode which is confused by this.
6165
# We need to recreate these files for each test, as the compiler may
6166
# overwrite some of them when testing with obscure command lines.
6167
# This happens at least with the AIX C compiler.
6169
for i in 1 2 3 4 5 6; do
6170
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6171
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6172
# Solaris 8's {/usr,}/bin/sh.
6173
touch sub/conftst$i.h
6175
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6179
# after this tag, mechanisms are not by side-effect, so they'll
6180
# only be used when explicitly requested
6181
if test "x$enable_dependency_tracking" = xyes; then
6189
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6190
# mode. It turns out that the SunPro C++ compiler does not properly
6191
# handle `-M -o', and we need to detect this.
6192
if depmode=$depmode \
6193
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6194
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6195
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6196
>/dev/null 2>conftest.err &&
6197
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6198
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6199
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6200
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6201
# icc doesn't choke on unknown options, it will just issue warnings
6202
# or remarks (even with -Werror). So we grep stderr for any message
6203
# that says an option was ignored or not supported.
6204
# When given -MP, icc 7.0 and 7.1 complain thusly:
6205
# icc: Command line warning: ignoring option '-M'; no argument required
6206
# The diagnosis changed in icc 8.0:
6207
# icc: Command line remark: option '-MP' not supported
6208
if (grep 'ignoring option' conftest.err ||
6209
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6210
am_cv_CXX_dependencies_compiler_type=$depmode
6219
am_cv_CXX_dependencies_compiler_type=none
6223
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6224
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6225
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6228
test "x$enable_dependency_tracking" != xno \
6229
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6230
am__fastdepCXX_TRUE=
6231
am__fastdepCXX_FALSE='#'
6233
am__fastdepCXX_TRUE='#'
6234
am__fastdepCXX_FALSE=
6240
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6241
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6242
(test "X$CXX" != "Xg++"))) ; then
6244
ac_cpp='$CXXCPP $CPPFLAGS'
6245
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6248
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6249
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6250
if test -z "$CXXCPP"; then
6251
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6252
$as_echo_n "(cached) " >&6
6254
# Double quotes because CXXCPP needs to be expanded
6255
for CXXCPP in "$CXX -E" "/lib/cpp"
6258
for ac_cxx_preproc_warn_flag in '' yes
6260
# Use a header file that comes with gcc, so configuring glibc
6261
# with a fresh cross-compiler works.
6262
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6263
# <limits.h> exists even on freestanding compilers.
6264
# On the NeXT, cc -E runs the code through the compiler's parser,
6265
# not just through cpp. "Syntax error" is here to catch this case.
6266
cat >conftest.$ac_ext <<_ACEOF
6269
cat confdefs.h >>conftest.$ac_ext
6270
cat >>conftest.$ac_ext <<_ACEOF
6271
/* end confdefs.h. */
6273
# include <limits.h>
6275
# include <assert.h>
6279
if { (ac_try="$ac_cpp conftest.$ac_ext"
6281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282
*) ac_try_echo=$ac_try;;
6284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6285
$as_echo "$ac_try_echo") >&5
6286
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288
grep -v '^ *+' conftest.er1 >conftest.err
6290
cat conftest.err >&5
6291
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
(exit $ac_status); } >/dev/null && {
6293
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6294
test ! -s conftest.err
6298
$as_echo "$as_me: failed program was:" >&5
6299
sed 's/^/| /' conftest.$ac_ext >&5
6301
# Broken: fails on valid input.
6305
rm -f conftest.err conftest.$ac_ext
6307
# OK, works on sane cases. Now check whether nonexistent headers
6308
# can be detected and how.
6309
cat >conftest.$ac_ext <<_ACEOF
6312
cat confdefs.h >>conftest.$ac_ext
6313
cat >>conftest.$ac_ext <<_ACEOF
6314
/* end confdefs.h. */
6315
#include <ac_nonexistent.h>
6317
if { (ac_try="$ac_cpp conftest.$ac_ext"
6319
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320
*) ac_try_echo=$ac_try;;
6322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323
$as_echo "$ac_try_echo") >&5
6324
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6326
grep -v '^ *+' conftest.er1 >conftest.err
6328
cat conftest.err >&5
6329
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330
(exit $ac_status); } >/dev/null && {
6331
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6332
test ! -s conftest.err
6334
# Broken: success on invalid input.
6337
$as_echo "$as_me: failed program was:" >&5
6338
sed 's/^/| /' conftest.$ac_ext >&5
6340
# Passes both tests.
6345
rm -f conftest.err conftest.$ac_ext
6348
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6349
rm -f conftest.err conftest.$ac_ext
6350
if $ac_preproc_ok; then
6355
ac_cv_prog_CXXCPP=$CXXCPP
6358
CXXCPP=$ac_cv_prog_CXXCPP
6360
ac_cv_prog_CXXCPP=$CXXCPP
6362
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6363
$as_echo "$CXXCPP" >&6; }
6365
for ac_cxx_preproc_warn_flag in '' yes
6367
# Use a header file that comes with gcc, so configuring glibc
6368
# with a fresh cross-compiler works.
6369
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6370
# <limits.h> exists even on freestanding compilers.
6371
# On the NeXT, cc -E runs the code through the compiler's parser,
6372
# not just through cpp. "Syntax error" is here to catch this case.
6373
cat >conftest.$ac_ext <<_ACEOF
6376
cat confdefs.h >>conftest.$ac_ext
6377
cat >>conftest.$ac_ext <<_ACEOF
6378
/* end confdefs.h. */
6380
# include <limits.h>
6382
# include <assert.h>
6386
if { (ac_try="$ac_cpp conftest.$ac_ext"
6388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389
*) ac_try_echo=$ac_try;;
6391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6392
$as_echo "$ac_try_echo") >&5
6393
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6395
grep -v '^ *+' conftest.er1 >conftest.err
6397
cat conftest.err >&5
6398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399
(exit $ac_status); } >/dev/null && {
6400
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6401
test ! -s conftest.err
6405
$as_echo "$as_me: failed program was:" >&5
6406
sed 's/^/| /' conftest.$ac_ext >&5
6408
# Broken: fails on valid input.
6412
rm -f conftest.err conftest.$ac_ext
6414
# OK, works on sane cases. Now check whether nonexistent headers
6415
# can be detected and how.
6416
cat >conftest.$ac_ext <<_ACEOF
6419
cat confdefs.h >>conftest.$ac_ext
6420
cat >>conftest.$ac_ext <<_ACEOF
6421
/* end confdefs.h. */
6422
#include <ac_nonexistent.h>
6424
if { (ac_try="$ac_cpp conftest.$ac_ext"
6426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427
*) ac_try_echo=$ac_try;;
6429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6430
$as_echo "$ac_try_echo") >&5
6431
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6433
grep -v '^ *+' conftest.er1 >conftest.err
6435
cat conftest.err >&5
6436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437
(exit $ac_status); } >/dev/null && {
6438
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6439
test ! -s conftest.err
6441
# Broken: success on invalid input.
6444
$as_echo "$as_me: failed program was:" >&5
6445
sed 's/^/| /' conftest.$ac_ext >&5
6447
# Passes both tests.
6452
rm -f conftest.err conftest.$ac_ext
6455
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6456
rm -f conftest.err conftest.$ac_ext
6457
if $ac_preproc_ok; then
6460
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6461
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6462
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6463
See \`config.log' for more details." >&5
6464
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6465
See \`config.log' for more details." >&2;}
6466
{ (exit 1); exit 1; }; }; }
6470
ac_cpp='$CXXCPP $CPPFLAGS'
6471
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6479
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6480
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6482
if test -n "$ac_tool_prefix"; then
6483
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
6485
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6486
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6487
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6488
$as_echo_n "checking for $ac_word... " >&6; }
6489
if test "${ac_cv_prog_F77+set}" = set; then
6490
$as_echo_n "(cached) " >&6
6492
if test -n "$F77"; then
6493
ac_cv_prog_F77="$F77" # Let the user override the test.
6495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499
test -z "$as_dir" && as_dir=.
6500
for ac_exec_ext in '' $ac_executable_extensions; do
6501
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6503
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513
if test -n "$F77"; then
6514
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
6515
$as_echo "$F77" >&6; }
6517
{ $as_echo "$as_me:$LINENO: result: no" >&5
6518
$as_echo "no" >&6; }
6522
test -n "$F77" && break
6525
if test -z "$F77"; then
6527
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
6529
# Extract the first word of "$ac_prog", so it can be a program name with args.
6530
set dummy $ac_prog; ac_word=$2
6531
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6532
$as_echo_n "checking for $ac_word... " >&6; }
6533
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6534
$as_echo_n "(cached) " >&6
6536
if test -n "$ac_ct_F77"; then
6537
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543
test -z "$as_dir" && as_dir=.
6544
for ac_exec_ext in '' $ac_executable_extensions; do
6545
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546
ac_cv_prog_ac_ct_F77="$ac_prog"
6547
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6556
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6557
if test -n "$ac_ct_F77"; then
6558
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6559
$as_echo "$ac_ct_F77" >&6; }
6561
{ $as_echo "$as_me:$LINENO: result: no" >&5
6562
$as_echo "no" >&6; }
6566
test -n "$ac_ct_F77" && break
6569
if test "x$ac_ct_F77" = x; then
6572
case $cross_compiling:$ac_tool_warned in
6574
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6575
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576
ac_tool_warned=yes ;;
6583
# Provide some information about the compiler.
6584
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6587
{ (ac_try="$ac_compiler --version >&5"
6589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590
*) ac_try_echo=$ac_try;;
6592
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6593
$as_echo "$ac_try_echo") >&5
6594
(eval "$ac_compiler --version >&5") 2>&5
6596
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597
(exit $ac_status); }
6598
{ (ac_try="$ac_compiler -v >&5"
6600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601
*) ac_try_echo=$ac_try;;
6603
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6604
$as_echo "$ac_try_echo") >&5
6605
(eval "$ac_compiler -v >&5") 2>&5
6607
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
(exit $ac_status); }
6609
{ (ac_try="$ac_compiler -V >&5"
6611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612
*) ac_try_echo=$ac_try;;
6614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615
$as_echo "$ac_try_echo") >&5
6616
(eval "$ac_compiler -V >&5") 2>&5
6618
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619
(exit $ac_status); }
6622
# If we don't use `.F' as extension, the preprocessor is not run on the
6623
# input file. (Note that this only needs to work for GNU compilers.)
6626
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6627
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6628
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6629
$as_echo_n "(cached) " >&6
6631
cat >conftest.$ac_ext <<_ACEOF
6639
rm -f conftest.$ac_objext
6640
if { (ac_try="$ac_compile"
6642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643
*) ac_try_echo=$ac_try;;
6645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646
$as_echo "$ac_try_echo") >&5
6647
(eval "$ac_compile") 2>conftest.er1
6649
grep -v '^ *+' conftest.er1 >conftest.err
6651
cat conftest.err >&5
6652
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653
(exit $ac_status); } && {
6654
test -z "$ac_f77_werror_flag" ||
6655
test ! -s conftest.err
6656
} && test -s conftest.$ac_objext; then
6659
$as_echo "$as_me: failed program was:" >&5
6660
sed 's/^/| /' conftest.$ac_ext >&5
6665
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6669
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6670
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6672
ac_test_FFLAGS=${FFLAGS+set}
6673
ac_save_FFLAGS=$FFLAGS
6675
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6676
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6677
if test "${ac_cv_prog_f77_g+set}" = set; then
6678
$as_echo_n "(cached) " >&6
6681
cat >conftest.$ac_ext <<_ACEOF
6686
rm -f conftest.$ac_objext
6687
if { (ac_try="$ac_compile"
6689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690
*) ac_try_echo=$ac_try;;
6692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6693
$as_echo "$ac_try_echo") >&5
6694
(eval "$ac_compile") 2>conftest.er1
6696
grep -v '^ *+' conftest.er1 >conftest.err
6698
cat conftest.err >&5
6699
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700
(exit $ac_status); } && {
6701
test -z "$ac_f77_werror_flag" ||
6702
test ! -s conftest.err
6703
} && test -s conftest.$ac_objext; then
6704
ac_cv_prog_f77_g=yes
6706
$as_echo "$as_me: failed program was:" >&5
6707
sed 's/^/| /' conftest.$ac_ext >&5
6712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6716
$as_echo "$ac_cv_prog_f77_g" >&6; }
6717
if test "$ac_test_FFLAGS" = set; then
6718
FFLAGS=$ac_save_FFLAGS
6719
elif test $ac_cv_prog_f77_g = yes; then
6720
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6726
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6733
if test $ac_compiler_gnu = yes; then
6739
ac_cpp='$CPP $CPPFLAGS'
6740
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6747
# find the maximum length of command line arguments
6748
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6749
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6750
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6751
$as_echo_n "(cached) " >&6
6758
# On DJGPP, this test can blow up pretty badly due to problems in libc
6759
# (any single argument exceeding 2000 bytes causes a buffer overrun
6760
# during glob expansion). Even if it were fixed, the result of this
6761
# check would be larger than it should be.
6762
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6766
# Under GNU Hurd, this test is not required because there is
6767
# no limit to the length of command line arguments.
6768
# Libtool will interpret -1 as no limit whatsoever
6769
lt_cv_sys_max_cmd_len=-1;
6773
# On Win9x/ME, this test blows up -- it succeeds, but takes
6774
# about 5 minutes as the teststring grows exponentially.
6775
# Worse, since 9x/ME are not pre-emptively multitasking,
6776
# you end up with a "frozen" computer, even though with patience
6777
# the test eventually succeeds (with a max line length of 256k).
6778
# Instead, let's just punt: use the minimum linelength reported by
6779
# all of the supported platforms: 8192 (on NT/2K/XP).
6780
lt_cv_sys_max_cmd_len=8192;
6784
# On AmigaOS with pdksh, this test takes hours, literally.
6785
# So we just punt and use a minimum line length of 8192.
6786
lt_cv_sys_max_cmd_len=8192;
6789
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6790
# This has been around since 386BSD, at least. Likely further.
6791
if test -x /sbin/sysctl; then
6792
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6793
elif test -x /usr/sbin/sysctl; then
6794
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6796
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6798
# And add a safety zone
6799
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6800
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6804
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6805
lt_cv_sys_max_cmd_len=196608
6809
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6810
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6811
# nice to cause kernel panics so lets avoid the loop below.
6812
# First set a reasonable default.
6813
lt_cv_sys_max_cmd_len=16384
6815
if test -x /sbin/sysconfig; then
6816
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6817
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6822
lt_cv_sys_max_cmd_len=102400
6824
sysv5* | sco5v6* | sysv4.2uw2*)
6825
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6826
if test -n "$kargmax"; then
6827
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6829
lt_cv_sys_max_cmd_len=32768
6833
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6834
if test -n "$lt_cv_sys_max_cmd_len"; then
6835
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6836
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6838
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6839
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6840
= "XX$teststring") >/dev/null 2>&1 &&
6841
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6842
lt_cv_sys_max_cmd_len=$new_result &&
6843
test $i != 17 # 1/2 MB should be enough
6846
teststring=$teststring$teststring
6849
# Add a significant safety factor because C++ compilers can tack on massive
6850
# amounts of additional arguments before passing them to the linker.
6851
# It appears as though 1/2 is a usable value.
6852
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6859
if test -n $lt_cv_sys_max_cmd_len ; then
6860
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6861
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6863
{ $as_echo "$as_me:$LINENO: result: none" >&5
6864
$as_echo "none" >&6; }
6871
# Check for command to grab the raw symbol name followed by C symbol from nm.
6872
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6873
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6874
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6875
$as_echo_n "(cached) " >&6
6878
# These are sane defaults that work on at least a few old systems.
6879
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6881
# Character class describing NM global symbol codes.
6882
symcode='[BCDEGRST]'
6884
# Regexp to match symbols that can be accessed directly from C.
6885
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6887
# Transform an extracted symbol line into a proper C declaration
6888
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6890
# Transform an extracted symbol line into symbol name and symbol address
6891
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6893
# Define system-specific variables.
6898
cygwin* | mingw* | pw32*)
6899
symcode='[ABCDGISTW]'
6901
hpux*) # Its linker distinguishes data from code symbols
6902
if test "$host_cpu" = ia64; then
6903
symcode='[ABCDEGRST]'
6905
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6908
linux* | k*bsd*-gnu)
6909
if test "$host_cpu" = ia64; then
6910
symcode='[ABCDGIRSTW]'
6911
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6912
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6916
symcode='[BCDEGRST]'
6919
symcode='[BCDEGQRST]'
6930
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6938
# Handle CRLF in mingw tool chain
6942
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6946
# If we're using GNU nm, then use its standard symbol codes.
6947
case `$NM -V 2>&1` in
6948
*GNU* | *'with BFD'*)
6949
symcode='[ABCDGIRSTW]' ;;
6952
# Try without a prefix undercore, then with it.
6953
for ac_symprfx in "" "_"; do
6955
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956
symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
# Write the raw and C identifiers.
6959
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6961
# Check to see that the pipe works correctly.
6965
cat > conftest.$ac_ext <<EOF
6970
void nm_test_func(){}
6974
int main(){nm_test_var='a';nm_test_func();return(0);}
6977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978
(eval $ac_compile) 2>&5
6980
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981
(exit $ac_status); }; then
6982
# Now try to grab the symbols.
6984
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6985
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6987
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988
(exit $ac_status); } && test -s "$nlist"; then
6989
# Try sorting and uniquifying the output.
6990
if sort "$nlist" | uniq > "$nlist"T; then
6991
mv -f "$nlist"T "$nlist"
6996
# Make sure that we snagged all the symbols we need.
6997
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6998
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6999
cat <<EOF > conftest.$ac_ext
7005
# Now generate the symbol file.
7006
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7008
cat <<EOF >> conftest.$ac_ext
7009
#if defined (__STDC__) && __STDC__
7010
# define lt_ptr_t void *
7012
# define lt_ptr_t char *
7016
/* The mapping between symbol names and symbols. */
7021
lt_preloaded_symbols[] =
7024
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7025
cat <<\EOF >> conftest.$ac_ext
7033
# Now try linking the two files.
7034
mv conftest.$ac_objext conftstm.$ac_objext
7035
lt_save_LIBS="$LIBS"
7036
lt_save_CFLAGS="$CFLAGS"
7037
LIBS="conftstm.$ac_objext"
7038
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7039
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040
(eval $ac_link) 2>&5
7042
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7046
LIBS="$lt_save_LIBS"
7047
CFLAGS="$lt_save_CFLAGS"
7049
echo "cannot find nm_test_func in $nlist" >&5
7052
echo "cannot find nm_test_var in $nlist" >&5
7055
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7058
echo "$progname: failed program was:" >&5
7059
cat conftest.$ac_ext >&5
7061
rm -rf conftest* conftst*
7063
# Do not use the global_symbol_pipe unless it works.
7064
if test "$pipe_works" = yes; then
7067
lt_cv_sys_global_symbol_pipe=
7073
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7074
lt_cv_sys_global_symbol_to_cdecl=
7076
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7077
{ $as_echo "$as_me:$LINENO: result: failed" >&5
7078
$as_echo "failed" >&6; }
7080
{ $as_echo "$as_me:$LINENO: result: ok" >&5
7081
$as_echo "ok" >&6; }
7084
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7085
$as_echo_n "checking for objdir... " >&6; }
7086
if test "${lt_cv_objdir+set}" = set; then
7087
$as_echo_n "(cached) " >&6
7089
rm -f .libs 2>/dev/null
7090
mkdir .libs 2>/dev/null
7091
if test -d .libs; then
7094
# MS-DOS does not allow filenames that begin with a dot.
7097
rmdir .libs 2>/dev/null
7099
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7100
$as_echo "$lt_cv_objdir" >&6; }
7101
objdir=$lt_cv_objdir
7109
# AIX sometimes has problems with the GCC collect2 program. For some
7110
# reason, if we set the COLLECT_NAMES environment variable, the problems
7111
# vanish in a puff of smoke.
7112
if test "X${COLLECT_NAMES+set}" != Xset; then
7114
export COLLECT_NAMES
7119
# Sed substitution that helps us do robust quoting. It backslashifies
7120
# metacharacters that are still active within double-quoted strings.
7121
Xsed='sed -e 1s/^X//'
7122
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7124
# Same as above, but do not quote variable references.
7125
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7127
# Sed substitution to delay expansion of an escaped shell variable in a
7128
# double_quote_subst'ed string.
7129
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7131
# Sed substitution to avoid accidental globbing in evaled expressions
7132
no_glob_subst='s/\*/\\\*/g'
7138
default_ofile=libtool
7139
can_build_shared=yes
7141
# All known linkers require a `.a' archive for static linking (except MSVC,
7142
# which needs '.lib').
7144
ltmain="$ac_aux_dir/ltmain.sh"
7145
ofile="$default_ofile"
7146
with_gnu_ld="$lt_cv_prog_gnu_ld"
7148
if test -n "$ac_tool_prefix"; then
7149
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7150
set dummy ${ac_tool_prefix}ar; ac_word=$2
7151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7152
$as_echo_n "checking for $ac_word... " >&6; }
7153
if test "${ac_cv_prog_AR+set}" = set; then
7154
$as_echo_n "(cached) " >&6
7156
if test -n "$AR"; then
7157
ac_cv_prog_AR="$AR" # Let the user override the test.
7159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163
test -z "$as_dir" && as_dir=.
7164
for ac_exec_ext in '' $ac_executable_extensions; do
7165
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166
ac_cv_prog_AR="${ac_tool_prefix}ar"
7167
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177
if test -n "$AR"; then
7178
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
7179
$as_echo "$AR" >&6; }
7181
{ $as_echo "$as_me:$LINENO: result: no" >&5
7182
$as_echo "no" >&6; }
7187
if test -z "$ac_cv_prog_AR"; then
7189
# Extract the first word of "ar", so it can be a program name with args.
7190
set dummy ar; ac_word=$2
7191
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7192
$as_echo_n "checking for $ac_word... " >&6; }
7193
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7194
$as_echo_n "(cached) " >&6
7196
if test -n "$ac_ct_AR"; then
7197
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203
test -z "$as_dir" && as_dir=.
7204
for ac_exec_ext in '' $ac_executable_extensions; do
7205
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206
ac_cv_prog_ac_ct_AR="ar"
7207
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7217
if test -n "$ac_ct_AR"; then
7218
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7219
$as_echo "$ac_ct_AR" >&6; }
7221
{ $as_echo "$as_me:$LINENO: result: no" >&5
7222
$as_echo "no" >&6; }
7225
if test "x$ac_ct_AR" = x; then
7228
case $cross_compiling:$ac_tool_warned in
7230
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7231
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232
ac_tool_warned=yes ;;
7240
if test -n "$ac_tool_prefix"; then
7241
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244
$as_echo_n "checking for $ac_word... " >&6; }
7245
if test "${ac_cv_prog_RANLIB+set}" = set; then
7246
$as_echo_n "(cached) " >&6
7248
if test -n "$RANLIB"; then
7249
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255
test -z "$as_dir" && as_dir=.
7256
for ac_exec_ext in '' $ac_executable_extensions; do
7257
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268
RANLIB=$ac_cv_prog_RANLIB
7269
if test -n "$RANLIB"; then
7270
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7271
$as_echo "$RANLIB" >&6; }
7273
{ $as_echo "$as_me:$LINENO: result: no" >&5
7274
$as_echo "no" >&6; }
7279
if test -z "$ac_cv_prog_RANLIB"; then
7280
ac_ct_RANLIB=$RANLIB
7281
# Extract the first word of "ranlib", so it can be a program name with args.
7282
set dummy ranlib; ac_word=$2
7283
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7284
$as_echo_n "checking for $ac_word... " >&6; }
7285
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7286
$as_echo_n "(cached) " >&6
7288
if test -n "$ac_ct_RANLIB"; then
7289
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295
test -z "$as_dir" && as_dir=.
7296
for ac_exec_ext in '' $ac_executable_extensions; do
7297
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298
ac_cv_prog_ac_ct_RANLIB="ranlib"
7299
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7309
if test -n "$ac_ct_RANLIB"; then
7310
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7311
$as_echo "$ac_ct_RANLIB" >&6; }
7313
{ $as_echo "$as_me:$LINENO: result: no" >&5
7314
$as_echo "no" >&6; }
7317
if test "x$ac_ct_RANLIB" = x; then
7320
case $cross_compiling:$ac_tool_warned in
7322
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7323
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324
ac_tool_warned=yes ;;
7326
RANLIB=$ac_ct_RANLIB
7329
RANLIB="$ac_cv_prog_RANLIB"
7332
if test -n "$ac_tool_prefix"; then
7333
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334
set dummy ${ac_tool_prefix}strip; ac_word=$2
7335
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7336
$as_echo_n "checking for $ac_word... " >&6; }
7337
if test "${ac_cv_prog_STRIP+set}" = set; then
7338
$as_echo_n "(cached) " >&6
7340
if test -n "$STRIP"; then
7341
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347
test -z "$as_dir" && as_dir=.
7348
for ac_exec_ext in '' $ac_executable_extensions; do
7349
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7351
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360
STRIP=$ac_cv_prog_STRIP
7361
if test -n "$STRIP"; then
7362
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7363
$as_echo "$STRIP" >&6; }
7365
{ $as_echo "$as_me:$LINENO: result: no" >&5
7366
$as_echo "no" >&6; }
7371
if test -z "$ac_cv_prog_STRIP"; then
7373
# Extract the first word of "strip", so it can be a program name with args.
7374
set dummy strip; ac_word=$2
7375
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7376
$as_echo_n "checking for $ac_word... " >&6; }
7377
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7378
$as_echo_n "(cached) " >&6
7380
if test -n "$ac_ct_STRIP"; then
7381
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387
test -z "$as_dir" && as_dir=.
7388
for ac_exec_ext in '' $ac_executable_extensions; do
7389
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390
ac_cv_prog_ac_ct_STRIP="strip"
7391
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7401
if test -n "$ac_ct_STRIP"; then
7402
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7403
$as_echo "$ac_ct_STRIP" >&6; }
7405
{ $as_echo "$as_me:$LINENO: result: no" >&5
7406
$as_echo "no" >&6; }
7409
if test "x$ac_ct_STRIP" = x; then
7412
case $cross_compiling:$ac_tool_warned in
7414
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7415
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416
ac_tool_warned=yes ;;
7421
STRIP="$ac_cv_prog_STRIP"
7426
old_CFLAGS="$CFLAGS"
7428
# Set sane defaults for various variables
7429
test -z "$AR" && AR=ar
7430
test -z "$AR_FLAGS" && AR_FLAGS=cru
7431
test -z "$AS" && AS=as
7432
test -z "$CC" && CC=cc
7433
test -z "$LTCC" && LTCC=$CC
7434
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7435
test -z "$DLLTOOL" && DLLTOOL=dlltool
7436
test -z "$LD" && LD=ld
7437
test -z "$LN_S" && LN_S="ln -s"
7438
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7439
test -z "$NM" && NM=nm
7440
test -z "$SED" && SED=sed
7441
test -z "$OBJDUMP" && OBJDUMP=objdump
7442
test -z "$RANLIB" && RANLIB=:
7443
test -z "$STRIP" && STRIP=:
7444
test -z "$ac_objext" && ac_objext=o
7446
# Determine commands to create old-style static archives.
7447
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7448
old_postinstall_cmds='chmod 644 $oldlib'
7449
old_postuninstall_cmds=
7451
if test -n "$RANLIB"; then
7454
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7457
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7460
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7463
for cc_temp in $compiler""; do
7465
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7471
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7474
# Only perform the check for file, if the check method requires it
7475
case $deplibs_check_method in
7477
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7478
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7479
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7480
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7481
$as_echo_n "(cached) " >&6
7485
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7488
lt_save_MAGIC_CMD="$MAGIC_CMD"
7489
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7490
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7491
for ac_dir in $ac_dummy; do
7493
test -z "$ac_dir" && ac_dir=.
7494
if test -f $ac_dir/${ac_tool_prefix}file; then
7495
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7496
if test -n "$file_magic_test_file"; then
7497
case $deplibs_check_method in
7499
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7500
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7501
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7502
$EGREP "$file_magic_regex" > /dev/null; then
7507
*** Warning: the command libtool uses to detect shared libraries,
7508
*** $file_magic_cmd, produces output that libtool cannot recognize.
7509
*** The result is that libtool may fail to recognize shared libraries
7510
*** as such. This will affect the creation of libtool libraries that
7511
*** depend on shared libraries, but programs linked with such libtool
7512
*** libraries will work regardless of this problem. Nevertheless, you
7513
*** may want to report the problem to your system manager and/or to
7514
*** bug-libtool@gnu.org
7524
MAGIC_CMD="$lt_save_MAGIC_CMD"
7529
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7530
if test -n "$MAGIC_CMD"; then
7531
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7532
$as_echo "$MAGIC_CMD" >&6; }
7534
{ $as_echo "$as_me:$LINENO: result: no" >&5
7535
$as_echo "no" >&6; }
7538
if test -z "$lt_cv_path_MAGIC_CMD"; then
7539
if test -n "$ac_tool_prefix"; then
7540
{ $as_echo "$as_me:$LINENO: checking for file" >&5
7541
$as_echo_n "checking for file... " >&6; }
7542
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7543
$as_echo_n "(cached) " >&6
7547
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7550
lt_save_MAGIC_CMD="$MAGIC_CMD"
7551
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7552
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7553
for ac_dir in $ac_dummy; do
7555
test -z "$ac_dir" && ac_dir=.
7556
if test -f $ac_dir/file; then
7557
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7558
if test -n "$file_magic_test_file"; then
7559
case $deplibs_check_method in
7561
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7562
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7564
$EGREP "$file_magic_regex" > /dev/null; then
7569
*** Warning: the command libtool uses to detect shared libraries,
7570
*** $file_magic_cmd, produces output that libtool cannot recognize.
7571
*** The result is that libtool may fail to recognize shared libraries
7572
*** as such. This will affect the creation of libtool libraries that
7573
*** depend on shared libraries, but programs linked with such libtool
7574
*** libraries will work regardless of this problem. Nevertheless, you
7575
*** may want to report the problem to your system manager and/or to
7576
*** bug-libtool@gnu.org
7586
MAGIC_CMD="$lt_save_MAGIC_CMD"
7591
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592
if test -n "$MAGIC_CMD"; then
7593
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7594
$as_echo "$MAGIC_CMD" >&6; }
7596
{ $as_echo "$as_me:$LINENO: result: no" >&5
7597
$as_echo "no" >&6; }
7611
rhapsody* | darwin*)
7612
if test -n "$ac_tool_prefix"; then
7613
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7614
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7615
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7616
$as_echo_n "checking for $ac_word... " >&6; }
7617
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7618
$as_echo_n "(cached) " >&6
7620
if test -n "$DSYMUTIL"; then
7621
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627
test -z "$as_dir" && as_dir=.
7628
for ac_exec_ext in '' $ac_executable_extensions; do
7629
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7631
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7641
if test -n "$DSYMUTIL"; then
7642
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7643
$as_echo "$DSYMUTIL" >&6; }
7645
{ $as_echo "$as_me:$LINENO: result: no" >&5
7646
$as_echo "no" >&6; }
7651
if test -z "$ac_cv_prog_DSYMUTIL"; then
7652
ac_ct_DSYMUTIL=$DSYMUTIL
7653
# Extract the first word of "dsymutil", so it can be a program name with args.
7654
set dummy dsymutil; ac_word=$2
7655
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7656
$as_echo_n "checking for $ac_word... " >&6; }
7657
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7658
$as_echo_n "(cached) " >&6
7660
if test -n "$ac_ct_DSYMUTIL"; then
7661
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667
test -z "$as_dir" && as_dir=.
7668
for ac_exec_ext in '' $ac_executable_extensions; do
7669
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7671
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7681
if test -n "$ac_ct_DSYMUTIL"; then
7682
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7683
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7685
{ $as_echo "$as_me:$LINENO: result: no" >&5
7686
$as_echo "no" >&6; }
7689
if test "x$ac_ct_DSYMUTIL" = x; then
7692
case $cross_compiling:$ac_tool_warned in
7694
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696
ac_tool_warned=yes ;;
7698
DSYMUTIL=$ac_ct_DSYMUTIL
7701
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7704
if test -n "$ac_tool_prefix"; then
7705
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7706
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7707
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7708
$as_echo_n "checking for $ac_word... " >&6; }
7709
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7710
$as_echo_n "(cached) " >&6
7712
if test -n "$NMEDIT"; then
7713
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719
test -z "$as_dir" && as_dir=.
7720
for ac_exec_ext in '' $ac_executable_extensions; do
7721
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7723
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732
NMEDIT=$ac_cv_prog_NMEDIT
7733
if test -n "$NMEDIT"; then
7734
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7735
$as_echo "$NMEDIT" >&6; }
7737
{ $as_echo "$as_me:$LINENO: result: no" >&5
7738
$as_echo "no" >&6; }
7743
if test -z "$ac_cv_prog_NMEDIT"; then
7744
ac_ct_NMEDIT=$NMEDIT
7745
# Extract the first word of "nmedit", so it can be a program name with args.
7746
set dummy nmedit; ac_word=$2
7747
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7748
$as_echo_n "checking for $ac_word... " >&6; }
7749
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7750
$as_echo_n "(cached) " >&6
7752
if test -n "$ac_ct_NMEDIT"; then
7753
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759
test -z "$as_dir" && as_dir=.
7760
for ac_exec_ext in '' $ac_executable_extensions; do
7761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7763
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7773
if test -n "$ac_ct_NMEDIT"; then
7774
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7775
$as_echo "$ac_ct_NMEDIT" >&6; }
7777
{ $as_echo "$as_me:$LINENO: result: no" >&5
7778
$as_echo "no" >&6; }
7781
if test "x$ac_ct_NMEDIT" = x; then
7784
case $cross_compiling:$ac_tool_warned in
7786
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7787
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788
ac_tool_warned=yes ;;
7790
NMEDIT=$ac_ct_NMEDIT
7793
NMEDIT="$ac_cv_prog_NMEDIT"
7797
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7798
$as_echo_n "checking for -single_module linker flag... " >&6; }
7799
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7800
$as_echo_n "(cached) " >&6
7802
lt_cv_apple_cc_single_mod=no
7803
if test -z "${LT_MULTI_MODULE}"; then
7804
# By default we will add the -single_module flag. You can override
7805
# by either setting the environment variable LT_MULTI_MODULE
7806
# non-empty at configure time, or by adding -multi_module to the
7808
echo "int foo(void){return 1;}" > conftest.c
7809
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810
-dynamiclib ${wl}-single_module conftest.c
7811
if test -f libconftest.dylib; then
7812
lt_cv_apple_cc_single_mod=yes
7813
rm -rf libconftest.dylib*
7818
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7819
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7820
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7821
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7822
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7823
$as_echo_n "(cached) " >&6
7825
lt_cv_ld_exported_symbols_list=no
7826
save_LDFLAGS=$LDFLAGS
7827
echo "_main" > conftest.sym
7828
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7829
cat >conftest.$ac_ext <<_ACEOF
7832
cat confdefs.h >>conftest.$ac_ext
7833
cat >>conftest.$ac_ext <<_ACEOF
7834
/* end confdefs.h. */
7844
rm -f conftest.$ac_objext conftest$ac_exeext
7845
if { (ac_try="$ac_link"
7847
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848
*) ac_try_echo=$ac_try;;
7850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851
$as_echo "$ac_try_echo") >&5
7852
(eval "$ac_link") 2>conftest.er1
7854
grep -v '^ *+' conftest.er1 >conftest.err
7856
cat conftest.err >&5
7857
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858
(exit $ac_status); } && {
7859
test -z "$ac_c_werror_flag" ||
7860
test ! -s conftest.err
7861
} && test -s conftest$ac_exeext && {
7862
test "$cross_compiling" = yes ||
7863
$as_test_x conftest$ac_exeext
7865
lt_cv_ld_exported_symbols_list=yes
7867
$as_echo "$as_me: failed program was:" >&5
7868
sed 's/^/| /' conftest.$ac_ext >&5
7870
lt_cv_ld_exported_symbols_list=no
7873
rm -rf conftest.dSYM
7874
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7875
conftest$ac_exeext conftest.$ac_ext
7876
LDFLAGS="$save_LDFLAGS"
7879
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7880
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7882
rhapsody* | darwin1.[0123])
7883
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7885
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7887
# if running on 10.5 or later, the deployment target defaults
7888
# to the OS version, if on x86, and 10.4, the deployment
7889
# target defaults to 10.4. Don't you love it?
7890
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7891
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7892
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7894
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7896
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7901
_lt_dar_single_mod='$single_module'
7903
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7904
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7906
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7908
if test "$DSYMUTIL" != ":"; then
7909
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7920
# Check whether --enable-libtool-lock was given.
7921
if test "${enable_libtool_lock+set}" = set; then
7922
enableval=$enable_libtool_lock;
7925
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7928
# Check whether --with-pic was given.
7929
if test "${with_pic+set}" = set; then
7930
withval=$with_pic; pic_mode="$withval"
7935
test -z "$pic_mode" && pic_mode=default
7937
# Use C for the default configuration in the libtool script
7941
ac_cpp='$CPP $CPPFLAGS'
7942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
# Source file extension for C test sources.
7950
# Object file extension for compiled C test sources.
7954
# Code to be used in simple compile tests
7955
lt_simple_compile_test_code="int some_variable = 0;"
7957
# Code to be used in simple link tests
7958
lt_simple_link_test_code='int main(){return(0);}'
7961
# If no C compiler was specified, use CC.
7964
# If no C compiler flags were specified, use CFLAGS.
7965
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7967
# Allow CC to be a program name with arguments.
7971
# save warnings/boilerplate of simple test code
7972
ac_outfile=conftest.$ac_objext
7973
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7974
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975
_lt_compiler_boilerplate=`cat conftest.err`
7978
ac_outfile=conftest.$ac_objext
7979
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7980
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7981
_lt_linker_boilerplate=`cat conftest.err`
7986
lt_prog_compiler_no_builtin_flag=
7988
if test "$GCC" = yes; then
7989
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7992
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7993
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7994
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7995
$as_echo_n "(cached) " >&6
7997
lt_cv_prog_compiler_rtti_exceptions=no
7998
ac_outfile=conftest.$ac_objext
7999
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8000
lt_compiler_flag="-fno-rtti -fno-exceptions"
8001
# Insert the option either (1) after the last *FLAGS variable, or
8002
# (2) before a word containing "conftest.", or (3) at the end.
8003
# Note that $ac_compile itself does not contain backslashes and begins
8004
# with a dollar sign (not a hyphen), so the echo should work correctly.
8005
# The option is referenced via a variable to avoid confusing sed.
8006
lt_compile=`echo "$ac_compile" | $SED \
8007
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8008
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8009
-e 's:$: $lt_compiler_flag:'`
8010
(eval echo "\"\$as_me:8010: $lt_compile\"" >&5)
8011
(eval "$lt_compile" 2>conftest.err)
8013
cat conftest.err >&5
8014
echo "$as_me:8014: \$? = $ac_status" >&5
8015
if (exit $ac_status) && test -s "$ac_outfile"; then
8016
# The compiler can only warn and ignore the option if not recognized
8017
# So say no if there are warnings other than the usual output.
8018
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8019
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8020
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8021
lt_cv_prog_compiler_rtti_exceptions=yes
8027
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8028
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8030
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8031
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8038
lt_prog_compiler_wl=
8039
lt_prog_compiler_pic=
8040
lt_prog_compiler_static=
8042
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8043
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8045
if test "$GCC" = yes; then
8046
lt_prog_compiler_wl='-Wl,'
8047
lt_prog_compiler_static='-static'
8051
# All AIX code is PIC.
8052
if test "$host_cpu" = ia64; then
8053
# AIX 5 now supports IA64 processor
8054
lt_prog_compiler_static='-Bstatic'
8059
# FIXME: we need at least 68020 code to build shared libraries, but
8060
# adding the `-m68020' flag to GCC prevents building anything better,
8062
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8065
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8066
# PIC is the default for these OSes.
8069
mingw* | cygwin* | pw32* | os2*)
8070
# This hack is so that the source file can tell whether it is being
8071
# built for inclusion in a dll (and should export symbols for example).
8072
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8073
# (--disable-auto-import) libraries
8074
lt_prog_compiler_pic='-DDLL_EXPORT'
8077
darwin* | rhapsody*)
8078
# PIC is the default on this platform
8079
# Common symbols not allowed in MH_DYLIB files
8080
lt_prog_compiler_pic='-fno-common'
8084
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8085
# Instead, we relocate shared libraries at runtime.
8089
# Just because we use GCC doesn't mean we suddenly get shared libraries
8090
# on systems that don't support them.
8091
lt_prog_compiler_can_build_shared=no
8096
if test -d /usr/nec; then
8097
lt_prog_compiler_pic=-Kconform_pic
8102
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8109
lt_prog_compiler_pic='-fPIC'
8115
lt_prog_compiler_pic='-fPIC'
8119
# PORTME Check for flag to pass linker flags through the system compiler.
8122
lt_prog_compiler_wl='-Wl,'
8123
if test "$host_cpu" = ia64; then
8124
# AIX 5 now supports IA64 processor
8125
lt_prog_compiler_static='-Bstatic'
8127
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8131
# PIC is the default on this platform
8132
# Common symbols not allowed in MH_DYLIB files
8133
case $cc_basename in
8135
lt_prog_compiler_pic='-qnocommon'
8136
lt_prog_compiler_wl='-Wl,'
8141
mingw* | cygwin* | pw32* | os2*)
8142
# This hack is so that the source file can tell whether it is being
8143
# built for inclusion in a dll (and should export symbols for example).
8144
lt_prog_compiler_pic='-DDLL_EXPORT'
8147
hpux9* | hpux10* | hpux11*)
8148
lt_prog_compiler_wl='-Wl,'
8149
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8156
lt_prog_compiler_pic='+Z'
8159
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8160
lt_prog_compiler_static='${wl}-a ${wl}archive'
8163
irix5* | irix6* | nonstopux*)
8164
lt_prog_compiler_wl='-Wl,'
8165
# PIC (with -KPIC) is the default.
8166
lt_prog_compiler_static='-non_shared'
8170
lt_prog_compiler_pic='-KPIC'
8171
lt_prog_compiler_static='-Bstatic'
8174
linux* | k*bsd*-gnu)
8175
case $cc_basename in
8177
lt_prog_compiler_wl='-Wl,'
8178
lt_prog_compiler_pic='-KPIC'
8179
lt_prog_compiler_static='-static'
8181
pgcc* | pgf77* | pgf90* | pgf95*)
8182
# Portland Group compilers (*not* the Pentium gcc compiler,
8183
# which looks to be a dead project)
8184
lt_prog_compiler_wl='-Wl,'
8185
lt_prog_compiler_pic='-fpic'
8186
lt_prog_compiler_static='-Bstatic'
8189
lt_prog_compiler_wl='-Wl,'
8190
# All Alpha code is PIC.
8191
lt_prog_compiler_static='-non_shared'
8194
case `$CC -V 2>&1 | sed 5q` in
8197
lt_prog_compiler_pic='-KPIC'
8198
lt_prog_compiler_static='-Bstatic'
8199
lt_prog_compiler_wl='-Wl,'
8202
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8203
lt_prog_compiler_pic='-KPIC'
8204
lt_prog_compiler_static='-Bstatic'
8205
lt_prog_compiler_wl=''
8212
osf3* | osf4* | osf5*)
8213
lt_prog_compiler_wl='-Wl,'
8214
# All OSF/1 code is PIC.
8215
lt_prog_compiler_static='-non_shared'
8219
lt_prog_compiler_static='-non_shared'
8223
lt_prog_compiler_pic='-KPIC'
8224
lt_prog_compiler_static='-Bstatic'
8225
case $cc_basename in
8227
lt_prog_compiler_wl='-Qoption ld ';;
8229
lt_prog_compiler_wl='-Wl,';;
8234
lt_prog_compiler_wl='-Qoption ld '
8235
lt_prog_compiler_pic='-PIC'
8236
lt_prog_compiler_static='-Bstatic'
8239
sysv4 | sysv4.2uw2* | sysv4.3*)
8240
lt_prog_compiler_wl='-Wl,'
8241
lt_prog_compiler_pic='-KPIC'
8242
lt_prog_compiler_static='-Bstatic'
8246
if test -d /usr/nec ;then
8247
lt_prog_compiler_pic='-Kconform_pic'
8248
lt_prog_compiler_static='-Bstatic'
8252
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8253
lt_prog_compiler_wl='-Wl,'
8254
lt_prog_compiler_pic='-KPIC'
8255
lt_prog_compiler_static='-Bstatic'
8259
lt_prog_compiler_wl='-Wl,'
8260
lt_prog_compiler_can_build_shared=no
8264
lt_prog_compiler_pic='-pic'
8265
lt_prog_compiler_static='-Bstatic'
8269
lt_prog_compiler_can_build_shared=no
8274
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8275
$as_echo "$lt_prog_compiler_pic" >&6; }
8278
# Check to make sure the PIC flag actually works.
8280
if test -n "$lt_prog_compiler_pic"; then
8282
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8283
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8284
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8285
$as_echo_n "(cached) " >&6
8287
lt_cv_prog_compiler_pic_works=no
8288
ac_outfile=conftest.$ac_objext
8289
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8291
# Insert the option either (1) after the last *FLAGS variable, or
8292
# (2) before a word containing "conftest.", or (3) at the end.
8293
# Note that $ac_compile itself does not contain backslashes and begins
8294
# with a dollar sign (not a hyphen), so the echo should work correctly.
8295
# The option is referenced via a variable to avoid confusing sed.
8296
lt_compile=`echo "$ac_compile" | $SED \
8297
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299
-e 's:$: $lt_compiler_flag:'`
8300
(eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
8301
(eval "$lt_compile" 2>conftest.err)
8303
cat conftest.err >&5
8304
echo "$as_me:8304: \$? = $ac_status" >&5
8305
if (exit $ac_status) && test -s "$ac_outfile"; then
8306
# The compiler can only warn and ignore the option if not recognized
8307
# So say no if there are warnings other than the usual output.
8308
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8309
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8311
lt_cv_prog_compiler_pic_works=yes
8317
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8318
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8320
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8321
case $lt_prog_compiler_pic in
8323
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8326
lt_prog_compiler_pic=
8327
lt_prog_compiler_can_build_shared=no
8332
# For platforms which do not support PIC, -DPIC is meaningless:
8334
lt_prog_compiler_pic=
8337
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8342
# Check to make sure the static flag actually works.
8344
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8345
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8346
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8347
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8348
$as_echo_n "(cached) " >&6
8350
lt_cv_prog_compiler_static_works=no
8351
save_LDFLAGS="$LDFLAGS"
8352
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8353
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8354
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8355
# The linker can only warn and ignore the option if not recognized
8356
# So say no if there are warnings
8357
if test -s conftest.err; then
8358
# Append any errors to the config.log.
8359
cat conftest.err 1>&5
8360
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8361
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8362
if diff conftest.exp conftest.er2 >/dev/null; then
8363
lt_cv_prog_compiler_static_works=yes
8366
lt_cv_prog_compiler_static_works=yes
8370
LDFLAGS="$save_LDFLAGS"
8373
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8374
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8376
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8379
lt_prog_compiler_static=
8383
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8384
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8385
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8386
$as_echo_n "(cached) " >&6
8388
lt_cv_prog_compiler_c_o=no
8389
$rm -r conftest 2>/dev/null
8393
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8395
lt_compiler_flag="-o out/conftest2.$ac_objext"
8396
# Insert the option either (1) after the last *FLAGS variable, or
8397
# (2) before a word containing "conftest.", or (3) at the end.
8398
# Note that $ac_compile itself does not contain backslashes and begins
8399
# with a dollar sign (not a hyphen), so the echo should work correctly.
8400
lt_compile=`echo "$ac_compile" | $SED \
8401
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403
-e 's:$: $lt_compiler_flag:'`
8404
(eval echo "\"\$as_me:8404: $lt_compile\"" >&5)
8405
(eval "$lt_compile" 2>out/conftest.err)
8407
cat out/conftest.err >&5
8408
echo "$as_me:8408: \$? = $ac_status" >&5
8409
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8411
# The compiler can only warn and ignore the option if not recognized
8412
# So say no if there are warnings
8413
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8414
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8415
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8416
lt_cv_prog_compiler_c_o=yes
8421
# SGI C++ compiler will create directory out/ii_files/ for
8422
# template instantiation
8423
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8424
$rm out/* && rmdir out
8430
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8431
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8434
hard_links="nottested"
8435
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8436
# do not overwrite the value of need_locks provided by the user
8437
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8438
$as_echo_n "checking if we can lock with hard links... " >&6; }
8441
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443
ln conftest.a conftest.b 2>&5 || hard_links=no
8444
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8445
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8446
$as_echo "$hard_links" >&6; }
8447
if test "$hard_links" = no; then
8448
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8449
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8456
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8457
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8460
allow_undefined_flag=
8461
enable_shared_with_static_runtimes=no
8463
archive_expsym_cmds=
8464
old_archive_From_new_cmds=
8465
old_archive_from_expsyms_cmds=
8466
export_dynamic_flag_spec=
8467
whole_archive_flag_spec=
8468
thread_safe_flag_spec=
8469
hardcode_libdir_flag_spec=
8470
hardcode_libdir_flag_spec_ld=
8471
hardcode_libdir_separator=
8474
hardcode_shlibpath_var=unsupported
8475
link_all_deplibs=unknown
8476
hardcode_automatic=no
8479
always_export_symbols=no
8480
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8481
# include_expsyms should be a list of space-separated symbols to be *always*
8482
# included in the symbol list
8484
# exclude_expsyms can be an extended regexp of symbols to exclude
8485
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8486
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8487
# as well as any symbol that contains `d'.
8488
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8489
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8490
# platforms (ab)use it in PIC code, but their linkers get confused if
8491
# the symbol is explicitly referenced. Since portable code cannot
8492
# rely on this symbol name, it's probably fine to never include it in
8493
# preloaded symbol tables.
8494
# Exclude shared library initialization/finalization symbols.
8495
extract_expsyms_cmds=
8496
# Just being paranoid about ensuring that cc_basename is set.
8497
for cc_temp in $compiler""; do
8499
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8505
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8508
cygwin* | mingw* | pw32*)
8509
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8510
# When not using gcc, we currently assume that we are using
8511
# Microsoft Visual C++.
8512
if test "$GCC" != yes; then
8517
# we just hope/assume this is gcc and not c89 (= MSVC++)
8526
if test "$with_gnu_ld" = yes; then
8527
# If archive_cmds runs LD, not CC, wlarc should be empty
8530
# Set some defaults for GNU ld with shared library support. These
8531
# are reset later if shared libraries are not supported. Putting them
8532
# here allows them to be overridden if necessary.
8533
runpath_var=LD_RUN_PATH
8534
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8535
export_dynamic_flag_spec='${wl}--export-dynamic'
8536
# ancient GNU ld didn't support --whole-archive et. al.
8537
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8538
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8540
whole_archive_flag_spec=
8542
supports_anon_versioning=no
8543
case `$LD -v 2>/dev/null` in
8544
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8545
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8546
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8547
*\ 2.11.*) ;; # other 2.11 versions
8548
*) supports_anon_versioning=yes ;;
8551
# See if GNU ld supports shared libraries.
8554
# On AIX/PPC, the GNU linker is very broken
8555
if test "$host_cpu" != ia64; then
8559
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8560
*** to be unable to reliably create shared libraries on AIX.
8561
*** Therefore, libtool is disabling shared libraries support. If you
8562
*** really care for shared libraries, you may want to modify your PATH
8563
*** so that a non-GNU linker is found, and then restart.
8570
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8571
hardcode_libdir_flag_spec='-L$libdir'
8572
hardcode_minus_L=yes
8574
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8575
# that the semantics of dynamic libraries on AmigaOS, at least up
8576
# to version 4, is to share data among multiple programs linked
8577
# with the same dynamic library. Since this doesn't match the
8578
# behavior of shared libraries on other platforms, we can't use
8584
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8585
allow_undefined_flag=unsupported
8586
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8587
# support --undefined. This deserves some investigation. FIXME
8588
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594
cygwin* | mingw* | pw32*)
8595
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8596
# as there is no search path for DLLs.
8597
hardcode_libdir_flag_spec='-L$libdir'
8598
allow_undefined_flag=unsupported
8599
always_export_symbols=no
8600
enable_shared_with_static_runtimes=yes
8601
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8603
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8604
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605
# If the export-symbols file already is a .def file (1st line
8606
# is EXPORTS), use it as is; otherwise, prepend...
8607
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8608
cp $export_symbols $output_objdir/$soname.def;
8610
echo EXPORTS > $output_objdir/$soname.def;
8611
cat $export_symbols >> $output_objdir/$soname.def;
8613
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8621
hardcode_shlibpath_var=no
8622
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623
export_dynamic_flag_spec='${wl}-E'
8624
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8625
# Instead, shared libraries are loaded at an image base (0x10000000 by
8626
# default) and relocated if they conflict, which is a slow very memory
8627
# consuming and fragmenting process. To avoid this, we pick a random,
8628
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8629
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8630
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8631
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8634
gnu* | linux* | k*bsd*-gnu)
8635
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8637
case $cc_basename,$host_cpu in
8638
pgcc*) # Portland Group C compiler
8639
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8640
tmp_addflag=' $pic_flag'
8642
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8643
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8644
tmp_addflag=' $pic_flag -Mnomain' ;;
8645
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8646
tmp_addflag=' -i_dynamic' ;;
8647
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8648
tmp_addflag=' -i_dynamic -nofor_main' ;;
8649
ifc* | ifort*) # Intel Fortran compiler
8650
tmp_addflag=' -nofor_main' ;;
8652
case `$CC -V 2>&1 | sed 5q` in
8653
*Sun\ C*) # Sun C 5.9
8654
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8655
tmp_sharedflag='-G' ;;
8656
*Sun\ F*) # Sun Fortran 8.3
8657
tmp_sharedflag='-G' ;;
8659
tmp_sharedflag='-shared' ;;
8661
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663
if test $supports_anon_versioning = yes; then
8664
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8665
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666
$echo "local: *; };" >> $output_objdir/$libname.ver~
8667
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8676
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8679
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8689
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8690
*** create shared libraries on Solaris systems. Therefore, libtool
8691
*** is disabling shared libraries support. We urge you to upgrade GNU
8692
*** binutils to release 2.9.1 or newer. Another option is to modify
8693
*** your PATH or compiler configuration so that the native linker is
8694
*** used, and then restart.
8697
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8698
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8706
case `$LD -v 2>&1` in
8707
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8711
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8712
*** reliably create shared libraries on SCO systems. Therefore, libtool
8713
*** is disabling shared libraries support. We urge you to upgrade GNU
8714
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8715
*** your PATH or compiler configuration so that the native linker is
8716
*** used, and then restart.
8721
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8722
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8723
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8724
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8733
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8736
hardcode_shlibpath_var=no
8740
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8741
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749
if test "$ld_shlibs" = no; then
8751
hardcode_libdir_flag_spec=
8752
export_dynamic_flag_spec=
8753
whole_archive_flag_spec=
8756
# PORTME fill in a description of your system's linker (not GNU ld)
8759
allow_undefined_flag=unsupported
8760
always_export_symbols=yes
8761
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8762
# Note: this linker hardcodes the directories in LIBPATH if there
8763
# are no directories specified by -L.
8764
hardcode_minus_L=yes
8765
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8766
# Neither direct hardcoding nor static linking is supported with a
8768
hardcode_direct=unsupported
8773
if test "$host_cpu" = ia64; then
8774
# On IA64, the linker does run time linking by default, so we don't
8775
# have to do anything special.
8776
aix_use_runtimelinking=no
8777
exp_sym_flag='-Bexport'
8780
# If we're using GNU nm, then we don't want the "-C" option.
8781
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8782
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8783
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8785
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8787
aix_use_runtimelinking=no
8789
# Test if we are trying to use run time linking or normal
8790
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8791
# need to do runtime linking.
8792
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8793
for ld_flag in $LDFLAGS; do
8794
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8795
aix_use_runtimelinking=yes
8802
exp_sym_flag='-bexport'
8803
no_entry_flag='-bnoentry'
8806
# When large executables or shared objects are built, AIX ld can
8807
# have problems creating the table of contents. If linking a library
8808
# or program results in "error TOC overflow" add -mminimal-toc to
8809
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8810
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8814
hardcode_libdir_separator=':'
8815
link_all_deplibs=yes
8817
if test "$GCC" = yes; then
8818
case $host_os in aix4.[012]|aix4.[012].*)
8819
# We only want to do this on AIX 4.2 and lower, the check
8820
# below for broken collect2 doesn't work under 4.3+
8821
collect2name=`${CC} -print-prog-name=collect2`
8822
if test -f "$collect2name" && \
8823
strings "$collect2name" | grep resolve_lib_name >/dev/null
8825
# We have reworked collect2
8828
# We have old collect2
8829
hardcode_direct=unsupported
8830
# It fails to find uninstalled libraries when the uninstalled
8831
# path is not listed in the libpath. Setting hardcode_minus_L
8832
# to unsupported forces relinking
8833
hardcode_minus_L=yes
8834
hardcode_libdir_flag_spec='-L$libdir'
8835
hardcode_libdir_separator=
8839
shared_flag='-shared'
8840
if test "$aix_use_runtimelinking" = yes; then
8841
shared_flag="$shared_flag "'${wl}-G'
8845
if test "$host_cpu" = ia64; then
8846
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8847
# chokes on -Wl,-G. The following line is correct:
8850
if test "$aix_use_runtimelinking" = yes; then
8851
shared_flag='${wl}-G'
8853
shared_flag='${wl}-bM:SRE'
8858
# It seems that -bexpall does not export symbols beginning with
8859
# underscore (_), so it is better to generate a list of symbols to export.
8860
always_export_symbols=yes
8861
if test "$aix_use_runtimelinking" = yes; then
8862
# Warning - without using the other runtime loading flags (-brtl),
8863
# -berok will link without error, but may produce a broken library.
8864
allow_undefined_flag='-berok'
8865
# Determine the default libpath from the value encoded in an empty executable.
8866
cat >conftest.$ac_ext <<_ACEOF
8869
cat confdefs.h >>conftest.$ac_ext
8870
cat >>conftest.$ac_ext <<_ACEOF
8871
/* end confdefs.h. */
8881
rm -f conftest.$ac_objext conftest$ac_exeext
8882
if { (ac_try="$ac_link"
8884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885
*) ac_try_echo=$ac_try;;
8887
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8888
$as_echo "$ac_try_echo") >&5
8889
(eval "$ac_link") 2>conftest.er1
8891
grep -v '^ *+' conftest.er1 >conftest.err
8893
cat conftest.err >&5
8894
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
(exit $ac_status); } && {
8896
test -z "$ac_c_werror_flag" ||
8897
test ! -s conftest.err
8898
} && test -s conftest$ac_exeext && {
8899
test "$cross_compiling" = yes ||
8900
$as_test_x conftest$ac_exeext
8903
lt_aix_libpath_sed='
8904
/Import File Strings/,/^$/ {
8910
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8911
# Check for a 64-bit object if we didn't find anything.
8912
if test -z "$aix_libpath"; then
8913
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916
$as_echo "$as_me: failed program was:" >&5
8917
sed 's/^/| /' conftest.$ac_ext >&5
8922
rm -rf conftest.dSYM
8923
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8924
conftest$ac_exeext conftest.$ac_ext
8925
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8927
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8928
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8930
if test "$host_cpu" = ia64; then
8931
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8932
allow_undefined_flag="-z nodefs"
8933
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8935
# Determine the default libpath from the value encoded in an empty executable.
8936
cat >conftest.$ac_ext <<_ACEOF
8939
cat confdefs.h >>conftest.$ac_ext
8940
cat >>conftest.$ac_ext <<_ACEOF
8941
/* end confdefs.h. */
8951
rm -f conftest.$ac_objext conftest$ac_exeext
8952
if { (ac_try="$ac_link"
8954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955
*) ac_try_echo=$ac_try;;
8957
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958
$as_echo "$ac_try_echo") >&5
8959
(eval "$ac_link") 2>conftest.er1
8961
grep -v '^ *+' conftest.er1 >conftest.err
8963
cat conftest.err >&5
8964
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965
(exit $ac_status); } && {
8966
test -z "$ac_c_werror_flag" ||
8967
test ! -s conftest.err
8968
} && test -s conftest$ac_exeext && {
8969
test "$cross_compiling" = yes ||
8970
$as_test_x conftest$ac_exeext
8973
lt_aix_libpath_sed='
8974
/Import File Strings/,/^$/ {
8980
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981
# Check for a 64-bit object if we didn't find anything.
8982
if test -z "$aix_libpath"; then
8983
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986
$as_echo "$as_me: failed program was:" >&5
8987
sed 's/^/| /' conftest.$ac_ext >&5
8992
rm -rf conftest.dSYM
8993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994
conftest$ac_exeext conftest.$ac_ext
8995
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8997
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998
# Warning - without using the other run time loading flags,
8999
# -berok will link without error, but may produce a broken library.
9000
no_undefined_flag=' ${wl}-bernotok'
9001
allow_undefined_flag=' ${wl}-berok'
9002
# Exported symbols can be pulled into shared objects from archives
9003
whole_archive_flag_spec='$convenience'
9004
archive_cmds_need_lc=yes
9005
# This is similar to how AIX traditionally builds its shared libraries.
9006
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9012
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9013
hardcode_libdir_flag_spec='-L$libdir'
9014
hardcode_minus_L=yes
9015
# see comment about different semantics on the GNU ld section
9020
export_dynamic_flag_spec=-rdynamic
9023
cygwin* | mingw* | pw32*)
9024
# When not using gcc, we currently assume that we are using
9025
# Microsoft Visual C++.
9026
# hardcode_libdir_flag_spec is actually meaningless, as there is
9027
# no search path for DLLs.
9028
hardcode_libdir_flag_spec=' '
9029
allow_undefined_flag=unsupported
9030
# Tell ltmain to make .lib files, not .a files.
9032
# Tell ltmain to make .dll files, not .so files.
9034
# FIXME: Setting linknames here is a bad hack.
9035
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9036
# The linker will automatically build a .lib file if we build a DLL.
9037
old_archive_From_new_cmds='true'
9038
# FIXME: Should let the user specify the lib program.
9039
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9040
fix_srcfile_path='`cygpath -w "$srcfile"`'
9041
enable_shared_with_static_runtimes=yes
9044
darwin* | rhapsody*)
9046
rhapsody* | darwin1.[012])
9047
allow_undefined_flag='${wl}-undefined ${wl}suppress'
9050
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9051
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9053
case ${MACOSX_DEPLOYMENT_TARGET} in
9055
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9058
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9064
archive_cmds_need_lc=no
9066
hardcode_automatic=yes
9067
hardcode_shlibpath_var=unsupported
9068
whole_archive_flag_spec=''
9069
link_all_deplibs=yes
9070
if test "$GCC" = yes ; then
9071
output_verbose_link_cmd='echo'
9072
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9073
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9074
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9075
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9077
case $cc_basename in
9079
output_verbose_link_cmd='echo'
9080
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9081
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9082
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9083
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9084
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9094
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095
hardcode_libdir_flag_spec='-L$libdir'
9096
hardcode_shlibpath_var=no
9103
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9104
# support. Future versions do this automatically, but an explicit c++rt0.o
9105
# does not break anything, and helps significantly (at the cost of a little
9108
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9109
hardcode_libdir_flag_spec='-R$libdir'
9111
hardcode_shlibpath_var=no
9114
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9116
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9118
hardcode_minus_L=yes
9119
hardcode_shlibpath_var=no
9122
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9123
freebsd* | dragonfly*)
9124
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9125
hardcode_libdir_flag_spec='-R$libdir'
9127
hardcode_shlibpath_var=no
9131
if test "$GCC" = yes; then
9132
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9134
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9136
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9137
hardcode_libdir_separator=:
9140
# hardcode_minus_L: Not really in the search PATH,
9141
# but as the default location of the library.
9142
hardcode_minus_L=yes
9143
export_dynamic_flag_spec='${wl}-E'
9147
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9148
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9150
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9152
if test "$with_gnu_ld" = no; then
9153
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9154
hardcode_libdir_separator=:
9157
export_dynamic_flag_spec='${wl}-E'
9159
# hardcode_minus_L: Not really in the search PATH,
9160
# but as the default location of the library.
9161
hardcode_minus_L=yes
9166
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9169
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9175
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9187
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9191
if test "$with_gnu_ld" = no; then
9192
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193
hardcode_libdir_separator=:
9197
hardcode_libdir_flag_spec_ld='+b $libdir'
9199
hardcode_shlibpath_var=no
9203
export_dynamic_flag_spec='${wl}-E'
9205
# hardcode_minus_L: Not really in the search PATH,
9206
# but as the default location of the library.
9207
hardcode_minus_L=yes
9213
irix5* | irix6* | nonstopux*)
9214
if test "$GCC" = yes; then
9215
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9217
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9218
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9220
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9221
hardcode_libdir_separator=:
9222
link_all_deplibs=yes
9226
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9227
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9229
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9231
hardcode_libdir_flag_spec='-R$libdir'
9233
hardcode_shlibpath_var=no
9237
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240
hardcode_libdir_separator=:
9241
hardcode_shlibpath_var=no
9245
if test -f /usr/libexec/ld.so; then
9247
hardcode_shlibpath_var=no
9248
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9252
export_dynamic_flag_spec='${wl}-E'
9255
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257
hardcode_libdir_flag_spec='-R$libdir'
9260
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271
hardcode_libdir_flag_spec='-L$libdir'
9272
hardcode_minus_L=yes
9273
allow_undefined_flag=unsupported
9274
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9275
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9279
if test "$GCC" = yes; then
9280
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9281
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9283
allow_undefined_flag=' -expect_unresolved \*'
9284
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9286
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287
hardcode_libdir_separator=:
9290
osf4* | osf5*) # as osf3* with the addition of -msym flag
9291
if test "$GCC" = yes; then
9292
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9293
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9294
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296
allow_undefined_flag=' -expect_unresolved \*'
9297
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9298
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9299
$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'
9301
# Both c and cxx compiler support -rpath directly
9302
hardcode_libdir_flag_spec='-rpath $libdir'
9304
hardcode_libdir_separator=:
9308
no_undefined_flag=' -z text'
9309
if test "$GCC" = yes; then
9311
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9313
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9316
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9318
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9320
hardcode_libdir_flag_spec='-R$libdir'
9321
hardcode_shlibpath_var=no
9323
solaris2.[0-5] | solaris2.[0-5].*) ;;
9325
# The compiler driver will combine and reorder linker options,
9326
# but understands `-z linker_flag'. GCC discards it without `$wl',
9327
# but is careful enough not to reorder.
9328
# Supported since Solaris 2.6 (maybe 2.5.1?)
9329
if test "$GCC" = yes; then
9330
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9332
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9336
link_all_deplibs=yes
9340
if test "x$host_vendor" = xsequent; then
9341
# Use $CC to link under sequent, because it throws in some extra .o
9342
# files that make .init and .fini sections work.
9343
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9347
hardcode_libdir_flag_spec='-L$libdir'
9349
hardcode_minus_L=yes
9350
hardcode_shlibpath_var=no
9354
case $host_vendor in
9356
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357
hardcode_direct=yes # is this really true???
9360
## LD is ld it makes a PLAMLIB
9361
## CC just makes a GrossModule.
9362
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9363
reload_cmds='$CC -r -o $output$reload_objs'
9367
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9371
runpath_var='LD_RUN_PATH'
9372
hardcode_shlibpath_var=no
9376
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377
hardcode_shlibpath_var=no
9378
export_dynamic_flag_spec='-Bexport'
9382
if test -d /usr/nec; then
9383
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384
hardcode_shlibpath_var=no
9385
runpath_var=LD_RUN_PATH
9386
hardcode_runpath_var=yes
9391
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9392
no_undefined_flag='${wl}-z,text'
9393
archive_cmds_need_lc=no
9394
hardcode_shlibpath_var=no
9395
runpath_var='LD_RUN_PATH'
9397
if test "$GCC" = yes; then
9398
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406
sysv5* | sco3.2v5* | sco5v6*)
9407
# Note: We can NOT use -z defs as we might desire, because we do not
9408
# link with -lc, and that would cause any symbols used from libc to
9409
# always be unresolved, which means just about no library would
9410
# ever link correctly. If we're not using GNU ld we use -z text
9411
# though, which does catch some bad symbols but isn't as heavy-handed
9413
no_undefined_flag='${wl}-z,text'
9414
allow_undefined_flag='${wl}-z,nodefs'
9415
archive_cmds_need_lc=no
9416
hardcode_shlibpath_var=no
9417
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9418
hardcode_libdir_separator=':'
9419
link_all_deplibs=yes
9420
export_dynamic_flag_spec='${wl}-Bexport'
9421
runpath_var='LD_RUN_PATH'
9423
if test "$GCC" = yes; then
9424
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9427
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9433
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434
hardcode_libdir_flag_spec='-L$libdir'
9435
hardcode_shlibpath_var=no
9444
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9445
$as_echo "$ld_shlibs" >&6; }
9446
test "$ld_shlibs" = no && can_build_shared=no
9449
# Do we need to explicitly link libc?
9451
case "x$archive_cmds_need_lc" in
9453
# Assume -lc should be added
9454
archive_cmds_need_lc=yes
9456
if test "$enable_shared" = yes && test "$GCC" = yes; then
9457
case $archive_cmds in
9459
# FIXME: we may have to deal with multi-command sequences.
9462
# Test whether the compiler implicitly links with -lc since on some
9463
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9464
# to ld, don't add -lc before -lgcc.
9465
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9466
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9468
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471
(eval $ac_compile) 2>&5
9473
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474
(exit $ac_status); } 2>conftest.err; then
9477
libobjs=conftest.$ac_objext
9479
wl=$lt_prog_compiler_wl
9480
pic_flag=$lt_prog_compiler_pic
9486
lt_save_allow_undefined_flag=$allow_undefined_flag
9487
allow_undefined_flag=
9488
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9489
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9491
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492
(exit $ac_status); }
9494
archive_cmds_need_lc=no
9496
archive_cmds_need_lc=yes
9498
allow_undefined_flag=$lt_save_allow_undefined_flag
9500
cat conftest.err 1>&5
9503
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9504
$as_echo "$archive_cmds_need_lc" >&6; }
9511
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9512
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9514
libname_spec='lib$name'
9522
shlibpath_overrides_runpath=unknown
9524
dynamic_linker="$host_os ld.so"
9525
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9527
if test "$GCC" = yes; then
9529
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9530
*) lt_awk_arg="/^libraries:/" ;;
9532
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9533
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9534
# if the path contains ";" then we assume it to be the separator
9535
# otherwise default to the standard path separator (i.e. ":") - it is
9536
# assumed that no part of a normal pathname contains ";" but that should
9537
# okay in the real world where ";" in dirpaths is itself problematic.
9538
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9540
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9542
# Ok, now we have the path, separated by spaces, we can step through it
9543
# and add multilib dir if necessary.
9544
lt_tmp_lt_search_path_spec=
9545
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9546
for lt_sys_path in $lt_search_path_spec; do
9547
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9548
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9550
test -d "$lt_sys_path" && \
9551
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9554
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9555
BEGIN {RS=" "; FS="/|\n";} {
9558
for (lt_i = NF; lt_i > 0; lt_i--) {
9559
if ($lt_i != "" && $lt_i != ".") {
9560
if ($lt_i == "..") {
9563
if (lt_count == 0) {
9564
lt_foo="/" $lt_i lt_foo;
9571
if (lt_foo != "") { lt_freq[lt_foo]++; }
9572
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9574
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9576
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9578
need_lib_prefix=unknown
9579
hardcode_into_libs=no
9581
# when you set need_version to no, make sure it does not cause -set_version
9582
# flags to be left without arguments
9583
need_version=unknown
9588
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9589
shlibpath_var=LIBPATH
9591
# AIX 3 has no versioning support, so we append a major version to the name.
9592
soname_spec='${libname}${release}${shared_ext}$major'
9599
hardcode_into_libs=yes
9600
if test "$host_cpu" = ia64; then
9601
# AIX 5 supports IA64
9602
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9603
shlibpath_var=LD_LIBRARY_PATH
9605
# With GCC up to 2.95.x, collect2 would create an import file
9606
# for dependence libraries. The import file would start with
9607
# the line `#! .'. This would cause the generated library to
9608
# depend on `.', always an invalid library. This was fixed in
9609
# development snapshots of GCC prior to 3.0.
9611
aix4 | aix4.[01] | aix4.[01].*)
9612
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9614
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9621
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9622
# soname into executable. Probably we can add versioning support to
9623
# collect2, so additional links can be useful in future.
9624
if test "$aix_use_runtimelinking" = yes; then
9625
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9626
# instead of lib<name>.a to let people know that these are not
9627
# typical AIX shared libraries.
9628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630
# We preserve .a as extension for shared libraries through AIX4.2
9631
# and later when we are not doing run time linking.
9632
library_names_spec='${libname}${release}.a $libname.a'
9633
soname_spec='${libname}${release}${shared_ext}$major'
9635
shlibpath_var=LIBPATH
9640
library_names_spec='$libname.ixlibrary $libname.a'
9641
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9642
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'
9646
library_names_spec='${libname}${shared_ext}'
9647
dynamic_linker="$host_os ld.so"
9648
shlibpath_var=LIBRARY_PATH
9654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655
soname_spec='${libname}${release}${shared_ext}$major'
9656
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9657
shlibpath_var=LD_LIBRARY_PATH
9658
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9659
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9660
# the default ld.so.conf also contains /usr/contrib/lib and
9661
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9662
# libtool to hard-code these into programs
9665
cygwin* | mingw* | pw32*)
9666
version_type=windows
9671
case $GCC,$host_os in
9672
yes,cygwin* | yes,mingw* | yes,pw32*)
9673
library_names_spec='$libname.dll.a'
9674
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9675
postinstall_cmds='base_file=`basename \${file}`~
9676
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9677
dldir=$destdir/`dirname \$dlpath`~
9678
test -d \$dldir || mkdir -p \$dldir~
9679
$install_prog $dir/$dlname \$dldir/$dlname~
9680
chmod a+x \$dldir/$dlname'
9681
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9682
dlpath=$dir/\$dldll~
9684
shlibpath_overrides_runpath=yes
9688
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9689
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9690
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9693
# MinGW DLLs use traditional 'lib' prefix
9694
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9695
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9696
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9697
# It is most probably a Windows format PATH printed by
9698
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9699
# path with ; separators, and with drive letters. We can handle the
9700
# drive letters (cygwin fileutils understands them), so leave them,
9701
# especially as we might pass files found there to a mingw objdump,
9702
# which wouldn't understand a cygwinified path. Ahh.
9703
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9705
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9709
# pw32 DLLs use 'pw' prefix rather than 'lib'
9710
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9716
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9719
dynamic_linker='Win32 ld.exe'
9720
# FIXME: first we should search . and the directory the executable is in
9724
darwin* | rhapsody*)
9725
dynamic_linker="$host_os dyld"
9729
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9730
soname_spec='${libname}${release}${major}$shared_ext'
9731
shlibpath_overrides_runpath=yes
9732
shlibpath_var=DYLD_LIBRARY_PATH
9733
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9735
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9736
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9744
soname_spec='${libname}${release}${shared_ext}$major'
9745
shlibpath_var=LD_LIBRARY_PATH
9752
freebsd* | dragonfly*)
9753
# DragonFly does not have aout. When/if they implement a new
9754
# versioning mechanism, adjust this.
9755
if test -x /usr/bin/objformat; then
9756
objformat=`/usr/bin/objformat`
9759
freebsd[123]*) objformat=aout ;;
9763
version_type=freebsd-$objformat
9764
case $version_type in
9766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9771
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9775
shlibpath_var=LD_LIBRARY_PATH
9778
shlibpath_overrides_runpath=yes
9780
freebsd3.[01]* | freebsdelf3.[01]*)
9781
shlibpath_overrides_runpath=yes
9782
hardcode_into_libs=yes
9784
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9785
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9786
shlibpath_overrides_runpath=no
9787
hardcode_into_libs=yes
9789
*) # from 4.6 on, and DragonFly
9790
shlibpath_overrides_runpath=yes
9791
hardcode_into_libs=yes
9800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9801
soname_spec='${libname}${release}${shared_ext}$major'
9802
shlibpath_var=LD_LIBRARY_PATH
9803
hardcode_into_libs=yes
9806
hpux9* | hpux10* | hpux11*)
9807
# Give a soname corresponding to the major version so that dld.sl refuses to
9808
# link against other versions.
9815
hardcode_into_libs=yes
9816
dynamic_linker="$host_os dld.so"
9817
shlibpath_var=LD_LIBRARY_PATH
9818
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820
soname_spec='${libname}${release}${shared_ext}$major'
9821
if test "X$HPUX_IA64_MODE" = X32; then
9822
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9824
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9826
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9830
hardcode_into_libs=yes
9831
dynamic_linker="$host_os dld.sl"
9832
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9833
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835
soname_spec='${libname}${release}${shared_ext}$major'
9836
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9837
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9841
dynamic_linker="$host_os dld.sl"
9842
shlibpath_var=SHLIB_PATH
9843
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845
soname_spec='${libname}${release}${shared_ext}$major'
9848
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9849
postinstall_cmds='chmod 555 $lib'
9856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9857
soname_spec='${libname}${release}${shared_ext}$major'
9858
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9859
shlibpath_var=LD_LIBRARY_PATH
9860
shlibpath_overrides_runpath=no
9861
hardcode_into_libs=yes
9864
irix5* | irix6* | nonstopux*)
9866
nonstopux*) version_type=nonstopux ;;
9868
if test "$lt_cv_prog_gnu_ld" = yes; then
9876
soname_spec='${libname}${release}${shared_ext}$major'
9877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9879
irix5* | nonstopux*)
9883
case $LD in # libtool.m4 will add one of these switches to LD
9884
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9885
libsuff= shlibsuff= libmagic=32-bit;;
9886
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9887
libsuff=32 shlibsuff=N32 libmagic=N32;;
9888
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9889
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9890
*) libsuff= shlibsuff= libmagic=never-match;;
9894
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9895
shlibpath_overrides_runpath=no
9896
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9897
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9898
hardcode_into_libs=yes
9901
# No shared lib support for Linux oldld, aout, or coff.
9902
linux*oldld* | linux*aout* | linux*coff*)
9906
# This must be Linux ELF.
9907
linux* | k*bsd*-gnu)
9911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912
soname_spec='${libname}${release}${shared_ext}$major'
9913
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9914
shlibpath_var=LD_LIBRARY_PATH
9915
shlibpath_overrides_runpath=no
9916
# This implies no fast_install, which is unacceptable.
9917
# Some rework will be needed to allow for fast_install
9918
# before this can be enabled.
9919
hardcode_into_libs=yes
9921
# Append ld.so.conf contents to the search path
9922
if test -f /etc/ld.so.conf; then
9923
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' ' '`
9924
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9927
# We used to test for /lib/ld.so.1 and disable shared libraries on
9928
# powerpc, because MkLinux only supported shared libraries with the
9929
# GNU dynamic linker. Since this was broken with cross compilers,
9930
# most powerpc-linux boxes support dynamic linking these days and
9931
# people can always --disable-shared, the test was removed, and we
9932
# assume the GNU/Linux dynamic linker is in use.
9933
dynamic_linker='GNU/Linux ld.so'
9940
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943
dynamic_linker='NetBSD (a.out) ld.so'
9945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946
soname_spec='${libname}${release}${shared_ext}$major'
9947
dynamic_linker='NetBSD ld.elf_so'
9949
shlibpath_var=LD_LIBRARY_PATH
9950
shlibpath_overrides_runpath=yes
9951
hardcode_into_libs=yes
9956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957
shlibpath_var=LD_LIBRARY_PATH
9958
shlibpath_overrides_runpath=yes
9965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966
soname_spec='${libname}${release}${shared_ext}$major'
9967
shlibpath_var=LD_LIBRARY_PATH
9968
shlibpath_overrides_runpath=yes
9973
sys_lib_dlsearch_path_spec="/usr/lib"
9975
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9977
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9978
*) need_version=no ;;
9980
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9981
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9982
shlibpath_var=LD_LIBRARY_PATH
9983
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985
openbsd2.[89] | openbsd2.[89].*)
9986
shlibpath_overrides_runpath=no
9989
shlibpath_overrides_runpath=yes
9993
shlibpath_overrides_runpath=yes
9998
libname_spec='$name'
10001
library_names_spec='$libname${shared_ext} $libname.a'
10002
dynamic_linker='OS/2 ld.exe'
10003
shlibpath_var=LIBPATH
10006
osf3* | osf4* | osf5*)
10010
soname_spec='${libname}${release}${shared_ext}$major'
10011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012
shlibpath_var=LD_LIBRARY_PATH
10013
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10014
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026
soname_spec='${libname}${release}${shared_ext}$major'
10027
shlibpath_var=LD_LIBRARY_PATH
10028
shlibpath_overrides_runpath=yes
10029
hardcode_into_libs=yes
10030
# ldd complains unless libraries are executable
10031
postinstall_cmds='chmod +x $lib'
10036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10037
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10038
shlibpath_var=LD_LIBRARY_PATH
10039
shlibpath_overrides_runpath=yes
10040
if test "$with_gnu_ld" = yes; then
10048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049
soname_spec='${libname}${release}${shared_ext}$major'
10050
shlibpath_var=LD_LIBRARY_PATH
10051
case $host_vendor in
10053
shlibpath_overrides_runpath=no
10055
export_dynamic_flag_spec='${wl}-Blargedynsym'
10056
runpath_var=LD_RUN_PATH
10064
shlibpath_overrides_runpath=no
10065
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10071
if test -d /usr/nec ;then
10073
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10074
soname_spec='$libname${shared_ext}.$major'
10075
shlibpath_var=LD_LIBRARY_PATH
10079
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10080
version_type=freebsd-elf
10083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10084
soname_spec='${libname}${release}${shared_ext}$major'
10085
shlibpath_var=LD_LIBRARY_PATH
10086
hardcode_into_libs=yes
10087
if test "$with_gnu_ld" = yes; then
10088
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10089
shlibpath_overrides_runpath=no
10091
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10092
shlibpath_overrides_runpath=yes
10095
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10099
sys_lib_dlsearch_path_spec='/usr/lib'
10104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105
soname_spec='${libname}${release}${shared_ext}$major'
10106
shlibpath_var=LD_LIBRARY_PATH
10113
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10114
$as_echo "$dynamic_linker" >&6; }
10115
test "$dynamic_linker" = no && can_build_shared=no
10117
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10118
$as_echo_n "(cached) " >&6
10120
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10123
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10124
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10125
$as_echo_n "(cached) " >&6
10127
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10130
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10132
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10133
if test "$GCC" = yes; then
10134
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10137
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10138
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10140
if test -n "$hardcode_libdir_flag_spec" || \
10141
test -n "$runpath_var" || \
10142
test "X$hardcode_automatic" = "Xyes" ; then
10144
# We can hardcode non-existant directories.
10145
if test "$hardcode_direct" != no &&
10146
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10147
# have to relink, otherwise we might link with an installed library
10148
# when we should be linking with a yet-to-be-installed one
10149
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10150
test "$hardcode_minus_L" != no; then
10151
# Linking always hardcodes the temporary library directory.
10152
hardcode_action=relink
10154
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10155
hardcode_action=immediate
10158
# We cannot hardcode anything, or else we can only hardcode existing
10160
hardcode_action=unsupported
10162
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10163
$as_echo "$hardcode_action" >&6; }
10165
if test "$hardcode_action" = relink; then
10166
# Fast installation is not supported
10167
enable_fast_install=no
10168
elif test "$shlibpath_overrides_runpath" = yes ||
10169
test "$enable_shared" = no; then
10170
# Fast installation is not necessary
10171
enable_fast_install=needless
10176
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10177
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10178
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10179
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10180
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10181
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10182
$as_echo "yes" >&6; }
10184
# FIXME - insert some real tests, host_os isn't really good enough
10187
if test -n "$STRIP" ; then
10188
striplib="$STRIP -x"
10189
old_striplib="$STRIP -S"
10190
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10191
$as_echo "yes" >&6; }
10193
{ $as_echo "$as_me:$LINENO: result: no" >&5
10194
$as_echo "no" >&6; }
10198
{ $as_echo "$as_me:$LINENO: result: no" >&5
10199
$as_echo "no" >&6; }
10204
if test "x$enable_dlopen" != xyes; then
10205
enable_dlopen=unknown
10206
enable_dlopen_self=unknown
10207
enable_dlopen_self_static=unknown
10214
lt_cv_dlopen="load_add_on"
10216
lt_cv_dlopen_self=yes
10220
lt_cv_dlopen="LoadLibrary"
10225
lt_cv_dlopen="dlopen"
10230
# if libdl is installed we need to link against it
10231
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10232
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10233
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10234
$as_echo_n "(cached) " >&6
10236
ac_check_lib_save_LIBS=$LIBS
10238
cat >conftest.$ac_ext <<_ACEOF
10241
cat confdefs.h >>conftest.$ac_ext
10242
cat >>conftest.$ac_ext <<_ACEOF
10243
/* end confdefs.h. */
10245
/* Override any GCC internal prototype to avoid an error.
10246
Use char because int might match the return type of a GCC
10247
builtin and then its argument prototype would still apply. */
10260
rm -f conftest.$ac_objext conftest$ac_exeext
10261
if { (ac_try="$ac_link"
10262
case "(($ac_try" in
10263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264
*) ac_try_echo=$ac_try;;
10266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10267
$as_echo "$ac_try_echo") >&5
10268
(eval "$ac_link") 2>conftest.er1
10270
grep -v '^ *+' conftest.er1 >conftest.err
10272
cat conftest.err >&5
10273
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274
(exit $ac_status); } && {
10275
test -z "$ac_c_werror_flag" ||
10276
test ! -s conftest.err
10277
} && test -s conftest$ac_exeext && {
10278
test "$cross_compiling" = yes ||
10279
$as_test_x conftest$ac_exeext
10281
ac_cv_lib_dl_dlopen=yes
10283
$as_echo "$as_me: failed program was:" >&5
10284
sed 's/^/| /' conftest.$ac_ext >&5
10286
ac_cv_lib_dl_dlopen=no
10289
rm -rf conftest.dSYM
10290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291
conftest$ac_exeext conftest.$ac_ext
10292
LIBS=$ac_check_lib_save_LIBS
10294
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10295
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10296
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10297
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10300
lt_cv_dlopen="dyld"
10302
lt_cv_dlopen_self=yes
10309
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10310
$as_echo_n "checking for shl_load... " >&6; }
10311
if test "${ac_cv_func_shl_load+set}" = set; then
10312
$as_echo_n "(cached) " >&6
10314
cat >conftest.$ac_ext <<_ACEOF
10317
cat confdefs.h >>conftest.$ac_ext
10318
cat >>conftest.$ac_ext <<_ACEOF
10319
/* end confdefs.h. */
10320
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10321
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10322
#define shl_load innocuous_shl_load
10324
/* System header to define __stub macros and hopefully few prototypes,
10325
which can conflict with char shl_load (); below.
10326
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10327
<limits.h> exists even on freestanding compilers. */
10330
# include <limits.h>
10332
# include <assert.h>
10337
/* Override any GCC internal prototype to avoid an error.
10338
Use char because int might match the return type of a GCC
10339
builtin and then its argument prototype would still apply. */
10344
/* The GNU C library defines this for functions which it implements
10345
to always fail with ENOSYS. Some functions are actually named
10346
something starting with __ and the normal name is an alias. */
10347
#if defined __stub_shl_load || defined __stub___shl_load
10354
return shl_load ();
10359
rm -f conftest.$ac_objext conftest$ac_exeext
10360
if { (ac_try="$ac_link"
10361
case "(($ac_try" in
10362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363
*) ac_try_echo=$ac_try;;
10365
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10366
$as_echo "$ac_try_echo") >&5
10367
(eval "$ac_link") 2>conftest.er1
10369
grep -v '^ *+' conftest.er1 >conftest.err
10371
cat conftest.err >&5
10372
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373
(exit $ac_status); } && {
10374
test -z "$ac_c_werror_flag" ||
10375
test ! -s conftest.err
10376
} && test -s conftest$ac_exeext && {
10377
test "$cross_compiling" = yes ||
10378
$as_test_x conftest$ac_exeext
10380
ac_cv_func_shl_load=yes
10382
$as_echo "$as_me: failed program was:" >&5
10383
sed 's/^/| /' conftest.$ac_ext >&5
10385
ac_cv_func_shl_load=no
10388
rm -rf conftest.dSYM
10389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390
conftest$ac_exeext conftest.$ac_ext
10392
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10393
$as_echo "$ac_cv_func_shl_load" >&6; }
10394
if test "x$ac_cv_func_shl_load" = x""yes; then
10395
lt_cv_dlopen="shl_load"
10397
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10398
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10399
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10400
$as_echo_n "(cached) " >&6
10402
ac_check_lib_save_LIBS=$LIBS
10404
cat >conftest.$ac_ext <<_ACEOF
10407
cat confdefs.h >>conftest.$ac_ext
10408
cat >>conftest.$ac_ext <<_ACEOF
10409
/* end confdefs.h. */
10411
/* Override any GCC internal prototype to avoid an error.
10412
Use char because int might match the return type of a GCC
10413
builtin and then its argument prototype would still apply. */
10421
return shl_load ();
10426
rm -f conftest.$ac_objext conftest$ac_exeext
10427
if { (ac_try="$ac_link"
10428
case "(($ac_try" in
10429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430
*) ac_try_echo=$ac_try;;
10432
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10433
$as_echo "$ac_try_echo") >&5
10434
(eval "$ac_link") 2>conftest.er1
10436
grep -v '^ *+' conftest.er1 >conftest.err
10438
cat conftest.err >&5
10439
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440
(exit $ac_status); } && {
10441
test -z "$ac_c_werror_flag" ||
10442
test ! -s conftest.err
10443
} && test -s conftest$ac_exeext && {
10444
test "$cross_compiling" = yes ||
10445
$as_test_x conftest$ac_exeext
10447
ac_cv_lib_dld_shl_load=yes
10449
$as_echo "$as_me: failed program was:" >&5
10450
sed 's/^/| /' conftest.$ac_ext >&5
10452
ac_cv_lib_dld_shl_load=no
10455
rm -rf conftest.dSYM
10456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10457
conftest$ac_exeext conftest.$ac_ext
10458
LIBS=$ac_check_lib_save_LIBS
10460
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10461
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10462
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10463
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10465
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10466
$as_echo_n "checking for dlopen... " >&6; }
10467
if test "${ac_cv_func_dlopen+set}" = set; then
10468
$as_echo_n "(cached) " >&6
10470
cat >conftest.$ac_ext <<_ACEOF
10473
cat confdefs.h >>conftest.$ac_ext
10474
cat >>conftest.$ac_ext <<_ACEOF
10475
/* end confdefs.h. */
10476
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10477
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10478
#define dlopen innocuous_dlopen
10480
/* System header to define __stub macros and hopefully few prototypes,
10481
which can conflict with char dlopen (); below.
10482
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10483
<limits.h> exists even on freestanding compilers. */
10486
# include <limits.h>
10488
# include <assert.h>
10493
/* Override any GCC internal prototype to avoid an error.
10494
Use char because int might match the return type of a GCC
10495
builtin and then its argument prototype would still apply. */
10500
/* The GNU C library defines this for functions which it implements
10501
to always fail with ENOSYS. Some functions are actually named
10502
something starting with __ and the normal name is an alias. */
10503
#if defined __stub_dlopen || defined __stub___dlopen
10515
rm -f conftest.$ac_objext conftest$ac_exeext
10516
if { (ac_try="$ac_link"
10517
case "(($ac_try" in
10518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519
*) ac_try_echo=$ac_try;;
10521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10522
$as_echo "$ac_try_echo") >&5
10523
(eval "$ac_link") 2>conftest.er1
10525
grep -v '^ *+' conftest.er1 >conftest.err
10527
cat conftest.err >&5
10528
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529
(exit $ac_status); } && {
10530
test -z "$ac_c_werror_flag" ||
10531
test ! -s conftest.err
10532
} && test -s conftest$ac_exeext && {
10533
test "$cross_compiling" = yes ||
10534
$as_test_x conftest$ac_exeext
10536
ac_cv_func_dlopen=yes
10538
$as_echo "$as_me: failed program was:" >&5
10539
sed 's/^/| /' conftest.$ac_ext >&5
10541
ac_cv_func_dlopen=no
10544
rm -rf conftest.dSYM
10545
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546
conftest$ac_exeext conftest.$ac_ext
10548
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10549
$as_echo "$ac_cv_func_dlopen" >&6; }
10550
if test "x$ac_cv_func_dlopen" = x""yes; then
10551
lt_cv_dlopen="dlopen"
10553
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10554
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10555
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10556
$as_echo_n "(cached) " >&6
10558
ac_check_lib_save_LIBS=$LIBS
10560
cat >conftest.$ac_ext <<_ACEOF
10563
cat confdefs.h >>conftest.$ac_ext
10564
cat >>conftest.$ac_ext <<_ACEOF
10565
/* end confdefs.h. */
10567
/* Override any GCC internal prototype to avoid an error.
10568
Use char because int might match the return type of a GCC
10569
builtin and then its argument prototype would still apply. */
10582
rm -f conftest.$ac_objext conftest$ac_exeext
10583
if { (ac_try="$ac_link"
10584
case "(($ac_try" in
10585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586
*) ac_try_echo=$ac_try;;
10588
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10589
$as_echo "$ac_try_echo") >&5
10590
(eval "$ac_link") 2>conftest.er1
10592
grep -v '^ *+' conftest.er1 >conftest.err
10594
cat conftest.err >&5
10595
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596
(exit $ac_status); } && {
10597
test -z "$ac_c_werror_flag" ||
10598
test ! -s conftest.err
10599
} && test -s conftest$ac_exeext && {
10600
test "$cross_compiling" = yes ||
10601
$as_test_x conftest$ac_exeext
10603
ac_cv_lib_dl_dlopen=yes
10605
$as_echo "$as_me: failed program was:" >&5
10606
sed 's/^/| /' conftest.$ac_ext >&5
10608
ac_cv_lib_dl_dlopen=no
10611
rm -rf conftest.dSYM
10612
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10613
conftest$ac_exeext conftest.$ac_ext
10614
LIBS=$ac_check_lib_save_LIBS
10616
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10617
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10618
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10619
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10621
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10622
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10623
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10624
$as_echo_n "(cached) " >&6
10626
ac_check_lib_save_LIBS=$LIBS
10627
LIBS="-lsvld $LIBS"
10628
cat >conftest.$ac_ext <<_ACEOF
10631
cat confdefs.h >>conftest.$ac_ext
10632
cat >>conftest.$ac_ext <<_ACEOF
10633
/* end confdefs.h. */
10635
/* Override any GCC internal prototype to avoid an error.
10636
Use char because int might match the return type of a GCC
10637
builtin and then its argument prototype would still apply. */
10650
rm -f conftest.$ac_objext conftest$ac_exeext
10651
if { (ac_try="$ac_link"
10652
case "(($ac_try" in
10653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654
*) ac_try_echo=$ac_try;;
10656
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10657
$as_echo "$ac_try_echo") >&5
10658
(eval "$ac_link") 2>conftest.er1
10660
grep -v '^ *+' conftest.er1 >conftest.err
10662
cat conftest.err >&5
10663
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664
(exit $ac_status); } && {
10665
test -z "$ac_c_werror_flag" ||
10666
test ! -s conftest.err
10667
} && test -s conftest$ac_exeext && {
10668
test "$cross_compiling" = yes ||
10669
$as_test_x conftest$ac_exeext
10671
ac_cv_lib_svld_dlopen=yes
10673
$as_echo "$as_me: failed program was:" >&5
10674
sed 's/^/| /' conftest.$ac_ext >&5
10676
ac_cv_lib_svld_dlopen=no
10679
rm -rf conftest.dSYM
10680
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10681
conftest$ac_exeext conftest.$ac_ext
10682
LIBS=$ac_check_lib_save_LIBS
10684
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10685
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10686
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10687
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10689
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10690
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10691
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10692
$as_echo_n "(cached) " >&6
10694
ac_check_lib_save_LIBS=$LIBS
10696
cat >conftest.$ac_ext <<_ACEOF
10699
cat confdefs.h >>conftest.$ac_ext
10700
cat >>conftest.$ac_ext <<_ACEOF
10701
/* end confdefs.h. */
10703
/* Override any GCC internal prototype to avoid an error.
10704
Use char because int might match the return type of a GCC
10705
builtin and then its argument prototype would still apply. */
10713
return dld_link ();
10718
rm -f conftest.$ac_objext conftest$ac_exeext
10719
if { (ac_try="$ac_link"
10720
case "(($ac_try" in
10721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722
*) ac_try_echo=$ac_try;;
10724
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10725
$as_echo "$ac_try_echo") >&5
10726
(eval "$ac_link") 2>conftest.er1
10728
grep -v '^ *+' conftest.er1 >conftest.err
10730
cat conftest.err >&5
10731
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732
(exit $ac_status); } && {
10733
test -z "$ac_c_werror_flag" ||
10734
test ! -s conftest.err
10735
} && test -s conftest$ac_exeext && {
10736
test "$cross_compiling" = yes ||
10737
$as_test_x conftest$ac_exeext
10739
ac_cv_lib_dld_dld_link=yes
10741
$as_echo "$as_me: failed program was:" >&5
10742
sed 's/^/| /' conftest.$ac_ext >&5
10744
ac_cv_lib_dld_dld_link=no
10747
rm -rf conftest.dSYM
10748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749
conftest$ac_exeext conftest.$ac_ext
10750
LIBS=$ac_check_lib_save_LIBS
10752
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10753
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10754
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10755
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10776
if test "x$lt_cv_dlopen" != xno; then
10782
case $lt_cv_dlopen in
10784
save_CPPFLAGS="$CPPFLAGS"
10785
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10787
save_LDFLAGS="$LDFLAGS"
10788
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10791
LIBS="$lt_cv_dlopen_libs $LIBS"
10793
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10794
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10795
if test "${lt_cv_dlopen_self+set}" = set; then
10796
$as_echo_n "(cached) " >&6
10798
if test "$cross_compiling" = yes; then :
10799
lt_cv_dlopen_self=cross
10801
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10802
lt_status=$lt_dlunknown
10803
cat > conftest.$ac_ext <<EOF
10804
#line 10804 "configure"
10805
#include "confdefs.h"
10814
# define LT_DLGLOBAL RTLD_GLOBAL
10817
# define LT_DLGLOBAL DL_GLOBAL
10819
# define LT_DLGLOBAL 0
10823
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10824
find out it does not work in some platform. */
10825
#ifndef LT_DLLAZY_OR_NOW
10827
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10830
# define LT_DLLAZY_OR_NOW DL_LAZY
10833
# define LT_DLLAZY_OR_NOW RTLD_NOW
10836
# define LT_DLLAZY_OR_NOW DL_NOW
10838
# define LT_DLLAZY_OR_NOW 0
10846
extern "C" void exit (int);
10849
void fnord() { int i=42;}
10852
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10853
int status = $lt_dlunknown;
10857
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10858
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10859
/* dlclose (self); */
10867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868
(eval $ac_link) 2>&5
10870
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10872
(./conftest; exit; ) >&5 2>/dev/null
10874
case x$lt_status in
10875
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10876
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10877
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10880
# compilation failed
10881
lt_cv_dlopen_self=no
10888
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10889
$as_echo "$lt_cv_dlopen_self" >&6; }
10891
if test "x$lt_cv_dlopen_self" = xyes; then
10892
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10893
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10894
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10895
if test "${lt_cv_dlopen_self_static+set}" = set; then
10896
$as_echo_n "(cached) " >&6
10898
if test "$cross_compiling" = yes; then :
10899
lt_cv_dlopen_self_static=cross
10901
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10902
lt_status=$lt_dlunknown
10903
cat > conftest.$ac_ext <<EOF
10904
#line 10904 "configure"
10905
#include "confdefs.h"
10914
# define LT_DLGLOBAL RTLD_GLOBAL
10917
# define LT_DLGLOBAL DL_GLOBAL
10919
# define LT_DLGLOBAL 0
10923
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10924
find out it does not work in some platform. */
10925
#ifndef LT_DLLAZY_OR_NOW
10927
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10930
# define LT_DLLAZY_OR_NOW DL_LAZY
10933
# define LT_DLLAZY_OR_NOW RTLD_NOW
10936
# define LT_DLLAZY_OR_NOW DL_NOW
10938
# define LT_DLLAZY_OR_NOW 0
10946
extern "C" void exit (int);
10949
void fnord() { int i=42;}
10952
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10953
int status = $lt_dlunknown;
10957
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10958
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10959
/* dlclose (self); */
10967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968
(eval $ac_link) 2>&5
10970
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10972
(./conftest; exit; ) >&5 2>/dev/null
10974
case x$lt_status in
10975
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10976
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10977
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10980
# compilation failed
10981
lt_cv_dlopen_self_static=no
10988
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10989
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10992
CPPFLAGS="$save_CPPFLAGS"
10993
LDFLAGS="$save_LDFLAGS"
10998
case $lt_cv_dlopen_self in
10999
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11000
*) enable_dlopen_self=unknown ;;
11003
case $lt_cv_dlopen_self_static in
11004
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11005
*) enable_dlopen_self_static=unknown ;;
11010
# Report which library types will actually be built
11011
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11012
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11013
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11014
$as_echo "$can_build_shared" >&6; }
11016
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11017
$as_echo_n "checking whether to build shared libraries... " >&6; }
11018
test "$can_build_shared" = "no" && enable_shared=no
11020
# On AIX, shared libraries and static libraries use the same namespace, and
11021
# are all built from PIC.
11024
test "$enable_shared" = yes && enable_static=no
11025
if test -n "$RANLIB"; then
11026
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11027
postinstall_cmds='$RANLIB $lib'
11032
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11033
test "$enable_shared" = yes && enable_static=no
11037
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11038
$as_echo "$enable_shared" >&6; }
11040
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11041
$as_echo_n "checking whether to build static libraries... " >&6; }
11042
# Make sure either enable_shared or enable_static is yes.
11043
test "$enable_shared" = yes || enable_static=yes
11044
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11045
$as_echo "$enable_static" >&6; }
11047
# The else clause should only fire when bootstrapping the
11048
# libtool distribution, otherwise you forgot to ship ltmain.sh
11049
# with your package, and you will get complaints that there are
11050
# no rules to generate ltmain.sh.
11051
if test -f "$ltmain"; then
11052
# See if we are running on zsh, and set the options which allow our commands through
11053
# without removal of \ escapes.
11054
if test -n "${ZSH_VERSION+set}" ; then
11055
setopt NO_GLOB_SUBST
11057
# Now quote all the things that may contain metacharacters while being
11058
# careful not to overquote the AC_SUBSTed values. We take copies of the
11059
# variables and quote the copies for generation of the libtool script.
11060
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11062
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11063
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11064
deplibs_check_method reload_flag reload_cmds need_locks \
11065
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11066
lt_cv_sys_global_symbol_to_c_name_address \
11067
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11068
old_postinstall_cmds old_postuninstall_cmds \
11072
lt_prog_compiler_wl \
11073
lt_prog_compiler_pic \
11074
lt_prog_compiler_static \
11075
lt_prog_compiler_no_builtin_flag \
11076
export_dynamic_flag_spec \
11077
thread_safe_flag_spec \
11078
whole_archive_flag_spec \
11079
enable_shared_with_static_runtimes \
11081
old_archive_from_new_cmds \
11086
compiler_lib_search_path \
11087
compiler_lib_search_dirs \
11089
archive_expsym_cmds \
11091
postuninstall_cmds \
11092
old_archive_from_expsyms_cmds \
11093
allow_undefined_flag \
11094
no_undefined_flag \
11095
export_symbols_cmds \
11096
hardcode_libdir_flag_spec \
11097
hardcode_libdir_flag_spec_ld \
11098
hardcode_libdir_separator \
11099
hardcode_automatic \
11101
module_expsym_cmds \
11102
lt_cv_prog_compiler_c_o \
11105
include_expsyms; do
11108
old_archive_cmds | \
11109
old_archive_from_new_cmds | \
11111
archive_expsym_cmds | \
11113
module_expsym_cmds | \
11114
old_archive_from_expsyms_cmds | \
11115
export_symbols_cmds | \
11116
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11117
postinstall_cmds | postuninstall_cmds | \
11118
old_postinstall_cmds | old_postuninstall_cmds | \
11119
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11120
# Double-quote double-evaled strings.
11121
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11124
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11130
*'\$0 --fallback-echo"')
11131
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11135
cfgfile="${ofile}T"
11136
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11138
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
11139
$as_echo "$as_me: creating $ofile" >&6;}
11141
cat <<__EOF__ >> "$cfgfile"
11144
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11145
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11146
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11148
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11149
# Free Software Foundation, Inc.
11151
# This file is part of GNU Libtool:
11152
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11154
# This program is free software; you can redistribute it and/or modify
11155
# it under the terms of the GNU General Public License as published by
11156
# the Free Software Foundation; either version 2 of the License, or
11157
# (at your option) any later version.
11159
# This program is distributed in the hope that it will be useful, but
11160
# WITHOUT ANY WARRANTY; without even the implied warranty of
11161
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11162
# General Public License for more details.
11164
# You should have received a copy of the GNU General Public License
11165
# along with this program; if not, write to the Free Software
11166
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11168
# As a special exception to the GNU General Public License, if you
11169
# distribute this file as part of a program that contains a
11170
# configuration script generated by Autoconf, you may include it under
11171
# the same distribution terms that you use for the rest of that program.
11173
# A sed program that does not truncate output.
11176
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11177
Xsed="$SED -e 1s/^X//"
11179
# The HP-UX ksh and POSIX shell print the target directory to stdout
11180
# if CDPATH is set.
11181
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11183
# The names of the tagged configurations supported by this script.
11186
# ### BEGIN LIBTOOL CONFIG
11188
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11190
# Shell to use when invoking shell scripts.
11193
# Whether or not to build shared libraries.
11194
build_libtool_libs=$enable_shared
11196
# Whether or not to build static libraries.
11197
build_old_libs=$enable_static
11199
# Whether or not to add -lc for building shared libraries.
11200
build_libtool_need_lc=$archive_cmds_need_lc
11202
# Whether or not to disallow shared libs when runtime libs are static
11203
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11205
# Whether or not to optimize for fast installation.
11206
fast_install=$enable_fast_install
11209
host_alias=$host_alias
11213
# The build system.
11214
build_alias=$build_alias
11218
# An echo program that does not interpret backslashes.
11223
AR_FLAGS=$lt_AR_FLAGS
11228
# LTCC compiler flags.
11229
LTCFLAGS=$lt_LTCFLAGS
11231
# A language-specific compiler.
11234
# Is the compiler the GNU C compiler?
11240
# The linker used to build libraries.
11243
# Whether we need hard or soft links.
11246
# A BSD-compatible nm program.
11249
# A symbol stripping program
11252
# Used to examine libraries when file_magic_cmd begins "file"
11253
MAGIC_CMD=$MAGIC_CMD
11255
# Used on cygwin: DLL creation program.
11258
# Used on cygwin: object dumper.
11261
# Used on cygwin: assembler.
11264
# The name of the directory that contains temporary libtool files.
11267
# How to create reloadable object files.
11268
reload_flag=$lt_reload_flag
11269
reload_cmds=$lt_reload_cmds
11271
# How to pass a linker flag through the compiler.
11272
wl=$lt_lt_prog_compiler_wl
11274
# Object file suffix (normally "o").
11275
objext="$ac_objext"
11277
# Old archive suffix (normally "a").
11280
# Shared library suffix (normally ".so").
11281
shrext_cmds='$shrext_cmds'
11283
# Executable file suffix (normally "").
11286
# Additional compiler flags for building library objects.
11287
pic_flag=$lt_lt_prog_compiler_pic
11290
# What is the maximum length of a command?
11291
max_cmd_len=$lt_cv_sys_max_cmd_len
11293
# Does compiler simultaneously support -c and -o options?
11294
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11296
# Must we lock files when doing compilation?
11297
need_locks=$lt_need_locks
11299
# Do we need the lib prefix for modules?
11300
need_lib_prefix=$need_lib_prefix
11302
# Do we need a version for libraries?
11303
need_version=$need_version
11305
# Whether dlopen is supported.
11306
dlopen_support=$enable_dlopen
11308
# Whether dlopen of programs is supported.
11309
dlopen_self=$enable_dlopen_self
11311
# Whether dlopen of statically linked programs is supported.
11312
dlopen_self_static=$enable_dlopen_self_static
11314
# Compiler flag to prevent dynamic linking.
11315
link_static_flag=$lt_lt_prog_compiler_static
11317
# Compiler flag to turn off builtin functions.
11318
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11320
# Compiler flag to allow reflexive dlopens.
11321
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11323
# Compiler flag to generate shared objects directly from archives.
11324
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11326
# Compiler flag to generate thread-safe objects.
11327
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11329
# Library versioning type.
11330
version_type=$version_type
11332
# Format of library name prefix.
11333
libname_spec=$lt_libname_spec
11335
# List of archive names. First name is the real one, the rest are links.
11336
# The last name is the one that the linker finds with -lNAME.
11337
library_names_spec=$lt_library_names_spec
11339
# The coded name of the library, if different from the real name.
11340
soname_spec=$lt_soname_spec
11342
# Commands used to build and install an old-style archive.
11344
old_archive_cmds=$lt_old_archive_cmds
11345
old_postinstall_cmds=$lt_old_postinstall_cmds
11346
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11348
# Create an old-style archive from a shared archive.
11349
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11351
# Create a temporary old-style archive to link instead of a shared archive.
11352
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11354
# Commands used to build and install a shared archive.
11355
archive_cmds=$lt_archive_cmds
11356
archive_expsym_cmds=$lt_archive_expsym_cmds
11357
postinstall_cmds=$lt_postinstall_cmds
11358
postuninstall_cmds=$lt_postuninstall_cmds
11360
# Commands used to build a loadable module (assumed same as above if empty)
11361
module_cmds=$lt_module_cmds
11362
module_expsym_cmds=$lt_module_expsym_cmds
11364
# Commands to strip libraries.
11365
old_striplib=$lt_old_striplib
11366
striplib=$lt_striplib
11368
# Dependencies to place before the objects being linked to create a
11370
predep_objects=$lt_predep_objects
11372
# Dependencies to place after the objects being linked to create a
11374
postdep_objects=$lt_postdep_objects
11376
# Dependencies to place before the objects being linked to create a
11378
predeps=$lt_predeps
11380
# Dependencies to place after the objects being linked to create a
11382
postdeps=$lt_postdeps
11384
# The directories searched by this compiler when creating a shared
11386
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11388
# The library search path used internally by the compiler when linking
11389
# a shared library.
11390
compiler_lib_search_path=$lt_compiler_lib_search_path
11392
# Method to check whether dependent libraries are shared objects.
11393
deplibs_check_method=$lt_deplibs_check_method
11395
# Command to use when deplibs_check_method == file_magic.
11396
file_magic_cmd=$lt_file_magic_cmd
11398
# Flag that allows shared libraries with undefined symbols to be built.
11399
allow_undefined_flag=$lt_allow_undefined_flag
11401
# Flag that forces no undefined symbols.
11402
no_undefined_flag=$lt_no_undefined_flag
11404
# Commands used to finish a libtool library installation in a directory.
11405
finish_cmds=$lt_finish_cmds
11407
# Same as above, but a single script fragment to be evaled but not shown.
11408
finish_eval=$lt_finish_eval
11410
# Take the output of nm and produce a listing of raw symbols and C names.
11411
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11413
# Transform the output of nm in a proper C declaration
11414
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11416
# Transform the output of nm in a C name address pair
11417
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11419
# This is the shared library runtime path variable.
11420
runpath_var=$runpath_var
11422
# This is the shared library path variable.
11423
shlibpath_var=$shlibpath_var
11425
# Is shlibpath searched before the hard-coded library search path?
11426
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11428
# How to hardcode a shared library path into an executable.
11429
hardcode_action=$hardcode_action
11431
# Whether we should hardcode library paths into libraries.
11432
hardcode_into_libs=$hardcode_into_libs
11434
# Flag to hardcode \$libdir into a binary during linking.
11435
# This must work even if \$libdir does not exist.
11436
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11438
# If ld is used when linking, flag to hardcode \$libdir into
11439
# a binary during linking. This must work even if \$libdir does
11441
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11443
# Whether we need a single -rpath flag with a separated argument.
11444
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11446
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11447
# resulting binary.
11448
hardcode_direct=$hardcode_direct
11450
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11451
# resulting binary.
11452
hardcode_minus_L=$hardcode_minus_L
11454
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11455
# the resulting binary.
11456
hardcode_shlibpath_var=$hardcode_shlibpath_var
11458
# Set to yes if building a shared library automatically hardcodes DIR into the library
11459
# and all subsequent libraries and executables linked against it.
11460
hardcode_automatic=$hardcode_automatic
11462
# Variables whose values should be saved in libtool wrapper scripts and
11463
# restored at relink time.
11464
variables_saved_for_relink="$variables_saved_for_relink"
11466
# Whether libtool must link a program against all its dependency libraries.
11467
link_all_deplibs=$link_all_deplibs
11469
# Compile-time system search path for libraries
11470
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11472
# Run-time system search path for libraries
11473
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11475
# Fix the shell variable \$srcfile for the compiler.
11476
fix_srcfile_path=$lt_fix_srcfile_path
11478
# Set to yes if exported symbols are required.
11479
always_export_symbols=$always_export_symbols
11481
# The commands to list exported symbols.
11482
export_symbols_cmds=$lt_export_symbols_cmds
11484
# The commands to extract the exported symbol list from a shared archive.
11485
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11487
# Symbols that should not be listed in the preloaded symbols.
11488
exclude_expsyms=$lt_exclude_expsyms
11490
# Symbols that must always be exported.
11491
include_expsyms=$lt_include_expsyms
11493
# ### END LIBTOOL CONFIG
11500
cat <<\EOF >> "$cfgfile"
11502
# AIX sometimes has problems with the GCC collect2 program. For some
11503
# reason, if we set the COLLECT_NAMES environment variable, the problems
11504
# vanish in a puff of smoke.
11505
if test "X${COLLECT_NAMES+set}" != Xset; then
11507
export COLLECT_NAMES
11513
# We use sed instead of cat because bash on DJGPP gets confused if
11514
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11515
# text mode, it properly converts lines to CR/LF. This bash problem
11516
# is reportedly fixed, but why not run on old versions too?
11517
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11519
mv -f "$cfgfile" "$ofile" || \
11520
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11524
# If there is no Makefile yet, we rely on a make rule to execute
11525
# `config.status --recheck' to rerun these tests and create the
11526
# libtool script then.
11527
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11528
if test -f "$ltmain_in"; then
11529
test -f Makefile && make "$ltmain"
11535
ac_cpp='$CPP $CPPFLAGS'
11536
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11543
# Check whether --with-tags was given.
11544
if test "${with_tags+set}" = set; then
11545
withval=$with_tags; tagnames="$withval"
11549
if test -f "$ltmain" && test -n "$tagnames"; then
11550
if test ! -f "${ofile}"; then
11551
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11552
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11555
if test -z "$LTCC"; then
11556
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11557
if test -z "$LTCC"; then
11558
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11559
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11561
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11562
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11565
if test -z "$LTCFLAGS"; then
11566
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11569
# Extract list of available tagged configurations in $ofile.
11570
# Note that this assumes the entire list is on one line.
11571
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11573
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11574
for tagname in $tagnames; do
11576
# Check whether tagname contains only valid characters
11577
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11579
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11580
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11581
{ (exit 1); exit 1; }; }
11585
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11587
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11588
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11589
{ (exit 1); exit 1; }; }
11592
# Update the list of available tags.
11593
if test -n "$tagname"; then
11594
echo appending configuration tag \"$tagname\" to $ofile
11598
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11599
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11600
(test "X$CXX" != "Xg++"))) ; then
11602
ac_cpp='$CXXCPP $CPPFLAGS'
11603
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11610
archive_cmds_need_lc_CXX=no
11611
allow_undefined_flag_CXX=
11612
always_export_symbols_CXX=no
11613
archive_expsym_cmds_CXX=
11614
export_dynamic_flag_spec_CXX=
11615
hardcode_direct_CXX=no
11616
hardcode_libdir_flag_spec_CXX=
11617
hardcode_libdir_flag_spec_ld_CXX=
11618
hardcode_libdir_separator_CXX=
11619
hardcode_minus_L_CXX=no
11620
hardcode_shlibpath_var_CXX=unsupported
11621
hardcode_automatic_CXX=no
11623
module_expsym_cmds_CXX=
11624
link_all_deplibs_CXX=unknown
11625
old_archive_cmds_CXX=$old_archive_cmds
11626
no_undefined_flag_CXX=
11627
whole_archive_flag_spec_CXX=
11628
enable_shared_with_static_runtimes_CXX=no
11630
# Dependencies to place before and after the object being linked:
11631
predep_objects_CXX=
11632
postdep_objects_CXX=
11635
compiler_lib_search_path_CXX=
11636
compiler_lib_search_dirs_CXX=
11638
# Source file extension for C++ test sources.
11641
# Object file extension for compiled C++ test sources.
11645
# Code to be used in simple compile tests
11646
lt_simple_compile_test_code="int some_variable = 0;"
11648
# Code to be used in simple link tests
11649
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11651
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11653
# If no C compiler was specified, use CC.
11656
# If no C compiler flags were specified, use CFLAGS.
11657
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11659
# Allow CC to be a program name with arguments.
11663
# save warnings/boilerplate of simple test code
11664
ac_outfile=conftest.$ac_objext
11665
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11666
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11667
_lt_compiler_boilerplate=`cat conftest.err`
11670
ac_outfile=conftest.$ac_objext
11671
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11672
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11673
_lt_linker_boilerplate=`cat conftest.err`
11677
# Allow CC to be a program name with arguments.
11682
lt_save_with_gnu_ld=$with_gnu_ld
11683
lt_save_path_LD=$lt_cv_path_LD
11684
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11685
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11687
$as_unset lt_cv_prog_gnu_ld
11689
if test -n "${lt_cv_path_LDCXX+set}"; then
11690
lt_cv_path_LD=$lt_cv_path_LDCXX
11692
$as_unset lt_cv_path_LD
11694
test -z "${LDCXX+set}" || LD=$LDCXX
11698
for cc_temp in $compiler""; do
11700
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11701
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11706
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11709
# We don't want -fno-exception wen compiling C++ code, so set the
11710
# no_builtin_flag separately
11711
if test "$GXX" = yes; then
11712
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11714
lt_prog_compiler_no_builtin_flag_CXX=
11717
if test "$GXX" = yes; then
11718
# Set up default GNU C++ configuration
11721
# Check whether --with-gnu-ld was given.
11722
if test "${with_gnu_ld+set}" = set; then
11723
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11729
if test "$GCC" = yes; then
11730
# Check if gcc -print-prog-name=ld gives a path.
11731
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11732
$as_echo_n "checking for ld used by $CC... " >&6; }
11735
# gcc leaves a trailing carriage return which upsets mingw
11736
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11738
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11741
# Accept absolute paths.
11743
re_direlt='/[^/][^/]*/\.\./'
11744
# Canonicalize the pathname of ld
11745
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11746
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11747
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11749
test -z "$LD" && LD="$ac_prog"
11752
# If it fails, then pretend we aren't using GCC.
11756
# If it is relative, then search for the first ld in PATH.
11757
with_gnu_ld=unknown
11760
elif test "$with_gnu_ld" = yes; then
11761
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11762
$as_echo_n "checking for GNU ld... " >&6; }
11764
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11765
$as_echo_n "checking for non-GNU ld... " >&6; }
11767
if test "${lt_cv_path_LD+set}" = set; then
11768
$as_echo_n "(cached) " >&6
11770
if test -z "$LD"; then
11771
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11772
for ac_dir in $PATH; do
11774
test -z "$ac_dir" && ac_dir=.
11775
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11776
lt_cv_path_LD="$ac_dir/$ac_prog"
11777
# Check to see if the program is GNU ld. I'd rather use --version,
11778
# but apparently some variants of GNU ld only accept -v.
11779
# Break only if it was the GNU/non-GNU ld that we prefer.
11780
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11781
*GNU* | *'with BFD'*)
11782
test "$with_gnu_ld" != no && break
11785
test "$with_gnu_ld" != yes && break
11792
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11796
LD="$lt_cv_path_LD"
11797
if test -n "$LD"; then
11798
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11799
$as_echo "$LD" >&6; }
11801
{ $as_echo "$as_me:$LINENO: result: no" >&5
11802
$as_echo "no" >&6; }
11804
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11805
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11806
{ (exit 1); exit 1; }; }
11807
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11808
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11809
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11810
$as_echo_n "(cached) " >&6
11812
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11813
case `$LD -v 2>&1 </dev/null` in
11814
*GNU* | *'with BFD'*)
11815
lt_cv_prog_gnu_ld=yes
11818
lt_cv_prog_gnu_ld=no
11822
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11823
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11824
with_gnu_ld=$lt_cv_prog_gnu_ld
11828
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11829
# archiving commands below assume that GNU ld is being used.
11830
if test "$with_gnu_ld" = yes; then
11831
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11832
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'
11834
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11835
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11837
# If archive_cmds runs LD, not CC, wlarc should be empty
11838
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11839
# investigate it a little bit more. (MM)
11842
# ancient GNU ld didn't support --whole-archive et. al.
11843
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11844
grep 'no-whole-archive' > /dev/null; then
11845
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11847
whole_archive_flag_spec_CXX=
11853
# A generic and very simple default shared library creation
11854
# command for GNU C++ for the case where it uses the native
11855
# linker, instead of GNU ld. If possible, this setting should
11856
# overridden to take advantage of the native linker features on
11857
# the platform it is being used on.
11858
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11861
# Commands to make compiler produce verbose output that lists
11862
# what "hidden" libraries, object files and flags are used when
11863
# linking a shared library.
11864
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11872
# PORTME: fill in a description of your system's C++ link characteristics
11873
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11874
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11878
# FIXME: insert proper C++ library support
11882
if test "$host_cpu" = ia64; then
11883
# On IA64, the linker does run time linking by default, so we don't
11884
# have to do anything special.
11885
aix_use_runtimelinking=no
11886
exp_sym_flag='-Bexport'
11889
aix_use_runtimelinking=no
11891
# Test if we are trying to use run time linking or normal
11892
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11893
# need to do runtime linking.
11894
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11895
for ld_flag in $LDFLAGS; do
11898
aix_use_runtimelinking=yes
11906
exp_sym_flag='-bexport'
11907
no_entry_flag='-bnoentry'
11910
# When large executables or shared objects are built, AIX ld can
11911
# have problems creating the table of contents. If linking a library
11912
# or program results in "error TOC overflow" add -mminimal-toc to
11913
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11914
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11916
archive_cmds_CXX=''
11917
hardcode_direct_CXX=yes
11918
hardcode_libdir_separator_CXX=':'
11919
link_all_deplibs_CXX=yes
11921
if test "$GXX" = yes; then
11922
case $host_os in aix4.[012]|aix4.[012].*)
11923
# We only want to do this on AIX 4.2 and lower, the check
11924
# below for broken collect2 doesn't work under 4.3+
11925
collect2name=`${CC} -print-prog-name=collect2`
11926
if test -f "$collect2name" && \
11927
strings "$collect2name" | grep resolve_lib_name >/dev/null
11929
# We have reworked collect2
11932
# We have old collect2
11933
hardcode_direct_CXX=unsupported
11934
# It fails to find uninstalled libraries when the uninstalled
11935
# path is not listed in the libpath. Setting hardcode_minus_L
11936
# to unsupported forces relinking
11937
hardcode_minus_L_CXX=yes
11938
hardcode_libdir_flag_spec_CXX='-L$libdir'
11939
hardcode_libdir_separator_CXX=
11943
shared_flag='-shared'
11944
if test "$aix_use_runtimelinking" = yes; then
11945
shared_flag="$shared_flag "'${wl}-G'
11949
if test "$host_cpu" = ia64; then
11950
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11951
# chokes on -Wl,-G. The following line is correct:
11954
if test "$aix_use_runtimelinking" = yes; then
11955
shared_flag='${wl}-G'
11957
shared_flag='${wl}-bM:SRE'
11962
# It seems that -bexpall does not export symbols beginning with
11963
# underscore (_), so it is better to generate a list of symbols to export.
11964
always_export_symbols_CXX=yes
11965
if test "$aix_use_runtimelinking" = yes; then
11966
# Warning - without using the other runtime loading flags (-brtl),
11967
# -berok will link without error, but may produce a broken library.
11968
allow_undefined_flag_CXX='-berok'
11969
# Determine the default libpath from the value encoded in an empty executable.
11970
cat >conftest.$ac_ext <<_ACEOF
11973
cat confdefs.h >>conftest.$ac_ext
11974
cat >>conftest.$ac_ext <<_ACEOF
11975
/* end confdefs.h. */
11985
rm -f conftest.$ac_objext conftest$ac_exeext
11986
if { (ac_try="$ac_link"
11987
case "(($ac_try" in
11988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989
*) ac_try_echo=$ac_try;;
11991
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11992
$as_echo "$ac_try_echo") >&5
11993
(eval "$ac_link") 2>conftest.er1
11995
grep -v '^ *+' conftest.er1 >conftest.err
11997
cat conftest.err >&5
11998
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999
(exit $ac_status); } && {
12000
test -z "$ac_cxx_werror_flag" ||
12001
test ! -s conftest.err
12002
} && test -s conftest$ac_exeext && {
12003
test "$cross_compiling" = yes ||
12004
$as_test_x conftest$ac_exeext
12007
lt_aix_libpath_sed='
12008
/Import File Strings/,/^$/ {
12014
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12015
# Check for a 64-bit object if we didn't find anything.
12016
if test -z "$aix_libpath"; then
12017
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12020
$as_echo "$as_me: failed program was:" >&5
12021
sed 's/^/| /' conftest.$ac_ext >&5
12026
rm -rf conftest.dSYM
12027
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12028
conftest$ac_exeext conftest.$ac_ext
12029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12031
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12033
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"
12035
if test "$host_cpu" = ia64; then
12036
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12037
allow_undefined_flag_CXX="-z nodefs"
12038
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"
12040
# Determine the default libpath from the value encoded in an empty executable.
12041
cat >conftest.$ac_ext <<_ACEOF
12044
cat confdefs.h >>conftest.$ac_ext
12045
cat >>conftest.$ac_ext <<_ACEOF
12046
/* end confdefs.h. */
12056
rm -f conftest.$ac_objext conftest$ac_exeext
12057
if { (ac_try="$ac_link"
12058
case "(($ac_try" in
12059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060
*) ac_try_echo=$ac_try;;
12062
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12063
$as_echo "$ac_try_echo") >&5
12064
(eval "$ac_link") 2>conftest.er1
12066
grep -v '^ *+' conftest.er1 >conftest.err
12068
cat conftest.err >&5
12069
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070
(exit $ac_status); } && {
12071
test -z "$ac_cxx_werror_flag" ||
12072
test ! -s conftest.err
12073
} && test -s conftest$ac_exeext && {
12074
test "$cross_compiling" = yes ||
12075
$as_test_x conftest$ac_exeext
12078
lt_aix_libpath_sed='
12079
/Import File Strings/,/^$/ {
12085
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12086
# Check for a 64-bit object if we didn't find anything.
12087
if test -z "$aix_libpath"; then
12088
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12091
$as_echo "$as_me: failed program was:" >&5
12092
sed 's/^/| /' conftest.$ac_ext >&5
12097
rm -rf conftest.dSYM
12098
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12099
conftest$ac_exeext conftest.$ac_ext
12100
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12102
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12103
# Warning - without using the other run time loading flags,
12104
# -berok will link without error, but may produce a broken library.
12105
no_undefined_flag_CXX=' ${wl}-bernotok'
12106
allow_undefined_flag_CXX=' ${wl}-berok'
12107
# Exported symbols can be pulled into shared objects from archives
12108
whole_archive_flag_spec_CXX='$convenience'
12109
archive_cmds_need_lc_CXX=yes
12110
# This is similar to how AIX traditionally builds its shared libraries.
12111
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'
12117
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12118
allow_undefined_flag_CXX=unsupported
12119
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12120
# support --undefined. This deserves some investigation. FIXME
12121
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12128
case $cc_basename in
12130
# FIXME: insert proper C++ library support
12136
cygwin* | mingw* | pw32*)
12137
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12138
# as there is no search path for DLLs.
12139
hardcode_libdir_flag_spec_CXX='-L$libdir'
12140
allow_undefined_flag_CXX=unsupported
12141
always_export_symbols_CXX=no
12142
enable_shared_with_static_runtimes_CXX=yes
12144
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12145
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'
12146
# If the export-symbols file already is a .def file (1st line
12147
# is EXPORTS), use it as is; otherwise, prepend...
12148
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12149
cp $export_symbols $output_objdir/$soname.def;
12151
echo EXPORTS > $output_objdir/$soname.def;
12152
cat $export_symbols >> $output_objdir/$soname.def;
12154
$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'
12159
darwin* | rhapsody*)
12160
archive_cmds_need_lc_CXX=no
12161
hardcode_direct_CXX=no
12162
hardcode_automatic_CXX=yes
12163
hardcode_shlibpath_var_CXX=unsupported
12164
whole_archive_flag_spec_CXX=''
12165
link_all_deplibs_CXX=yes
12166
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12167
if test "$GXX" = yes ; then
12168
output_verbose_link_cmd='echo'
12169
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}"
12170
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12171
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}"
12172
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}"
12173
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12174
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}"
12175
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}"
12178
case $cc_basename in
12180
output_verbose_link_cmd='echo'
12181
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'
12182
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12183
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12184
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}'
12185
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}'
12195
case $cc_basename in
12197
# FIXME: insert proper C++ library support
12201
# Green Hills C++ Compiler
12202
# FIXME: insert proper C++ library support
12206
# FIXME: insert proper C++ library support
12212
# C++ shared libraries reported to be fairly broken before switch to ELF
12216
archive_cmds_need_lc_CXX=no
12218
freebsd* | dragonfly*)
12219
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12226
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12227
hardcode_libdir_separator_CXX=:
12228
export_dynamic_flag_spec_CXX='${wl}-E'
12229
hardcode_direct_CXX=yes
12230
hardcode_minus_L_CXX=yes # Not in the search PATH,
12231
# but as the default
12232
# location of the library.
12234
case $cc_basename in
12236
# FIXME: insert proper C++ library support
12240
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'
12241
# Commands to make compiler produce verbose output that lists
12242
# what "hidden" libraries, object files and flags are used when
12243
# linking a shared library.
12245
# There doesn't appear to be a way to prevent this compiler from
12246
# explicitly linking system object files so we need to strip them
12247
# from the output so that they don't get included in the library
12249
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'
12252
if test "$GXX" = yes; then
12253
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'
12255
# FIXME: insert proper C++ library support
12262
if test $with_gnu_ld = no; then
12263
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12264
hardcode_libdir_separator_CXX=:
12269
export_dynamic_flag_spec_CXX='${wl}-E'
12275
hardcode_direct_CXX=no
12276
hardcode_shlibpath_var_CXX=no
12279
hardcode_direct_CXX=yes
12280
hardcode_minus_L_CXX=yes # Not in the search PATH,
12281
# but as the default
12282
# location of the library.
12286
case $cc_basename in
12288
# FIXME: insert proper C++ library support
12294
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12297
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12300
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12303
# Commands to make compiler produce verbose output that lists
12304
# what "hidden" libraries, object files and flags are used when
12305
# linking a shared library.
12307
# There doesn't appear to be a way to prevent this compiler from
12308
# explicitly linking system object files so we need to strip them
12309
# from the output so that they don't get included in the library
12311
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'
12314
if test "$GXX" = yes; then
12315
if test $with_gnu_ld = no; then
12318
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12324
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'
12329
# FIXME: insert proper C++ library support
12336
hardcode_direct_CXX=no
12337
hardcode_shlibpath_var_CXX=no
12338
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12339
export_dynamic_flag_spec_CXX='${wl}-E'
12340
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12341
# Instead, shared libraries are loaded at an image base (0x10000000 by
12342
# default) and relocated if they conflict, which is a slow very memory
12343
# consuming and fragmenting process. To avoid this, we pick a random,
12344
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12345
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12346
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'
12347
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'
12350
case $cc_basename in
12353
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'
12355
# Archives containing C++ object files must be created using
12356
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12357
# necessary to make sure instantiated templates are included
12359
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12362
if test "$GXX" = yes; then
12363
if test "$with_gnu_ld" = no; then
12364
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'
12366
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'
12369
link_all_deplibs_CXX=yes
12372
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12373
hardcode_libdir_separator_CXX=:
12375
linux* | k*bsd*-gnu)
12376
case $cc_basename in
12378
# Kuck and Associates, Inc. (KAI) C++ Compiler
12380
# KCC will only create a shared library if the output file
12381
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12382
# to its proper name (with version) after linking.
12383
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'
12384
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'
12385
# Commands to make compiler produce verbose output that lists
12386
# what "hidden" libraries, object files and flags are used when
12387
# linking a shared library.
12389
# There doesn't appear to be a way to prevent this compiler from
12390
# explicitly linking system object files so we need to strip them
12391
# from the output so that they don't get included in the library
12393
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'
12395
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12396
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12398
# Archives containing C++ object files must be created using
12399
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12400
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12405
# version 8.0 and above of icpc choke on multiply defined symbols
12406
# if we add $predep_objects and $postdep_objects, however 7.1 and
12407
# earlier do not add the objects themselves.
12408
case `$CC -V 2>&1` in
12410
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12411
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'
12413
*) # Version 8.0 or newer
12416
ia64*) tmp_idyn=' -i_dynamic';;
12418
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12419
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'
12422
archive_cmds_need_lc_CXX=no
12423
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12424
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12428
# Portland Group C++ compiler
12429
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12430
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'
12432
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12433
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12434
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'
12438
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439
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'
12441
runpath_var=LD_RUN_PATH
12442
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12443
hardcode_libdir_separator_CXX=:
12445
# Commands to make compiler produce verbose output that lists
12446
# what "hidden" libraries, object files and flags are used when
12447
# linking a shared library.
12449
# There doesn't appear to be a way to prevent this compiler from
12450
# explicitly linking system object files so we need to strip them
12451
# from the output so that they don't get included in the library
12453
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'
12456
case `$CC -V 2>&1 | sed 5q` in
12459
no_undefined_flag_CXX=' -zdefs'
12460
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12461
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'
12462
hardcode_libdir_flag_spec_CXX='-R$libdir'
12463
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'
12465
# Not sure whether something based on
12466
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12468
output_verbose_link_cmd='echo'
12470
# Archives containing C++ object files must be created using
12471
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12472
# necessary to make sure instantiated templates are included
12474
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12481
# FIXME: insert proper C++ library support
12485
# FIXME: insert proper C++ library support
12489
case $cc_basename in
12491
# FIXME: insert proper C++ library support
12495
# FIXME: insert proper C++ library support
12501
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12502
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12504
hardcode_libdir_flag_spec_CXX='-R$libdir'
12505
hardcode_direct_CXX=yes
12506
hardcode_shlibpath_var_CXX=no
12508
# Workaround some broken pre-1.5 toolchains
12509
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12512
# C++ shared libraries are fairly broken
12516
if test -f /usr/libexec/ld.so; then
12517
hardcode_direct_CXX=yes
12518
hardcode_shlibpath_var_CXX=no
12519
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12520
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12521
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12522
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12523
export_dynamic_flag_spec_CXX='${wl}-E'
12524
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12526
output_verbose_link_cmd='echo'
12532
case $cc_basename in
12534
# Kuck and Associates, Inc. (KAI) C++ Compiler
12536
# KCC will only create a shared library if the output file
12537
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12538
# to its proper name (with version) after linking.
12539
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'
12541
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12542
hardcode_libdir_separator_CXX=:
12544
# Archives containing C++ object files must be created using
12545
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12546
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12550
# Rational C++ 2.4.1
12551
# FIXME: insert proper C++ library support
12555
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12556
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'
12558
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12559
hardcode_libdir_separator_CXX=:
12561
# Commands to make compiler produce verbose output that lists
12562
# what "hidden" libraries, object files and flags are used when
12563
# linking a shared library.
12565
# There doesn't appear to be a way to prevent this compiler from
12566
# explicitly linking system object files so we need to strip them
12567
# from the output so that they don't get included in the library
12569
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'
12572
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12573
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12574
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'
12576
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12577
hardcode_libdir_separator_CXX=:
12579
# Commands to make compiler produce verbose output that lists
12580
# what "hidden" libraries, object files and flags are used when
12581
# linking a shared library.
12582
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12585
# FIXME: insert proper C++ library support
12592
case $cc_basename in
12594
# Kuck and Associates, Inc. (KAI) C++ Compiler
12596
# KCC will only create a shared library if the output file
12597
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12598
# to its proper name (with version) after linking.
12599
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'
12601
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12602
hardcode_libdir_separator_CXX=:
12604
# Archives containing C++ object files must be created using
12605
# the KAI C++ compiler.
12606
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12609
# Rational C++ 2.4.1
12610
# FIXME: insert proper C++ library support
12614
allow_undefined_flag_CXX=' -expect_unresolved \*'
12615
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'
12616
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12617
echo "-hidden">> $lib.exp~
12618
$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~
12621
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12622
hardcode_libdir_separator_CXX=:
12624
# Commands to make compiler produce verbose output that lists
12625
# what "hidden" libraries, object files and flags are used when
12626
# linking a shared library.
12628
# There doesn't appear to be a way to prevent this compiler from
12629
# explicitly linking system object files so we need to strip them
12630
# from the output so that they don't get included in the library
12632
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'
12635
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12636
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12637
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'
12639
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12640
hardcode_libdir_separator_CXX=:
12642
# Commands to make compiler produce verbose output that lists
12643
# what "hidden" libraries, object files and flags are used when
12644
# linking a shared library.
12645
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12648
# FIXME: insert proper C++ library support
12655
# FIXME: insert proper C++ library support
12659
case $cc_basename in
12662
# FIXME: insert proper C++ library support
12667
# FIXME: insert proper C++ library support
12671
# FIXME: insert proper C++ library support
12677
case $cc_basename in
12679
# Sun C++ 4.2, 5.x and Centerline C++
12680
archive_cmds_need_lc_CXX=yes
12681
no_undefined_flag_CXX=' -zdefs'
12682
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12684
$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'
12686
hardcode_libdir_flag_spec_CXX='-R$libdir'
12687
hardcode_shlibpath_var_CXX=no
12689
solaris2.[0-5] | solaris2.[0-5].*) ;;
12691
# The compiler driver will combine and reorder linker options,
12692
# but understands `-z linker_flag'.
12693
# Supported since Solaris 2.6 (maybe 2.5.1?)
12694
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12697
link_all_deplibs_CXX=yes
12699
output_verbose_link_cmd='echo'
12701
# Archives containing C++ object files must be created using
12702
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12703
# necessary to make sure instantiated templates are included
12705
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12708
# Green Hills C++ Compiler
12709
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12711
# The C++ compiler must be used to create the archive.
12712
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12715
# GNU C++ compiler with Solaris linker
12716
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12717
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12718
if $CC --version | grep -v '^2\.7' > /dev/null; then
12719
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12720
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12721
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12723
# Commands to make compiler produce verbose output that lists
12724
# what "hidden" libraries, object files and flags are used when
12725
# linking a shared library.
12726
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12728
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12730
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12731
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12732
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12734
# Commands to make compiler produce verbose output that lists
12735
# what "hidden" libraries, object files and flags are used when
12736
# linking a shared library.
12737
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12740
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12742
solaris2.[0-5] | solaris2.[0-5].*) ;;
12744
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12751
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12752
no_undefined_flag_CXX='${wl}-z,text'
12753
archive_cmds_need_lc_CXX=no
12754
hardcode_shlibpath_var_CXX=no
12755
runpath_var='LD_RUN_PATH'
12757
case $cc_basename in
12759
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12760
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12763
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12764
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12768
sysv5* | sco3.2v5* | sco5v6*)
12769
# Note: We can NOT use -z defs as we might desire, because we do not
12770
# link with -lc, and that would cause any symbols used from libc to
12771
# always be unresolved, which means just about no library would
12772
# ever link correctly. If we're not using GNU ld we use -z text
12773
# though, which does catch some bad symbols but isn't as heavy-handed
12775
# For security reasons, it is highly recommended that you always
12776
# use absolute paths for naming shared libraries, and exclude the
12777
# DT_RUNPATH tag from executables and libraries. But doing so
12778
# requires that you compile everything twice, which is a pain.
12779
# So that behaviour is only enabled if SCOABSPATH is set to a
12780
# non-empty value in the environment. Most likely only useful for
12781
# creating official distributions of packages.
12782
# This is a hack until libtool officially supports absolute path
12783
# names for shared libraries.
12784
no_undefined_flag_CXX='${wl}-z,text'
12785
allow_undefined_flag_CXX='${wl}-z,nodefs'
12786
archive_cmds_need_lc_CXX=no
12787
hardcode_shlibpath_var_CXX=no
12788
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12789
hardcode_libdir_separator_CXX=':'
12790
link_all_deplibs_CXX=yes
12791
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12792
runpath_var='LD_RUN_PATH'
12794
case $cc_basename in
12796
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12797
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12800
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12801
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12806
case $cc_basename in
12808
# NonStop-UX NCC 3.20
12809
# FIXME: insert proper C++ library support
12813
# FIXME: insert proper C++ library support
12819
# FIXME: insert proper C++ library support
12823
# FIXME: insert proper C++ library support
12827
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12828
$as_echo "$ld_shlibs_CXX" >&6; }
12829
test "$ld_shlibs_CXX" = no && can_build_shared=no
12834
cat > conftest.$ac_ext <<EOF
12838
Foo (void) { a = 0; }
12844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845
(eval $ac_compile) 2>&5
12847
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848
(exit $ac_status); }; then
12849
# Parse the compiler output and extract the necessary
12850
# objects, libraries and library flags.
12852
# Sentinel used to keep track of whether or not we are before
12853
# the conftest object file.
12854
pre_test_object_deps_done=no
12856
# The `*' in the case matches for architectures that use `case' in
12857
# $output_verbose_cmd can trigger glob expansion during the loop
12858
# eval without this substitution.
12859
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12861
for p in `eval $output_verbose_link_cmd`; do
12865
# Some compilers place space between "-{L,R}" and the path.
12866
# Remove the space.
12867
if test $p = "-L" \
12868
|| test $p = "-R"; then
12875
if test "$pre_test_object_deps_done" = no; then
12878
# Internal compiler library paths should come after those
12879
# provided the user. The postdeps already come after the
12880
# user supplied libs so there is no need to process them.
12881
if test -z "$compiler_lib_search_path_CXX"; then
12882
compiler_lib_search_path_CXX="${prev}${p}"
12884
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12887
# The "-l" case would never come before the object being
12888
# linked, so don't bother handling this case.
12891
if test -z "$postdeps_CXX"; then
12892
postdeps_CXX="${prev}${p}"
12894
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12900
# This assumes that the test object file only shows up
12901
# once in the compiler output.
12902
if test "$p" = "conftest.$objext"; then
12903
pre_test_object_deps_done=yes
12907
if test "$pre_test_object_deps_done" = no; then
12908
if test -z "$predep_objects_CXX"; then
12909
predep_objects_CXX="$p"
12911
predep_objects_CXX="$predep_objects_CXX $p"
12914
if test -z "$postdep_objects_CXX"; then
12915
postdep_objects_CXX="$p"
12917
postdep_objects_CXX="$postdep_objects_CXX $p"
12922
*) ;; # Ignore the rest.
12930
echo "libtool.m4: error: problem compiling CXX test program"
12933
$rm -f confest.$objext
12935
compiler_lib_search_dirs_CXX=
12936
if test -n "$compiler_lib_search_path_CXX"; then
12937
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12940
# PORTME: override above test on systems where it is broken
12943
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12944
# hack all around it, let's just trust "g++" to DTRT.
12945
predep_objects_CXX=
12946
postdep_objects_CXX=
12951
case `$CC -V 2>&1 | sed 5q` in
12955
# The more standards-conforming stlport4 library is
12956
# incompatible with the Cstd library. Avoid specifying
12957
# it if it's in CXXFLAGS. Ignore libCrun as
12958
# -library=stlport4 depends on it.
12959
case " $CXX $CXXFLAGS " in
12960
*" -library=stlport4 "*)
12961
solaris_use_stlport4=yes
12964
if test "$solaris_use_stlport4" != yes; then
12965
postdeps_CXX='-library=Cstd -library=Crun'
12972
case $cc_basename in
12974
# The more standards-conforming stlport4 library is
12975
# incompatible with the Cstd library. Avoid specifying
12976
# it if it's in CXXFLAGS. Ignore libCrun as
12977
# -library=stlport4 depends on it.
12978
case " $CXX $CXXFLAGS " in
12979
*" -library=stlport4 "*)
12980
solaris_use_stlport4=yes
12984
# Adding this requires a known-good setup of shared libraries for
12985
# Sun compiler versions before 5.6, else PIC objects from an old
12986
# archive will be linked into the output, leading to subtle bugs.
12987
if test "$solaris_use_stlport4" != yes; then
12988
postdeps_CXX='-library=Cstd -library=Crun'
12995
case " $postdeps_CXX " in
12996
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12999
lt_prog_compiler_wl_CXX=
13000
lt_prog_compiler_pic_CXX=
13001
lt_prog_compiler_static_CXX=
13003
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13004
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13006
# C++ specific cases for pic, static, wl, etc.
13007
if test "$GXX" = yes; then
13008
lt_prog_compiler_wl_CXX='-Wl,'
13009
lt_prog_compiler_static_CXX='-static'
13013
# All AIX code is PIC.
13014
if test "$host_cpu" = ia64; then
13015
# AIX 5 now supports IA64 processor
13016
lt_prog_compiler_static_CXX='-Bstatic'
13020
# FIXME: we need at least 68020 code to build shared libraries, but
13021
# adding the `-m68020' flag to GCC prevents building anything better,
13023
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13025
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13026
# PIC is the default for these OSes.
13028
mingw* | cygwin* | os2* | pw32*)
13029
# This hack is so that the source file can tell whether it is being
13030
# built for inclusion in a dll (and should export symbols for example).
13031
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13032
# (--disable-auto-import) libraries
13033
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13035
darwin* | rhapsody*)
13036
# PIC is the default on this platform
13037
# Common symbols not allowed in MH_DYLIB files
13038
lt_prog_compiler_pic_CXX='-fno-common'
13041
# DJGPP does not support shared libraries at all
13042
lt_prog_compiler_pic_CXX=
13045
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13046
# Instead, we relocate shared libraries at runtime.
13049
if test -d /usr/nec; then
13050
lt_prog_compiler_pic_CXX=-Kconform_pic
13054
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055
# not for PA HP-UX.
13060
lt_prog_compiler_pic_CXX='-fPIC'
13065
lt_prog_compiler_pic_CXX='-fPIC'
13071
# All AIX code is PIC.
13072
if test "$host_cpu" = ia64; then
13073
# AIX 5 now supports IA64 processor
13074
lt_prog_compiler_static_CXX='-Bstatic'
13076
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13080
case $cc_basename in
13082
# Green Hills C++ Compiler
13083
# _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"
13088
# PIC is the default on this platform
13089
# Common symbols not allowed in MH_DYLIB files
13090
case $cc_basename in
13092
lt_prog_compiler_pic_CXX='-qnocommon'
13093
lt_prog_compiler_wl_CXX='-Wl,'
13098
case $cc_basename in
13100
lt_prog_compiler_pic_CXX='-KPIC'
13103
# Green Hills C++ Compiler
13104
lt_prog_compiler_pic_CXX='-pic'
13110
freebsd* | dragonfly*)
13111
# FreeBSD uses GNU C++
13113
hpux9* | hpux10* | hpux11*)
13114
case $cc_basename in
13116
lt_prog_compiler_wl_CXX='-Wl,'
13117
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13118
if test "$host_cpu" != ia64; then
13119
lt_prog_compiler_pic_CXX='+Z'
13123
lt_prog_compiler_wl_CXX='-Wl,'
13124
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13130
lt_prog_compiler_pic_CXX='+Z'
13139
# This is c89, which is MS Visual C++ (no shared libs)
13140
# Anyone wants to do a port?
13142
irix5* | irix6* | nonstopux*)
13143
case $cc_basename in
13145
lt_prog_compiler_wl_CXX='-Wl,'
13146
lt_prog_compiler_static_CXX='-non_shared'
13147
# CC pic flag -KPIC is the default.
13153
linux* | k*bsd*-gnu)
13154
case $cc_basename in
13157
lt_prog_compiler_wl_CXX='--backend -Wl,'
13158
lt_prog_compiler_pic_CXX='-fPIC'
13162
lt_prog_compiler_wl_CXX='-Wl,'
13163
lt_prog_compiler_pic_CXX='-KPIC'
13164
lt_prog_compiler_static_CXX='-static'
13167
# Portland Group C++ compiler.
13168
lt_prog_compiler_wl_CXX='-Wl,'
13169
lt_prog_compiler_pic_CXX='-fpic'
13170
lt_prog_compiler_static_CXX='-Bstatic'
13174
# Make sure the PIC flag is empty. It appears that all Alpha
13175
# Linux and Compaq Tru64 Unix objects are PIC.
13176
lt_prog_compiler_pic_CXX=
13177
lt_prog_compiler_static_CXX='-non_shared'
13180
case `$CC -V 2>&1 | sed 5q` in
13183
lt_prog_compiler_pic_CXX='-KPIC'
13184
lt_prog_compiler_static_CXX='-Bstatic'
13185
lt_prog_compiler_wl_CXX='-Qoption ld '
13196
case $cc_basename in
13198
lt_prog_compiler_pic_CXX='-W c,exportall'
13206
osf3* | osf4* | osf5*)
13207
case $cc_basename in
13209
lt_prog_compiler_wl_CXX='--backend -Wl,'
13212
# Rational C++ 2.4.1
13213
lt_prog_compiler_pic_CXX='-pic'
13216
# Digital/Compaq C++
13217
lt_prog_compiler_wl_CXX='-Wl,'
13218
# Make sure the PIC flag is empty. It appears that all Alpha
13219
# Linux and Compaq Tru64 Unix objects are PIC.
13220
lt_prog_compiler_pic_CXX=
13221
lt_prog_compiler_static_CXX='-non_shared'
13230
case $cc_basename in
13232
# Sun C++ 4.2, 5.x and Centerline C++
13233
lt_prog_compiler_pic_CXX='-KPIC'
13234
lt_prog_compiler_static_CXX='-Bstatic'
13235
lt_prog_compiler_wl_CXX='-Qoption ld '
13238
# Green Hills C++ Compiler
13239
lt_prog_compiler_pic_CXX='-PIC'
13246
case $cc_basename in
13249
lt_prog_compiler_pic_CXX='-pic'
13250
lt_prog_compiler_static_CXX='-Bstatic'
13254
lt_prog_compiler_pic_CXX='-pic'
13261
case $cc_basename in
13263
# NonStop-UX NCC 3.20
13264
lt_prog_compiler_pic_CXX='-KPIC'
13270
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13271
case $cc_basename in
13273
lt_prog_compiler_wl_CXX='-Wl,'
13274
lt_prog_compiler_pic_CXX='-KPIC'
13275
lt_prog_compiler_static_CXX='-Bstatic'
13282
lt_prog_compiler_can_build_shared_CXX=no
13287
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13288
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13291
# Check to make sure the PIC flag actually works.
13293
if test -n "$lt_prog_compiler_pic_CXX"; then
13295
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13296
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13297
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13298
$as_echo_n "(cached) " >&6
13300
lt_cv_prog_compiler_pic_works_CXX=no
13301
ac_outfile=conftest.$ac_objext
13302
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13303
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13304
# Insert the option either (1) after the last *FLAGS variable, or
13305
# (2) before a word containing "conftest.", or (3) at the end.
13306
# Note that $ac_compile itself does not contain backslashes and begins
13307
# with a dollar sign (not a hyphen), so the echo should work correctly.
13308
# The option is referenced via a variable to avoid confusing sed.
13309
lt_compile=`echo "$ac_compile" | $SED \
13310
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13311
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13312
-e 's:$: $lt_compiler_flag:'`
13313
(eval echo "\"\$as_me:13313: $lt_compile\"" >&5)
13314
(eval "$lt_compile" 2>conftest.err)
13316
cat conftest.err >&5
13317
echo "$as_me:13317: \$? = $ac_status" >&5
13318
if (exit $ac_status) && test -s "$ac_outfile"; then
13319
# The compiler can only warn and ignore the option if not recognized
13320
# So say no if there are warnings other than the usual output.
13321
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13322
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13323
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13324
lt_cv_prog_compiler_pic_works_CXX=yes
13330
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13331
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13333
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13334
case $lt_prog_compiler_pic_CXX in
13336
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13339
lt_prog_compiler_pic_CXX=
13340
lt_prog_compiler_can_build_shared_CXX=no
13345
# For platforms which do not support PIC, -DPIC is meaningless:
13347
lt_prog_compiler_pic_CXX=
13350
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13355
# Check to make sure the static flag actually works.
13357
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13358
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13359
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13360
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13361
$as_echo_n "(cached) " >&6
13363
lt_cv_prog_compiler_static_works_CXX=no
13364
save_LDFLAGS="$LDFLAGS"
13365
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13366
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13367
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13368
# The linker can only warn and ignore the option if not recognized
13369
# So say no if there are warnings
13370
if test -s conftest.err; then
13371
# Append any errors to the config.log.
13372
cat conftest.err 1>&5
13373
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13374
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13375
if diff conftest.exp conftest.er2 >/dev/null; then
13376
lt_cv_prog_compiler_static_works_CXX=yes
13379
lt_cv_prog_compiler_static_works_CXX=yes
13383
LDFLAGS="$save_LDFLAGS"
13386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13387
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13389
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13392
lt_prog_compiler_static_CXX=
13396
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13397
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13398
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13399
$as_echo_n "(cached) " >&6
13401
lt_cv_prog_compiler_c_o_CXX=no
13402
$rm -r conftest 2>/dev/null
13406
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13408
lt_compiler_flag="-o out/conftest2.$ac_objext"
13409
# Insert the option either (1) after the last *FLAGS variable, or
13410
# (2) before a word containing "conftest.", or (3) at the end.
13411
# Note that $ac_compile itself does not contain backslashes and begins
13412
# with a dollar sign (not a hyphen), so the echo should work correctly.
13413
lt_compile=`echo "$ac_compile" | $SED \
13414
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13415
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13416
-e 's:$: $lt_compiler_flag:'`
13417
(eval echo "\"\$as_me:13417: $lt_compile\"" >&5)
13418
(eval "$lt_compile" 2>out/conftest.err)
13420
cat out/conftest.err >&5
13421
echo "$as_me:13421: \$? = $ac_status" >&5
13422
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13424
# The compiler can only warn and ignore the option if not recognized
13425
# So say no if there are warnings
13426
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13427
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13428
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13429
lt_cv_prog_compiler_c_o_CXX=yes
13434
# SGI C++ compiler will create directory out/ii_files/ for
13435
# template instantiation
13436
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13437
$rm out/* && rmdir out
13443
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13444
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13447
hard_links="nottested"
13448
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13449
# do not overwrite the value of need_locks provided by the user
13450
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13451
$as_echo_n "checking if we can lock with hard links... " >&6; }
13454
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456
ln conftest.a conftest.b 2>&5 || hard_links=no
13457
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13458
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13459
$as_echo "$hard_links" >&6; }
13460
if test "$hard_links" = no; then
13461
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13462
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13469
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13470
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13472
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13475
# If we're using GNU nm, then we don't want the "-C" option.
13476
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13477
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13478
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'
13480
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'
13484
export_symbols_cmds_CXX="$ltdll_cmds"
13487
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'
13490
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13493
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13495
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13496
$as_echo "$ld_shlibs_CXX" >&6; }
13497
test "$ld_shlibs_CXX" = no && can_build_shared=no
13500
# Do we need to explicitly link libc?
13502
case "x$archive_cmds_need_lc_CXX" in
13504
# Assume -lc should be added
13505
archive_cmds_need_lc_CXX=yes
13507
if test "$enable_shared" = yes && test "$GCC" = yes; then
13508
case $archive_cmds_CXX in
13510
# FIXME: we may have to deal with multi-command sequences.
13513
# Test whether the compiler implicitly links with -lc since on some
13514
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13515
# to ld, don't add -lc before -lgcc.
13516
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13517
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13519
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13522
(eval $ac_compile) 2>&5
13524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
(exit $ac_status); } 2>conftest.err; then
13528
libobjs=conftest.$ac_objext
13530
wl=$lt_prog_compiler_wl_CXX
13531
pic_flag=$lt_prog_compiler_pic_CXX
13537
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13538
allow_undefined_flag_CXX=
13539
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13540
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543
(exit $ac_status); }
13545
archive_cmds_need_lc_CXX=no
13547
archive_cmds_need_lc_CXX=yes
13549
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13551
cat conftest.err 1>&5
13554
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13555
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13562
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13563
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13564
library_names_spec=
13565
libname_spec='lib$name'
13569
postuninstall_cmds=
13573
shlibpath_overrides_runpath=unknown
13575
dynamic_linker="$host_os ld.so"
13576
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13578
need_lib_prefix=unknown
13579
hardcode_into_libs=no
13581
# when you set need_version to no, make sure it does not cause -set_version
13582
# flags to be left without arguments
13583
need_version=unknown
13588
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13589
shlibpath_var=LIBPATH
13591
# AIX 3 has no versioning support, so we append a major version to the name.
13592
soname_spec='${libname}${release}${shared_ext}$major'
13599
hardcode_into_libs=yes
13600
if test "$host_cpu" = ia64; then
13601
# AIX 5 supports IA64
13602
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13603
shlibpath_var=LD_LIBRARY_PATH
13605
# With GCC up to 2.95.x, collect2 would create an import file
13606
# for dependence libraries. The import file would start with
13607
# the line `#! .'. This would cause the generated library to
13608
# depend on `.', always an invalid library. This was fixed in
13609
# development snapshots of GCC prior to 3.0.
13611
aix4 | aix4.[01] | aix4.[01].*)
13612
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13614
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13617
can_build_shared=no
13621
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13622
# soname into executable. Probably we can add versioning support to
13623
# collect2, so additional links can be useful in future.
13624
if test "$aix_use_runtimelinking" = yes; then
13625
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13626
# instead of lib<name>.a to let people know that these are not
13627
# typical AIX shared libraries.
13628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630
# We preserve .a as extension for shared libraries through AIX4.2
13631
# and later when we are not doing run time linking.
13632
library_names_spec='${libname}${release}.a $libname.a'
13633
soname_spec='${libname}${release}${shared_ext}$major'
13635
shlibpath_var=LIBPATH
13640
library_names_spec='$libname.ixlibrary $libname.a'
13641
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13642
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'
13646
library_names_spec='${libname}${shared_ext}'
13647
dynamic_linker="$host_os ld.so"
13648
shlibpath_var=LIBRARY_PATH
13654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13655
soname_spec='${libname}${release}${shared_ext}$major'
13656
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13657
shlibpath_var=LD_LIBRARY_PATH
13658
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13659
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13660
# the default ld.so.conf also contains /usr/contrib/lib and
13661
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13662
# libtool to hard-code these into programs
13665
cygwin* | mingw* | pw32*)
13666
version_type=windows
13671
case $GCC,$host_os in
13672
yes,cygwin* | yes,mingw* | yes,pw32*)
13673
library_names_spec='$libname.dll.a'
13674
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13675
postinstall_cmds='base_file=`basename \${file}`~
13676
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13677
dldir=$destdir/`dirname \$dlpath`~
13678
test -d \$dldir || mkdir -p \$dldir~
13679
$install_prog $dir/$dlname \$dldir/$dlname~
13680
chmod a+x \$dldir/$dlname'
13681
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13682
dlpath=$dir/\$dldll~
13684
shlibpath_overrides_runpath=yes
13688
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13689
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13690
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13693
# MinGW DLLs use traditional 'lib' prefix
13694
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13695
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13696
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13697
# It is most probably a Windows format PATH printed by
13698
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13699
# path with ; separators, and with drive letters. We can handle the
13700
# drive letters (cygwin fileutils understands them), so leave them,
13701
# especially as we might pass files found there to a mingw objdump,
13702
# which wouldn't understand a cygwinified path. Ahh.
13703
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13705
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13709
# pw32 DLLs use 'pw' prefix rather than 'lib'
13710
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13716
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13719
dynamic_linker='Win32 ld.exe'
13720
# FIXME: first we should search . and the directory the executable is in
13724
darwin* | rhapsody*)
13725
dynamic_linker="$host_os dyld"
13726
version_type=darwin
13729
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13730
soname_spec='${libname}${release}${major}$shared_ext'
13731
shlibpath_overrides_runpath=yes
13732
shlibpath_var=DYLD_LIBRARY_PATH
13733
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13735
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13743
soname_spec='${libname}${release}${shared_ext}$major'
13744
shlibpath_var=LD_LIBRARY_PATH
13751
freebsd* | dragonfly*)
13752
# DragonFly does not have aout. When/if they implement a new
13753
# versioning mechanism, adjust this.
13754
if test -x /usr/bin/objformat; then
13755
objformat=`/usr/bin/objformat`
13758
freebsd[123]*) objformat=aout ;;
13759
*) objformat=elf ;;
13762
version_type=freebsd-$objformat
13763
case $version_type in
13765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13770
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13774
shlibpath_var=LD_LIBRARY_PATH
13777
shlibpath_overrides_runpath=yes
13779
freebsd3.[01]* | freebsdelf3.[01]*)
13780
shlibpath_overrides_runpath=yes
13781
hardcode_into_libs=yes
13783
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13784
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13785
shlibpath_overrides_runpath=no
13786
hardcode_into_libs=yes
13788
*) # from 4.6 on, and DragonFly
13789
shlibpath_overrides_runpath=yes
13790
hardcode_into_libs=yes
13799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13800
soname_spec='${libname}${release}${shared_ext}$major'
13801
shlibpath_var=LD_LIBRARY_PATH
13802
hardcode_into_libs=yes
13805
hpux9* | hpux10* | hpux11*)
13806
# Give a soname corresponding to the major version so that dld.sl refuses to
13807
# link against other versions.
13814
hardcode_into_libs=yes
13815
dynamic_linker="$host_os dld.so"
13816
shlibpath_var=LD_LIBRARY_PATH
13817
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819
soname_spec='${libname}${release}${shared_ext}$major'
13820
if test "X$HPUX_IA64_MODE" = X32; then
13821
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13823
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13825
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13829
hardcode_into_libs=yes
13830
dynamic_linker="$host_os dld.sl"
13831
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13832
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834
soname_spec='${libname}${release}${shared_ext}$major'
13835
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13836
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13840
dynamic_linker="$host_os dld.sl"
13841
shlibpath_var=SHLIB_PATH
13842
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844
soname_spec='${libname}${release}${shared_ext}$major'
13847
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13848
postinstall_cmds='chmod 555 $lib'
13855
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13856
soname_spec='${libname}${release}${shared_ext}$major'
13857
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13858
shlibpath_var=LD_LIBRARY_PATH
13859
shlibpath_overrides_runpath=no
13860
hardcode_into_libs=yes
13863
irix5* | irix6* | nonstopux*)
13865
nonstopux*) version_type=nonstopux ;;
13867
if test "$lt_cv_prog_gnu_ld" = yes; then
13875
soname_spec='${libname}${release}${shared_ext}$major'
13876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13878
irix5* | nonstopux*)
13879
libsuff= shlibsuff=
13882
case $LD in # libtool.m4 will add one of these switches to LD
13883
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13884
libsuff= shlibsuff= libmagic=32-bit;;
13885
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13886
libsuff=32 shlibsuff=N32 libmagic=N32;;
13887
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13888
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13889
*) libsuff= shlibsuff= libmagic=never-match;;
13893
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13894
shlibpath_overrides_runpath=no
13895
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13896
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13897
hardcode_into_libs=yes
13900
# No shared lib support for Linux oldld, aout, or coff.
13901
linux*oldld* | linux*aout* | linux*coff*)
13905
# This must be Linux ELF.
13906
linux* | k*bsd*-gnu)
13910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13911
soname_spec='${libname}${release}${shared_ext}$major'
13912
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13913
shlibpath_var=LD_LIBRARY_PATH
13914
shlibpath_overrides_runpath=no
13915
# This implies no fast_install, which is unacceptable.
13916
# Some rework will be needed to allow for fast_install
13917
# before this can be enabled.
13918
hardcode_into_libs=yes
13920
# Append ld.so.conf contents to the search path
13921
if test -f /etc/ld.so.conf; then
13922
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' ' '`
13923
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13926
# We used to test for /lib/ld.so.1 and disable shared libraries on
13927
# powerpc, because MkLinux only supported shared libraries with the
13928
# GNU dynamic linker. Since this was broken with cross compilers,
13929
# most powerpc-linux boxes support dynamic linking these days and
13930
# people can always --disable-shared, the test was removed, and we
13931
# assume the GNU/Linux dynamic linker is in use.
13932
dynamic_linker='GNU/Linux ld.so'
13939
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13941
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13942
dynamic_linker='NetBSD (a.out) ld.so'
13944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13945
soname_spec='${libname}${release}${shared_ext}$major'
13946
dynamic_linker='NetBSD ld.elf_so'
13948
shlibpath_var=LD_LIBRARY_PATH
13949
shlibpath_overrides_runpath=yes
13950
hardcode_into_libs=yes
13955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956
shlibpath_var=LD_LIBRARY_PATH
13957
shlibpath_overrides_runpath=yes
13964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965
soname_spec='${libname}${release}${shared_ext}$major'
13966
shlibpath_var=LD_LIBRARY_PATH
13967
shlibpath_overrides_runpath=yes
13972
sys_lib_dlsearch_path_spec="/usr/lib"
13974
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13976
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13977
*) need_version=no ;;
13979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13980
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13981
shlibpath_var=LD_LIBRARY_PATH
13982
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13984
openbsd2.[89] | openbsd2.[89].*)
13985
shlibpath_overrides_runpath=no
13988
shlibpath_overrides_runpath=yes
13992
shlibpath_overrides_runpath=yes
13997
libname_spec='$name'
14000
library_names_spec='$libname${shared_ext} $libname.a'
14001
dynamic_linker='OS/2 ld.exe'
14002
shlibpath_var=LIBPATH
14005
osf3* | osf4* | osf5*)
14009
soname_spec='${libname}${release}${shared_ext}$major'
14010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011
shlibpath_var=LD_LIBRARY_PATH
14012
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14013
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025
soname_spec='${libname}${release}${shared_ext}$major'
14026
shlibpath_var=LD_LIBRARY_PATH
14027
shlibpath_overrides_runpath=yes
14028
hardcode_into_libs=yes
14029
# ldd complains unless libraries are executable
14030
postinstall_cmds='chmod +x $lib'
14035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14036
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14037
shlibpath_var=LD_LIBRARY_PATH
14038
shlibpath_overrides_runpath=yes
14039
if test "$with_gnu_ld" = yes; then
14047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14048
soname_spec='${libname}${release}${shared_ext}$major'
14049
shlibpath_var=LD_LIBRARY_PATH
14050
case $host_vendor in
14052
shlibpath_overrides_runpath=no
14054
export_dynamic_flag_spec='${wl}-Blargedynsym'
14055
runpath_var=LD_RUN_PATH
14063
shlibpath_overrides_runpath=no
14064
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14070
if test -d /usr/nec ;then
14072
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14073
soname_spec='$libname${shared_ext}.$major'
14074
shlibpath_var=LD_LIBRARY_PATH
14078
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14079
version_type=freebsd-elf
14082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14083
soname_spec='${libname}${release}${shared_ext}$major'
14084
shlibpath_var=LD_LIBRARY_PATH
14085
hardcode_into_libs=yes
14086
if test "$with_gnu_ld" = yes; then
14087
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14088
shlibpath_overrides_runpath=no
14090
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14091
shlibpath_overrides_runpath=yes
14094
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14098
sys_lib_dlsearch_path_spec='/usr/lib'
14103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14104
soname_spec='${libname}${release}${shared_ext}$major'
14105
shlibpath_var=LD_LIBRARY_PATH
14112
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14113
$as_echo "$dynamic_linker" >&6; }
14114
test "$dynamic_linker" = no && can_build_shared=no
14116
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14117
$as_echo_n "(cached) " >&6
14119
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14122
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14123
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14124
$as_echo_n "(cached) " >&6
14126
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14129
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14131
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14132
if test "$GCC" = yes; then
14133
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14136
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14137
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14138
hardcode_action_CXX=
14139
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14140
test -n "$runpath_var_CXX" || \
14141
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14143
# We can hardcode non-existant directories.
14144
if test "$hardcode_direct_CXX" != no &&
14145
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14146
# have to relink, otherwise we might link with an installed library
14147
# when we should be linking with a yet-to-be-installed one
14148
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14149
test "$hardcode_minus_L_CXX" != no; then
14150
# Linking always hardcodes the temporary library directory.
14151
hardcode_action_CXX=relink
14153
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14154
hardcode_action_CXX=immediate
14157
# We cannot hardcode anything, or else we can only hardcode existing
14159
hardcode_action_CXX=unsupported
14161
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14162
$as_echo "$hardcode_action_CXX" >&6; }
14164
if test "$hardcode_action_CXX" = relink; then
14165
# Fast installation is not supported
14166
enable_fast_install=no
14167
elif test "$shlibpath_overrides_runpath" = yes ||
14168
test "$enable_shared" = no; then
14169
# Fast installation is not necessary
14170
enable_fast_install=needless
14174
# The else clause should only fire when bootstrapping the
14175
# libtool distribution, otherwise you forgot to ship ltmain.sh
14176
# with your package, and you will get complaints that there are
14177
# no rules to generate ltmain.sh.
14178
if test -f "$ltmain"; then
14179
# See if we are running on zsh, and set the options which allow our commands through
14180
# without removal of \ escapes.
14181
if test -n "${ZSH_VERSION+set}" ; then
14182
setopt NO_GLOB_SUBST
14184
# Now quote all the things that may contain metacharacters while being
14185
# careful not to overquote the AC_SUBSTed values. We take copies of the
14186
# variables and quote the copies for generation of the libtool script.
14187
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14189
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14190
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14191
deplibs_check_method reload_flag reload_cmds need_locks \
14192
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14193
lt_cv_sys_global_symbol_to_c_name_address \
14194
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14195
old_postinstall_cmds old_postuninstall_cmds \
14199
lt_prog_compiler_wl_CXX \
14200
lt_prog_compiler_pic_CXX \
14201
lt_prog_compiler_static_CXX \
14202
lt_prog_compiler_no_builtin_flag_CXX \
14203
export_dynamic_flag_spec_CXX \
14204
thread_safe_flag_spec_CXX \
14205
whole_archive_flag_spec_CXX \
14206
enable_shared_with_static_runtimes_CXX \
14207
old_archive_cmds_CXX \
14208
old_archive_from_new_cmds_CXX \
14209
predep_objects_CXX \
14210
postdep_objects_CXX \
14213
compiler_lib_search_path_CXX \
14214
compiler_lib_search_dirs_CXX \
14216
archive_expsym_cmds_CXX \
14217
postinstall_cmds_CXX \
14218
postuninstall_cmds_CXX \
14219
old_archive_from_expsyms_cmds_CXX \
14220
allow_undefined_flag_CXX \
14221
no_undefined_flag_CXX \
14222
export_symbols_cmds_CXX \
14223
hardcode_libdir_flag_spec_CXX \
14224
hardcode_libdir_flag_spec_ld_CXX \
14225
hardcode_libdir_separator_CXX \
14226
hardcode_automatic_CXX \
14228
module_expsym_cmds_CXX \
14229
lt_cv_prog_compiler_c_o_CXX \
14230
fix_srcfile_path_CXX \
14231
exclude_expsyms_CXX \
14232
include_expsyms_CXX; do
14235
old_archive_cmds_CXX | \
14236
old_archive_from_new_cmds_CXX | \
14237
archive_cmds_CXX | \
14238
archive_expsym_cmds_CXX | \
14239
module_cmds_CXX | \
14240
module_expsym_cmds_CXX | \
14241
old_archive_from_expsyms_cmds_CXX | \
14242
export_symbols_cmds_CXX | \
14243
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14244
postinstall_cmds | postuninstall_cmds | \
14245
old_postinstall_cmds | old_postuninstall_cmds | \
14246
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14247
# Double-quote double-evaled strings.
14248
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14251
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14257
*'\$0 --fallback-echo"')
14258
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14264
cat <<__EOF__ >> "$cfgfile"
14265
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14267
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14269
# Shell to use when invoking shell scripts.
14272
# Whether or not to build shared libraries.
14273
build_libtool_libs=$enable_shared
14275
# Whether or not to build static libraries.
14276
build_old_libs=$enable_static
14278
# Whether or not to add -lc for building shared libraries.
14279
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14281
# Whether or not to disallow shared libs when runtime libs are static
14282
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14284
# Whether or not to optimize for fast installation.
14285
fast_install=$enable_fast_install
14288
host_alias=$host_alias
14292
# The build system.
14293
build_alias=$build_alias
14297
# An echo program that does not interpret backslashes.
14302
AR_FLAGS=$lt_AR_FLAGS
14307
# LTCC compiler flags.
14308
LTCFLAGS=$lt_LTCFLAGS
14310
# A language-specific compiler.
14311
CC=$lt_compiler_CXX
14313
# Is the compiler the GNU C compiler?
14319
# The linker used to build libraries.
14322
# Whether we need hard or soft links.
14325
# A BSD-compatible nm program.
14328
# A symbol stripping program
14331
# Used to examine libraries when file_magic_cmd begins "file"
14332
MAGIC_CMD=$MAGIC_CMD
14334
# Used on cygwin: DLL creation program.
14337
# Used on cygwin: object dumper.
14340
# Used on cygwin: assembler.
14343
# The name of the directory that contains temporary libtool files.
14346
# How to create reloadable object files.
14347
reload_flag=$lt_reload_flag
14348
reload_cmds=$lt_reload_cmds
14350
# How to pass a linker flag through the compiler.
14351
wl=$lt_lt_prog_compiler_wl_CXX
14353
# Object file suffix (normally "o").
14354
objext="$ac_objext"
14356
# Old archive suffix (normally "a").
14359
# Shared library suffix (normally ".so").
14360
shrext_cmds='$shrext_cmds'
14362
# Executable file suffix (normally "").
14365
# Additional compiler flags for building library objects.
14366
pic_flag=$lt_lt_prog_compiler_pic_CXX
14369
# What is the maximum length of a command?
14370
max_cmd_len=$lt_cv_sys_max_cmd_len
14372
# Does compiler simultaneously support -c and -o options?
14373
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14375
# Must we lock files when doing compilation?
14376
need_locks=$lt_need_locks
14378
# Do we need the lib prefix for modules?
14379
need_lib_prefix=$need_lib_prefix
14381
# Do we need a version for libraries?
14382
need_version=$need_version
14384
# Whether dlopen is supported.
14385
dlopen_support=$enable_dlopen
14387
# Whether dlopen of programs is supported.
14388
dlopen_self=$enable_dlopen_self
14390
# Whether dlopen of statically linked programs is supported.
14391
dlopen_self_static=$enable_dlopen_self_static
14393
# Compiler flag to prevent dynamic linking.
14394
link_static_flag=$lt_lt_prog_compiler_static_CXX
14396
# Compiler flag to turn off builtin functions.
14397
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14399
# Compiler flag to allow reflexive dlopens.
14400
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14402
# Compiler flag to generate shared objects directly from archives.
14403
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14405
# Compiler flag to generate thread-safe objects.
14406
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14408
# Library versioning type.
14409
version_type=$version_type
14411
# Format of library name prefix.
14412
libname_spec=$lt_libname_spec
14414
# List of archive names. First name is the real one, the rest are links.
14415
# The last name is the one that the linker finds with -lNAME.
14416
library_names_spec=$lt_library_names_spec
14418
# The coded name of the library, if different from the real name.
14419
soname_spec=$lt_soname_spec
14421
# Commands used to build and install an old-style archive.
14423
old_archive_cmds=$lt_old_archive_cmds_CXX
14424
old_postinstall_cmds=$lt_old_postinstall_cmds
14425
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14427
# Create an old-style archive from a shared archive.
14428
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14430
# Create a temporary old-style archive to link instead of a shared archive.
14431
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14433
# Commands used to build and install a shared archive.
14434
archive_cmds=$lt_archive_cmds_CXX
14435
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14436
postinstall_cmds=$lt_postinstall_cmds
14437
postuninstall_cmds=$lt_postuninstall_cmds
14439
# Commands used to build a loadable module (assumed same as above if empty)
14440
module_cmds=$lt_module_cmds_CXX
14441
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14443
# Commands to strip libraries.
14444
old_striplib=$lt_old_striplib
14445
striplib=$lt_striplib
14447
# Dependencies to place before the objects being linked to create a
14449
predep_objects=$lt_predep_objects_CXX
14451
# Dependencies to place after the objects being linked to create a
14453
postdep_objects=$lt_postdep_objects_CXX
14455
# Dependencies to place before the objects being linked to create a
14457
predeps=$lt_predeps_CXX
14459
# Dependencies to place after the objects being linked to create a
14461
postdeps=$lt_postdeps_CXX
14463
# The directories searched by this compiler when creating a shared
14465
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14467
# The library search path used internally by the compiler when linking
14468
# a shared library.
14469
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14471
# Method to check whether dependent libraries are shared objects.
14472
deplibs_check_method=$lt_deplibs_check_method
14474
# Command to use when deplibs_check_method == file_magic.
14475
file_magic_cmd=$lt_file_magic_cmd
14477
# Flag that allows shared libraries with undefined symbols to be built.
14478
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14480
# Flag that forces no undefined symbols.
14481
no_undefined_flag=$lt_no_undefined_flag_CXX
14483
# Commands used to finish a libtool library installation in a directory.
14484
finish_cmds=$lt_finish_cmds
14486
# Same as above, but a single script fragment to be evaled but not shown.
14487
finish_eval=$lt_finish_eval
14489
# Take the output of nm and produce a listing of raw symbols and C names.
14490
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14492
# Transform the output of nm in a proper C declaration
14493
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14495
# Transform the output of nm in a C name address pair
14496
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14498
# This is the shared library runtime path variable.
14499
runpath_var=$runpath_var
14501
# This is the shared library path variable.
14502
shlibpath_var=$shlibpath_var
14504
# Is shlibpath searched before the hard-coded library search path?
14505
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14507
# How to hardcode a shared library path into an executable.
14508
hardcode_action=$hardcode_action_CXX
14510
# Whether we should hardcode library paths into libraries.
14511
hardcode_into_libs=$hardcode_into_libs
14513
# Flag to hardcode \$libdir into a binary during linking.
14514
# This must work even if \$libdir does not exist.
14515
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14517
# If ld is used when linking, flag to hardcode \$libdir into
14518
# a binary during linking. This must work even if \$libdir does
14520
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14522
# Whether we need a single -rpath flag with a separated argument.
14523
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14525
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14526
# resulting binary.
14527
hardcode_direct=$hardcode_direct_CXX
14529
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14530
# resulting binary.
14531
hardcode_minus_L=$hardcode_minus_L_CXX
14533
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14534
# the resulting binary.
14535
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14537
# Set to yes if building a shared library automatically hardcodes DIR into the library
14538
# and all subsequent libraries and executables linked against it.
14539
hardcode_automatic=$hardcode_automatic_CXX
14541
# Variables whose values should be saved in libtool wrapper scripts and
14542
# restored at relink time.
14543
variables_saved_for_relink="$variables_saved_for_relink"
14545
# Whether libtool must link a program against all its dependency libraries.
14546
link_all_deplibs=$link_all_deplibs_CXX
14548
# Compile-time system search path for libraries
14549
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14551
# Run-time system search path for libraries
14552
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14554
# Fix the shell variable \$srcfile for the compiler.
14555
fix_srcfile_path=$lt_fix_srcfile_path
14557
# Set to yes if exported symbols are required.
14558
always_export_symbols=$always_export_symbols_CXX
14560
# The commands to list exported symbols.
14561
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14563
# The commands to extract the exported symbol list from a shared archive.
14564
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14566
# Symbols that should not be listed in the preloaded symbols.
14567
exclude_expsyms=$lt_exclude_expsyms_CXX
14569
# Symbols that must always be exported.
14570
include_expsyms=$lt_include_expsyms_CXX
14572
# ### END LIBTOOL TAG CONFIG: $tagname
14578
# If there is no Makefile yet, we rely on a make rule to execute
14579
# `config.status --recheck' to rerun these tests and create the
14580
# libtool script then.
14581
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14582
if test -f "$ltmain_in"; then
14583
test -f Makefile && make "$ltmain"
14589
ac_cpp='$CPP $CPPFLAGS'
14590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14598
with_gnu_ldcxx=$with_gnu_ld
14599
with_gnu_ld=$lt_save_with_gnu_ld
14600
lt_cv_path_LDCXX=$lt_cv_path_LD
14601
lt_cv_path_LD=$lt_save_path_LD
14602
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14603
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14611
if test -n "$F77" && test "X$F77" != "Xno"; then
14614
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14615
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14616
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14619
archive_cmds_need_lc_F77=no
14620
allow_undefined_flag_F77=
14621
always_export_symbols_F77=no
14622
archive_expsym_cmds_F77=
14623
export_dynamic_flag_spec_F77=
14624
hardcode_direct_F77=no
14625
hardcode_libdir_flag_spec_F77=
14626
hardcode_libdir_flag_spec_ld_F77=
14627
hardcode_libdir_separator_F77=
14628
hardcode_minus_L_F77=no
14629
hardcode_automatic_F77=no
14631
module_expsym_cmds_F77=
14632
link_all_deplibs_F77=unknown
14633
old_archive_cmds_F77=$old_archive_cmds
14634
no_undefined_flag_F77=
14635
whole_archive_flag_spec_F77=
14636
enable_shared_with_static_runtimes_F77=no
14638
# Source file extension for f77 test sources.
14641
# Object file extension for compiled f77 test sources.
14645
# Code to be used in simple compile tests
14646
lt_simple_compile_test_code="\
14652
# Code to be used in simple link tests
14653
lt_simple_link_test_code="\
14658
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14660
# If no C compiler was specified, use CC.
14663
# If no C compiler flags were specified, use CFLAGS.
14664
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14666
# Allow CC to be a program name with arguments.
14670
# save warnings/boilerplate of simple test code
14671
ac_outfile=conftest.$ac_objext
14672
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14673
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14674
_lt_compiler_boilerplate=`cat conftest.err`
14677
ac_outfile=conftest.$ac_objext
14678
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14679
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14680
_lt_linker_boilerplate=`cat conftest.err`
14684
# Allow CC to be a program name with arguments.
14689
for cc_temp in $compiler""; do
14691
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14692
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14697
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14700
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14701
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14702
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14703
$as_echo "$can_build_shared" >&6; }
14705
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14706
$as_echo_n "checking whether to build shared libraries... " >&6; }
14707
test "$can_build_shared" = "no" && enable_shared=no
14709
# On AIX, shared libraries and static libraries use the same namespace, and
14710
# are all built from PIC.
14713
test "$enable_shared" = yes && enable_static=no
14714
if test -n "$RANLIB"; then
14715
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14716
postinstall_cmds='$RANLIB $lib'
14720
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14721
test "$enable_shared" = yes && enable_static=no
14725
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14726
$as_echo "$enable_shared" >&6; }
14728
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14729
$as_echo_n "checking whether to build static libraries... " >&6; }
14730
# Make sure either enable_shared or enable_static is yes.
14731
test "$enable_shared" = yes || enable_static=yes
14732
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14733
$as_echo "$enable_static" >&6; }
14738
lt_prog_compiler_wl_F77=
14739
lt_prog_compiler_pic_F77=
14740
lt_prog_compiler_static_F77=
14742
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14743
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14745
if test "$GCC" = yes; then
14746
lt_prog_compiler_wl_F77='-Wl,'
14747
lt_prog_compiler_static_F77='-static'
14751
# All AIX code is PIC.
14752
if test "$host_cpu" = ia64; then
14753
# AIX 5 now supports IA64 processor
14754
lt_prog_compiler_static_F77='-Bstatic'
14759
# FIXME: we need at least 68020 code to build shared libraries, but
14760
# adding the `-m68020' flag to GCC prevents building anything better,
14762
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14765
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14766
# PIC is the default for these OSes.
14769
mingw* | cygwin* | pw32* | os2*)
14770
# This hack is so that the source file can tell whether it is being
14771
# built for inclusion in a dll (and should export symbols for example).
14772
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14773
# (--disable-auto-import) libraries
14774
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14777
darwin* | rhapsody*)
14778
# PIC is the default on this platform
14779
# Common symbols not allowed in MH_DYLIB files
14780
lt_prog_compiler_pic_F77='-fno-common'
14784
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14785
# Instead, we relocate shared libraries at runtime.
14789
# Just because we use GCC doesn't mean we suddenly get shared libraries
14790
# on systems that don't support them.
14791
lt_prog_compiler_can_build_shared_F77=no
14796
if test -d /usr/nec; then
14797
lt_prog_compiler_pic_F77=-Kconform_pic
14802
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14803
# not for PA HP-UX.
14809
lt_prog_compiler_pic_F77='-fPIC'
14815
lt_prog_compiler_pic_F77='-fPIC'
14819
# PORTME Check for flag to pass linker flags through the system compiler.
14822
lt_prog_compiler_wl_F77='-Wl,'
14823
if test "$host_cpu" = ia64; then
14824
# AIX 5 now supports IA64 processor
14825
lt_prog_compiler_static_F77='-Bstatic'
14827
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14831
# PIC is the default on this platform
14832
# Common symbols not allowed in MH_DYLIB files
14833
case $cc_basename in
14835
lt_prog_compiler_pic_F77='-qnocommon'
14836
lt_prog_compiler_wl_F77='-Wl,'
14841
mingw* | cygwin* | pw32* | os2*)
14842
# This hack is so that the source file can tell whether it is being
14843
# built for inclusion in a dll (and should export symbols for example).
14844
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14847
hpux9* | hpux10* | hpux11*)
14848
lt_prog_compiler_wl_F77='-Wl,'
14849
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14850
# not for PA HP-UX.
14856
lt_prog_compiler_pic_F77='+Z'
14859
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14860
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14863
irix5* | irix6* | nonstopux*)
14864
lt_prog_compiler_wl_F77='-Wl,'
14865
# PIC (with -KPIC) is the default.
14866
lt_prog_compiler_static_F77='-non_shared'
14870
lt_prog_compiler_pic_F77='-KPIC'
14871
lt_prog_compiler_static_F77='-Bstatic'
14874
linux* | k*bsd*-gnu)
14875
case $cc_basename in
14877
lt_prog_compiler_wl_F77='-Wl,'
14878
lt_prog_compiler_pic_F77='-KPIC'
14879
lt_prog_compiler_static_F77='-static'
14881
pgcc* | pgf77* | pgf90* | pgf95*)
14882
# Portland Group compilers (*not* the Pentium gcc compiler,
14883
# which looks to be a dead project)
14884
lt_prog_compiler_wl_F77='-Wl,'
14885
lt_prog_compiler_pic_F77='-fpic'
14886
lt_prog_compiler_static_F77='-Bstatic'
14889
lt_prog_compiler_wl_F77='-Wl,'
14890
# All Alpha code is PIC.
14891
lt_prog_compiler_static_F77='-non_shared'
14894
case `$CC -V 2>&1 | sed 5q` in
14897
lt_prog_compiler_pic_F77='-KPIC'
14898
lt_prog_compiler_static_F77='-Bstatic'
14899
lt_prog_compiler_wl_F77='-Wl,'
14902
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14903
lt_prog_compiler_pic_F77='-KPIC'
14904
lt_prog_compiler_static_F77='-Bstatic'
14905
lt_prog_compiler_wl_F77=''
14912
osf3* | osf4* | osf5*)
14913
lt_prog_compiler_wl_F77='-Wl,'
14914
# All OSF/1 code is PIC.
14915
lt_prog_compiler_static_F77='-non_shared'
14919
lt_prog_compiler_static_F77='-non_shared'
14923
lt_prog_compiler_pic_F77='-KPIC'
14924
lt_prog_compiler_static_F77='-Bstatic'
14925
case $cc_basename in
14926
f77* | f90* | f95*)
14927
lt_prog_compiler_wl_F77='-Qoption ld ';;
14929
lt_prog_compiler_wl_F77='-Wl,';;
14934
lt_prog_compiler_wl_F77='-Qoption ld '
14935
lt_prog_compiler_pic_F77='-PIC'
14936
lt_prog_compiler_static_F77='-Bstatic'
14939
sysv4 | sysv4.2uw2* | sysv4.3*)
14940
lt_prog_compiler_wl_F77='-Wl,'
14941
lt_prog_compiler_pic_F77='-KPIC'
14942
lt_prog_compiler_static_F77='-Bstatic'
14946
if test -d /usr/nec ;then
14947
lt_prog_compiler_pic_F77='-Kconform_pic'
14948
lt_prog_compiler_static_F77='-Bstatic'
14952
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14953
lt_prog_compiler_wl_F77='-Wl,'
14954
lt_prog_compiler_pic_F77='-KPIC'
14955
lt_prog_compiler_static_F77='-Bstatic'
14959
lt_prog_compiler_wl_F77='-Wl,'
14960
lt_prog_compiler_can_build_shared_F77=no
14964
lt_prog_compiler_pic_F77='-pic'
14965
lt_prog_compiler_static_F77='-Bstatic'
14969
lt_prog_compiler_can_build_shared_F77=no
14974
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14975
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14978
# Check to make sure the PIC flag actually works.
14980
if test -n "$lt_prog_compiler_pic_F77"; then
14982
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14983
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14984
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14985
$as_echo_n "(cached) " >&6
14987
lt_cv_prog_compiler_pic_works_F77=no
14988
ac_outfile=conftest.$ac_objext
14989
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14990
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14991
# Insert the option either (1) after the last *FLAGS variable, or
14992
# (2) before a word containing "conftest.", or (3) at the end.
14993
# Note that $ac_compile itself does not contain backslashes and begins
14994
# with a dollar sign (not a hyphen), so the echo should work correctly.
14995
# The option is referenced via a variable to avoid confusing sed.
14996
lt_compile=`echo "$ac_compile" | $SED \
14997
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14998
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14999
-e 's:$: $lt_compiler_flag:'`
15000
(eval echo "\"\$as_me:15000: $lt_compile\"" >&5)
15001
(eval "$lt_compile" 2>conftest.err)
15003
cat conftest.err >&5
15004
echo "$as_me:15004: \$? = $ac_status" >&5
15005
if (exit $ac_status) && test -s "$ac_outfile"; then
15006
# The compiler can only warn and ignore the option if not recognized
15007
# So say no if there are warnings other than the usual output.
15008
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15009
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15010
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15011
lt_cv_prog_compiler_pic_works_F77=yes
15017
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15018
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15020
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15021
case $lt_prog_compiler_pic_F77 in
15023
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15026
lt_prog_compiler_pic_F77=
15027
lt_prog_compiler_can_build_shared_F77=no
15032
# For platforms which do not support PIC, -DPIC is meaningless:
15034
lt_prog_compiler_pic_F77=
15037
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15042
# Check to make sure the static flag actually works.
15044
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15045
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15046
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15047
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15048
$as_echo_n "(cached) " >&6
15050
lt_cv_prog_compiler_static_works_F77=no
15051
save_LDFLAGS="$LDFLAGS"
15052
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15053
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15054
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15055
# The linker can only warn and ignore the option if not recognized
15056
# So say no if there are warnings
15057
if test -s conftest.err; then
15058
# Append any errors to the config.log.
15059
cat conftest.err 1>&5
15060
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15061
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15062
if diff conftest.exp conftest.er2 >/dev/null; then
15063
lt_cv_prog_compiler_static_works_F77=yes
15066
lt_cv_prog_compiler_static_works_F77=yes
15070
LDFLAGS="$save_LDFLAGS"
15073
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15074
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15076
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15079
lt_prog_compiler_static_F77=
15083
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15084
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15085
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15086
$as_echo_n "(cached) " >&6
15088
lt_cv_prog_compiler_c_o_F77=no
15089
$rm -r conftest 2>/dev/null
15093
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15095
lt_compiler_flag="-o out/conftest2.$ac_objext"
15096
# Insert the option either (1) after the last *FLAGS variable, or
15097
# (2) before a word containing "conftest.", or (3) at the end.
15098
# Note that $ac_compile itself does not contain backslashes and begins
15099
# with a dollar sign (not a hyphen), so the echo should work correctly.
15100
lt_compile=`echo "$ac_compile" | $SED \
15101
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15102
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15103
-e 's:$: $lt_compiler_flag:'`
15104
(eval echo "\"\$as_me:15104: $lt_compile\"" >&5)
15105
(eval "$lt_compile" 2>out/conftest.err)
15107
cat out/conftest.err >&5
15108
echo "$as_me:15108: \$? = $ac_status" >&5
15109
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15111
# The compiler can only warn and ignore the option if not recognized
15112
# So say no if there are warnings
15113
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15114
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15115
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15116
lt_cv_prog_compiler_c_o_F77=yes
15121
# SGI C++ compiler will create directory out/ii_files/ for
15122
# template instantiation
15123
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15124
$rm out/* && rmdir out
15130
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15131
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15134
hard_links="nottested"
15135
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15136
# do not overwrite the value of need_locks provided by the user
15137
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15138
$as_echo_n "checking if we can lock with hard links... " >&6; }
15141
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15143
ln conftest.a conftest.b 2>&5 || hard_links=no
15144
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15145
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15146
$as_echo "$hard_links" >&6; }
15147
if test "$hard_links" = no; then
15148
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15149
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15156
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15157
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15160
allow_undefined_flag_F77=
15161
enable_shared_with_static_runtimes_F77=no
15163
archive_expsym_cmds_F77=
15164
old_archive_From_new_cmds_F77=
15165
old_archive_from_expsyms_cmds_F77=
15166
export_dynamic_flag_spec_F77=
15167
whole_archive_flag_spec_F77=
15168
thread_safe_flag_spec_F77=
15169
hardcode_libdir_flag_spec_F77=
15170
hardcode_libdir_flag_spec_ld_F77=
15171
hardcode_libdir_separator_F77=
15172
hardcode_direct_F77=no
15173
hardcode_minus_L_F77=no
15174
hardcode_shlibpath_var_F77=unsupported
15175
link_all_deplibs_F77=unknown
15176
hardcode_automatic_F77=no
15178
module_expsym_cmds_F77=
15179
always_export_symbols_F77=no
15180
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15181
# include_expsyms should be a list of space-separated symbols to be *always*
15182
# included in the symbol list
15183
include_expsyms_F77=
15184
# exclude_expsyms can be an extended regexp of symbols to exclude
15185
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15186
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15187
# as well as any symbol that contains `d'.
15188
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15189
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15190
# platforms (ab)use it in PIC code, but their linkers get confused if
15191
# the symbol is explicitly referenced. Since portable code cannot
15192
# rely on this symbol name, it's probably fine to never include it in
15193
# preloaded symbol tables.
15194
# Exclude shared library initialization/finalization symbols.
15195
extract_expsyms_cmds=
15196
# Just being paranoid about ensuring that cc_basename is set.
15197
for cc_temp in $compiler""; do
15199
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15200
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15205
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15208
cygwin* | mingw* | pw32*)
15209
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15210
# When not using gcc, we currently assume that we are using
15211
# Microsoft Visual C++.
15212
if test "$GCC" != yes; then
15217
# we just hope/assume this is gcc and not c89 (= MSVC++)
15226
if test "$with_gnu_ld" = yes; then
15227
# If archive_cmds runs LD, not CC, wlarc should be empty
15230
# Set some defaults for GNU ld with shared library support. These
15231
# are reset later if shared libraries are not supported. Putting them
15232
# here allows them to be overridden if necessary.
15233
runpath_var=LD_RUN_PATH
15234
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15235
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15236
# ancient GNU ld didn't support --whole-archive et. al.
15237
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15238
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15240
whole_archive_flag_spec_F77=
15242
supports_anon_versioning=no
15243
case `$LD -v 2>/dev/null` in
15244
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15245
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15246
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15247
*\ 2.11.*) ;; # other 2.11 versions
15248
*) supports_anon_versioning=yes ;;
15251
# See if GNU ld supports shared libraries.
15254
# On AIX/PPC, the GNU linker is very broken
15255
if test "$host_cpu" != ia64; then
15259
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15260
*** to be unable to reliably create shared libraries on AIX.
15261
*** Therefore, libtool is disabling shared libraries support. If you
15262
*** really care for shared libraries, you may want to modify your PATH
15263
*** so that a non-GNU linker is found, and then restart.
15270
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)'
15271
hardcode_libdir_flag_spec_F77='-L$libdir'
15272
hardcode_minus_L_F77=yes
15274
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15275
# that the semantics of dynamic libraries on AmigaOS, at least up
15276
# to version 4, is to share data among multiple programs linked
15277
# with the same dynamic library. Since this doesn't match the
15278
# behavior of shared libraries on other platforms, we can't use
15284
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15285
allow_undefined_flag_F77=unsupported
15286
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15287
# support --undefined. This deserves some investigation. FIXME
15288
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294
cygwin* | mingw* | pw32*)
15295
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15296
# as there is no search path for DLLs.
15297
hardcode_libdir_flag_spec_F77='-L$libdir'
15298
allow_undefined_flag_F77=unsupported
15299
always_export_symbols_F77=no
15300
enable_shared_with_static_runtimes_F77=yes
15301
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15303
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15304
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15305
# If the export-symbols file already is a .def file (1st line
15306
# is EXPORTS), use it as is; otherwise, prepend...
15307
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15308
cp $export_symbols $output_objdir/$soname.def;
15310
echo EXPORTS > $output_objdir/$soname.def;
15311
cat $export_symbols >> $output_objdir/$soname.def;
15313
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15320
hardcode_direct_F77=no
15321
hardcode_shlibpath_var_F77=no
15322
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15323
export_dynamic_flag_spec_F77='${wl}-E'
15324
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15325
# Instead, shared libraries are loaded at an image base (0x10000000 by
15326
# default) and relocated if they conflict, which is a slow very memory
15327
# consuming and fragmenting process. To avoid this, we pick a random,
15328
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15329
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15330
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'
15331
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'
15334
gnu* | linux* | k*bsd*-gnu)
15335
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15337
case $cc_basename,$host_cpu in
15338
pgcc*) # Portland Group C compiler
15339
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'
15340
tmp_addflag=' $pic_flag'
15342
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15343
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'
15344
tmp_addflag=' $pic_flag -Mnomain' ;;
15345
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15346
tmp_addflag=' -i_dynamic' ;;
15347
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15348
tmp_addflag=' -i_dynamic -nofor_main' ;;
15349
ifc* | ifort*) # Intel Fortran compiler
15350
tmp_addflag=' -nofor_main' ;;
15352
case `$CC -V 2>&1 | sed 5q` in
15353
*Sun\ C*) # Sun C 5.9
15354
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'
15355
tmp_sharedflag='-G' ;;
15356
*Sun\ F*) # Sun Fortran 8.3
15357
tmp_sharedflag='-G' ;;
15359
tmp_sharedflag='-shared' ;;
15361
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15363
if test $supports_anon_versioning = yes; then
15364
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15365
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15366
$echo "local: *; };" >> $output_objdir/$libname.ver~
15367
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15375
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15376
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15379
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15380
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15389
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15390
*** create shared libraries on Solaris systems. Therefore, libtool
15391
*** is disabling shared libraries support. We urge you to upgrade GNU
15392
*** binutils to release 2.9.1 or newer. Another option is to modify
15393
*** your PATH or compiler configuration so that the native linker is
15394
*** used, and then restart.
15397
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15398
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15399
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15405
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15406
case `$LD -v 2>&1` in
15407
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15411
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15412
*** reliably create shared libraries on SCO systems. Therefore, libtool
15413
*** is disabling shared libraries support. We urge you to upgrade GNU
15414
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15415
*** your PATH or compiler configuration so that the native linker is
15416
*** used, and then restart.
15421
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15422
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15423
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15424
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15433
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435
hardcode_direct_F77=yes
15436
hardcode_shlibpath_var_F77=no
15440
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15441
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15442
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15449
if test "$ld_shlibs_F77" = no; then
15451
hardcode_libdir_flag_spec_F77=
15452
export_dynamic_flag_spec_F77=
15453
whole_archive_flag_spec_F77=
15456
# PORTME fill in a description of your system's linker (not GNU ld)
15459
allow_undefined_flag_F77=unsupported
15460
always_export_symbols_F77=yes
15461
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'
15462
# Note: this linker hardcodes the directories in LIBPATH if there
15463
# are no directories specified by -L.
15464
hardcode_minus_L_F77=yes
15465
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15466
# Neither direct hardcoding nor static linking is supported with a
15468
hardcode_direct_F77=unsupported
15473
if test "$host_cpu" = ia64; then
15474
# On IA64, the linker does run time linking by default, so we don't
15475
# have to do anything special.
15476
aix_use_runtimelinking=no
15477
exp_sym_flag='-Bexport'
15480
# If we're using GNU nm, then we don't want the "-C" option.
15481
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15482
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15483
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'
15485
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'
15487
aix_use_runtimelinking=no
15489
# Test if we are trying to use run time linking or normal
15490
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15491
# need to do runtime linking.
15492
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15493
for ld_flag in $LDFLAGS; do
15494
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15495
aix_use_runtimelinking=yes
15502
exp_sym_flag='-bexport'
15503
no_entry_flag='-bnoentry'
15506
# When large executables or shared objects are built, AIX ld can
15507
# have problems creating the table of contents. If linking a library
15508
# or program results in "error TOC overflow" add -mminimal-toc to
15509
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15510
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15512
archive_cmds_F77=''
15513
hardcode_direct_F77=yes
15514
hardcode_libdir_separator_F77=':'
15515
link_all_deplibs_F77=yes
15517
if test "$GCC" = yes; then
15518
case $host_os in aix4.[012]|aix4.[012].*)
15519
# We only want to do this on AIX 4.2 and lower, the check
15520
# below for broken collect2 doesn't work under 4.3+
15521
collect2name=`${CC} -print-prog-name=collect2`
15522
if test -f "$collect2name" && \
15523
strings "$collect2name" | grep resolve_lib_name >/dev/null
15525
# We have reworked collect2
15528
# We have old collect2
15529
hardcode_direct_F77=unsupported
15530
# It fails to find uninstalled libraries when the uninstalled
15531
# path is not listed in the libpath. Setting hardcode_minus_L
15532
# to unsupported forces relinking
15533
hardcode_minus_L_F77=yes
15534
hardcode_libdir_flag_spec_F77='-L$libdir'
15535
hardcode_libdir_separator_F77=
15539
shared_flag='-shared'
15540
if test "$aix_use_runtimelinking" = yes; then
15541
shared_flag="$shared_flag "'${wl}-G'
15545
if test "$host_cpu" = ia64; then
15546
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15547
# chokes on -Wl,-G. The following line is correct:
15550
if test "$aix_use_runtimelinking" = yes; then
15551
shared_flag='${wl}-G'
15553
shared_flag='${wl}-bM:SRE'
15558
# It seems that -bexpall does not export symbols beginning with
15559
# underscore (_), so it is better to generate a list of symbols to export.
15560
always_export_symbols_F77=yes
15561
if test "$aix_use_runtimelinking" = yes; then
15562
# Warning - without using the other runtime loading flags (-brtl),
15563
# -berok will link without error, but may produce a broken library.
15564
allow_undefined_flag_F77='-berok'
15565
# Determine the default libpath from the value encoded in an empty executable.
15566
cat >conftest.$ac_ext <<_ACEOF
15571
rm -f conftest.$ac_objext conftest$ac_exeext
15572
if { (ac_try="$ac_link"
15573
case "(($ac_try" in
15574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575
*) ac_try_echo=$ac_try;;
15577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578
$as_echo "$ac_try_echo") >&5
15579
(eval "$ac_link") 2>conftest.er1
15581
grep -v '^ *+' conftest.er1 >conftest.err
15583
cat conftest.err >&5
15584
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585
(exit $ac_status); } && {
15586
test -z "$ac_f77_werror_flag" ||
15587
test ! -s conftest.err
15588
} && test -s conftest$ac_exeext && {
15589
test "$cross_compiling" = yes ||
15590
$as_test_x conftest$ac_exeext
15593
lt_aix_libpath_sed='
15594
/Import File Strings/,/^$/ {
15600
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15601
# Check for a 64-bit object if we didn't find anything.
15602
if test -z "$aix_libpath"; then
15603
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15606
$as_echo "$as_me: failed program was:" >&5
15607
sed 's/^/| /' conftest.$ac_ext >&5
15612
rm -rf conftest.dSYM
15613
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614
conftest$ac_exeext conftest.$ac_ext
15615
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15617
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15618
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"
15620
if test "$host_cpu" = ia64; then
15621
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15622
allow_undefined_flag_F77="-z nodefs"
15623
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"
15625
# Determine the default libpath from the value encoded in an empty executable.
15626
cat >conftest.$ac_ext <<_ACEOF
15631
rm -f conftest.$ac_objext conftest$ac_exeext
15632
if { (ac_try="$ac_link"
15633
case "(($ac_try" in
15634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635
*) ac_try_echo=$ac_try;;
15637
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638
$as_echo "$ac_try_echo") >&5
15639
(eval "$ac_link") 2>conftest.er1
15641
grep -v '^ *+' conftest.er1 >conftest.err
15643
cat conftest.err >&5
15644
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645
(exit $ac_status); } && {
15646
test -z "$ac_f77_werror_flag" ||
15647
test ! -s conftest.err
15648
} && test -s conftest$ac_exeext && {
15649
test "$cross_compiling" = yes ||
15650
$as_test_x conftest$ac_exeext
15653
lt_aix_libpath_sed='
15654
/Import File Strings/,/^$/ {
15660
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15661
# Check for a 64-bit object if we didn't find anything.
15662
if test -z "$aix_libpath"; then
15663
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15666
$as_echo "$as_me: failed program was:" >&5
15667
sed 's/^/| /' conftest.$ac_ext >&5
15672
rm -rf conftest.dSYM
15673
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15674
conftest$ac_exeext conftest.$ac_ext
15675
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15677
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15678
# Warning - without using the other run time loading flags,
15679
# -berok will link without error, but may produce a broken library.
15680
no_undefined_flag_F77=' ${wl}-bernotok'
15681
allow_undefined_flag_F77=' ${wl}-berok'
15682
# Exported symbols can be pulled into shared objects from archives
15683
whole_archive_flag_spec_F77='$convenience'
15684
archive_cmds_need_lc_F77=yes
15685
# This is similar to how AIX traditionally builds its shared libraries.
15686
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'
15692
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)'
15693
hardcode_libdir_flag_spec_F77='-L$libdir'
15694
hardcode_minus_L_F77=yes
15695
# see comment about different semantics on the GNU ld section
15700
export_dynamic_flag_spec_F77=-rdynamic
15703
cygwin* | mingw* | pw32*)
15704
# When not using gcc, we currently assume that we are using
15705
# Microsoft Visual C++.
15706
# hardcode_libdir_flag_spec is actually meaningless, as there is
15707
# no search path for DLLs.
15708
hardcode_libdir_flag_spec_F77=' '
15709
allow_undefined_flag_F77=unsupported
15710
# Tell ltmain to make .lib files, not .a files.
15712
# Tell ltmain to make .dll files, not .so files.
15714
# FIXME: Setting linknames here is a bad hack.
15715
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15716
# The linker will automatically build a .lib file if we build a DLL.
15717
old_archive_From_new_cmds_F77='true'
15718
# FIXME: Should let the user specify the lib program.
15719
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15720
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15721
enable_shared_with_static_runtimes_F77=yes
15724
darwin* | rhapsody*)
15726
rhapsody* | darwin1.[012])
15727
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15730
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15731
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15733
case ${MACOSX_DEPLOYMENT_TARGET} in
15735
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15738
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15744
archive_cmds_need_lc_F77=no
15745
hardcode_direct_F77=no
15746
hardcode_automatic_F77=yes
15747
hardcode_shlibpath_var_F77=unsupported
15748
whole_archive_flag_spec_F77=''
15749
link_all_deplibs_F77=yes
15750
if test "$GCC" = yes ; then
15751
output_verbose_link_cmd='echo'
15752
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}"
15753
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15754
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}"
15755
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}"
15757
case $cc_basename in
15759
output_verbose_link_cmd='echo'
15760
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15761
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15762
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15763
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}'
15764
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}'
15774
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15775
hardcode_libdir_flag_spec_F77='-L$libdir'
15776
hardcode_shlibpath_var_F77=no
15783
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15784
# support. Future versions do this automatically, but an explicit c++rt0.o
15785
# does not break anything, and helps significantly (at the cost of a little
15788
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15789
hardcode_libdir_flag_spec_F77='-R$libdir'
15790
hardcode_direct_F77=yes
15791
hardcode_shlibpath_var_F77=no
15794
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15796
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15797
hardcode_direct_F77=yes
15798
hardcode_minus_L_F77=yes
15799
hardcode_shlibpath_var_F77=no
15802
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15803
freebsd* | dragonfly*)
15804
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15805
hardcode_libdir_flag_spec_F77='-R$libdir'
15806
hardcode_direct_F77=yes
15807
hardcode_shlibpath_var_F77=no
15811
if test "$GCC" = yes; then
15812
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'
15814
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'
15816
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15817
hardcode_libdir_separator_F77=:
15818
hardcode_direct_F77=yes
15820
# hardcode_minus_L: Not really in the search PATH,
15821
# but as the default location of the library.
15822
hardcode_minus_L_F77=yes
15823
export_dynamic_flag_spec_F77='${wl}-E'
15827
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15828
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15830
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15832
if test "$with_gnu_ld" = no; then
15833
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15834
hardcode_libdir_separator_F77=:
15836
hardcode_direct_F77=yes
15837
export_dynamic_flag_spec_F77='${wl}-E'
15839
# hardcode_minus_L: Not really in the search PATH,
15840
# but as the default location of the library.
15841
hardcode_minus_L_F77=yes
15846
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15849
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15852
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15855
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15861
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15864
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15867
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15871
if test "$with_gnu_ld" = no; then
15872
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15873
hardcode_libdir_separator_F77=:
15877
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15878
hardcode_direct_F77=no
15879
hardcode_shlibpath_var_F77=no
15882
hardcode_direct_F77=yes
15883
export_dynamic_flag_spec_F77='${wl}-E'
15885
# hardcode_minus_L: Not really in the search PATH,
15886
# but as the default location of the library.
15887
hardcode_minus_L_F77=yes
15893
irix5* | irix6* | nonstopux*)
15894
if test "$GCC" = yes; then
15895
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'
15897
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'
15898
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15900
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15901
hardcode_libdir_separator_F77=:
15902
link_all_deplibs_F77=yes
15906
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15907
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15909
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15911
hardcode_libdir_flag_spec_F77='-R$libdir'
15912
hardcode_direct_F77=yes
15913
hardcode_shlibpath_var_F77=no
15917
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918
hardcode_direct_F77=yes
15919
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15920
hardcode_libdir_separator_F77=:
15921
hardcode_shlibpath_var_F77=no
15925
if test -f /usr/libexec/ld.so; then
15926
hardcode_direct_F77=yes
15927
hardcode_shlibpath_var_F77=no
15928
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15929
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15930
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15931
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15932
export_dynamic_flag_spec_F77='${wl}-E'
15935
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15936
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15937
hardcode_libdir_flag_spec_F77='-R$libdir'
15940
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15941
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15951
hardcode_libdir_flag_spec_F77='-L$libdir'
15952
hardcode_minus_L_F77=yes
15953
allow_undefined_flag_F77=unsupported
15954
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'
15955
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15959
if test "$GCC" = yes; then
15960
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15961
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'
15963
allow_undefined_flag_F77=' -expect_unresolved \*'
15964
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'
15966
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15967
hardcode_libdir_separator_F77=:
15970
osf4* | osf5*) # as osf3* with the addition of -msym flag
15971
if test "$GCC" = yes; then
15972
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15973
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'
15974
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15976
allow_undefined_flag_F77=' -expect_unresolved \*'
15977
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'
15978
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~
15979
$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'
15981
# Both c and cxx compiler support -rpath directly
15982
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15984
hardcode_libdir_separator_F77=:
15988
no_undefined_flag_F77=' -z text'
15989
if test "$GCC" = yes; then
15991
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15993
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15996
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15997
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15998
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16000
hardcode_libdir_flag_spec_F77='-R$libdir'
16001
hardcode_shlibpath_var_F77=no
16003
solaris2.[0-5] | solaris2.[0-5].*) ;;
16005
# The compiler driver will combine and reorder linker options,
16006
# but understands `-z linker_flag'. GCC discards it without `$wl',
16007
# but is careful enough not to reorder.
16008
# Supported since Solaris 2.6 (maybe 2.5.1?)
16009
if test "$GCC" = yes; then
16010
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16012
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16016
link_all_deplibs_F77=yes
16020
if test "x$host_vendor" = xsequent; then
16021
# Use $CC to link under sequent, because it throws in some extra .o
16022
# files that make .init and .fini sections work.
16023
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16025
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16027
hardcode_libdir_flag_spec_F77='-L$libdir'
16028
hardcode_direct_F77=yes
16029
hardcode_minus_L_F77=yes
16030
hardcode_shlibpath_var_F77=no
16034
case $host_vendor in
16036
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16037
hardcode_direct_F77=yes # is this really true???
16040
## LD is ld it makes a PLAMLIB
16041
## CC just makes a GrossModule.
16042
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16043
reload_cmds_F77='$CC -r -o $output$reload_objs'
16044
hardcode_direct_F77=no
16047
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16048
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16051
runpath_var='LD_RUN_PATH'
16052
hardcode_shlibpath_var_F77=no
16056
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057
hardcode_shlibpath_var_F77=no
16058
export_dynamic_flag_spec_F77='-Bexport'
16062
if test -d /usr/nec; then
16063
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16064
hardcode_shlibpath_var_F77=no
16065
runpath_var=LD_RUN_PATH
16066
hardcode_runpath_var=yes
16071
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16072
no_undefined_flag_F77='${wl}-z,text'
16073
archive_cmds_need_lc_F77=no
16074
hardcode_shlibpath_var_F77=no
16075
runpath_var='LD_RUN_PATH'
16077
if test "$GCC" = yes; then
16078
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16079
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16081
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16082
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16086
sysv5* | sco3.2v5* | sco5v6*)
16087
# Note: We can NOT use -z defs as we might desire, because we do not
16088
# link with -lc, and that would cause any symbols used from libc to
16089
# always be unresolved, which means just about no library would
16090
# ever link correctly. If we're not using GNU ld we use -z text
16091
# though, which does catch some bad symbols but isn't as heavy-handed
16093
no_undefined_flag_F77='${wl}-z,text'
16094
allow_undefined_flag_F77='${wl}-z,nodefs'
16095
archive_cmds_need_lc_F77=no
16096
hardcode_shlibpath_var_F77=no
16097
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16098
hardcode_libdir_separator_F77=':'
16099
link_all_deplibs_F77=yes
16100
export_dynamic_flag_spec_F77='${wl}-Bexport'
16101
runpath_var='LD_RUN_PATH'
16103
if test "$GCC" = yes; then
16104
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16105
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16107
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16108
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16113
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114
hardcode_libdir_flag_spec_F77='-L$libdir'
16115
hardcode_shlibpath_var_F77=no
16124
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16125
$as_echo "$ld_shlibs_F77" >&6; }
16126
test "$ld_shlibs_F77" = no && can_build_shared=no
16129
# Do we need to explicitly link libc?
16131
case "x$archive_cmds_need_lc_F77" in
16133
# Assume -lc should be added
16134
archive_cmds_need_lc_F77=yes
16136
if test "$enable_shared" = yes && test "$GCC" = yes; then
16137
case $archive_cmds_F77 in
16139
# FIXME: we may have to deal with multi-command sequences.
16142
# Test whether the compiler implicitly links with -lc since on some
16143
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16144
# to ld, don't add -lc before -lgcc.
16145
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16146
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16148
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16151
(eval $ac_compile) 2>&5
16153
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154
(exit $ac_status); } 2>conftest.err; then
16157
libobjs=conftest.$ac_objext
16159
wl=$lt_prog_compiler_wl_F77
16160
pic_flag=$lt_prog_compiler_pic_F77
16166
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16167
allow_undefined_flag_F77=
16168
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16169
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16171
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172
(exit $ac_status); }
16174
archive_cmds_need_lc_F77=no
16176
archive_cmds_need_lc_F77=yes
16178
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16180
cat conftest.err 1>&5
16183
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16184
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16191
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16192
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16193
library_names_spec=
16194
libname_spec='lib$name'
16198
postuninstall_cmds=
16202
shlibpath_overrides_runpath=unknown
16204
dynamic_linker="$host_os ld.so"
16205
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16207
need_lib_prefix=unknown
16208
hardcode_into_libs=no
16210
# when you set need_version to no, make sure it does not cause -set_version
16211
# flags to be left without arguments
16212
need_version=unknown
16217
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16218
shlibpath_var=LIBPATH
16220
# AIX 3 has no versioning support, so we append a major version to the name.
16221
soname_spec='${libname}${release}${shared_ext}$major'
16228
hardcode_into_libs=yes
16229
if test "$host_cpu" = ia64; then
16230
# AIX 5 supports IA64
16231
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16232
shlibpath_var=LD_LIBRARY_PATH
16234
# With GCC up to 2.95.x, collect2 would create an import file
16235
# for dependence libraries. The import file would start with
16236
# the line `#! .'. This would cause the generated library to
16237
# depend on `.', always an invalid library. This was fixed in
16238
# development snapshots of GCC prior to 3.0.
16240
aix4 | aix4.[01] | aix4.[01].*)
16241
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16243
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16246
can_build_shared=no
16250
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16251
# soname into executable. Probably we can add versioning support to
16252
# collect2, so additional links can be useful in future.
16253
if test "$aix_use_runtimelinking" = yes; then
16254
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16255
# instead of lib<name>.a to let people know that these are not
16256
# typical AIX shared libraries.
16257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259
# We preserve .a as extension for shared libraries through AIX4.2
16260
# and later when we are not doing run time linking.
16261
library_names_spec='${libname}${release}.a $libname.a'
16262
soname_spec='${libname}${release}${shared_ext}$major'
16264
shlibpath_var=LIBPATH
16269
library_names_spec='$libname.ixlibrary $libname.a'
16270
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16271
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'
16275
library_names_spec='${libname}${shared_ext}'
16276
dynamic_linker="$host_os ld.so"
16277
shlibpath_var=LIBRARY_PATH
16283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284
soname_spec='${libname}${release}${shared_ext}$major'
16285
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16286
shlibpath_var=LD_LIBRARY_PATH
16287
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16288
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16289
# the default ld.so.conf also contains /usr/contrib/lib and
16290
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16291
# libtool to hard-code these into programs
16294
cygwin* | mingw* | pw32*)
16295
version_type=windows
16300
case $GCC,$host_os in
16301
yes,cygwin* | yes,mingw* | yes,pw32*)
16302
library_names_spec='$libname.dll.a'
16303
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16304
postinstall_cmds='base_file=`basename \${file}`~
16305
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16306
dldir=$destdir/`dirname \$dlpath`~
16307
test -d \$dldir || mkdir -p \$dldir~
16308
$install_prog $dir/$dlname \$dldir/$dlname~
16309
chmod a+x \$dldir/$dlname'
16310
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16311
dlpath=$dir/\$dldll~
16313
shlibpath_overrides_runpath=yes
16317
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16318
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16319
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16322
# MinGW DLLs use traditional 'lib' prefix
16323
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16324
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16325
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16326
# It is most probably a Windows format PATH printed by
16327
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16328
# path with ; separators, and with drive letters. We can handle the
16329
# drive letters (cygwin fileutils understands them), so leave them,
16330
# especially as we might pass files found there to a mingw objdump,
16331
# which wouldn't understand a cygwinified path. Ahh.
16332
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16334
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16338
# pw32 DLLs use 'pw' prefix rather than 'lib'
16339
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16348
dynamic_linker='Win32 ld.exe'
16349
# FIXME: first we should search . and the directory the executable is in
16353
darwin* | rhapsody*)
16354
dynamic_linker="$host_os dyld"
16355
version_type=darwin
16358
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16359
soname_spec='${libname}${release}${major}$shared_ext'
16360
shlibpath_overrides_runpath=yes
16361
shlibpath_var=DYLD_LIBRARY_PATH
16362
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16364
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16372
soname_spec='${libname}${release}${shared_ext}$major'
16373
shlibpath_var=LD_LIBRARY_PATH
16380
freebsd* | dragonfly*)
16381
# DragonFly does not have aout. When/if they implement a new
16382
# versioning mechanism, adjust this.
16383
if test -x /usr/bin/objformat; then
16384
objformat=`/usr/bin/objformat`
16387
freebsd[123]*) objformat=aout ;;
16388
*) objformat=elf ;;
16391
version_type=freebsd-$objformat
16392
case $version_type in
16394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16399
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16403
shlibpath_var=LD_LIBRARY_PATH
16406
shlibpath_overrides_runpath=yes
16408
freebsd3.[01]* | freebsdelf3.[01]*)
16409
shlibpath_overrides_runpath=yes
16410
hardcode_into_libs=yes
16412
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16413
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16414
shlibpath_overrides_runpath=no
16415
hardcode_into_libs=yes
16417
*) # from 4.6 on, and DragonFly
16418
shlibpath_overrides_runpath=yes
16419
hardcode_into_libs=yes
16428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16429
soname_spec='${libname}${release}${shared_ext}$major'
16430
shlibpath_var=LD_LIBRARY_PATH
16431
hardcode_into_libs=yes
16434
hpux9* | hpux10* | hpux11*)
16435
# Give a soname corresponding to the major version so that dld.sl refuses to
16436
# link against other versions.
16443
hardcode_into_libs=yes
16444
dynamic_linker="$host_os dld.so"
16445
shlibpath_var=LD_LIBRARY_PATH
16446
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448
soname_spec='${libname}${release}${shared_ext}$major'
16449
if test "X$HPUX_IA64_MODE" = X32; then
16450
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16452
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16454
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16458
hardcode_into_libs=yes
16459
dynamic_linker="$host_os dld.sl"
16460
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16461
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463
soname_spec='${libname}${release}${shared_ext}$major'
16464
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16465
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16469
dynamic_linker="$host_os dld.sl"
16470
shlibpath_var=SHLIB_PATH
16471
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473
soname_spec='${libname}${release}${shared_ext}$major'
16476
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16477
postinstall_cmds='chmod 555 $lib'
16484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16485
soname_spec='${libname}${release}${shared_ext}$major'
16486
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16487
shlibpath_var=LD_LIBRARY_PATH
16488
shlibpath_overrides_runpath=no
16489
hardcode_into_libs=yes
16492
irix5* | irix6* | nonstopux*)
16494
nonstopux*) version_type=nonstopux ;;
16496
if test "$lt_cv_prog_gnu_ld" = yes; then
16504
soname_spec='${libname}${release}${shared_ext}$major'
16505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16507
irix5* | nonstopux*)
16508
libsuff= shlibsuff=
16511
case $LD in # libtool.m4 will add one of these switches to LD
16512
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16513
libsuff= shlibsuff= libmagic=32-bit;;
16514
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16515
libsuff=32 shlibsuff=N32 libmagic=N32;;
16516
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16517
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16518
*) libsuff= shlibsuff= libmagic=never-match;;
16522
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16523
shlibpath_overrides_runpath=no
16524
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16525
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16526
hardcode_into_libs=yes
16529
# No shared lib support for Linux oldld, aout, or coff.
16530
linux*oldld* | linux*aout* | linux*coff*)
16534
# This must be Linux ELF.
16535
linux* | k*bsd*-gnu)
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
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16542
shlibpath_var=LD_LIBRARY_PATH
16543
shlibpath_overrides_runpath=no
16544
# This implies no fast_install, which is unacceptable.
16545
# Some rework will be needed to allow for fast_install
16546
# before this can be enabled.
16547
hardcode_into_libs=yes
16549
# Append ld.so.conf contents to the search path
16550
if test -f /etc/ld.so.conf; then
16551
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' ' '`
16552
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16555
# We used to test for /lib/ld.so.1 and disable shared libraries on
16556
# powerpc, because MkLinux only supported shared libraries with the
16557
# GNU dynamic linker. Since this was broken with cross compilers,
16558
# most powerpc-linux boxes support dynamic linking these days and
16559
# people can always --disable-shared, the test was removed, and we
16560
# assume the GNU/Linux dynamic linker is in use.
16561
dynamic_linker='GNU/Linux ld.so'
16568
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16570
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16571
dynamic_linker='NetBSD (a.out) ld.so'
16573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16574
soname_spec='${libname}${release}${shared_ext}$major'
16575
dynamic_linker='NetBSD ld.elf_so'
16577
shlibpath_var=LD_LIBRARY_PATH
16578
shlibpath_overrides_runpath=yes
16579
hardcode_into_libs=yes
16584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16585
shlibpath_var=LD_LIBRARY_PATH
16586
shlibpath_overrides_runpath=yes
16593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594
soname_spec='${libname}${release}${shared_ext}$major'
16595
shlibpath_var=LD_LIBRARY_PATH
16596
shlibpath_overrides_runpath=yes
16601
sys_lib_dlsearch_path_spec="/usr/lib"
16603
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16605
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16606
*) need_version=no ;;
16608
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16609
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16610
shlibpath_var=LD_LIBRARY_PATH
16611
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16613
openbsd2.[89] | openbsd2.[89].*)
16614
shlibpath_overrides_runpath=no
16617
shlibpath_overrides_runpath=yes
16621
shlibpath_overrides_runpath=yes
16626
libname_spec='$name'
16629
library_names_spec='$libname${shared_ext} $libname.a'
16630
dynamic_linker='OS/2 ld.exe'
16631
shlibpath_var=LIBPATH
16634
osf3* | osf4* | osf5*)
16638
soname_spec='${libname}${release}${shared_ext}$major'
16639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640
shlibpath_var=LD_LIBRARY_PATH
16641
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16642
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654
soname_spec='${libname}${release}${shared_ext}$major'
16655
shlibpath_var=LD_LIBRARY_PATH
16656
shlibpath_overrides_runpath=yes
16657
hardcode_into_libs=yes
16658
# ldd complains unless libraries are executable
16659
postinstall_cmds='chmod +x $lib'
16664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16665
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16666
shlibpath_var=LD_LIBRARY_PATH
16667
shlibpath_overrides_runpath=yes
16668
if test "$with_gnu_ld" = yes; then
16676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677
soname_spec='${libname}${release}${shared_ext}$major'
16678
shlibpath_var=LD_LIBRARY_PATH
16679
case $host_vendor in
16681
shlibpath_overrides_runpath=no
16683
export_dynamic_flag_spec='${wl}-Blargedynsym'
16684
runpath_var=LD_RUN_PATH
16692
shlibpath_overrides_runpath=no
16693
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16699
if test -d /usr/nec ;then
16701
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16702
soname_spec='$libname${shared_ext}.$major'
16703
shlibpath_var=LD_LIBRARY_PATH
16707
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16708
version_type=freebsd-elf
16711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16712
soname_spec='${libname}${release}${shared_ext}$major'
16713
shlibpath_var=LD_LIBRARY_PATH
16714
hardcode_into_libs=yes
16715
if test "$with_gnu_ld" = yes; then
16716
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16717
shlibpath_overrides_runpath=no
16719
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16720
shlibpath_overrides_runpath=yes
16723
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16727
sys_lib_dlsearch_path_spec='/usr/lib'
16732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733
soname_spec='${libname}${release}${shared_ext}$major'
16734
shlibpath_var=LD_LIBRARY_PATH
16741
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16742
$as_echo "$dynamic_linker" >&6; }
16743
test "$dynamic_linker" = no && can_build_shared=no
16745
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16746
$as_echo_n "(cached) " >&6
16748
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16751
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16752
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16753
$as_echo_n "(cached) " >&6
16755
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16758
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16760
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16761
if test "$GCC" = yes; then
16762
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16765
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16766
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16767
hardcode_action_F77=
16768
if test -n "$hardcode_libdir_flag_spec_F77" || \
16769
test -n "$runpath_var_F77" || \
16770
test "X$hardcode_automatic_F77" = "Xyes" ; then
16772
# We can hardcode non-existant directories.
16773
if test "$hardcode_direct_F77" != no &&
16774
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16775
# have to relink, otherwise we might link with an installed library
16776
# when we should be linking with a yet-to-be-installed one
16777
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16778
test "$hardcode_minus_L_F77" != no; then
16779
# Linking always hardcodes the temporary library directory.
16780
hardcode_action_F77=relink
16782
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16783
hardcode_action_F77=immediate
16786
# We cannot hardcode anything, or else we can only hardcode existing
16788
hardcode_action_F77=unsupported
16790
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16791
$as_echo "$hardcode_action_F77" >&6; }
16793
if test "$hardcode_action_F77" = relink; then
16794
# Fast installation is not supported
16795
enable_fast_install=no
16796
elif test "$shlibpath_overrides_runpath" = yes ||
16797
test "$enable_shared" = no; then
16798
# Fast installation is not necessary
16799
enable_fast_install=needless
16803
# The else clause should only fire when bootstrapping the
16804
# libtool distribution, otherwise you forgot to ship ltmain.sh
16805
# with your package, and you will get complaints that there are
16806
# no rules to generate ltmain.sh.
16807
if test -f "$ltmain"; then
16808
# See if we are running on zsh, and set the options which allow our commands through
16809
# without removal of \ escapes.
16810
if test -n "${ZSH_VERSION+set}" ; then
16811
setopt NO_GLOB_SUBST
16813
# Now quote all the things that may contain metacharacters while being
16814
# careful not to overquote the AC_SUBSTed values. We take copies of the
16815
# variables and quote the copies for generation of the libtool script.
16816
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16818
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16819
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16820
deplibs_check_method reload_flag reload_cmds need_locks \
16821
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16822
lt_cv_sys_global_symbol_to_c_name_address \
16823
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16824
old_postinstall_cmds old_postuninstall_cmds \
16828
lt_prog_compiler_wl_F77 \
16829
lt_prog_compiler_pic_F77 \
16830
lt_prog_compiler_static_F77 \
16831
lt_prog_compiler_no_builtin_flag_F77 \
16832
export_dynamic_flag_spec_F77 \
16833
thread_safe_flag_spec_F77 \
16834
whole_archive_flag_spec_F77 \
16835
enable_shared_with_static_runtimes_F77 \
16836
old_archive_cmds_F77 \
16837
old_archive_from_new_cmds_F77 \
16838
predep_objects_F77 \
16839
postdep_objects_F77 \
16842
compiler_lib_search_path_F77 \
16843
compiler_lib_search_dirs_F77 \
16845
archive_expsym_cmds_F77 \
16846
postinstall_cmds_F77 \
16847
postuninstall_cmds_F77 \
16848
old_archive_from_expsyms_cmds_F77 \
16849
allow_undefined_flag_F77 \
16850
no_undefined_flag_F77 \
16851
export_symbols_cmds_F77 \
16852
hardcode_libdir_flag_spec_F77 \
16853
hardcode_libdir_flag_spec_ld_F77 \
16854
hardcode_libdir_separator_F77 \
16855
hardcode_automatic_F77 \
16857
module_expsym_cmds_F77 \
16858
lt_cv_prog_compiler_c_o_F77 \
16859
fix_srcfile_path_F77 \
16860
exclude_expsyms_F77 \
16861
include_expsyms_F77; do
16864
old_archive_cmds_F77 | \
16865
old_archive_from_new_cmds_F77 | \
16866
archive_cmds_F77 | \
16867
archive_expsym_cmds_F77 | \
16868
module_cmds_F77 | \
16869
module_expsym_cmds_F77 | \
16870
old_archive_from_expsyms_cmds_F77 | \
16871
export_symbols_cmds_F77 | \
16872
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16873
postinstall_cmds | postuninstall_cmds | \
16874
old_postinstall_cmds | old_postuninstall_cmds | \
16875
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16876
# Double-quote double-evaled strings.
16877
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16880
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16886
*'\$0 --fallback-echo"')
16887
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16893
cat <<__EOF__ >> "$cfgfile"
16894
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16896
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16898
# Shell to use when invoking shell scripts.
16901
# Whether or not to build shared libraries.
16902
build_libtool_libs=$enable_shared
16904
# Whether or not to build static libraries.
16905
build_old_libs=$enable_static
16907
# Whether or not to add -lc for building shared libraries.
16908
build_libtool_need_lc=$archive_cmds_need_lc_F77
16910
# Whether or not to disallow shared libs when runtime libs are static
16911
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16913
# Whether or not to optimize for fast installation.
16914
fast_install=$enable_fast_install
16917
host_alias=$host_alias
16921
# The build system.
16922
build_alias=$build_alias
16926
# An echo program that does not interpret backslashes.
16931
AR_FLAGS=$lt_AR_FLAGS
16936
# LTCC compiler flags.
16937
LTCFLAGS=$lt_LTCFLAGS
16939
# A language-specific compiler.
16940
CC=$lt_compiler_F77
16942
# Is the compiler the GNU C compiler?
16948
# The linker used to build libraries.
16951
# Whether we need hard or soft links.
16954
# A BSD-compatible nm program.
16957
# A symbol stripping program
16960
# Used to examine libraries when file_magic_cmd begins "file"
16961
MAGIC_CMD=$MAGIC_CMD
16963
# Used on cygwin: DLL creation program.
16966
# Used on cygwin: object dumper.
16969
# Used on cygwin: assembler.
16972
# The name of the directory that contains temporary libtool files.
16975
# How to create reloadable object files.
16976
reload_flag=$lt_reload_flag
16977
reload_cmds=$lt_reload_cmds
16979
# How to pass a linker flag through the compiler.
16980
wl=$lt_lt_prog_compiler_wl_F77
16982
# Object file suffix (normally "o").
16983
objext="$ac_objext"
16985
# Old archive suffix (normally "a").
16988
# Shared library suffix (normally ".so").
16989
shrext_cmds='$shrext_cmds'
16991
# Executable file suffix (normally "").
16994
# Additional compiler flags for building library objects.
16995
pic_flag=$lt_lt_prog_compiler_pic_F77
16998
# What is the maximum length of a command?
16999
max_cmd_len=$lt_cv_sys_max_cmd_len
17001
# Does compiler simultaneously support -c and -o options?
17002
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17004
# Must we lock files when doing compilation?
17005
need_locks=$lt_need_locks
17007
# Do we need the lib prefix for modules?
17008
need_lib_prefix=$need_lib_prefix
17010
# Do we need a version for libraries?
17011
need_version=$need_version
17013
# Whether dlopen is supported.
17014
dlopen_support=$enable_dlopen
17016
# Whether dlopen of programs is supported.
17017
dlopen_self=$enable_dlopen_self
17019
# Whether dlopen of statically linked programs is supported.
17020
dlopen_self_static=$enable_dlopen_self_static
17022
# Compiler flag to prevent dynamic linking.
17023
link_static_flag=$lt_lt_prog_compiler_static_F77
17025
# Compiler flag to turn off builtin functions.
17026
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17028
# Compiler flag to allow reflexive dlopens.
17029
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17031
# Compiler flag to generate shared objects directly from archives.
17032
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17034
# Compiler flag to generate thread-safe objects.
17035
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17037
# Library versioning type.
17038
version_type=$version_type
17040
# Format of library name prefix.
17041
libname_spec=$lt_libname_spec
17043
# List of archive names. First name is the real one, the rest are links.
17044
# The last name is the one that the linker finds with -lNAME.
17045
library_names_spec=$lt_library_names_spec
17047
# The coded name of the library, if different from the real name.
17048
soname_spec=$lt_soname_spec
17050
# Commands used to build and install an old-style archive.
17052
old_archive_cmds=$lt_old_archive_cmds_F77
17053
old_postinstall_cmds=$lt_old_postinstall_cmds
17054
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17056
# Create an old-style archive from a shared archive.
17057
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17059
# Create a temporary old-style archive to link instead of a shared archive.
17060
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17062
# Commands used to build and install a shared archive.
17063
archive_cmds=$lt_archive_cmds_F77
17064
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17065
postinstall_cmds=$lt_postinstall_cmds
17066
postuninstall_cmds=$lt_postuninstall_cmds
17068
# Commands used to build a loadable module (assumed same as above if empty)
17069
module_cmds=$lt_module_cmds_F77
17070
module_expsym_cmds=$lt_module_expsym_cmds_F77
17072
# Commands to strip libraries.
17073
old_striplib=$lt_old_striplib
17074
striplib=$lt_striplib
17076
# Dependencies to place before the objects being linked to create a
17078
predep_objects=$lt_predep_objects_F77
17080
# Dependencies to place after the objects being linked to create a
17082
postdep_objects=$lt_postdep_objects_F77
17084
# Dependencies to place before the objects being linked to create a
17086
predeps=$lt_predeps_F77
17088
# Dependencies to place after the objects being linked to create a
17090
postdeps=$lt_postdeps_F77
17092
# The directories searched by this compiler when creating a shared
17094
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17096
# The library search path used internally by the compiler when linking
17097
# a shared library.
17098
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17100
# Method to check whether dependent libraries are shared objects.
17101
deplibs_check_method=$lt_deplibs_check_method
17103
# Command to use when deplibs_check_method == file_magic.
17104
file_magic_cmd=$lt_file_magic_cmd
17106
# Flag that allows shared libraries with undefined symbols to be built.
17107
allow_undefined_flag=$lt_allow_undefined_flag_F77
17109
# Flag that forces no undefined symbols.
17110
no_undefined_flag=$lt_no_undefined_flag_F77
17112
# Commands used to finish a libtool library installation in a directory.
17113
finish_cmds=$lt_finish_cmds
17115
# Same as above, but a single script fragment to be evaled but not shown.
17116
finish_eval=$lt_finish_eval
17118
# Take the output of nm and produce a listing of raw symbols and C names.
17119
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17121
# Transform the output of nm in a proper C declaration
17122
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17124
# Transform the output of nm in a C name address pair
17125
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17127
# This is the shared library runtime path variable.
17128
runpath_var=$runpath_var
17130
# This is the shared library path variable.
17131
shlibpath_var=$shlibpath_var
17133
# Is shlibpath searched before the hard-coded library search path?
17134
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17136
# How to hardcode a shared library path into an executable.
17137
hardcode_action=$hardcode_action_F77
17139
# Whether we should hardcode library paths into libraries.
17140
hardcode_into_libs=$hardcode_into_libs
17142
# Flag to hardcode \$libdir into a binary during linking.
17143
# This must work even if \$libdir does not exist.
17144
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17146
# If ld is used when linking, flag to hardcode \$libdir into
17147
# a binary during linking. This must work even if \$libdir does
17149
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17151
# Whether we need a single -rpath flag with a separated argument.
17152
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17154
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17155
# resulting binary.
17156
hardcode_direct=$hardcode_direct_F77
17158
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17159
# resulting binary.
17160
hardcode_minus_L=$hardcode_minus_L_F77
17162
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17163
# the resulting binary.
17164
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17166
# Set to yes if building a shared library automatically hardcodes DIR into the library
17167
# and all subsequent libraries and executables linked against it.
17168
hardcode_automatic=$hardcode_automatic_F77
17170
# Variables whose values should be saved in libtool wrapper scripts and
17171
# restored at relink time.
17172
variables_saved_for_relink="$variables_saved_for_relink"
17174
# Whether libtool must link a program against all its dependency libraries.
17175
link_all_deplibs=$link_all_deplibs_F77
17177
# Compile-time system search path for libraries
17178
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17180
# Run-time system search path for libraries
17181
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17183
# Fix the shell variable \$srcfile for the compiler.
17184
fix_srcfile_path=$lt_fix_srcfile_path
17186
# Set to yes if exported symbols are required.
17187
always_export_symbols=$always_export_symbols_F77
17189
# The commands to list exported symbols.
17190
export_symbols_cmds=$lt_export_symbols_cmds_F77
17192
# The commands to extract the exported symbol list from a shared archive.
17193
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17195
# Symbols that should not be listed in the preloaded symbols.
17196
exclude_expsyms=$lt_exclude_expsyms_F77
17198
# Symbols that must always be exported.
17199
include_expsyms=$lt_include_expsyms_F77
17201
# ### END LIBTOOL TAG CONFIG: $tagname
17207
# If there is no Makefile yet, we rely on a make rule to execute
17208
# `config.status --recheck' to rerun these tests and create the
17209
# libtool script then.
17210
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17211
if test -f "$ltmain_in"; then
17212
test -f Makefile && make "$ltmain"
17218
ac_cpp='$CPP $CPPFLAGS'
17219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17231
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17234
# Source file extension for Java test sources.
17237
# Object file extension for compiled Java test sources.
17241
# Code to be used in simple compile tests
17242
lt_simple_compile_test_code="class foo {}"
17244
# Code to be used in simple link tests
17245
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17247
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17249
# If no C compiler was specified, use CC.
17252
# If no C compiler flags were specified, use CFLAGS.
17253
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17255
# Allow CC to be a program name with arguments.
17259
# save warnings/boilerplate of simple test code
17260
ac_outfile=conftest.$ac_objext
17261
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17262
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17263
_lt_compiler_boilerplate=`cat conftest.err`
17266
ac_outfile=conftest.$ac_objext
17267
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17268
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17269
_lt_linker_boilerplate=`cat conftest.err`
17273
# Allow CC to be a program name with arguments.
17278
for cc_temp in $compiler""; do
17280
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17281
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17286
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17289
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17290
archive_cmds_need_lc_GCJ=no
17292
old_archive_cmds_GCJ=$old_archive_cmds
17295
lt_prog_compiler_no_builtin_flag_GCJ=
17297
if test "$GCC" = yes; then
17298
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17301
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17302
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17303
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17304
$as_echo_n "(cached) " >&6
17306
lt_cv_prog_compiler_rtti_exceptions=no
17307
ac_outfile=conftest.$ac_objext
17308
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17309
lt_compiler_flag="-fno-rtti -fno-exceptions"
17310
# Insert the option either (1) after the last *FLAGS variable, or
17311
# (2) before a word containing "conftest.", or (3) at the end.
17312
# Note that $ac_compile itself does not contain backslashes and begins
17313
# with a dollar sign (not a hyphen), so the echo should work correctly.
17314
# The option is referenced via a variable to avoid confusing sed.
17315
lt_compile=`echo "$ac_compile" | $SED \
17316
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17317
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17318
-e 's:$: $lt_compiler_flag:'`
17319
(eval echo "\"\$as_me:17319: $lt_compile\"" >&5)
17320
(eval "$lt_compile" 2>conftest.err)
17322
cat conftest.err >&5
17323
echo "$as_me:17323: \$? = $ac_status" >&5
17324
if (exit $ac_status) && test -s "$ac_outfile"; then
17325
# The compiler can only warn and ignore the option if not recognized
17326
# So say no if there are warnings other than the usual output.
17327
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17328
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17329
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17330
lt_cv_prog_compiler_rtti_exceptions=yes
17336
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17337
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17339
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17340
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17347
lt_prog_compiler_wl_GCJ=
17348
lt_prog_compiler_pic_GCJ=
17349
lt_prog_compiler_static_GCJ=
17351
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17352
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17354
if test "$GCC" = yes; then
17355
lt_prog_compiler_wl_GCJ='-Wl,'
17356
lt_prog_compiler_static_GCJ='-static'
17360
# All AIX code is PIC.
17361
if test "$host_cpu" = ia64; then
17362
# AIX 5 now supports IA64 processor
17363
lt_prog_compiler_static_GCJ='-Bstatic'
17368
# FIXME: we need at least 68020 code to build shared libraries, but
17369
# adding the `-m68020' flag to GCC prevents building anything better,
17371
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17374
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17375
# PIC is the default for these OSes.
17378
mingw* | cygwin* | pw32* | os2*)
17379
# This hack is so that the source file can tell whether it is being
17380
# built for inclusion in a dll (and should export symbols for example).
17381
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17382
# (--disable-auto-import) libraries
17386
darwin* | rhapsody*)
17387
# PIC is the default on this platform
17388
# Common symbols not allowed in MH_DYLIB files
17389
lt_prog_compiler_pic_GCJ='-fno-common'
17393
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17394
# Instead, we relocate shared libraries at runtime.
17398
# Just because we use GCC doesn't mean we suddenly get shared libraries
17399
# on systems that don't support them.
17400
lt_prog_compiler_can_build_shared_GCJ=no
17405
if test -d /usr/nec; then
17406
lt_prog_compiler_pic_GCJ=-Kconform_pic
17411
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17412
# not for PA HP-UX.
17418
lt_prog_compiler_pic_GCJ='-fPIC'
17424
lt_prog_compiler_pic_GCJ='-fPIC'
17428
# PORTME Check for flag to pass linker flags through the system compiler.
17431
lt_prog_compiler_wl_GCJ='-Wl,'
17432
if test "$host_cpu" = ia64; then
17433
# AIX 5 now supports IA64 processor
17434
lt_prog_compiler_static_GCJ='-Bstatic'
17436
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17440
# PIC is the default on this platform
17441
# Common symbols not allowed in MH_DYLIB files
17442
case $cc_basename in
17444
lt_prog_compiler_pic_GCJ='-qnocommon'
17445
lt_prog_compiler_wl_GCJ='-Wl,'
17450
mingw* | cygwin* | pw32* | os2*)
17451
# This hack is so that the source file can tell whether it is being
17452
# built for inclusion in a dll (and should export symbols for example).
17456
hpux9* | hpux10* | hpux11*)
17457
lt_prog_compiler_wl_GCJ='-Wl,'
17458
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17459
# not for PA HP-UX.
17465
lt_prog_compiler_pic_GCJ='+Z'
17468
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17469
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17472
irix5* | irix6* | nonstopux*)
17473
lt_prog_compiler_wl_GCJ='-Wl,'
17474
# PIC (with -KPIC) is the default.
17475
lt_prog_compiler_static_GCJ='-non_shared'
17479
lt_prog_compiler_pic_GCJ='-KPIC'
17480
lt_prog_compiler_static_GCJ='-Bstatic'
17483
linux* | k*bsd*-gnu)
17484
case $cc_basename in
17486
lt_prog_compiler_wl_GCJ='-Wl,'
17487
lt_prog_compiler_pic_GCJ='-KPIC'
17488
lt_prog_compiler_static_GCJ='-static'
17490
pgcc* | pgf77* | pgf90* | pgf95*)
17491
# Portland Group compilers (*not* the Pentium gcc compiler,
17492
# which looks to be a dead project)
17493
lt_prog_compiler_wl_GCJ='-Wl,'
17494
lt_prog_compiler_pic_GCJ='-fpic'
17495
lt_prog_compiler_static_GCJ='-Bstatic'
17498
lt_prog_compiler_wl_GCJ='-Wl,'
17499
# All Alpha code is PIC.
17500
lt_prog_compiler_static_GCJ='-non_shared'
17503
case `$CC -V 2>&1 | sed 5q` in
17506
lt_prog_compiler_pic_GCJ='-KPIC'
17507
lt_prog_compiler_static_GCJ='-Bstatic'
17508
lt_prog_compiler_wl_GCJ='-Wl,'
17511
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17512
lt_prog_compiler_pic_GCJ='-KPIC'
17513
lt_prog_compiler_static_GCJ='-Bstatic'
17514
lt_prog_compiler_wl_GCJ=''
17521
osf3* | osf4* | osf5*)
17522
lt_prog_compiler_wl_GCJ='-Wl,'
17523
# All OSF/1 code is PIC.
17524
lt_prog_compiler_static_GCJ='-non_shared'
17528
lt_prog_compiler_static_GCJ='-non_shared'
17532
lt_prog_compiler_pic_GCJ='-KPIC'
17533
lt_prog_compiler_static_GCJ='-Bstatic'
17534
case $cc_basename in
17535
f77* | f90* | f95*)
17536
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17538
lt_prog_compiler_wl_GCJ='-Wl,';;
17543
lt_prog_compiler_wl_GCJ='-Qoption ld '
17544
lt_prog_compiler_pic_GCJ='-PIC'
17545
lt_prog_compiler_static_GCJ='-Bstatic'
17548
sysv4 | sysv4.2uw2* | sysv4.3*)
17549
lt_prog_compiler_wl_GCJ='-Wl,'
17550
lt_prog_compiler_pic_GCJ='-KPIC'
17551
lt_prog_compiler_static_GCJ='-Bstatic'
17555
if test -d /usr/nec ;then
17556
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17557
lt_prog_compiler_static_GCJ='-Bstatic'
17561
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17562
lt_prog_compiler_wl_GCJ='-Wl,'
17563
lt_prog_compiler_pic_GCJ='-KPIC'
17564
lt_prog_compiler_static_GCJ='-Bstatic'
17568
lt_prog_compiler_wl_GCJ='-Wl,'
17569
lt_prog_compiler_can_build_shared_GCJ=no
17573
lt_prog_compiler_pic_GCJ='-pic'
17574
lt_prog_compiler_static_GCJ='-Bstatic'
17578
lt_prog_compiler_can_build_shared_GCJ=no
17583
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17584
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17587
# Check to make sure the PIC flag actually works.
17589
if test -n "$lt_prog_compiler_pic_GCJ"; then
17591
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17592
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17593
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17594
$as_echo_n "(cached) " >&6
17596
lt_cv_prog_compiler_pic_works_GCJ=no
17597
ac_outfile=conftest.$ac_objext
17598
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17599
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17600
# Insert the option either (1) after the last *FLAGS variable, or
17601
# (2) before a word containing "conftest.", or (3) at the end.
17602
# Note that $ac_compile itself does not contain backslashes and begins
17603
# with a dollar sign (not a hyphen), so the echo should work correctly.
17604
# The option is referenced via a variable to avoid confusing sed.
17605
lt_compile=`echo "$ac_compile" | $SED \
17606
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17607
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17608
-e 's:$: $lt_compiler_flag:'`
17609
(eval echo "\"\$as_me:17609: $lt_compile\"" >&5)
17610
(eval "$lt_compile" 2>conftest.err)
17612
cat conftest.err >&5
17613
echo "$as_me:17613: \$? = $ac_status" >&5
17614
if (exit $ac_status) && test -s "$ac_outfile"; then
17615
# The compiler can only warn and ignore the option if not recognized
17616
# So say no if there are warnings other than the usual output.
17617
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17618
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17619
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17620
lt_cv_prog_compiler_pic_works_GCJ=yes
17626
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17627
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17629
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17630
case $lt_prog_compiler_pic_GCJ in
17632
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17635
lt_prog_compiler_pic_GCJ=
17636
lt_prog_compiler_can_build_shared_GCJ=no
17641
# For platforms which do not support PIC, -DPIC is meaningless:
17643
lt_prog_compiler_pic_GCJ=
17646
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17651
# Check to make sure the static flag actually works.
17653
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17654
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17655
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17656
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17657
$as_echo_n "(cached) " >&6
17659
lt_cv_prog_compiler_static_works_GCJ=no
17660
save_LDFLAGS="$LDFLAGS"
17661
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17662
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17663
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17664
# The linker can only warn and ignore the option if not recognized
17665
# So say no if there are warnings
17666
if test -s conftest.err; then
17667
# Append any errors to the config.log.
17668
cat conftest.err 1>&5
17669
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17670
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17671
if diff conftest.exp conftest.er2 >/dev/null; then
17672
lt_cv_prog_compiler_static_works_GCJ=yes
17675
lt_cv_prog_compiler_static_works_GCJ=yes
17679
LDFLAGS="$save_LDFLAGS"
17682
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17683
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17685
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17688
lt_prog_compiler_static_GCJ=
17692
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17693
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17694
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17695
$as_echo_n "(cached) " >&6
17697
lt_cv_prog_compiler_c_o_GCJ=no
17698
$rm -r conftest 2>/dev/null
17702
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704
lt_compiler_flag="-o out/conftest2.$ac_objext"
17705
# Insert the option either (1) after the last *FLAGS variable, or
17706
# (2) before a word containing "conftest.", or (3) at the end.
17707
# Note that $ac_compile itself does not contain backslashes and begins
17708
# with a dollar sign (not a hyphen), so the echo should work correctly.
17709
lt_compile=`echo "$ac_compile" | $SED \
17710
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17711
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17712
-e 's:$: $lt_compiler_flag:'`
17713
(eval echo "\"\$as_me:17713: $lt_compile\"" >&5)
17714
(eval "$lt_compile" 2>out/conftest.err)
17716
cat out/conftest.err >&5
17717
echo "$as_me:17717: \$? = $ac_status" >&5
17718
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17720
# The compiler can only warn and ignore the option if not recognized
17721
# So say no if there are warnings
17722
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17723
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17724
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17725
lt_cv_prog_compiler_c_o_GCJ=yes
17730
# SGI C++ compiler will create directory out/ii_files/ for
17731
# template instantiation
17732
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17733
$rm out/* && rmdir out
17739
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17740
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17743
hard_links="nottested"
17744
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17745
# do not overwrite the value of need_locks provided by the user
17746
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17747
$as_echo_n "checking if we can lock with hard links... " >&6; }
17750
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17752
ln conftest.a conftest.b 2>&5 || hard_links=no
17753
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17754
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17755
$as_echo "$hard_links" >&6; }
17756
if test "$hard_links" = no; then
17757
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17758
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17765
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17766
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17769
allow_undefined_flag_GCJ=
17770
enable_shared_with_static_runtimes_GCJ=no
17772
archive_expsym_cmds_GCJ=
17773
old_archive_From_new_cmds_GCJ=
17774
old_archive_from_expsyms_cmds_GCJ=
17775
export_dynamic_flag_spec_GCJ=
17776
whole_archive_flag_spec_GCJ=
17777
thread_safe_flag_spec_GCJ=
17778
hardcode_libdir_flag_spec_GCJ=
17779
hardcode_libdir_flag_spec_ld_GCJ=
17780
hardcode_libdir_separator_GCJ=
17781
hardcode_direct_GCJ=no
17782
hardcode_minus_L_GCJ=no
17783
hardcode_shlibpath_var_GCJ=unsupported
17784
link_all_deplibs_GCJ=unknown
17785
hardcode_automatic_GCJ=no
17787
module_expsym_cmds_GCJ=
17788
always_export_symbols_GCJ=no
17789
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17790
# include_expsyms should be a list of space-separated symbols to be *always*
17791
# included in the symbol list
17792
include_expsyms_GCJ=
17793
# exclude_expsyms can be an extended regexp of symbols to exclude
17794
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17795
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17796
# as well as any symbol that contains `d'.
17797
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17798
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17799
# platforms (ab)use it in PIC code, but their linkers get confused if
17800
# the symbol is explicitly referenced. Since portable code cannot
17801
# rely on this symbol name, it's probably fine to never include it in
17802
# preloaded symbol tables.
17803
# Exclude shared library initialization/finalization symbols.
17804
extract_expsyms_cmds=
17805
# Just being paranoid about ensuring that cc_basename is set.
17806
for cc_temp in $compiler""; do
17808
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17809
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17814
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17817
cygwin* | mingw* | pw32*)
17818
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17819
# When not using gcc, we currently assume that we are using
17820
# Microsoft Visual C++.
17821
if test "$GCC" != yes; then
17826
# we just hope/assume this is gcc and not c89 (= MSVC++)
17835
if test "$with_gnu_ld" = yes; then
17836
# If archive_cmds runs LD, not CC, wlarc should be empty
17839
# Set some defaults for GNU ld with shared library support. These
17840
# are reset later if shared libraries are not supported. Putting them
17841
# here allows them to be overridden if necessary.
17842
runpath_var=LD_RUN_PATH
17843
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17844
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17845
# ancient GNU ld didn't support --whole-archive et. al.
17846
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17847
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17849
whole_archive_flag_spec_GCJ=
17851
supports_anon_versioning=no
17852
case `$LD -v 2>/dev/null` in
17853
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17854
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17855
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17856
*\ 2.11.*) ;; # other 2.11 versions
17857
*) supports_anon_versioning=yes ;;
17860
# See if GNU ld supports shared libraries.
17863
# On AIX/PPC, the GNU linker is very broken
17864
if test "$host_cpu" != ia64; then
17868
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17869
*** to be unable to reliably create shared libraries on AIX.
17870
*** Therefore, libtool is disabling shared libraries support. If you
17871
*** really care for shared libraries, you may want to modify your PATH
17872
*** so that a non-GNU linker is found, and then restart.
17879
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)'
17880
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17881
hardcode_minus_L_GCJ=yes
17883
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17884
# that the semantics of dynamic libraries on AmigaOS, at least up
17885
# to version 4, is to share data among multiple programs linked
17886
# with the same dynamic library. Since this doesn't match the
17887
# behavior of shared libraries on other platforms, we can't use
17893
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17894
allow_undefined_flag_GCJ=unsupported
17895
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17896
# support --undefined. This deserves some investigation. FIXME
17897
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17903
cygwin* | mingw* | pw32*)
17904
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17905
# as there is no search path for DLLs.
17906
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17907
allow_undefined_flag_GCJ=unsupported
17908
always_export_symbols_GCJ=no
17909
enable_shared_with_static_runtimes_GCJ=yes
17910
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17912
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17913
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17914
# If the export-symbols file already is a .def file (1st line
17915
# is EXPORTS), use it as is; otherwise, prepend...
17916
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17917
cp $export_symbols $output_objdir/$soname.def;
17919
echo EXPORTS > $output_objdir/$soname.def;
17920
cat $export_symbols >> $output_objdir/$soname.def;
17922
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17929
hardcode_direct_GCJ=no
17930
hardcode_shlibpath_var_GCJ=no
17931
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17932
export_dynamic_flag_spec_GCJ='${wl}-E'
17933
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17934
# Instead, shared libraries are loaded at an image base (0x10000000 by
17935
# default) and relocated if they conflict, which is a slow very memory
17936
# consuming and fragmenting process. To avoid this, we pick a random,
17937
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17938
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17939
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'
17940
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'
17943
gnu* | linux* | k*bsd*-gnu)
17944
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17946
case $cc_basename,$host_cpu in
17947
pgcc*) # Portland Group C compiler
17948
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'
17949
tmp_addflag=' $pic_flag'
17951
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17952
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'
17953
tmp_addflag=' $pic_flag -Mnomain' ;;
17954
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17955
tmp_addflag=' -i_dynamic' ;;
17956
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17957
tmp_addflag=' -i_dynamic -nofor_main' ;;
17958
ifc* | ifort*) # Intel Fortran compiler
17959
tmp_addflag=' -nofor_main' ;;
17961
case `$CC -V 2>&1 | sed 5q` in
17962
*Sun\ C*) # Sun C 5.9
17963
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'
17964
tmp_sharedflag='-G' ;;
17965
*Sun\ F*) # Sun Fortran 8.3
17966
tmp_sharedflag='-G' ;;
17968
tmp_sharedflag='-shared' ;;
17970
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17972
if test $supports_anon_versioning = yes; then
17973
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17974
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17975
$echo "local: *; };" >> $output_objdir/$libname.ver~
17976
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17984
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17985
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17988
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17989
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17994
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17998
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17999
*** create shared libraries on Solaris systems. Therefore, libtool
18000
*** is disabling shared libraries support. We urge you to upgrade GNU
18001
*** binutils to release 2.9.1 or newer. Another option is to modify
18002
*** your PATH or compiler configuration so that the native linker is
18003
*** used, and then restart.
18006
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18007
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18014
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18015
case `$LD -v 2>&1` in
18016
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18020
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18021
*** reliably create shared libraries on SCO systems. Therefore, libtool
18022
*** is disabling shared libraries support. We urge you to upgrade GNU
18023
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18024
*** your PATH or compiler configuration so that the native linker is
18025
*** used, and then restart.
18030
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18031
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18032
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18033
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18042
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18044
hardcode_direct_GCJ=yes
18045
hardcode_shlibpath_var_GCJ=no
18049
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18050
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18051
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18058
if test "$ld_shlibs_GCJ" = no; then
18060
hardcode_libdir_flag_spec_GCJ=
18061
export_dynamic_flag_spec_GCJ=
18062
whole_archive_flag_spec_GCJ=
18065
# PORTME fill in a description of your system's linker (not GNU ld)
18068
allow_undefined_flag_GCJ=unsupported
18069
always_export_symbols_GCJ=yes
18070
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'
18071
# Note: this linker hardcodes the directories in LIBPATH if there
18072
# are no directories specified by -L.
18073
hardcode_minus_L_GCJ=yes
18074
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18075
# Neither direct hardcoding nor static linking is supported with a
18077
hardcode_direct_GCJ=unsupported
18082
if test "$host_cpu" = ia64; then
18083
# On IA64, the linker does run time linking by default, so we don't
18084
# have to do anything special.
18085
aix_use_runtimelinking=no
18086
exp_sym_flag='-Bexport'
18089
# If we're using GNU nm, then we don't want the "-C" option.
18090
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18091
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18092
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'
18094
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'
18096
aix_use_runtimelinking=no
18098
# Test if we are trying to use run time linking or normal
18099
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18100
# need to do runtime linking.
18101
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18102
for ld_flag in $LDFLAGS; do
18103
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18104
aix_use_runtimelinking=yes
18111
exp_sym_flag='-bexport'
18112
no_entry_flag='-bnoentry'
18115
# When large executables or shared objects are built, AIX ld can
18116
# have problems creating the table of contents. If linking a library
18117
# or program results in "error TOC overflow" add -mminimal-toc to
18118
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18119
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18121
archive_cmds_GCJ=''
18122
hardcode_direct_GCJ=yes
18123
hardcode_libdir_separator_GCJ=':'
18124
link_all_deplibs_GCJ=yes
18126
if test "$GCC" = yes; then
18127
case $host_os in aix4.[012]|aix4.[012].*)
18128
# We only want to do this on AIX 4.2 and lower, the check
18129
# below for broken collect2 doesn't work under 4.3+
18130
collect2name=`${CC} -print-prog-name=collect2`
18131
if test -f "$collect2name" && \
18132
strings "$collect2name" | grep resolve_lib_name >/dev/null
18134
# We have reworked collect2
18137
# We have old collect2
18138
hardcode_direct_GCJ=unsupported
18139
# It fails to find uninstalled libraries when the uninstalled
18140
# path is not listed in the libpath. Setting hardcode_minus_L
18141
# to unsupported forces relinking
18142
hardcode_minus_L_GCJ=yes
18143
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18144
hardcode_libdir_separator_GCJ=
18148
shared_flag='-shared'
18149
if test "$aix_use_runtimelinking" = yes; then
18150
shared_flag="$shared_flag "'${wl}-G'
18154
if test "$host_cpu" = ia64; then
18155
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18156
# chokes on -Wl,-G. The following line is correct:
18159
if test "$aix_use_runtimelinking" = yes; then
18160
shared_flag='${wl}-G'
18162
shared_flag='${wl}-bM:SRE'
18167
# It seems that -bexpall does not export symbols beginning with
18168
# underscore (_), so it is better to generate a list of symbols to export.
18169
always_export_symbols_GCJ=yes
18170
if test "$aix_use_runtimelinking" = yes; then
18171
# Warning - without using the other runtime loading flags (-brtl),
18172
# -berok will link without error, but may produce a broken library.
18173
allow_undefined_flag_GCJ='-berok'
18174
# Determine the default libpath from the value encoded in an empty executable.
18175
cat >conftest.$ac_ext <<_ACEOF
18178
cat confdefs.h >>conftest.$ac_ext
18179
cat >>conftest.$ac_ext <<_ACEOF
18180
/* end confdefs.h. */
18190
rm -f conftest.$ac_objext conftest$ac_exeext
18191
if { (ac_try="$ac_link"
18192
case "(($ac_try" in
18193
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194
*) ac_try_echo=$ac_try;;
18196
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18197
$as_echo "$ac_try_echo") >&5
18198
(eval "$ac_link") 2>conftest.er1
18200
grep -v '^ *+' conftest.er1 >conftest.err
18202
cat conftest.err >&5
18203
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204
(exit $ac_status); } && {
18205
test -z "$ac_c_werror_flag" ||
18206
test ! -s conftest.err
18207
} && test -s conftest$ac_exeext && {
18208
test "$cross_compiling" = yes ||
18209
$as_test_x conftest$ac_exeext
18212
lt_aix_libpath_sed='
18213
/Import File Strings/,/^$/ {
18219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18220
# Check for a 64-bit object if we didn't find anything.
18221
if test -z "$aix_libpath"; then
18222
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18225
$as_echo "$as_me: failed program was:" >&5
18226
sed 's/^/| /' conftest.$ac_ext >&5
18231
rm -rf conftest.dSYM
18232
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233
conftest$ac_exeext conftest.$ac_ext
18234
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18236
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18237
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"
18239
if test "$host_cpu" = ia64; then
18240
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18241
allow_undefined_flag_GCJ="-z nodefs"
18242
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"
18244
# Determine the default libpath from the value encoded in an empty executable.
18245
cat >conftest.$ac_ext <<_ACEOF
18248
cat confdefs.h >>conftest.$ac_ext
18249
cat >>conftest.$ac_ext <<_ACEOF
18250
/* end confdefs.h. */
18260
rm -f conftest.$ac_objext conftest$ac_exeext
18261
if { (ac_try="$ac_link"
18262
case "(($ac_try" in
18263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264
*) ac_try_echo=$ac_try;;
18266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18267
$as_echo "$ac_try_echo") >&5
18268
(eval "$ac_link") 2>conftest.er1
18270
grep -v '^ *+' conftest.er1 >conftest.err
18272
cat conftest.err >&5
18273
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274
(exit $ac_status); } && {
18275
test -z "$ac_c_werror_flag" ||
18276
test ! -s conftest.err
18277
} && test -s conftest$ac_exeext && {
18278
test "$cross_compiling" = yes ||
18279
$as_test_x conftest$ac_exeext
18282
lt_aix_libpath_sed='
18283
/Import File Strings/,/^$/ {
18289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18290
# Check for a 64-bit object if we didn't find anything.
18291
if test -z "$aix_libpath"; then
18292
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18295
$as_echo "$as_me: failed program was:" >&5
18296
sed 's/^/| /' conftest.$ac_ext >&5
18301
rm -rf conftest.dSYM
18302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18303
conftest$ac_exeext conftest.$ac_ext
18304
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18306
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18307
# Warning - without using the other run time loading flags,
18308
# -berok will link without error, but may produce a broken library.
18309
no_undefined_flag_GCJ=' ${wl}-bernotok'
18310
allow_undefined_flag_GCJ=' ${wl}-berok'
18311
# Exported symbols can be pulled into shared objects from archives
18312
whole_archive_flag_spec_GCJ='$convenience'
18313
archive_cmds_need_lc_GCJ=yes
18314
# This is similar to how AIX traditionally builds its shared libraries.
18315
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'
18321
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)'
18322
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18323
hardcode_minus_L_GCJ=yes
18324
# see comment about different semantics on the GNU ld section
18329
export_dynamic_flag_spec_GCJ=-rdynamic
18332
cygwin* | mingw* | pw32*)
18333
# When not using gcc, we currently assume that we are using
18334
# Microsoft Visual C++.
18335
# hardcode_libdir_flag_spec is actually meaningless, as there is
18336
# no search path for DLLs.
18337
hardcode_libdir_flag_spec_GCJ=' '
18338
allow_undefined_flag_GCJ=unsupported
18339
# Tell ltmain to make .lib files, not .a files.
18341
# Tell ltmain to make .dll files, not .so files.
18343
# FIXME: Setting linknames here is a bad hack.
18344
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18345
# The linker will automatically build a .lib file if we build a DLL.
18346
old_archive_From_new_cmds_GCJ='true'
18347
# FIXME: Should let the user specify the lib program.
18348
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18349
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18350
enable_shared_with_static_runtimes_GCJ=yes
18353
darwin* | rhapsody*)
18355
rhapsody* | darwin1.[012])
18356
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18359
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18360
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18362
case ${MACOSX_DEPLOYMENT_TARGET} in
18364
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18367
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18373
archive_cmds_need_lc_GCJ=no
18374
hardcode_direct_GCJ=no
18375
hardcode_automatic_GCJ=yes
18376
hardcode_shlibpath_var_GCJ=unsupported
18377
whole_archive_flag_spec_GCJ=''
18378
link_all_deplibs_GCJ=yes
18379
if test "$GCC" = yes ; then
18380
output_verbose_link_cmd='echo'
18381
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}"
18382
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18383
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}"
18384
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}"
18386
case $cc_basename in
18388
output_verbose_link_cmd='echo'
18389
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18390
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18391
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18392
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}'
18393
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}'
18403
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18404
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18405
hardcode_shlibpath_var_GCJ=no
18412
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18413
# support. Future versions do this automatically, but an explicit c++rt0.o
18414
# does not break anything, and helps significantly (at the cost of a little
18417
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18418
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18419
hardcode_direct_GCJ=yes
18420
hardcode_shlibpath_var_GCJ=no
18423
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18425
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18426
hardcode_direct_GCJ=yes
18427
hardcode_minus_L_GCJ=yes
18428
hardcode_shlibpath_var_GCJ=no
18431
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18432
freebsd* | dragonfly*)
18433
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18434
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18435
hardcode_direct_GCJ=yes
18436
hardcode_shlibpath_var_GCJ=no
18440
if test "$GCC" = yes; then
18441
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'
18443
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'
18445
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18446
hardcode_libdir_separator_GCJ=:
18447
hardcode_direct_GCJ=yes
18449
# hardcode_minus_L: Not really in the search PATH,
18450
# but as the default location of the library.
18451
hardcode_minus_L_GCJ=yes
18452
export_dynamic_flag_spec_GCJ='${wl}-E'
18456
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18457
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18459
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18461
if test "$with_gnu_ld" = no; then
18462
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18463
hardcode_libdir_separator_GCJ=:
18465
hardcode_direct_GCJ=yes
18466
export_dynamic_flag_spec_GCJ='${wl}-E'
18468
# hardcode_minus_L: Not really in the search PATH,
18469
# but as the default location of the library.
18470
hardcode_minus_L_GCJ=yes
18475
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18478
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18481
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18484
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18490
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18493
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18496
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18500
if test "$with_gnu_ld" = no; then
18501
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18502
hardcode_libdir_separator_GCJ=:
18506
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18507
hardcode_direct_GCJ=no
18508
hardcode_shlibpath_var_GCJ=no
18511
hardcode_direct_GCJ=yes
18512
export_dynamic_flag_spec_GCJ='${wl}-E'
18514
# hardcode_minus_L: Not really in the search PATH,
18515
# but as the default location of the library.
18516
hardcode_minus_L_GCJ=yes
18522
irix5* | irix6* | nonstopux*)
18523
if test "$GCC" = yes; then
18524
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'
18526
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'
18527
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18529
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18530
hardcode_libdir_separator_GCJ=:
18531
link_all_deplibs_GCJ=yes
18535
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18536
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18538
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18540
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18541
hardcode_direct_GCJ=yes
18542
hardcode_shlibpath_var_GCJ=no
18546
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18547
hardcode_direct_GCJ=yes
18548
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18549
hardcode_libdir_separator_GCJ=:
18550
hardcode_shlibpath_var_GCJ=no
18554
if test -f /usr/libexec/ld.so; then
18555
hardcode_direct_GCJ=yes
18556
hardcode_shlibpath_var_GCJ=no
18557
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18558
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18559
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18560
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18561
export_dynamic_flag_spec_GCJ='${wl}-E'
18564
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18565
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18566
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18569
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18570
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18580
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18581
hardcode_minus_L_GCJ=yes
18582
allow_undefined_flag_GCJ=unsupported
18583
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'
18584
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18588
if test "$GCC" = yes; then
18589
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18590
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'
18592
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18593
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'
18595
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18596
hardcode_libdir_separator_GCJ=:
18599
osf4* | osf5*) # as osf3* with the addition of -msym flag
18600
if test "$GCC" = yes; then
18601
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18602
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'
18603
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18605
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18606
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'
18607
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~
18608
$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'
18610
# Both c and cxx compiler support -rpath directly
18611
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18613
hardcode_libdir_separator_GCJ=:
18617
no_undefined_flag_GCJ=' -z text'
18618
if test "$GCC" = yes; then
18620
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18621
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18622
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18625
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18626
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18627
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18629
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18630
hardcode_shlibpath_var_GCJ=no
18632
solaris2.[0-5] | solaris2.[0-5].*) ;;
18634
# The compiler driver will combine and reorder linker options,
18635
# but understands `-z linker_flag'. GCC discards it without `$wl',
18636
# but is careful enough not to reorder.
18637
# Supported since Solaris 2.6 (maybe 2.5.1?)
18638
if test "$GCC" = yes; then
18639
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18641
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18645
link_all_deplibs_GCJ=yes
18649
if test "x$host_vendor" = xsequent; then
18650
# Use $CC to link under sequent, because it throws in some extra .o
18651
# files that make .init and .fini sections work.
18652
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18654
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18656
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18657
hardcode_direct_GCJ=yes
18658
hardcode_minus_L_GCJ=yes
18659
hardcode_shlibpath_var_GCJ=no
18663
case $host_vendor in
18665
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18666
hardcode_direct_GCJ=yes # is this really true???
18669
## LD is ld it makes a PLAMLIB
18670
## CC just makes a GrossModule.
18671
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18672
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18673
hardcode_direct_GCJ=no
18676
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18677
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18680
runpath_var='LD_RUN_PATH'
18681
hardcode_shlibpath_var_GCJ=no
18685
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686
hardcode_shlibpath_var_GCJ=no
18687
export_dynamic_flag_spec_GCJ='-Bexport'
18691
if test -d /usr/nec; then
18692
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18693
hardcode_shlibpath_var_GCJ=no
18694
runpath_var=LD_RUN_PATH
18695
hardcode_runpath_var=yes
18700
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18701
no_undefined_flag_GCJ='${wl}-z,text'
18702
archive_cmds_need_lc_GCJ=no
18703
hardcode_shlibpath_var_GCJ=no
18704
runpath_var='LD_RUN_PATH'
18706
if test "$GCC" = yes; then
18707
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18708
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18710
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18711
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18715
sysv5* | sco3.2v5* | sco5v6*)
18716
# Note: We can NOT use -z defs as we might desire, because we do not
18717
# link with -lc, and that would cause any symbols used from libc to
18718
# always be unresolved, which means just about no library would
18719
# ever link correctly. If we're not using GNU ld we use -z text
18720
# though, which does catch some bad symbols but isn't as heavy-handed
18722
no_undefined_flag_GCJ='${wl}-z,text'
18723
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18724
archive_cmds_need_lc_GCJ=no
18725
hardcode_shlibpath_var_GCJ=no
18726
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18727
hardcode_libdir_separator_GCJ=':'
18728
link_all_deplibs_GCJ=yes
18729
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18730
runpath_var='LD_RUN_PATH'
18732
if test "$GCC" = yes; then
18733
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18734
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18736
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18737
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18742
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18743
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18744
hardcode_shlibpath_var_GCJ=no
18753
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18754
$as_echo "$ld_shlibs_GCJ" >&6; }
18755
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18758
# Do we need to explicitly link libc?
18760
case "x$archive_cmds_need_lc_GCJ" in
18762
# Assume -lc should be added
18763
archive_cmds_need_lc_GCJ=yes
18765
if test "$enable_shared" = yes && test "$GCC" = yes; then
18766
case $archive_cmds_GCJ in
18768
# FIXME: we may have to deal with multi-command sequences.
18771
# Test whether the compiler implicitly links with -lc since on some
18772
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18773
# to ld, don't add -lc before -lgcc.
18774
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18775
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18777
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780
(eval $ac_compile) 2>&5
18782
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783
(exit $ac_status); } 2>conftest.err; then
18786
libobjs=conftest.$ac_objext
18788
wl=$lt_prog_compiler_wl_GCJ
18789
pic_flag=$lt_prog_compiler_pic_GCJ
18795
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18796
allow_undefined_flag_GCJ=
18797
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18798
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18800
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801
(exit $ac_status); }
18803
archive_cmds_need_lc_GCJ=no
18805
archive_cmds_need_lc_GCJ=yes
18807
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18809
cat conftest.err 1>&5
18812
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18813
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18820
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18821
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18822
library_names_spec=
18823
libname_spec='lib$name'
18827
postuninstall_cmds=
18831
shlibpath_overrides_runpath=unknown
18833
dynamic_linker="$host_os ld.so"
18834
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18836
need_lib_prefix=unknown
18837
hardcode_into_libs=no
18839
# when you set need_version to no, make sure it does not cause -set_version
18840
# flags to be left without arguments
18841
need_version=unknown
18846
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18847
shlibpath_var=LIBPATH
18849
# AIX 3 has no versioning support, so we append a major version to the name.
18850
soname_spec='${libname}${release}${shared_ext}$major'
18857
hardcode_into_libs=yes
18858
if test "$host_cpu" = ia64; then
18859
# AIX 5 supports IA64
18860
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18861
shlibpath_var=LD_LIBRARY_PATH
18863
# With GCC up to 2.95.x, collect2 would create an import file
18864
# for dependence libraries. The import file would start with
18865
# the line `#! .'. This would cause the generated library to
18866
# depend on `.', always an invalid library. This was fixed in
18867
# development snapshots of GCC prior to 3.0.
18869
aix4 | aix4.[01] | aix4.[01].*)
18870
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18872
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18875
can_build_shared=no
18879
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18880
# soname into executable. Probably we can add versioning support to
18881
# collect2, so additional links can be useful in future.
18882
if test "$aix_use_runtimelinking" = yes; then
18883
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18884
# instead of lib<name>.a to let people know that these are not
18885
# typical AIX shared libraries.
18886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888
# We preserve .a as extension for shared libraries through AIX4.2
18889
# and later when we are not doing run time linking.
18890
library_names_spec='${libname}${release}.a $libname.a'
18891
soname_spec='${libname}${release}${shared_ext}$major'
18893
shlibpath_var=LIBPATH
18898
library_names_spec='$libname.ixlibrary $libname.a'
18899
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18900
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'
18904
library_names_spec='${libname}${shared_ext}'
18905
dynamic_linker="$host_os ld.so"
18906
shlibpath_var=LIBRARY_PATH
18912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913
soname_spec='${libname}${release}${shared_ext}$major'
18914
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18915
shlibpath_var=LD_LIBRARY_PATH
18916
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18917
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18918
# the default ld.so.conf also contains /usr/contrib/lib and
18919
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18920
# libtool to hard-code these into programs
18923
cygwin* | mingw* | pw32*)
18924
version_type=windows
18929
case $GCC,$host_os in
18930
yes,cygwin* | yes,mingw* | yes,pw32*)
18931
library_names_spec='$libname.dll.a'
18932
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18933
postinstall_cmds='base_file=`basename \${file}`~
18934
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18935
dldir=$destdir/`dirname \$dlpath`~
18936
test -d \$dldir || mkdir -p \$dldir~
18937
$install_prog $dir/$dlname \$dldir/$dlname~
18938
chmod a+x \$dldir/$dlname'
18939
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18940
dlpath=$dir/\$dldll~
18942
shlibpath_overrides_runpath=yes
18946
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18947
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18948
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18951
# MinGW DLLs use traditional 'lib' prefix
18952
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18953
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18954
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18955
# It is most probably a Windows format PATH printed by
18956
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18957
# path with ; separators, and with drive letters. We can handle the
18958
# drive letters (cygwin fileutils understands them), so leave them,
18959
# especially as we might pass files found there to a mingw objdump,
18960
# which wouldn't understand a cygwinified path. Ahh.
18961
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18963
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18967
# pw32 DLLs use 'pw' prefix rather than 'lib'
18968
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18974
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18977
dynamic_linker='Win32 ld.exe'
18978
# FIXME: first we should search . and the directory the executable is in
18982
darwin* | rhapsody*)
18983
dynamic_linker="$host_os dyld"
18984
version_type=darwin
18987
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18988
soname_spec='${libname}${release}${major}$shared_ext'
18989
shlibpath_overrides_runpath=yes
18990
shlibpath_var=DYLD_LIBRARY_PATH
18991
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18993
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19001
soname_spec='${libname}${release}${shared_ext}$major'
19002
shlibpath_var=LD_LIBRARY_PATH
19009
freebsd* | dragonfly*)
19010
# DragonFly does not have aout. When/if they implement a new
19011
# versioning mechanism, adjust this.
19012
if test -x /usr/bin/objformat; then
19013
objformat=`/usr/bin/objformat`
19016
freebsd[123]*) objformat=aout ;;
19017
*) objformat=elf ;;
19020
version_type=freebsd-$objformat
19021
case $version_type in
19023
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19028
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19032
shlibpath_var=LD_LIBRARY_PATH
19035
shlibpath_overrides_runpath=yes
19037
freebsd3.[01]* | freebsdelf3.[01]*)
19038
shlibpath_overrides_runpath=yes
19039
hardcode_into_libs=yes
19041
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19042
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19043
shlibpath_overrides_runpath=no
19044
hardcode_into_libs=yes
19046
*) # from 4.6 on, and DragonFly
19047
shlibpath_overrides_runpath=yes
19048
hardcode_into_libs=yes
19057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19058
soname_spec='${libname}${release}${shared_ext}$major'
19059
shlibpath_var=LD_LIBRARY_PATH
19060
hardcode_into_libs=yes
19063
hpux9* | hpux10* | hpux11*)
19064
# Give a soname corresponding to the major version so that dld.sl refuses to
19065
# link against other versions.
19072
hardcode_into_libs=yes
19073
dynamic_linker="$host_os dld.so"
19074
shlibpath_var=LD_LIBRARY_PATH
19075
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19076
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19077
soname_spec='${libname}${release}${shared_ext}$major'
19078
if test "X$HPUX_IA64_MODE" = X32; then
19079
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19081
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19083
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19087
hardcode_into_libs=yes
19088
dynamic_linker="$host_os dld.sl"
19089
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19090
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092
soname_spec='${libname}${release}${shared_ext}$major'
19093
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19094
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19098
dynamic_linker="$host_os dld.sl"
19099
shlibpath_var=SHLIB_PATH
19100
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102
soname_spec='${libname}${release}${shared_ext}$major'
19105
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19106
postinstall_cmds='chmod 555 $lib'
19113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19114
soname_spec='${libname}${release}${shared_ext}$major'
19115
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19116
shlibpath_var=LD_LIBRARY_PATH
19117
shlibpath_overrides_runpath=no
19118
hardcode_into_libs=yes
19121
irix5* | irix6* | nonstopux*)
19123
nonstopux*) version_type=nonstopux ;;
19125
if test "$lt_cv_prog_gnu_ld" = yes; then
19133
soname_spec='${libname}${release}${shared_ext}$major'
19134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19136
irix5* | nonstopux*)
19137
libsuff= shlibsuff=
19140
case $LD in # libtool.m4 will add one of these switches to LD
19141
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19142
libsuff= shlibsuff= libmagic=32-bit;;
19143
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19144
libsuff=32 shlibsuff=N32 libmagic=N32;;
19145
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19146
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19147
*) libsuff= shlibsuff= libmagic=never-match;;
19151
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19152
shlibpath_overrides_runpath=no
19153
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19154
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19155
hardcode_into_libs=yes
19158
# No shared lib support for Linux oldld, aout, or coff.
19159
linux*oldld* | linux*aout* | linux*coff*)
19163
# This must be Linux ELF.
19164
linux* | k*bsd*-gnu)
19168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19169
soname_spec='${libname}${release}${shared_ext}$major'
19170
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19171
shlibpath_var=LD_LIBRARY_PATH
19172
shlibpath_overrides_runpath=no
19173
# This implies no fast_install, which is unacceptable.
19174
# Some rework will be needed to allow for fast_install
19175
# before this can be enabled.
19176
hardcode_into_libs=yes
19178
# Append ld.so.conf contents to the search path
19179
if test -f /etc/ld.so.conf; then
19180
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' ' '`
19181
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19184
# We used to test for /lib/ld.so.1 and disable shared libraries on
19185
# powerpc, because MkLinux only supported shared libraries with the
19186
# GNU dynamic linker. Since this was broken with cross compilers,
19187
# most powerpc-linux boxes support dynamic linking these days and
19188
# people can always --disable-shared, the test was removed, and we
19189
# assume the GNU/Linux dynamic linker is in use.
19190
dynamic_linker='GNU/Linux ld.so'
19197
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19199
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19200
dynamic_linker='NetBSD (a.out) ld.so'
19202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19203
soname_spec='${libname}${release}${shared_ext}$major'
19204
dynamic_linker='NetBSD ld.elf_so'
19206
shlibpath_var=LD_LIBRARY_PATH
19207
shlibpath_overrides_runpath=yes
19208
hardcode_into_libs=yes
19213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214
shlibpath_var=LD_LIBRARY_PATH
19215
shlibpath_overrides_runpath=yes
19222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223
soname_spec='${libname}${release}${shared_ext}$major'
19224
shlibpath_var=LD_LIBRARY_PATH
19225
shlibpath_overrides_runpath=yes
19230
sys_lib_dlsearch_path_spec="/usr/lib"
19232
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19234
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19235
*) need_version=no ;;
19237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19238
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19239
shlibpath_var=LD_LIBRARY_PATH
19240
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19242
openbsd2.[89] | openbsd2.[89].*)
19243
shlibpath_overrides_runpath=no
19246
shlibpath_overrides_runpath=yes
19250
shlibpath_overrides_runpath=yes
19255
libname_spec='$name'
19258
library_names_spec='$libname${shared_ext} $libname.a'
19259
dynamic_linker='OS/2 ld.exe'
19260
shlibpath_var=LIBPATH
19263
osf3* | osf4* | osf5*)
19267
soname_spec='${libname}${release}${shared_ext}$major'
19268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269
shlibpath_var=LD_LIBRARY_PATH
19270
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19271
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19283
soname_spec='${libname}${release}${shared_ext}$major'
19284
shlibpath_var=LD_LIBRARY_PATH
19285
shlibpath_overrides_runpath=yes
19286
hardcode_into_libs=yes
19287
# ldd complains unless libraries are executable
19288
postinstall_cmds='chmod +x $lib'
19293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19294
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19295
shlibpath_var=LD_LIBRARY_PATH
19296
shlibpath_overrides_runpath=yes
19297
if test "$with_gnu_ld" = yes; then
19305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19306
soname_spec='${libname}${release}${shared_ext}$major'
19307
shlibpath_var=LD_LIBRARY_PATH
19308
case $host_vendor in
19310
shlibpath_overrides_runpath=no
19312
export_dynamic_flag_spec='${wl}-Blargedynsym'
19313
runpath_var=LD_RUN_PATH
19321
shlibpath_overrides_runpath=no
19322
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19328
if test -d /usr/nec ;then
19330
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19331
soname_spec='$libname${shared_ext}.$major'
19332
shlibpath_var=LD_LIBRARY_PATH
19336
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19337
version_type=freebsd-elf
19340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19341
soname_spec='${libname}${release}${shared_ext}$major'
19342
shlibpath_var=LD_LIBRARY_PATH
19343
hardcode_into_libs=yes
19344
if test "$with_gnu_ld" = yes; then
19345
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19346
shlibpath_overrides_runpath=no
19348
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19349
shlibpath_overrides_runpath=yes
19352
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19356
sys_lib_dlsearch_path_spec='/usr/lib'
19361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362
soname_spec='${libname}${release}${shared_ext}$major'
19363
shlibpath_var=LD_LIBRARY_PATH
19370
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19371
$as_echo "$dynamic_linker" >&6; }
19372
test "$dynamic_linker" = no && can_build_shared=no
19374
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19375
$as_echo_n "(cached) " >&6
19377
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19380
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19381
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19382
$as_echo_n "(cached) " >&6
19384
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19387
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19389
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19390
if test "$GCC" = yes; then
19391
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19394
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19395
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19396
hardcode_action_GCJ=
19397
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19398
test -n "$runpath_var_GCJ" || \
19399
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19401
# We can hardcode non-existant directories.
19402
if test "$hardcode_direct_GCJ" != no &&
19403
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19404
# have to relink, otherwise we might link with an installed library
19405
# when we should be linking with a yet-to-be-installed one
19406
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19407
test "$hardcode_minus_L_GCJ" != no; then
19408
# Linking always hardcodes the temporary library directory.
19409
hardcode_action_GCJ=relink
19411
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19412
hardcode_action_GCJ=immediate
19415
# We cannot hardcode anything, or else we can only hardcode existing
19417
hardcode_action_GCJ=unsupported
19419
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19420
$as_echo "$hardcode_action_GCJ" >&6; }
19422
if test "$hardcode_action_GCJ" = relink; then
19423
# Fast installation is not supported
19424
enable_fast_install=no
19425
elif test "$shlibpath_overrides_runpath" = yes ||
19426
test "$enable_shared" = no; then
19427
# Fast installation is not necessary
19428
enable_fast_install=needless
19432
# The else clause should only fire when bootstrapping the
19433
# libtool distribution, otherwise you forgot to ship ltmain.sh
19434
# with your package, and you will get complaints that there are
19435
# no rules to generate ltmain.sh.
19436
if test -f "$ltmain"; then
19437
# See if we are running on zsh, and set the options which allow our commands through
19438
# without removal of \ escapes.
19439
if test -n "${ZSH_VERSION+set}" ; then
19440
setopt NO_GLOB_SUBST
19442
# Now quote all the things that may contain metacharacters while being
19443
# careful not to overquote the AC_SUBSTed values. We take copies of the
19444
# variables and quote the copies for generation of the libtool script.
19445
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19447
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19448
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19449
deplibs_check_method reload_flag reload_cmds need_locks \
19450
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19451
lt_cv_sys_global_symbol_to_c_name_address \
19452
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19453
old_postinstall_cmds old_postuninstall_cmds \
19457
lt_prog_compiler_wl_GCJ \
19458
lt_prog_compiler_pic_GCJ \
19459
lt_prog_compiler_static_GCJ \
19460
lt_prog_compiler_no_builtin_flag_GCJ \
19461
export_dynamic_flag_spec_GCJ \
19462
thread_safe_flag_spec_GCJ \
19463
whole_archive_flag_spec_GCJ \
19464
enable_shared_with_static_runtimes_GCJ \
19465
old_archive_cmds_GCJ \
19466
old_archive_from_new_cmds_GCJ \
19467
predep_objects_GCJ \
19468
postdep_objects_GCJ \
19471
compiler_lib_search_path_GCJ \
19472
compiler_lib_search_dirs_GCJ \
19474
archive_expsym_cmds_GCJ \
19475
postinstall_cmds_GCJ \
19476
postuninstall_cmds_GCJ \
19477
old_archive_from_expsyms_cmds_GCJ \
19478
allow_undefined_flag_GCJ \
19479
no_undefined_flag_GCJ \
19480
export_symbols_cmds_GCJ \
19481
hardcode_libdir_flag_spec_GCJ \
19482
hardcode_libdir_flag_spec_ld_GCJ \
19483
hardcode_libdir_separator_GCJ \
19484
hardcode_automatic_GCJ \
19486
module_expsym_cmds_GCJ \
19487
lt_cv_prog_compiler_c_o_GCJ \
19488
fix_srcfile_path_GCJ \
19489
exclude_expsyms_GCJ \
19490
include_expsyms_GCJ; do
19493
old_archive_cmds_GCJ | \
19494
old_archive_from_new_cmds_GCJ | \
19495
archive_cmds_GCJ | \
19496
archive_expsym_cmds_GCJ | \
19497
module_cmds_GCJ | \
19498
module_expsym_cmds_GCJ | \
19499
old_archive_from_expsyms_cmds_GCJ | \
19500
export_symbols_cmds_GCJ | \
19501
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19502
postinstall_cmds | postuninstall_cmds | \
19503
old_postinstall_cmds | old_postuninstall_cmds | \
19504
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19505
# Double-quote double-evaled strings.
19506
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19509
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19515
*'\$0 --fallback-echo"')
19516
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19522
cat <<__EOF__ >> "$cfgfile"
19523
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19525
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19527
# Shell to use when invoking shell scripts.
19530
# Whether or not to build shared libraries.
19531
build_libtool_libs=$enable_shared
19533
# Whether or not to build static libraries.
19534
build_old_libs=$enable_static
19536
# Whether or not to add -lc for building shared libraries.
19537
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19539
# Whether or not to disallow shared libs when runtime libs are static
19540
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19542
# Whether or not to optimize for fast installation.
19543
fast_install=$enable_fast_install
19546
host_alias=$host_alias
19550
# The build system.
19551
build_alias=$build_alias
19555
# An echo program that does not interpret backslashes.
19560
AR_FLAGS=$lt_AR_FLAGS
19565
# LTCC compiler flags.
19566
LTCFLAGS=$lt_LTCFLAGS
19568
# A language-specific compiler.
19569
CC=$lt_compiler_GCJ
19571
# Is the compiler the GNU C compiler?
19577
# The linker used to build libraries.
19580
# Whether we need hard or soft links.
19583
# A BSD-compatible nm program.
19586
# A symbol stripping program
19589
# Used to examine libraries when file_magic_cmd begins "file"
19590
MAGIC_CMD=$MAGIC_CMD
19592
# Used on cygwin: DLL creation program.
19595
# Used on cygwin: object dumper.
19598
# Used on cygwin: assembler.
19601
# The name of the directory that contains temporary libtool files.
19604
# How to create reloadable object files.
19605
reload_flag=$lt_reload_flag
19606
reload_cmds=$lt_reload_cmds
19608
# How to pass a linker flag through the compiler.
19609
wl=$lt_lt_prog_compiler_wl_GCJ
19611
# Object file suffix (normally "o").
19612
objext="$ac_objext"
19614
# Old archive suffix (normally "a").
19617
# Shared library suffix (normally ".so").
19618
shrext_cmds='$shrext_cmds'
19620
# Executable file suffix (normally "").
19623
# Additional compiler flags for building library objects.
19624
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19627
# What is the maximum length of a command?
19628
max_cmd_len=$lt_cv_sys_max_cmd_len
19630
# Does compiler simultaneously support -c and -o options?
19631
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19633
# Must we lock files when doing compilation?
19634
need_locks=$lt_need_locks
19636
# Do we need the lib prefix for modules?
19637
need_lib_prefix=$need_lib_prefix
19639
# Do we need a version for libraries?
19640
need_version=$need_version
19642
# Whether dlopen is supported.
19643
dlopen_support=$enable_dlopen
19645
# Whether dlopen of programs is supported.
19646
dlopen_self=$enable_dlopen_self
19648
# Whether dlopen of statically linked programs is supported.
19649
dlopen_self_static=$enable_dlopen_self_static
19651
# Compiler flag to prevent dynamic linking.
19652
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19654
# Compiler flag to turn off builtin functions.
19655
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19657
# Compiler flag to allow reflexive dlopens.
19658
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19660
# Compiler flag to generate shared objects directly from archives.
19661
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19663
# Compiler flag to generate thread-safe objects.
19664
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19666
# Library versioning type.
19667
version_type=$version_type
19669
# Format of library name prefix.
19670
libname_spec=$lt_libname_spec
19672
# List of archive names. First name is the real one, the rest are links.
19673
# The last name is the one that the linker finds with -lNAME.
19674
library_names_spec=$lt_library_names_spec
19676
# The coded name of the library, if different from the real name.
19677
soname_spec=$lt_soname_spec
19679
# Commands used to build and install an old-style archive.
19681
old_archive_cmds=$lt_old_archive_cmds_GCJ
19682
old_postinstall_cmds=$lt_old_postinstall_cmds
19683
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19685
# Create an old-style archive from a shared archive.
19686
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19688
# Create a temporary old-style archive to link instead of a shared archive.
19689
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19691
# Commands used to build and install a shared archive.
19692
archive_cmds=$lt_archive_cmds_GCJ
19693
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19694
postinstall_cmds=$lt_postinstall_cmds
19695
postuninstall_cmds=$lt_postuninstall_cmds
19697
# Commands used to build a loadable module (assumed same as above if empty)
19698
module_cmds=$lt_module_cmds_GCJ
19699
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19701
# Commands to strip libraries.
19702
old_striplib=$lt_old_striplib
19703
striplib=$lt_striplib
19705
# Dependencies to place before the objects being linked to create a
19707
predep_objects=$lt_predep_objects_GCJ
19709
# Dependencies to place after the objects being linked to create a
19711
postdep_objects=$lt_postdep_objects_GCJ
19713
# Dependencies to place before the objects being linked to create a
19715
predeps=$lt_predeps_GCJ
19717
# Dependencies to place after the objects being linked to create a
19719
postdeps=$lt_postdeps_GCJ
19721
# The directories searched by this compiler when creating a shared
19723
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19725
# The library search path used internally by the compiler when linking
19726
# a shared library.
19727
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19729
# Method to check whether dependent libraries are shared objects.
19730
deplibs_check_method=$lt_deplibs_check_method
19732
# Command to use when deplibs_check_method == file_magic.
19733
file_magic_cmd=$lt_file_magic_cmd
19735
# Flag that allows shared libraries with undefined symbols to be built.
19736
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19738
# Flag that forces no undefined symbols.
19739
no_undefined_flag=$lt_no_undefined_flag_GCJ
19741
# Commands used to finish a libtool library installation in a directory.
19742
finish_cmds=$lt_finish_cmds
19744
# Same as above, but a single script fragment to be evaled but not shown.
19745
finish_eval=$lt_finish_eval
19747
# Take the output of nm and produce a listing of raw symbols and C names.
19748
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19750
# Transform the output of nm in a proper C declaration
19751
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19753
# Transform the output of nm in a C name address pair
19754
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19756
# This is the shared library runtime path variable.
19757
runpath_var=$runpath_var
19759
# This is the shared library path variable.
19760
shlibpath_var=$shlibpath_var
19762
# Is shlibpath searched before the hard-coded library search path?
19763
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19765
# How to hardcode a shared library path into an executable.
19766
hardcode_action=$hardcode_action_GCJ
19768
# Whether we should hardcode library paths into libraries.
19769
hardcode_into_libs=$hardcode_into_libs
19771
# Flag to hardcode \$libdir into a binary during linking.
19772
# This must work even if \$libdir does not exist.
19773
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19775
# If ld is used when linking, flag to hardcode \$libdir into
19776
# a binary during linking. This must work even if \$libdir does
19778
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19780
# Whether we need a single -rpath flag with a separated argument.
19781
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19783
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19784
# resulting binary.
19785
hardcode_direct=$hardcode_direct_GCJ
19787
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19788
# resulting binary.
19789
hardcode_minus_L=$hardcode_minus_L_GCJ
19791
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19792
# the resulting binary.
19793
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19795
# Set to yes if building a shared library automatically hardcodes DIR into the library
19796
# and all subsequent libraries and executables linked against it.
19797
hardcode_automatic=$hardcode_automatic_GCJ
19799
# Variables whose values should be saved in libtool wrapper scripts and
19800
# restored at relink time.
19801
variables_saved_for_relink="$variables_saved_for_relink"
19803
# Whether libtool must link a program against all its dependency libraries.
19804
link_all_deplibs=$link_all_deplibs_GCJ
19806
# Compile-time system search path for libraries
19807
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19809
# Run-time system search path for libraries
19810
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19812
# Fix the shell variable \$srcfile for the compiler.
19813
fix_srcfile_path=$lt_fix_srcfile_path
19815
# Set to yes if exported symbols are required.
19816
always_export_symbols=$always_export_symbols_GCJ
19818
# The commands to list exported symbols.
19819
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19821
# The commands to extract the exported symbol list from a shared archive.
19822
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19824
# Symbols that should not be listed in the preloaded symbols.
19825
exclude_expsyms=$lt_exclude_expsyms_GCJ
19827
# Symbols that must always be exported.
19828
include_expsyms=$lt_include_expsyms_GCJ
19830
# ### END LIBTOOL TAG CONFIG: $tagname
19836
# If there is no Makefile yet, we rely on a make rule to execute
19837
# `config.status --recheck' to rerun these tests and create the
19838
# libtool script then.
19839
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19840
if test -f "$ltmain_in"; then
19841
test -f Makefile && make "$ltmain"
19847
ac_cpp='$CPP $CPPFLAGS'
19848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19862
# Source file extension for RC test sources.
19865
# Object file extension for compiled RC test sources.
19869
# Code to be used in simple compile tests
19870
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19872
# Code to be used in simple link tests
19873
lt_simple_link_test_code="$lt_simple_compile_test_code"
19875
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19877
# If no C compiler was specified, use CC.
19880
# If no C compiler flags were specified, use CFLAGS.
19881
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19883
# Allow CC to be a program name with arguments.
19887
# save warnings/boilerplate of simple test code
19888
ac_outfile=conftest.$ac_objext
19889
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19890
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19891
_lt_compiler_boilerplate=`cat conftest.err`
19894
ac_outfile=conftest.$ac_objext
19895
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19896
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19897
_lt_linker_boilerplate=`cat conftest.err`
19901
# Allow CC to be a program name with arguments.
19906
for cc_temp in $compiler""; do
19908
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19909
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19914
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19916
lt_cv_prog_compiler_c_o_RC=yes
19918
# The else clause should only fire when bootstrapping the
19919
# libtool distribution, otherwise you forgot to ship ltmain.sh
19920
# with your package, and you will get complaints that there are
19921
# no rules to generate ltmain.sh.
19922
if test -f "$ltmain"; then
19923
# See if we are running on zsh, and set the options which allow our commands through
19924
# without removal of \ escapes.
19925
if test -n "${ZSH_VERSION+set}" ; then
19926
setopt NO_GLOB_SUBST
19928
# Now quote all the things that may contain metacharacters while being
19929
# careful not to overquote the AC_SUBSTed values. We take copies of the
19930
# variables and quote the copies for generation of the libtool script.
19931
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19933
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19934
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19935
deplibs_check_method reload_flag reload_cmds need_locks \
19936
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19937
lt_cv_sys_global_symbol_to_c_name_address \
19938
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19939
old_postinstall_cmds old_postuninstall_cmds \
19943
lt_prog_compiler_wl_RC \
19944
lt_prog_compiler_pic_RC \
19945
lt_prog_compiler_static_RC \
19946
lt_prog_compiler_no_builtin_flag_RC \
19947
export_dynamic_flag_spec_RC \
19948
thread_safe_flag_spec_RC \
19949
whole_archive_flag_spec_RC \
19950
enable_shared_with_static_runtimes_RC \
19951
old_archive_cmds_RC \
19952
old_archive_from_new_cmds_RC \
19953
predep_objects_RC \
19954
postdep_objects_RC \
19957
compiler_lib_search_path_RC \
19958
compiler_lib_search_dirs_RC \
19960
archive_expsym_cmds_RC \
19961
postinstall_cmds_RC \
19962
postuninstall_cmds_RC \
19963
old_archive_from_expsyms_cmds_RC \
19964
allow_undefined_flag_RC \
19965
no_undefined_flag_RC \
19966
export_symbols_cmds_RC \
19967
hardcode_libdir_flag_spec_RC \
19968
hardcode_libdir_flag_spec_ld_RC \
19969
hardcode_libdir_separator_RC \
19970
hardcode_automatic_RC \
19972
module_expsym_cmds_RC \
19973
lt_cv_prog_compiler_c_o_RC \
19974
fix_srcfile_path_RC \
19975
exclude_expsyms_RC \
19976
include_expsyms_RC; do
19979
old_archive_cmds_RC | \
19980
old_archive_from_new_cmds_RC | \
19981
archive_cmds_RC | \
19982
archive_expsym_cmds_RC | \
19984
module_expsym_cmds_RC | \
19985
old_archive_from_expsyms_cmds_RC | \
19986
export_symbols_cmds_RC | \
19987
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19988
postinstall_cmds | postuninstall_cmds | \
19989
old_postinstall_cmds | old_postuninstall_cmds | \
19990
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19991
# Double-quote double-evaled strings.
19992
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19995
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20001
*'\$0 --fallback-echo"')
20002
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20008
cat <<__EOF__ >> "$cfgfile"
20009
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20011
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20013
# Shell to use when invoking shell scripts.
20016
# Whether or not to build shared libraries.
20017
build_libtool_libs=$enable_shared
20019
# Whether or not to build static libraries.
20020
build_old_libs=$enable_static
20022
# Whether or not to add -lc for building shared libraries.
20023
build_libtool_need_lc=$archive_cmds_need_lc_RC
20025
# Whether or not to disallow shared libs when runtime libs are static
20026
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20028
# Whether or not to optimize for fast installation.
20029
fast_install=$enable_fast_install
20032
host_alias=$host_alias
20036
# The build system.
20037
build_alias=$build_alias
20041
# An echo program that does not interpret backslashes.
20046
AR_FLAGS=$lt_AR_FLAGS
20051
# LTCC compiler flags.
20052
LTCFLAGS=$lt_LTCFLAGS
20054
# A language-specific compiler.
20057
# Is the compiler the GNU C compiler?
20063
# The linker used to build libraries.
20066
# Whether we need hard or soft links.
20069
# A BSD-compatible nm program.
20072
# A symbol stripping program
20075
# Used to examine libraries when file_magic_cmd begins "file"
20076
MAGIC_CMD=$MAGIC_CMD
20078
# Used on cygwin: DLL creation program.
20081
# Used on cygwin: object dumper.
20084
# Used on cygwin: assembler.
20087
# The name of the directory that contains temporary libtool files.
20090
# How to create reloadable object files.
20091
reload_flag=$lt_reload_flag
20092
reload_cmds=$lt_reload_cmds
20094
# How to pass a linker flag through the compiler.
20095
wl=$lt_lt_prog_compiler_wl_RC
20097
# Object file suffix (normally "o").
20098
objext="$ac_objext"
20100
# Old archive suffix (normally "a").
20103
# Shared library suffix (normally ".so").
20104
shrext_cmds='$shrext_cmds'
20106
# Executable file suffix (normally "").
20109
# Additional compiler flags for building library objects.
20110
pic_flag=$lt_lt_prog_compiler_pic_RC
20113
# What is the maximum length of a command?
20114
max_cmd_len=$lt_cv_sys_max_cmd_len
20116
# Does compiler simultaneously support -c and -o options?
20117
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20119
# Must we lock files when doing compilation?
20120
need_locks=$lt_need_locks
20122
# Do we need the lib prefix for modules?
20123
need_lib_prefix=$need_lib_prefix
20125
# Do we need a version for libraries?
20126
need_version=$need_version
20128
# Whether dlopen is supported.
20129
dlopen_support=$enable_dlopen
20131
# Whether dlopen of programs is supported.
20132
dlopen_self=$enable_dlopen_self
20134
# Whether dlopen of statically linked programs is supported.
20135
dlopen_self_static=$enable_dlopen_self_static
20137
# Compiler flag to prevent dynamic linking.
20138
link_static_flag=$lt_lt_prog_compiler_static_RC
20140
# Compiler flag to turn off builtin functions.
20141
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20143
# Compiler flag to allow reflexive dlopens.
20144
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20146
# Compiler flag to generate shared objects directly from archives.
20147
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20149
# Compiler flag to generate thread-safe objects.
20150
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20152
# Library versioning type.
20153
version_type=$version_type
20155
# Format of library name prefix.
20156
libname_spec=$lt_libname_spec
20158
# List of archive names. First name is the real one, the rest are links.
20159
# The last name is the one that the linker finds with -lNAME.
20160
library_names_spec=$lt_library_names_spec
20162
# The coded name of the library, if different from the real name.
20163
soname_spec=$lt_soname_spec
20165
# Commands used to build and install an old-style archive.
20167
old_archive_cmds=$lt_old_archive_cmds_RC
20168
old_postinstall_cmds=$lt_old_postinstall_cmds
20169
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20171
# Create an old-style archive from a shared archive.
20172
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20174
# Create a temporary old-style archive to link instead of a shared archive.
20175
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20177
# Commands used to build and install a shared archive.
20178
archive_cmds=$lt_archive_cmds_RC
20179
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20180
postinstall_cmds=$lt_postinstall_cmds
20181
postuninstall_cmds=$lt_postuninstall_cmds
20183
# Commands used to build a loadable module (assumed same as above if empty)
20184
module_cmds=$lt_module_cmds_RC
20185
module_expsym_cmds=$lt_module_expsym_cmds_RC
20187
# Commands to strip libraries.
20188
old_striplib=$lt_old_striplib
20189
striplib=$lt_striplib
20191
# Dependencies to place before the objects being linked to create a
20193
predep_objects=$lt_predep_objects_RC
20195
# Dependencies to place after the objects being linked to create a
20197
postdep_objects=$lt_postdep_objects_RC
20199
# Dependencies to place before the objects being linked to create a
20201
predeps=$lt_predeps_RC
20203
# Dependencies to place after the objects being linked to create a
20205
postdeps=$lt_postdeps_RC
20207
# The directories searched by this compiler when creating a shared
20209
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20211
# The library search path used internally by the compiler when linking
20212
# a shared library.
20213
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20215
# Method to check whether dependent libraries are shared objects.
20216
deplibs_check_method=$lt_deplibs_check_method
20218
# Command to use when deplibs_check_method == file_magic.
20219
file_magic_cmd=$lt_file_magic_cmd
20221
# Flag that allows shared libraries with undefined symbols to be built.
20222
allow_undefined_flag=$lt_allow_undefined_flag_RC
20224
# Flag that forces no undefined symbols.
20225
no_undefined_flag=$lt_no_undefined_flag_RC
20227
# Commands used to finish a libtool library installation in a directory.
20228
finish_cmds=$lt_finish_cmds
20230
# Same as above, but a single script fragment to be evaled but not shown.
20231
finish_eval=$lt_finish_eval
20233
# Take the output of nm and produce a listing of raw symbols and C names.
20234
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20236
# Transform the output of nm in a proper C declaration
20237
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20239
# Transform the output of nm in a C name address pair
20240
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20242
# This is the shared library runtime path variable.
20243
runpath_var=$runpath_var
20245
# This is the shared library path variable.
20246
shlibpath_var=$shlibpath_var
20248
# Is shlibpath searched before the hard-coded library search path?
20249
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20251
# How to hardcode a shared library path into an executable.
20252
hardcode_action=$hardcode_action_RC
20254
# Whether we should hardcode library paths into libraries.
20255
hardcode_into_libs=$hardcode_into_libs
20257
# Flag to hardcode \$libdir into a binary during linking.
20258
# This must work even if \$libdir does not exist.
20259
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20261
# If ld is used when linking, flag to hardcode \$libdir into
20262
# a binary during linking. This must work even if \$libdir does
20264
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20266
# Whether we need a single -rpath flag with a separated argument.
20267
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20269
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20270
# resulting binary.
20271
hardcode_direct=$hardcode_direct_RC
20273
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20274
# resulting binary.
20275
hardcode_minus_L=$hardcode_minus_L_RC
20277
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20278
# the resulting binary.
20279
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20281
# Set to yes if building a shared library automatically hardcodes DIR into the library
20282
# and all subsequent libraries and executables linked against it.
20283
hardcode_automatic=$hardcode_automatic_RC
20285
# Variables whose values should be saved in libtool wrapper scripts and
20286
# restored at relink time.
20287
variables_saved_for_relink="$variables_saved_for_relink"
20289
# Whether libtool must link a program against all its dependency libraries.
20290
link_all_deplibs=$link_all_deplibs_RC
20292
# Compile-time system search path for libraries
20293
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20295
# Run-time system search path for libraries
20296
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20298
# Fix the shell variable \$srcfile for the compiler.
20299
fix_srcfile_path=$lt_fix_srcfile_path
20301
# Set to yes if exported symbols are required.
20302
always_export_symbols=$always_export_symbols_RC
20304
# The commands to list exported symbols.
20305
export_symbols_cmds=$lt_export_symbols_cmds_RC
20307
# The commands to extract the exported symbol list from a shared archive.
20308
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20310
# Symbols that should not be listed in the preloaded symbols.
20311
exclude_expsyms=$lt_exclude_expsyms_RC
20313
# Symbols that must always be exported.
20314
include_expsyms=$lt_include_expsyms_RC
20316
# ### END LIBTOOL TAG CONFIG: $tagname
20322
# If there is no Makefile yet, we rely on a make rule to execute
20323
# `config.status --recheck' to rerun these tests and create the
20324
# libtool script then.
20325
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20326
if test -f "$ltmain_in"; then
20327
test -f Makefile && make "$ltmain"
20333
ac_cpp='$CPP $CPPFLAGS'
20334
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20343
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20344
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20345
{ (exit 1); exit 1; }; }
20349
# Append the new tag name to the list of available tags.
20350
if test -n "$tagname" ; then
20351
available_tags="$available_tags $tagname"
20357
# Now substitute the updated list of available tags.
20358
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20359
mv "${ofile}T" "$ofile"
20363
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20364
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20365
{ (exit 1); exit 1; }; }
20371
# This can be used to rebuild libtool when needed
20372
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20374
# Always use our own libtool.
20375
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20377
# Prevent multiple expansion
20399
if test -z "${YACC}" || test -z "${LEX}"
20401
{ $as_echo "$as_me:$LINENO: WARNING: Lex and Yacc are required to build mofc from scratch or after grammar changes." >&5
20402
$as_echo "$as_me: WARNING: Lex and Yacc are required to build mofc from scratch or after grammar changes." >&2;}
20405
# Checks for header files.
20406
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20407
$as_echo_n "checking for ANSI C header files... " >&6; }
20408
if test "${ac_cv_header_stdc+set}" = set; then
20409
$as_echo_n "(cached) " >&6
20411
cat >conftest.$ac_ext <<_ACEOF
20414
cat confdefs.h >>conftest.$ac_ext
20415
cat >>conftest.$ac_ext <<_ACEOF
20416
/* end confdefs.h. */
20417
#include <stdlib.h>
20418
#include <stdarg.h>
20419
#include <string.h>
20430
rm -f conftest.$ac_objext
20431
if { (ac_try="$ac_compile"
20432
case "(($ac_try" in
20433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434
*) ac_try_echo=$ac_try;;
20436
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20437
$as_echo "$ac_try_echo") >&5
20438
(eval "$ac_compile") 2>conftest.er1
20440
grep -v '^ *+' conftest.er1 >conftest.err
20442
cat conftest.err >&5
20443
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444
(exit $ac_status); } && {
20445
test -z "$ac_c_werror_flag" ||
20446
test ! -s conftest.err
20447
} && test -s conftest.$ac_objext; then
20448
ac_cv_header_stdc=yes
20450
$as_echo "$as_me: failed program was:" >&5
20451
sed 's/^/| /' conftest.$ac_ext >&5
20453
ac_cv_header_stdc=no
20456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458
if test $ac_cv_header_stdc = yes; then
20459
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20460
cat >conftest.$ac_ext <<_ACEOF
20463
cat confdefs.h >>conftest.$ac_ext
20464
cat >>conftest.$ac_ext <<_ACEOF
20465
/* end confdefs.h. */
20466
#include <string.h>
20469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20470
$EGREP "memchr" >/dev/null 2>&1; then
20473
ac_cv_header_stdc=no
20479
if test $ac_cv_header_stdc = yes; then
20480
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20481
cat >conftest.$ac_ext <<_ACEOF
20484
cat confdefs.h >>conftest.$ac_ext
20485
cat >>conftest.$ac_ext <<_ACEOF
20486
/* end confdefs.h. */
20487
#include <stdlib.h>
20490
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20491
$EGREP "free" >/dev/null 2>&1; then
20494
ac_cv_header_stdc=no
20500
if test $ac_cv_header_stdc = yes; then
20501
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20502
if test "$cross_compiling" = yes; then
20505
cat >conftest.$ac_ext <<_ACEOF
20508
cat confdefs.h >>conftest.$ac_ext
20509
cat >>conftest.$ac_ext <<_ACEOF
20510
/* end confdefs.h. */
20512
#include <stdlib.h>
20513
#if ((' ' & 0x0FF) == 0x020)
20514
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20515
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20517
# define ISLOWER(c) \
20518
(('a' <= (c) && (c) <= 'i') \
20519
|| ('j' <= (c) && (c) <= 'r') \
20520
|| ('s' <= (c) && (c) <= 'z'))
20521
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20524
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20529
for (i = 0; i < 256; i++)
20530
if (XOR (islower (i), ISLOWER (i))
20531
|| toupper (i) != TOUPPER (i))
20536
rm -f conftest$ac_exeext
20537
if { (ac_try="$ac_link"
20538
case "(($ac_try" in
20539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540
*) ac_try_echo=$ac_try;;
20542
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20543
$as_echo "$ac_try_echo") >&5
20544
(eval "$ac_link") 2>&5
20546
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20548
{ (case "(($ac_try" in
20549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550
*) ac_try_echo=$ac_try;;
20552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20553
$as_echo "$ac_try_echo") >&5
20554
(eval "$ac_try") 2>&5
20556
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557
(exit $ac_status); }; }; then
20560
$as_echo "$as_me: program exited with status $ac_status" >&5
20561
$as_echo "$as_me: failed program was:" >&5
20562
sed 's/^/| /' conftest.$ac_ext >&5
20564
( exit $ac_status )
20565
ac_cv_header_stdc=no
20567
rm -rf conftest.dSYM
20568
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20574
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20575
$as_echo "$ac_cv_header_stdc" >&6; }
20576
if test $ac_cv_header_stdc = yes; then
20578
cat >>confdefs.h <<\_ACEOF
20579
#define STDC_HEADERS 1