Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 675:b97020f9af1c
prev671:a530ea88eebd
next681: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 +0000
1.2 +++ b/configure Mon May 26 11:01:42 2008 +0000
1.3 @@ -5630,6 +5630,654 @@
1.4
1.5 fi
1.6
1.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.h
1.19 +do
1.20 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.21 +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
1.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"; }; then
1.24 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 +else
1.26 + cat >conftest.$ac_ext <<_ACEOF
1.27 +/* confdefs.h. */
1.28 +_ACEOF
1.29 +cat confdefs.h >>conftest.$ac_ext
1.30 +cat >>conftest.$ac_ext <<_ACEOF
1.31 +/* end confdefs.h. */
1.32 +$ac_includes_default
1.33 +
1.34 +#include <$ac_header>
1.35 +_ACEOF
1.36 +rm -f conftest.$ac_objext
1.37 +if { (ac_try="$ac_compile"
1.38 +case "(($ac_try" in
1.39 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.40 + *) ac_try_echo=$ac_try;;
1.41 +esac
1.42 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.43 + (eval "$ac_compile") 2>conftest.er1
1.44 + ac_status=$?
1.45 + grep -v '^ *+' conftest.er1 >conftest.err
1.46 + rm -f conftest.er1
1.47 + cat conftest.err >&5
1.48 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.49 + (exit $ac_status); } && {
1.50 + test -z "$ac_c_werror_flag" ||
1.51 + test ! -s conftest.err
1.52 + } && test -s conftest.$ac_objext; then
1.53 + eval "$as_ac_Header=yes"
1.54 +else
1.55 + echo "$as_me: failed program was:" >&5
1.56 +sed 's/^/| /' conftest.$ac_ext >&5
1.57 +
1.58 + eval "$as_ac_Header=no"
1.59 +fi
1.60 +
1.61 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 +fi
1.63 +ac_res=`eval echo '${'$as_ac_Header'}'`
1.64 + { echo "$as_me:$LINENO: result: $ac_res" >&5
1.65 +echo "${ECHO_T}$ac_res" >&6; }
1.66 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.67 + cat >>confdefs.h <<_ACEOF
1.68 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.69 +_ACEOF
1.70 +
1.71 +fi
1.72 +
1.73 +done
1.74 +
1.75 +
1.76 +{ echo "$as_me:$LINENO: checking for void *" >&5
1.77 +echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
1.78 +if test "${ac_cv_type_void_p+set}" = set; then
1.79 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.80 +else
1.81 + cat >conftest.$ac_ext <<_ACEOF
1.82 +/* confdefs.h. */
1.83 +_ACEOF
1.84 +cat confdefs.h >>conftest.$ac_ext
1.85 +cat >>conftest.$ac_ext <<_ACEOF
1.86 +/* end confdefs.h. */
1.87 +$ac_includes_default
1.88 +typedef void * ac__type_new_;
1.89 +int
1.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 +_ACEOF
1.100 +rm -f conftest.$ac_objext
1.101 +if { (ac_try="$ac_compile"
1.102 +case "(($ac_try" in
1.103 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.104 + *) ac_try_echo=$ac_try;;
1.105 +esac
1.106 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.107 + (eval "$ac_compile") 2>conftest.er1
1.108 + ac_status=$?
1.109 + grep -v '^ *+' conftest.er1 >conftest.err
1.110 + rm -f conftest.er1
1.111 + cat conftest.err >&5
1.112 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.113 + (exit $ac_status); } && {
1.114 + test -z "$ac_c_werror_flag" ||
1.115 + test ! -s conftest.err
1.116 + } && test -s conftest.$ac_objext; then
1.117 + ac_cv_type_void_p=yes
1.118 +else
1.119 + echo "$as_me: failed program was:" >&5
1.120 +sed 's/^/| /' conftest.$ac_ext >&5
1.121 +
1.122 + ac_cv_type_void_p=no
1.123 +fi
1.124 +
1.125 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.126 +fi
1.127 +{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
1.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 Compiler
1.131 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
1.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 *" >&5
1.135 +echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
1.136 +if test "${ac_cv_sizeof_void_p+set}" = set; then
1.137 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.138 +else
1.139 + if test "$cross_compiling" = yes; then
1.140 + # Depending upon the size, compute the lo and hi bounds.
1.141 +cat >conftest.$ac_ext <<_ACEOF
1.142 +/* confdefs.h. */
1.143 +_ACEOF
1.144 +cat confdefs.h >>conftest.$ac_ext
1.145 +cat >>conftest.$ac_ext <<_ACEOF
1.146 +/* end confdefs.h. */
1.147 +$ac_includes_default
1.148 + typedef void * ac__type_sizeof_;
1.149 +int
1.150 +main ()
1.151 +{
1.152 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
1.153 +test_array [0] = 0
1.154 +
1.155 + ;
1.156 + return 0;
1.157 +}
1.158 +_ACEOF
1.159 +rm -f conftest.$ac_objext
1.160 +if { (ac_try="$ac_compile"
1.161 +case "(($ac_try" in
1.162 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.163 + *) ac_try_echo=$ac_try;;
1.164 +esac
1.165 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.166 + (eval "$ac_compile") 2>conftest.er1
1.167 + ac_status=$?
1.168 + grep -v '^ *+' conftest.er1 >conftest.err
1.169 + rm -f conftest.er1
1.170 + cat conftest.err >&5
1.171 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.172 + (exit $ac_status); } && {
1.173 + test -z "$ac_c_werror_flag" ||
1.174 + test ! -s conftest.err
1.175 + } && test -s conftest.$ac_objext; then
1.176 + ac_lo=0 ac_mid=0
1.177 + while :; do
1.178 + cat >conftest.$ac_ext <<_ACEOF
1.179 +/* confdefs.h. */
1.180 +_ACEOF
1.181 +cat confdefs.h >>conftest.$ac_ext
1.182 +cat >>conftest.$ac_ext <<_ACEOF
1.183 +/* end confdefs.h. */
1.184 +$ac_includes_default
1.185 + typedef void * ac__type_sizeof_;
1.186 +int
1.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] = 0
1.191 +
1.192 + ;
1.193 + return 0;
1.194 +}
1.195 +_ACEOF
1.196 +rm -f conftest.$ac_objext
1.197 +if { (ac_try="$ac_compile"
1.198 +case "(($ac_try" in
1.199 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.200 + *) ac_try_echo=$ac_try;;
1.201 +esac
1.202 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.203 + (eval "$ac_compile") 2>conftest.er1
1.204 + ac_status=$?
1.205 + grep -v '^ *+' conftest.er1 >conftest.err
1.206 + rm -f conftest.er1
1.207 + cat conftest.err >&5
1.208 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.209 + (exit $ac_status); } && {
1.210 + test -z "$ac_c_werror_flag" ||
1.211 + test ! -s conftest.err
1.212 + } && test -s conftest.$ac_objext; then
1.213 + ac_hi=$ac_mid; break
1.214 +else
1.215 + echo "$as_me: failed program was:" >&5
1.216 +sed 's/^/| /' conftest.$ac_ext >&5
1.217 +
1.218 + ac_lo=`expr $ac_mid + 1`
1.219 + if test $ac_lo -le $ac_mid; then
1.220 + ac_lo= ac_hi=
1.221 + break
1.222 + fi
1.223 + ac_mid=`expr 2 '*' $ac_mid + 1`
1.224 +fi
1.225 +
1.226 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.227 + done
1.228 +else
1.229 + echo "$as_me: failed program was:" >&5
1.230 +sed 's/^/| /' conftest.$ac_ext >&5
1.231 +
1.232 + cat >conftest.$ac_ext <<_ACEOF
1.233 +/* confdefs.h. */
1.234 +_ACEOF
1.235 +cat confdefs.h >>conftest.$ac_ext
1.236 +cat >>conftest.$ac_ext <<_ACEOF
1.237 +/* end confdefs.h. */
1.238 +$ac_includes_default
1.239 + typedef void * ac__type_sizeof_;
1.240 +int
1.241 +main ()
1.242 +{
1.243 +static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
1.244 +test_array [0] = 0
1.245 +
1.246 + ;
1.247 + return 0;
1.248 +}
1.249 +_ACEOF
1.250 +rm -f conftest.$ac_objext
1.251 +if { (ac_try="$ac_compile"
1.252 +case "(($ac_try" in
1.253 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.254 + *) ac_try_echo=$ac_try;;
1.255 +esac
1.256 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.257 + (eval "$ac_compile") 2>conftest.er1
1.258 + ac_status=$?
1.259 + grep -v '^ *+' conftest.er1 >conftest.err
1.260 + rm -f conftest.er1
1.261 + cat conftest.err >&5
1.262 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.263 + (exit $ac_status); } && {
1.264 + test -z "$ac_c_werror_flag" ||
1.265 + test ! -s conftest.err
1.266 + } && test -s conftest.$ac_objext; then
1.267 + ac_hi=-1 ac_mid=-1
1.268 + while :; do
1.269 + cat >conftest.$ac_ext <<_ACEOF
1.270 +/* confdefs.h. */
1.271 +_ACEOF
1.272 +cat confdefs.h >>conftest.$ac_ext
1.273 +cat >>conftest.$ac_ext <<_ACEOF
1.274 +/* end confdefs.h. */
1.275 +$ac_includes_default
1.276 + typedef void * ac__type_sizeof_;
1.277 +int
1.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] = 0
1.282 +
1.283 + ;
1.284 + return 0;
1.285 +}
1.286 +_ACEOF
1.287 +rm -f conftest.$ac_objext
1.288 +if { (ac_try="$ac_compile"
1.289 +case "(($ac_try" in
1.290 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.291 + *) ac_try_echo=$ac_try;;
1.292 +esac
1.293 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.294 + (eval "$ac_compile") 2>conftest.er1
1.295 + ac_status=$?
1.296 + grep -v '^ *+' conftest.er1 >conftest.err
1.297 + rm -f conftest.er1
1.298 + cat conftest.err >&5
1.299 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.300 + (exit $ac_status); } && {
1.301 + test -z "$ac_c_werror_flag" ||
1.302 + test ! -s conftest.err
1.303 + } && test -s conftest.$ac_objext; then
1.304 + ac_lo=$ac_mid; break
1.305 +else
1.306 + echo "$as_me: failed program was:" >&5
1.307 +sed 's/^/| /' conftest.$ac_ext >&5
1.308 +
1.309 + ac_hi=`expr '(' $ac_mid ')' - 1`
1.310 + if test $ac_mid -le $ac_hi; then
1.311 + ac_lo= ac_hi=
1.312 + break
1.313 + fi
1.314 + ac_mid=`expr 2 '*' $ac_mid`
1.315 +fi
1.316 +
1.317 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.318 + done
1.319 +else
1.320 + echo "$as_me: failed program was:" >&5
1.321 +sed 's/^/| /' conftest.$ac_ext >&5
1.322 +
1.323 + ac_lo= ac_hi=
1.324 +fi
1.325 +
1.326 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.327 +fi
1.328 +
1.329 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.330 +# Binary search between lo and hi bounds.
1.331 +while test "x$ac_lo" != "x$ac_hi"; do
1.332 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
1.333 + cat >conftest.$ac_ext <<_ACEOF
1.334 +/* confdefs.h. */
1.335 +_ACEOF
1.336 +cat confdefs.h >>conftest.$ac_ext
1.337 +cat >>conftest.$ac_ext <<_ACEOF
1.338 +/* end confdefs.h. */
1.339 +$ac_includes_default
1.340 + typedef void * ac__type_sizeof_;
1.341 +int
1.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] = 0
1.346 +
1.347 + ;
1.348 + return 0;
1.349 +}
1.350 +_ACEOF
1.351 +rm -f conftest.$ac_objext
1.352 +if { (ac_try="$ac_compile"
1.353 +case "(($ac_try" in
1.354 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.355 + *) ac_try_echo=$ac_try;;
1.356 +esac
1.357 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.358 + (eval "$ac_compile") 2>conftest.er1
1.359 + ac_status=$?
1.360 + grep -v '^ *+' conftest.er1 >conftest.err
1.361 + rm -f conftest.er1
1.362 + cat conftest.err >&5
1.363 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.364 + (exit $ac_status); } && {
1.365 + test -z "$ac_c_werror_flag" ||
1.366 + test ! -s conftest.err
1.367 + } && test -s conftest.$ac_objext; then
1.368 + ac_hi=$ac_mid
1.369 +else
1.370 + echo "$as_me: failed program was:" >&5
1.371 +sed 's/^/| /' conftest.$ac_ext >&5
1.372 +
1.373 + ac_lo=`expr '(' $ac_mid ')' + 1`
1.374 +fi
1.375 +
1.376 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.377 +done
1.378 +case $ac_lo in
1.379 +?*) ac_cv_sizeof_void_p=$ac_lo;;
1.380 +'') if test "$ac_cv_type_void_p" = yes; then
1.381 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.382 +See \`config.log' for more details." >&5
1.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 + else
1.387 + ac_cv_sizeof_void_p=0
1.388 + fi ;;
1.389 +esac
1.390 +else
1.391 + cat >conftest.$ac_ext <<_ACEOF
1.392 +/* confdefs.h. */
1.393 +_ACEOF
1.394 +cat confdefs.h >>conftest.$ac_ext
1.395 +cat >>conftest.$ac_ext <<_ACEOF
1.396 +/* end confdefs.h. */
1.397 +$ac_includes_default
1.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 +int
1.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 + else
1.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 +_ACEOF
1.430 +rm -f conftest$ac_exeext
1.431 +if { (ac_try="$ac_link"
1.432 +case "(($ac_try" in
1.433 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.434 + *) ac_try_echo=$ac_try;;
1.435 +esac
1.436 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.437 + (eval "$ac_link") 2>&5
1.438 + ac_status=$?
1.439 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.440 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.441 + { (case "(($ac_try" in
1.442 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.443 + *) ac_try_echo=$ac_try;;
1.444 +esac
1.445 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.446 + (eval "$ac_try") 2>&5
1.447 + ac_status=$?
1.448 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.449 + (exit $ac_status); }; }; then
1.450 + ac_cv_sizeof_void_p=`cat conftest.val`
1.451 +else
1.452 + echo "$as_me: program exited with status $ac_status" >&5
1.453 +echo "$as_me: failed program was:" >&5
1.454 +sed 's/^/| /' conftest.$ac_ext >&5
1.455 +
1.456 +( exit $ac_status )
1.457 +if test "$ac_cv_type_void_p" = yes; then
1.458 + { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
1.459 +See \`config.log' for more details." >&5
1.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 + else
1.464 + ac_cv_sizeof_void_p=0
1.465 + fi
1.466 +fi
1.467 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.468 +fi
1.469 +rm -f conftest.val
1.470 +fi
1.471 +{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
1.472 +echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
1.473 +
1.474 +
1.475 +
1.476 +cat >>confdefs.h <<_ACEOF
1.477 +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.478 +_ACEOF
1.479 +
1.480 +
1.481 +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.482 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.483 +if test "${ac_cv_header_stdc+set}" = set; then
1.484 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.485 +else
1.486 + cat >conftest.$ac_ext <<_ACEOF
1.487 +/* confdefs.h. */
1.488 +_ACEOF
1.489 +cat confdefs.h >>conftest.$ac_ext
1.490 +cat >>conftest.$ac_ext <<_ACEOF
1.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 +int
1.498 +main ()
1.499 +{
1.500 +
1.501 + ;
1.502 + return 0;
1.503 +}
1.504 +_ACEOF
1.505 +rm -f conftest.$ac_objext
1.506 +if { (ac_try="$ac_compile"
1.507 +case "(($ac_try" in
1.508 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.509 + *) ac_try_echo=$ac_try;;
1.510 +esac
1.511 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.512 + (eval "$ac_compile") 2>conftest.er1
1.513 + ac_status=$?
1.514 + grep -v '^ *+' conftest.er1 >conftest.err
1.515 + rm -f conftest.er1
1.516 + cat conftest.err >&5
1.517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.518 + (exit $ac_status); } && {
1.519 + test -z "$ac_c_werror_flag" ||
1.520 + test ! -s conftest.err
1.521 + } && test -s conftest.$ac_objext; then
1.522 + ac_cv_header_stdc=yes
1.523 +else
1.524 + echo "$as_me: failed program was:" >&5
1.525 +sed 's/^/| /' conftest.$ac_ext >&5
1.526 +
1.527 + ac_cv_header_stdc=no
1.528 +fi
1.529 +
1.530 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.531 +
1.532 +if test $ac_cv_header_stdc = yes; then
1.533 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.534 + cat >conftest.$ac_ext <<_ACEOF
1.535 +/* confdefs.h. */
1.536 +_ACEOF
1.537 +cat confdefs.h >>conftest.$ac_ext
1.538 +cat >>conftest.$ac_ext <<_ACEOF
1.539 +/* end confdefs.h. */
1.540 +#include <string.h>
1.541 +
1.542 +_ACEOF
1.543 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.544 + $EGREP "memchr" >/dev/null 2>&1; then
1.545 + :
1.546 +else
1.547 + ac_cv_header_stdc=no
1.548 +fi
1.549 +rm -f conftest*
1.550 +
1.551 +fi
1.552 +
1.553 +if test $ac_cv_header_stdc = yes; then
1.554 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.555 + cat >conftest.$ac_ext <<_ACEOF
1.556 +/* confdefs.h. */
1.557 +_ACEOF
1.558 +cat confdefs.h >>conftest.$ac_ext
1.559 +cat >>conftest.$ac_ext <<_ACEOF
1.560 +/* end confdefs.h. */
1.561 +#include <stdlib.h>
1.562 +
1.563 +_ACEOF
1.564 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.565 + $EGREP "free" >/dev/null 2>&1; then
1.566 + :
1.567 +else
1.568 + ac_cv_header_stdc=no
1.569 +fi
1.570 +rm -f conftest*
1.571 +
1.572 +fi
1.573 +
1.574 +if test $ac_cv_header_stdc = yes; then
1.575 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.576 + if test "$cross_compiling" = yes; then
1.577 + :
1.578 +else
1.579 + cat >conftest.$ac_ext <<_ACEOF
1.580 +/* confdefs.h. */
1.581 +_ACEOF
1.582 +cat confdefs.h >>conftest.$ac_ext
1.583 +cat >>conftest.$ac_ext <<_ACEOF
1.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 +#else
1.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 +#endif
1.597 +
1.598 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.599 +int
1.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 +_ACEOF
1.610 +rm -f conftest$ac_exeext
1.611 +if { (ac_try="$ac_link"
1.612 +case "(($ac_try" in
1.613 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.614 + *) ac_try_echo=$ac_try;;
1.615 +esac
1.616 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.617 + (eval "$ac_link") 2>&5
1.618 + ac_status=$?
1.619 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.620 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.621 + { (case "(($ac_try" in
1.622 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.623 + *) ac_try_echo=$ac_try;;
1.624 +esac
1.625 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.626 + (eval "$ac_try") 2>&5
1.627 + ac_status=$?
1.628 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.629 + (exit $ac_status); }; }; then
1.630 + :
1.631 +else
1.632 + echo "$as_me: program exited with status $ac_status" >&5
1.633 +echo "$as_me: failed program was:" >&5
1.634 +sed 's/^/| /' conftest.$ac_ext >&5
1.635 +
1.636 +( exit $ac_status )
1.637 +ac_cv_header_stdc=no
1.638 +fi
1.639 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.640 +fi
1.641 +
1.642 +
1.643 +fi
1.644 +fi
1.645 +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.646 +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.647 +if test $ac_cv_header_stdc = yes; then
1.648 +
1.649 +cat >>confdefs.h <<\_ACEOF
1.650 +#define STDC_HEADERS 1
1.651 +_ACEOF
1.652 +
1.653 +fi
1.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" >&5
1.658 @@ -5759,75 +6407,6 @@
1.659
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.h
1.674 -do
1.675 -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.676 -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
1.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"; }; then
1.679 - echo $ECHO_N "(cached) $ECHO_C" >&6
1.680 -else
1.681 - cat >conftest.$ac_ext <<_ACEOF
1.682 -/* confdefs.h. */
1.683 -_ACEOF
1.684 -cat confdefs.h >>conftest.$ac_ext
1.685 -cat >>conftest.$ac_ext <<_ACEOF
1.686 -/* end confdefs.h. */
1.687 -$ac_includes_default
1.688 -
1.689 -#include <$ac_header>
1.690 -_ACEOF
1.691 -rm -f conftest.$ac_objext
1.692 -if { (ac_try="$ac_compile"
1.693 -case "(($ac_try" in
1.694 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.695 - *) ac_try_echo=$ac_try;;
1.696 -esac
1.697 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.698 - (eval "$ac_compile") 2>conftest.er1
1.699 - ac_status=$?
1.700 - grep -v '^ *+' conftest.er1 >conftest.err
1.701 - rm -f conftest.er1
1.702 - cat conftest.err >&5
1.703 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.704 - (exit $ac_status); } && {
1.705 - test -z "$ac_c_werror_flag" ||
1.706 - test ! -s conftest.err
1.707 - } && test -s conftest.$ac_objext; then
1.708 - eval "$as_ac_Header=yes"
1.709 -else
1.710 - echo "$as_me: failed program was:" >&5
1.711 -sed 's/^/| /' conftest.$ac_ext >&5
1.712 -
1.713 - eval "$as_ac_Header=no"
1.714 -fi
1.715 -
1.716 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.717 -fi
1.718 -ac_res=`eval echo '${'$as_ac_Header'}'`
1.719 - { echo "$as_me:$LINENO: result: $ac_res" >&5
1.720 -echo "${ECHO_T}$ac_res" >&6; }
1.721 -if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.722 - cat >>confdefs.h <<_ACEOF
1.723 -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.724 -_ACEOF
1.725 -
1.726 -fi
1.727 -
1.728 -done
1.729 -
1.730 -
1.731 cat >conftest.$ac_ext <<_ACEOF
1.732 /* confdefs.h. */
1.733 _ACEOF
1.734 @@ -7592,20 +8171,13 @@
1.735
1.736
1.737 case $host_cpu in
1.738 - i386|i486|i586|i686)
1.739 + i386|i486|i586|i686|x86_64)
1.740 SH4_TRANSLATOR="x86"
1.741
1.742 cat >>confdefs.h <<_ACEOF
1.743 #define SH4_TRANSLATOR TARGET_X86
1.744 _ACEOF
1.745 ;;
1.746 - x86_64)
1.747 - SH4_TRANSLATOR="x86_64"
1.748 -
1.749 -cat >>confdefs.h <<_ACEOF
1.750 -#define SH4_TRANSLATOR TARGET_X86_64
1.751 -_ACEOF
1.752 -;;
1.753 *)
1.754 echo "Warning: No translator available for $host. Building emulation core only";;
1.755 esac
.