filename | configure |
changeset | 675:b97020f9af1c |
prev | 671:a530ea88eebd |
next | 681:1755a126b109 |
author | nkeynes |
date | Mon May 26 11:01:42 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | hange 64-bit configuration to use sizeof(void *) rather than the system id returned by config.guess - config.guess gets it wrong in some situations. |
file | annotate | diff | log | raw |
1.1 --- a/configure Thu May 15 10:22:39 2008 +00001.2 +++ b/configure Mon May 26 11:01:42 2008 +00001.3 @@ -5630,6 +5630,654 @@1.5 fi1.7 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.1.8 +1.9 +1.10 +1.11 +1.12 +1.13 +1.14 +1.15 +1.16 +1.17 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \1.18 + inttypes.h stdint.h unistd.h1.19 +do1.20 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`1.21 +{ echo "$as_me:$LINENO: checking for $ac_header" >&51.22 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }1.23 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then1.24 + echo $ECHO_N "(cached) $ECHO_C" >&61.25 +else1.26 + cat >conftest.$ac_ext <<_ACEOF1.27 +/* confdefs.h. */1.28 +_ACEOF1.29 +cat confdefs.h >>conftest.$ac_ext1.30 +cat >>conftest.$ac_ext <<_ACEOF1.31 +/* end confdefs.h. */1.32 +$ac_includes_default1.33 +1.34 +#include <$ac_header>1.35 +_ACEOF1.36 +rm -f conftest.$ac_objext1.37 +if { (ac_try="$ac_compile"1.38 +case "(($ac_try" in1.39 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.40 + *) ac_try_echo=$ac_try;;1.41 +esac1.42 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.43 + (eval "$ac_compile") 2>conftest.er11.44 + ac_status=$?1.45 + grep -v '^ *+' conftest.er1 >conftest.err1.46 + rm -f conftest.er11.47 + cat conftest.err >&51.48 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.49 + (exit $ac_status); } && {1.50 + test -z "$ac_c_werror_flag" ||1.51 + test ! -s conftest.err1.52 + } && test -s conftest.$ac_objext; then1.53 + eval "$as_ac_Header=yes"1.54 +else1.55 + echo "$as_me: failed program was:" >&51.56 +sed 's/^/| /' conftest.$ac_ext >&51.57 +1.58 + eval "$as_ac_Header=no"1.59 +fi1.60 +1.61 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.62 +fi1.63 +ac_res=`eval echo '${'$as_ac_Header'}'`1.64 + { echo "$as_me:$LINENO: result: $ac_res" >&51.65 +echo "${ECHO_T}$ac_res" >&6; }1.66 +if test `eval echo '${'$as_ac_Header'}'` = yes; then1.67 + cat >>confdefs.h <<_ACEOF1.68 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 11.69 +_ACEOF1.70 +1.71 +fi1.72 +1.73 +done1.74 +1.75 +1.76 +{ echo "$as_me:$LINENO: checking for void *" >&51.77 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }1.78 +if test "${ac_cv_type_void_p+set}" = set; then1.79 + echo $ECHO_N "(cached) $ECHO_C" >&61.80 +else1.81 + cat >conftest.$ac_ext <<_ACEOF1.82 +/* confdefs.h. */1.83 +_ACEOF1.84 +cat confdefs.h >>conftest.$ac_ext1.85 +cat >>conftest.$ac_ext <<_ACEOF1.86 +/* end confdefs.h. */1.87 +$ac_includes_default1.88 +typedef void * ac__type_new_;1.89 +int1.90 +main ()1.91 +{1.92 +if ((ac__type_new_ *) 0)1.93 + return 0;1.94 +if (sizeof (ac__type_new_))1.95 + return 0;1.96 + ;1.97 + return 0;1.98 +}1.99 +_ACEOF1.100 +rm -f conftest.$ac_objext1.101 +if { (ac_try="$ac_compile"1.102 +case "(($ac_try" in1.103 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.104 + *) ac_try_echo=$ac_try;;1.105 +esac1.106 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.107 + (eval "$ac_compile") 2>conftest.er11.108 + ac_status=$?1.109 + grep -v '^ *+' conftest.er1 >conftest.err1.110 + rm -f conftest.er11.111 + cat conftest.err >&51.112 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.113 + (exit $ac_status); } && {1.114 + test -z "$ac_c_werror_flag" ||1.115 + test ! -s conftest.err1.116 + } && test -s conftest.$ac_objext; then1.117 + ac_cv_type_void_p=yes1.118 +else1.119 + echo "$as_me: failed program was:" >&51.120 +sed 's/^/| /' conftest.$ac_ext >&51.121 +1.122 + ac_cv_type_void_p=no1.123 +fi1.124 +1.125 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.126 +fi1.127 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&51.128 +echo "${ECHO_T}$ac_cv_type_void_p" >&6; }1.129 +1.130 +# The cast to long int works around a bug in the HP C Compiler1.131 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects1.132 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.1.133 +# This bug is HP SR number 8606223364.1.134 +{ echo "$as_me:$LINENO: checking size of void *" >&51.135 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }1.136 +if test "${ac_cv_sizeof_void_p+set}" = set; then1.137 + echo $ECHO_N "(cached) $ECHO_C" >&61.138 +else1.139 + if test "$cross_compiling" = yes; then1.140 + # Depending upon the size, compute the lo and hi bounds.1.141 +cat >conftest.$ac_ext <<_ACEOF1.142 +/* confdefs.h. */1.143 +_ACEOF1.144 +cat confdefs.h >>conftest.$ac_ext1.145 +cat >>conftest.$ac_ext <<_ACEOF1.146 +/* end confdefs.h. */1.147 +$ac_includes_default1.148 + typedef void * ac__type_sizeof_;1.149 +int1.150 +main ()1.151 +{1.152 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];1.153 +test_array [0] = 01.154 +1.155 + ;1.156 + return 0;1.157 +}1.158 +_ACEOF1.159 +rm -f conftest.$ac_objext1.160 +if { (ac_try="$ac_compile"1.161 +case "(($ac_try" in1.162 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.163 + *) ac_try_echo=$ac_try;;1.164 +esac1.165 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.166 + (eval "$ac_compile") 2>conftest.er11.167 + ac_status=$?1.168 + grep -v '^ *+' conftest.er1 >conftest.err1.169 + rm -f conftest.er11.170 + cat conftest.err >&51.171 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.172 + (exit $ac_status); } && {1.173 + test -z "$ac_c_werror_flag" ||1.174 + test ! -s conftest.err1.175 + } && test -s conftest.$ac_objext; then1.176 + ac_lo=0 ac_mid=01.177 + while :; do1.178 + cat >conftest.$ac_ext <<_ACEOF1.179 +/* confdefs.h. */1.180 +_ACEOF1.181 +cat confdefs.h >>conftest.$ac_ext1.182 +cat >>conftest.$ac_ext <<_ACEOF1.183 +/* end confdefs.h. */1.184 +$ac_includes_default1.185 + typedef void * ac__type_sizeof_;1.186 +int1.187 +main ()1.188 +{1.189 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];1.190 +test_array [0] = 01.191 +1.192 + ;1.193 + return 0;1.194 +}1.195 +_ACEOF1.196 +rm -f conftest.$ac_objext1.197 +if { (ac_try="$ac_compile"1.198 +case "(($ac_try" in1.199 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.200 + *) ac_try_echo=$ac_try;;1.201 +esac1.202 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.203 + (eval "$ac_compile") 2>conftest.er11.204 + ac_status=$?1.205 + grep -v '^ *+' conftest.er1 >conftest.err1.206 + rm -f conftest.er11.207 + cat conftest.err >&51.208 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.209 + (exit $ac_status); } && {1.210 + test -z "$ac_c_werror_flag" ||1.211 + test ! -s conftest.err1.212 + } && test -s conftest.$ac_objext; then1.213 + ac_hi=$ac_mid; break1.214 +else1.215 + echo "$as_me: failed program was:" >&51.216 +sed 's/^/| /' conftest.$ac_ext >&51.217 +1.218 + ac_lo=`expr $ac_mid + 1`1.219 + if test $ac_lo -le $ac_mid; then1.220 + ac_lo= ac_hi=1.221 + break1.222 + fi1.223 + ac_mid=`expr 2 '*' $ac_mid + 1`1.224 +fi1.225 +1.226 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.227 + done1.228 +else1.229 + echo "$as_me: failed program was:" >&51.230 +sed 's/^/| /' conftest.$ac_ext >&51.231 +1.232 + cat >conftest.$ac_ext <<_ACEOF1.233 +/* confdefs.h. */1.234 +_ACEOF1.235 +cat confdefs.h >>conftest.$ac_ext1.236 +cat >>conftest.$ac_ext <<_ACEOF1.237 +/* end confdefs.h. */1.238 +$ac_includes_default1.239 + typedef void * ac__type_sizeof_;1.240 +int1.241 +main ()1.242 +{1.243 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];1.244 +test_array [0] = 01.245 +1.246 + ;1.247 + return 0;1.248 +}1.249 +_ACEOF1.250 +rm -f conftest.$ac_objext1.251 +if { (ac_try="$ac_compile"1.252 +case "(($ac_try" in1.253 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.254 + *) ac_try_echo=$ac_try;;1.255 +esac1.256 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.257 + (eval "$ac_compile") 2>conftest.er11.258 + ac_status=$?1.259 + grep -v '^ *+' conftest.er1 >conftest.err1.260 + rm -f conftest.er11.261 + cat conftest.err >&51.262 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.263 + (exit $ac_status); } && {1.264 + test -z "$ac_c_werror_flag" ||1.265 + test ! -s conftest.err1.266 + } && test -s conftest.$ac_objext; then1.267 + ac_hi=-1 ac_mid=-11.268 + while :; do1.269 + cat >conftest.$ac_ext <<_ACEOF1.270 +/* confdefs.h. */1.271 +_ACEOF1.272 +cat confdefs.h >>conftest.$ac_ext1.273 +cat >>conftest.$ac_ext <<_ACEOF1.274 +/* end confdefs.h. */1.275 +$ac_includes_default1.276 + typedef void * ac__type_sizeof_;1.277 +int1.278 +main ()1.279 +{1.280 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];1.281 +test_array [0] = 01.282 +1.283 + ;1.284 + return 0;1.285 +}1.286 +_ACEOF1.287 +rm -f conftest.$ac_objext1.288 +if { (ac_try="$ac_compile"1.289 +case "(($ac_try" in1.290 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.291 + *) ac_try_echo=$ac_try;;1.292 +esac1.293 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.294 + (eval "$ac_compile") 2>conftest.er11.295 + ac_status=$?1.296 + grep -v '^ *+' conftest.er1 >conftest.err1.297 + rm -f conftest.er11.298 + cat conftest.err >&51.299 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.300 + (exit $ac_status); } && {1.301 + test -z "$ac_c_werror_flag" ||1.302 + test ! -s conftest.err1.303 + } && test -s conftest.$ac_objext; then1.304 + ac_lo=$ac_mid; break1.305 +else1.306 + echo "$as_me: failed program was:" >&51.307 +sed 's/^/| /' conftest.$ac_ext >&51.308 +1.309 + ac_hi=`expr '(' $ac_mid ')' - 1`1.310 + if test $ac_mid -le $ac_hi; then1.311 + ac_lo= ac_hi=1.312 + break1.313 + fi1.314 + ac_mid=`expr 2 '*' $ac_mid`1.315 +fi1.316 +1.317 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.318 + done1.319 +else1.320 + echo "$as_me: failed program was:" >&51.321 +sed 's/^/| /' conftest.$ac_ext >&51.322 +1.323 + ac_lo= ac_hi=1.324 +fi1.325 +1.326 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.327 +fi1.328 +1.329 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.330 +# Binary search between lo and hi bounds.1.331 +while test "x$ac_lo" != "x$ac_hi"; do1.332 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`1.333 + cat >conftest.$ac_ext <<_ACEOF1.334 +/* confdefs.h. */1.335 +_ACEOF1.336 +cat confdefs.h >>conftest.$ac_ext1.337 +cat >>conftest.$ac_ext <<_ACEOF1.338 +/* end confdefs.h. */1.339 +$ac_includes_default1.340 + typedef void * ac__type_sizeof_;1.341 +int1.342 +main ()1.343 +{1.344 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];1.345 +test_array [0] = 01.346 +1.347 + ;1.348 + return 0;1.349 +}1.350 +_ACEOF1.351 +rm -f conftest.$ac_objext1.352 +if { (ac_try="$ac_compile"1.353 +case "(($ac_try" in1.354 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.355 + *) ac_try_echo=$ac_try;;1.356 +esac1.357 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.358 + (eval "$ac_compile") 2>conftest.er11.359 + ac_status=$?1.360 + grep -v '^ *+' conftest.er1 >conftest.err1.361 + rm -f conftest.er11.362 + cat conftest.err >&51.363 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.364 + (exit $ac_status); } && {1.365 + test -z "$ac_c_werror_flag" ||1.366 + test ! -s conftest.err1.367 + } && test -s conftest.$ac_objext; then1.368 + ac_hi=$ac_mid1.369 +else1.370 + echo "$as_me: failed program was:" >&51.371 +sed 's/^/| /' conftest.$ac_ext >&51.372 +1.373 + ac_lo=`expr '(' $ac_mid ')' + 1`1.374 +fi1.375 +1.376 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.377 +done1.378 +case $ac_lo in1.379 +?*) ac_cv_sizeof_void_p=$ac_lo;;1.380 +'') if test "$ac_cv_type_void_p" = yes; then1.381 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)1.382 +See \`config.log' for more details." >&51.383 +echo "$as_me: error: cannot compute sizeof (void *)1.384 +See \`config.log' for more details." >&2;}1.385 + { (exit 77); exit 77; }; }1.386 + else1.387 + ac_cv_sizeof_void_p=01.388 + fi ;;1.389 +esac1.390 +else1.391 + cat >conftest.$ac_ext <<_ACEOF1.392 +/* confdefs.h. */1.393 +_ACEOF1.394 +cat confdefs.h >>conftest.$ac_ext1.395 +cat >>conftest.$ac_ext <<_ACEOF1.396 +/* end confdefs.h. */1.397 +$ac_includes_default1.398 + typedef void * ac__type_sizeof_;1.399 +static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }1.400 +static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }1.401 +#include <stdio.h>1.402 +#include <stdlib.h>1.403 +int1.404 +main ()1.405 +{1.406 +1.407 + FILE *f = fopen ("conftest.val", "w");1.408 + if (! f)1.409 + return 1;1.410 + if (((long int) (sizeof (ac__type_sizeof_))) < 0)1.411 + {1.412 + long int i = longval ();1.413 + if (i != ((long int) (sizeof (ac__type_sizeof_))))1.414 + return 1;1.415 + fprintf (f, "%ld\n", i);1.416 + }1.417 + else1.418 + {1.419 + unsigned long int i = ulongval ();1.420 + if (i != ((long int) (sizeof (ac__type_sizeof_))))1.421 + return 1;1.422 + fprintf (f, "%lu\n", i);1.423 + }1.424 + return ferror (f) || fclose (f) != 0;1.425 +1.426 + ;1.427 + return 0;1.428 +}1.429 +_ACEOF1.430 +rm -f conftest$ac_exeext1.431 +if { (ac_try="$ac_link"1.432 +case "(($ac_try" in1.433 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.434 + *) ac_try_echo=$ac_try;;1.435 +esac1.436 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.437 + (eval "$ac_link") 2>&51.438 + ac_status=$?1.439 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.440 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'1.441 + { (case "(($ac_try" in1.442 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.443 + *) ac_try_echo=$ac_try;;1.444 +esac1.445 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.446 + (eval "$ac_try") 2>&51.447 + ac_status=$?1.448 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.449 + (exit $ac_status); }; }; then1.450 + ac_cv_sizeof_void_p=`cat conftest.val`1.451 +else1.452 + echo "$as_me: program exited with status $ac_status" >&51.453 +echo "$as_me: failed program was:" >&51.454 +sed 's/^/| /' conftest.$ac_ext >&51.455 +1.456 +( exit $ac_status )1.457 +if test "$ac_cv_type_void_p" = yes; then1.458 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)1.459 +See \`config.log' for more details." >&51.460 +echo "$as_me: error: cannot compute sizeof (void *)1.461 +See \`config.log' for more details." >&2;}1.462 + { (exit 77); exit 77; }; }1.463 + else1.464 + ac_cv_sizeof_void_p=01.465 + fi1.466 +fi1.467 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext1.468 +fi1.469 +rm -f conftest.val1.470 +fi1.471 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&51.472 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }1.473 +1.474 +1.475 +1.476 +cat >>confdefs.h <<_ACEOF1.477 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p1.478 +_ACEOF1.479 +1.480 +1.481 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&51.482 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }1.483 +if test "${ac_cv_header_stdc+set}" = set; then1.484 + echo $ECHO_N "(cached) $ECHO_C" >&61.485 +else1.486 + cat >conftest.$ac_ext <<_ACEOF1.487 +/* confdefs.h. */1.488 +_ACEOF1.489 +cat confdefs.h >>conftest.$ac_ext1.490 +cat >>conftest.$ac_ext <<_ACEOF1.491 +/* end confdefs.h. */1.492 +#include <stdlib.h>1.493 +#include <stdarg.h>1.494 +#include <string.h>1.495 +#include <float.h>1.496 +1.497 +int1.498 +main ()1.499 +{1.500 +1.501 + ;1.502 + return 0;1.503 +}1.504 +_ACEOF1.505 +rm -f conftest.$ac_objext1.506 +if { (ac_try="$ac_compile"1.507 +case "(($ac_try" in1.508 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.509 + *) ac_try_echo=$ac_try;;1.510 +esac1.511 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.512 + (eval "$ac_compile") 2>conftest.er11.513 + ac_status=$?1.514 + grep -v '^ *+' conftest.er1 >conftest.err1.515 + rm -f conftest.er11.516 + cat conftest.err >&51.517 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.518 + (exit $ac_status); } && {1.519 + test -z "$ac_c_werror_flag" ||1.520 + test ! -s conftest.err1.521 + } && test -s conftest.$ac_objext; then1.522 + ac_cv_header_stdc=yes1.523 +else1.524 + echo "$as_me: failed program was:" >&51.525 +sed 's/^/| /' conftest.$ac_ext >&51.526 +1.527 + ac_cv_header_stdc=no1.528 +fi1.529 +1.530 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.531 +1.532 +if test $ac_cv_header_stdc = yes; then1.533 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.1.534 + cat >conftest.$ac_ext <<_ACEOF1.535 +/* confdefs.h. */1.536 +_ACEOF1.537 +cat confdefs.h >>conftest.$ac_ext1.538 +cat >>conftest.$ac_ext <<_ACEOF1.539 +/* end confdefs.h. */1.540 +#include <string.h>1.541 +1.542 +_ACEOF1.543 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |1.544 + $EGREP "memchr" >/dev/null 2>&1; then1.545 + :1.546 +else1.547 + ac_cv_header_stdc=no1.548 +fi1.549 +rm -f conftest*1.550 +1.551 +fi1.552 +1.553 +if test $ac_cv_header_stdc = yes; then1.554 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.1.555 + cat >conftest.$ac_ext <<_ACEOF1.556 +/* confdefs.h. */1.557 +_ACEOF1.558 +cat confdefs.h >>conftest.$ac_ext1.559 +cat >>conftest.$ac_ext <<_ACEOF1.560 +/* end confdefs.h. */1.561 +#include <stdlib.h>1.562 +1.563 +_ACEOF1.564 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |1.565 + $EGREP "free" >/dev/null 2>&1; then1.566 + :1.567 +else1.568 + ac_cv_header_stdc=no1.569 +fi1.570 +rm -f conftest*1.571 +1.572 +fi1.573 +1.574 +if test $ac_cv_header_stdc = yes; then1.575 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.1.576 + if test "$cross_compiling" = yes; then1.577 + :1.578 +else1.579 + cat >conftest.$ac_ext <<_ACEOF1.580 +/* confdefs.h. */1.581 +_ACEOF1.582 +cat confdefs.h >>conftest.$ac_ext1.583 +cat >>conftest.$ac_ext <<_ACEOF1.584 +/* end confdefs.h. */1.585 +#include <ctype.h>1.586 +#include <stdlib.h>1.587 +#if ((' ' & 0x0FF) == 0x020)1.588 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')1.589 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))1.590 +#else1.591 +# define ISLOWER(c) \1.592 + (('a' <= (c) && (c) <= 'i') \1.593 + || ('j' <= (c) && (c) <= 'r') \1.594 + || ('s' <= (c) && (c) <= 'z'))1.595 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))1.596 +#endif1.597 +1.598 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))1.599 +int1.600 +main ()1.601 +{1.602 + int i;1.603 + for (i = 0; i < 256; i++)1.604 + if (XOR (islower (i), ISLOWER (i))1.605 + || toupper (i) != TOUPPER (i))1.606 + return 2;1.607 + return 0;1.608 +}1.609 +_ACEOF1.610 +rm -f conftest$ac_exeext1.611 +if { (ac_try="$ac_link"1.612 +case "(($ac_try" in1.613 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.614 + *) ac_try_echo=$ac_try;;1.615 +esac1.616 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.617 + (eval "$ac_link") 2>&51.618 + ac_status=$?1.619 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.620 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'1.621 + { (case "(($ac_try" in1.622 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.623 + *) ac_try_echo=$ac_try;;1.624 +esac1.625 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.626 + (eval "$ac_try") 2>&51.627 + ac_status=$?1.628 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.629 + (exit $ac_status); }; }; then1.630 + :1.631 +else1.632 + echo "$as_me: program exited with status $ac_status" >&51.633 +echo "$as_me: failed program was:" >&51.634 +sed 's/^/| /' conftest.$ac_ext >&51.635 +1.636 +( exit $ac_status )1.637 +ac_cv_header_stdc=no1.638 +fi1.639 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext1.640 +fi1.641 +1.642 +1.643 +fi1.644 +fi1.645 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&51.646 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }1.647 +if test $ac_cv_header_stdc = yes; then1.648 +1.649 +cat >>confdefs.h <<\_ACEOF1.650 +#define STDC_HEADERS 11.651 +_ACEOF1.652 +1.653 +fi1.654 +1.655 # Make sure we can run config.sub.1.656 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||1.657 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&51.658 @@ -5759,75 +6407,6 @@1.660 lxdream_save_cppflags="$CPPFLAGS"1.661 CPPFLAGS="$CPPFLAGS -x objective-c"1.662 -# On IRIX 5.3, sys/types and inttypes.h are conflicting.1.663 -1.664 -1.665 -1.666 -1.667 -1.668 -1.669 -1.670 -1.671 -1.672 -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \1.673 - inttypes.h stdint.h unistd.h1.674 -do1.675 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`1.676 -{ echo "$as_me:$LINENO: checking for $ac_header" >&51.677 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }1.678 -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then1.679 - echo $ECHO_N "(cached) $ECHO_C" >&61.680 -else1.681 - cat >conftest.$ac_ext <<_ACEOF1.682 -/* confdefs.h. */1.683 -_ACEOF1.684 -cat confdefs.h >>conftest.$ac_ext1.685 -cat >>conftest.$ac_ext <<_ACEOF1.686 -/* end confdefs.h. */1.687 -$ac_includes_default1.688 -1.689 -#include <$ac_header>1.690 -_ACEOF1.691 -rm -f conftest.$ac_objext1.692 -if { (ac_try="$ac_compile"1.693 -case "(($ac_try" in1.694 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.695 - *) ac_try_echo=$ac_try;;1.696 -esac1.697 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.698 - (eval "$ac_compile") 2>conftest.er11.699 - ac_status=$?1.700 - grep -v '^ *+' conftest.er1 >conftest.err1.701 - rm -f conftest.er11.702 - cat conftest.err >&51.703 - echo "$as_me:$LINENO: \$? = $ac_status" >&51.704 - (exit $ac_status); } && {1.705 - test -z "$ac_c_werror_flag" ||1.706 - test ! -s conftest.err1.707 - } && test -s conftest.$ac_objext; then1.708 - eval "$as_ac_Header=yes"1.709 -else1.710 - echo "$as_me: failed program was:" >&51.711 -sed 's/^/| /' conftest.$ac_ext >&51.712 -1.713 - eval "$as_ac_Header=no"1.714 -fi1.715 -1.716 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.717 -fi1.718 -ac_res=`eval echo '${'$as_ac_Header'}'`1.719 - { echo "$as_me:$LINENO: result: $ac_res" >&51.720 -echo "${ECHO_T}$ac_res" >&6; }1.721 -if test `eval echo '${'$as_ac_Header'}'` = yes; then1.722 - cat >>confdefs.h <<_ACEOF1.723 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 11.724 -_ACEOF1.725 -1.726 -fi1.727 -1.728 -done1.729 -1.730 -1.731 cat >conftest.$ac_ext <<_ACEOF1.732 /* confdefs.h. */1.733 _ACEOF1.734 @@ -7592,20 +8171,13 @@1.737 case $host_cpu in1.738 - i386|i486|i586|i686)1.739 + i386|i486|i586|i686|x86_64)1.740 SH4_TRANSLATOR="x86"1.742 cat >>confdefs.h <<_ACEOF1.743 #define SH4_TRANSLATOR TARGET_X861.744 _ACEOF1.745 ;;1.746 - x86_64)1.747 - SH4_TRANSLATOR="x86_64"1.748 -1.749 -cat >>confdefs.h <<_ACEOF1.750 -#define SH4_TRANSLATOR TARGET_X86_641.751 -_ACEOF1.752 -;;1.753 *)1.754 echo "Warning: No translator available for $host. Building emulation core only";;1.755 esac
.