1113
1122
_SAVE_LDFLAGS="$LDFLAGS"
1115
1124
echo $ac_n "checking for $host compiler""... $ac_c" 1>&6
1116
echo "configure:1117: checking for $host compiler" >&5
1125
echo "configure:1126: checking for $host compiler" >&5
1117
1126
for ac_prog in $HOST_CC gcc cc /usr/ucb/cc
1119
1128
# Extract the first word of "$ac_prog", so it can be a program name with args.
1120
1129
set dummy $ac_prog; ac_word=$2
1121
1130
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122
echo "configure:1123: checking for $ac_word" >&5
1131
echo "configure:1132: checking for $ac_word" >&5
1123
1132
if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
1124
1133
echo $ac_n "(cached) $ac_c" 1>&6
1392
1401
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1394
1403
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1395
echo "configure:1396: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1404
echo "configure:1405: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1396
1405
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1397
1406
cross_compiling=$ac_cv_prog_cc_cross
1399
1408
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1400
echo "configure:1401: checking whether we are using GNU C" >&5
1409
echo "configure:1410: checking whether we are using GNU C" >&5
1401
1410
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1402
1411
echo $ac_n "(cached) $ac_c" 1>&6
1571
1581
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1573
1583
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1574
echo "configure:1575: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1584
echo "configure:1585: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1575
1585
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1576
1586
cross_compiling=$ac_cv_prog_cxx_cross
1578
1588
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1579
echo "configure:1580: checking whether we are using GNU C++" >&5
1589
echo "configure:1590: checking whether we are using GNU C++" >&5
1580
1590
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1581
1591
echo $ac_n "(cached) $ac_c" 1>&6
1858
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1860
# Extract the first word of "$ac_prog", so it can be a program name with args.
1861
set dummy $ac_prog; ac_word=$2
1862
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863
echo "configure:1864: checking for $ac_word" >&5
1864
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1865
echo $ac_n "(cached) $ac_c" 1>&6
1867
if test -n "$CXX"; then
1868
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1870
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1872
for ac_dir in $ac_dummy; do
1873
test -z "$ac_dir" && ac_dir=.
1874
if test -f $ac_dir/$ac_word; then
1875
ac_cv_prog_CXX="$ac_prog"
1882
CXX="$ac_cv_prog_CXX"
1883
if test -n "$CXX"; then
1884
echo "$ac_t""$CXX" 1>&6
1886
echo "$ac_t""no" 1>&6
1889
test -n "$CXX" && break
1891
test -n "$CXX" || CXX="gcc"
1894
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1895
echo "configure:1896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1898
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1899
ac_cpp='$CXXCPP $CPPFLAGS'
1900
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1901
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1902
cross_compiling=$ac_cv_prog_cxx_cross
1904
cat > conftest.$ac_ext << EOF
1906
#line 1907 "configure"
1907
#include "confdefs.h"
1909
int main(){return(0);}
1911
if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1912
ac_cv_prog_cxx_works=yes
1913
# If we can't run a trivial program, we are probably using a cross compiler.
1914
if (./conftest; exit) 2>/dev/null; then
1915
ac_cv_prog_cxx_cross=no
1917
ac_cv_prog_cxx_cross=yes
1920
echo "configure: failed program was:" >&5
1921
cat conftest.$ac_ext >&5
1922
ac_cv_prog_cxx_works=no
1926
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1927
ac_cpp='$CPP $CPPFLAGS'
1928
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1929
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1930
cross_compiling=$ac_cv_prog_cc_cross
1932
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1933
if test $ac_cv_prog_cxx_works = no; then
1934
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1936
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1937
echo "configure:1938: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1938
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1939
cross_compiling=$ac_cv_prog_cxx_cross
1941
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1942
echo "configure:1943: checking whether we are using GNU C++" >&5
1943
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1944
echo $ac_n "(cached) $ac_c" 1>&6
1946
cat > conftest.C <<EOF
1951
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1958
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1960
if test $ac_cv_prog_gxx = yes; then
1966
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1967
ac_save_CXXFLAGS="$CXXFLAGS"
1969
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1970
echo "configure:1971: checking whether ${CXX-g++} accepts -g" >&5
1971
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1972
echo $ac_n "(cached) $ac_c" 1>&6
1974
echo 'void f(){}' > conftest.cc
1975
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1976
ac_cv_prog_cxx_g=yes
1984
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1985
if test "$ac_test_CXXFLAGS" = set; then
1986
CXXFLAGS="$ac_save_CXXFLAGS"
1987
elif test $ac_cv_prog_cxx_g = yes; then
1988
if test "$GXX" = yes; then
1994
if test "$GXX" = yes; then
2001
if test "$CXX" = "cl" -a -z "$CC"; then
2004
# Extract the first word of "gcc", so it can be a program name with args.
1869
# Extract the first word of "gcc", so it can be a program name with args.
2005
1870
set dummy gcc; ac_word=$2
2006
1871
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2007
echo "configure:2008: checking for $ac_word" >&5
1872
echo "configure:1873: checking for $ac_word" >&5
2008
1873
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2009
1874
echo $ac_n "(cached) $ac_c" 1>&6
2159
2024
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2161
2026
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2162
echo "configure:2163: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2027
echo "configure:2028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2163
2028
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2164
2029
cross_compiling=$ac_cv_prog_cc_cross
2166
2031
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2167
echo "configure:2168: checking whether we are using GNU C" >&5
2032
echo "configure:2033: checking whether we are using GNU C" >&5
2168
2033
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2169
2034
echo $ac_n "(cached) $ac_c" 1>&6
2091
if test -n "$USE_CPLUS"; then
2092
if test "$CC" = "cl" -a -z "$CXX"; then
2095
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2097
# Extract the first word of "$ac_prog", so it can be a program name with args.
2098
set dummy $ac_prog; ac_word=$2
2099
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100
echo "configure:2101: checking for $ac_word" >&5
2101
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2102
echo $ac_n "(cached) $ac_c" 1>&6
2104
if test -n "$CXX"; then
2105
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2107
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2109
for ac_dir in $ac_dummy; do
2110
test -z "$ac_dir" && ac_dir=.
2111
if test -f $ac_dir/$ac_word; then
2112
ac_cv_prog_CXX="$ac_prog"
2119
CXX="$ac_cv_prog_CXX"
2120
if test -n "$CXX"; then
2121
echo "$ac_t""$CXX" 1>&6
2123
echo "$ac_t""no" 1>&6
2126
test -n "$CXX" && break
2128
test -n "$CXX" || CXX="gcc"
2131
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2132
echo "configure:2133: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2135
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2136
ac_cpp='$CXXCPP $CPPFLAGS'
2137
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2138
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2139
cross_compiling=$ac_cv_prog_cxx_cross
2141
cat > conftest.$ac_ext << EOF
2143
#line 2144 "configure"
2144
#include "confdefs.h"
2146
int main(){return(0);}
2148
if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2149
ac_cv_prog_cxx_works=yes
2150
# If we can't run a trivial program, we are probably using a cross compiler.
2151
if (./conftest; exit) 2>/dev/null; then
2152
ac_cv_prog_cxx_cross=no
2154
ac_cv_prog_cxx_cross=yes
2157
echo "configure: failed program was:" >&5
2158
cat conftest.$ac_ext >&5
2159
ac_cv_prog_cxx_works=no
2163
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2164
ac_cpp='$CPP $CPPFLAGS'
2165
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2166
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2167
cross_compiling=$ac_cv_prog_cc_cross
2169
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2170
if test $ac_cv_prog_cxx_works = no; then
2171
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2173
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2174
echo "configure:2175: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2175
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2176
cross_compiling=$ac_cv_prog_cxx_cross
2178
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2179
echo "configure:2180: checking whether we are using GNU C++" >&5
2180
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2181
echo $ac_n "(cached) $ac_c" 1>&6
2183
cat > conftest.C <<EOF
2188
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2195
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2197
if test $ac_cv_prog_gxx = yes; then
2203
ac_test_CXXFLAGS="${CXXFLAGS+set}"
2204
ac_save_CXXFLAGS="$CXXFLAGS"
2206
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2207
echo "configure:2208: checking whether ${CXX-g++} accepts -g" >&5
2208
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2209
echo $ac_n "(cached) $ac_c" 1>&6
2211
echo 'void f(){}' > conftest.cc
2212
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2213
ac_cv_prog_cxx_g=yes
2221
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2222
if test "$ac_test_CXXFLAGS" = set; then
2223
CXXFLAGS="$ac_save_CXXFLAGS"
2224
elif test $ac_cv_prog_cxx_g = yes; then
2225
if test "$GXX" = yes; then
2231
if test "$GXX" = yes; then
2227
2240
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2228
echo "configure:2229: checking how to run the C preprocessor" >&5
2241
echo "configure:2242: checking how to run the C preprocessor" >&5
2229
2242
# On Suns, sometimes $CPP names a directory.
2230
2243
if test -n "$CPP" && test -d "$CPP"; then
2954
2967
DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib'
2955
2968
ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'`
2956
2969
echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6
2957
echo "configure:2958: checking for sys/atomic_op.h" >&5
2970
echo "configure:2971: checking for sys/atomic_op.h" >&5
2958
2971
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2959
2972
echo $ac_n "(cached) $ac_c" 1>&6
2961
2974
cat > conftest.$ac_ext <<EOF
2962
#line 2963 "configure"
2975
#line 2976 "configure"
2963
2976
#include "confdefs.h"
2964
2977
#include <sys/atomic_op.h>
2966
2979
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2967
{ (eval echo configure:2968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2980
{ (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2968
2981
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2969
2982
if test -z "$ac_err"; then
2970
2983
rm -rf conftest*
4475
4488
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
4476
4489
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
4477
4490
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
4478
echo "configure:4479: checking for machine/builtins.h" >&5
4491
echo "configure:4492: checking for machine/builtins.h" >&5
4479
4492
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4480
4493
echo $ac_n "(cached) $ac_c" 1>&6
4482
4495
cat > conftest.$ac_ext <<EOF
4483
#line 4484 "configure"
4496
#line 4497 "configure"
4484
4497
#include "confdefs.h"
4485
4498
#include <machine/builtins.h>
4487
4500
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4488
{ (eval echo configure:4489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501
{ (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4489
4502
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4490
4503
if test -z "$ac_err"; then
4491
4504
rm -rf conftest*
5091
5104
echo "$ac_t""yes" 1>&6
5092
5105
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
5093
5106
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
5094
echo "configure:5095: checking for dlfcn.h" >&5
5107
echo "configure:5108: checking for dlfcn.h" >&5
5095
5108
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5096
5109
echo $ac_n "(cached) $ac_c" 1>&6
5098
5111
cat > conftest.$ac_ext <<EOF
5099
#line 5100 "configure"
5112
#line 5113 "configure"
5100
5113
#include "confdefs.h"
5101
5114
#include <dlfcn.h>
5103
5116
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5104
{ (eval echo configure:5105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5117
{ (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5105
5118
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5106
5119
if test -z "$ac_err"; then
5107
5120
rm -rf conftest*