filename | configure |
changeset | 521:33d2d92784c7 |
prev | 509:d72564edc482 |
next | 526:ba3da45b5754 |
author | nkeynes |
date | Sat Nov 17 01:13:41 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Detect presence of SH4 + ARM cross-compilers, and disable the system tests if we don't find the sh-elf environment. Detect build host to see if we can make a working translator |
file | annotate | diff | log | raw |
1.1 --- a/configure Wed Nov 14 10:18:21 2007 +00001.2 +++ b/configure Sat Nov 17 01:13:41 2007 +00001.3 @@ -690,11 +690,31 @@1.4 CPP1.5 GREP1.6 EGREP1.7 +build1.8 +build_cpu1.9 +build_vendor1.10 +build_os1.11 +host1.12 +host_cpu1.13 +host_vendor1.14 +host_os1.15 PKG_CONFIG1.16 PACKAGE_CFLAGS1.17 PACKAGE_LIBS1.18 +BUILD_SH4X86_TRUE1.19 +BUILD_SH4X86_FALSE1.20 CDROM_LINUX_TRUE1.21 CDROM_LINUX_FALSE1.22 +SHCC1.23 +SHLD1.24 +SHOBJCOPY1.25 +ARMCC1.26 +ARMLD1.27 +ARMOBJCOPY1.28 +BUILD_SYSTEST_TRUE1.29 +BUILD_SYSTEST_FALSE1.30 +BUILD_ARMTEST_TRUE1.31 +BUILD_ARMTEST_FALSE1.32 GETTEXT_PACKAGE1.33 USE_NLS1.34 MSGFMT1.35 @@ -1289,6 +1309,10 @@1.36 --program-prefix=PREFIX prepend PREFIX to installed program names1.37 --program-suffix=SUFFIX append SUFFIX to installed program names1.38 --program-transform-name=PROGRAM run sed PROGRAM on installed program names1.39 +1.40 +System types:1.41 + --build=BUILD configure for building on BUILD [guessed]1.42 + --host=HOST cross-compile to build programs to run on HOST [BUILD]1.43 _ACEOF1.44 fi1.46 @@ -4818,6 +4842,89 @@1.48 fi1.50 +# Make sure we can run config.sub.1.51 +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||1.52 + { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&51.53 +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}1.54 + { (exit 1); exit 1; }; }1.55 +1.56 +{ echo "$as_me:$LINENO: checking build system type" >&51.57 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }1.58 +if test "${ac_cv_build+set}" = set; then1.59 + echo $ECHO_N "(cached) $ECHO_C" >&61.60 +else1.61 + ac_build_alias=$build_alias1.62 +test "x$ac_build_alias" = x &&1.63 + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`1.64 +test "x$ac_build_alias" = x &&1.65 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&51.66 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}1.67 + { (exit 1); exit 1; }; }1.68 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||1.69 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&51.70 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}1.71 + { (exit 1); exit 1; }; }1.72 +1.73 +fi1.74 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&51.75 +echo "${ECHO_T}$ac_cv_build" >&6; }1.76 +case $ac_cv_build in1.77 +*-*-*) ;;1.78 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&51.79 +echo "$as_me: error: invalid value of canonical build" >&2;}1.80 + { (exit 1); exit 1; }; };;1.81 +esac1.82 +build=$ac_cv_build1.83 +ac_save_IFS=$IFS; IFS='-'1.84 +set x $ac_cv_build1.85 +shift1.86 +build_cpu=$11.87 +build_vendor=$21.88 +shift; shift1.89 +# Remember, the first character of IFS is used to create $*,1.90 +# except with old shells:1.91 +build_os=$*1.92 +IFS=$ac_save_IFS1.93 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac1.94 +1.95 +1.96 +{ echo "$as_me:$LINENO: checking host system type" >&51.97 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }1.98 +if test "${ac_cv_host+set}" = set; then1.99 + echo $ECHO_N "(cached) $ECHO_C" >&61.100 +else1.101 + if test "x$host_alias" = x; then1.102 + ac_cv_host=$ac_cv_build1.103 +else1.104 + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||1.105 + { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&51.106 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}1.107 + { (exit 1); exit 1; }; }1.108 +fi1.109 +1.110 +fi1.111 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&51.112 +echo "${ECHO_T}$ac_cv_host" >&6; }1.113 +case $ac_cv_host in1.114 +*-*-*) ;;1.115 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&51.116 +echo "$as_me: error: invalid value of canonical host" >&2;}1.117 + { (exit 1); exit 1; }; };;1.118 +esac1.119 +host=$ac_cv_host1.120 +ac_save_IFS=$IFS; IFS='-'1.121 +set x $ac_cv_host1.122 +shift1.123 +host_cpu=$11.124 +host_vendor=$21.125 +shift; shift1.126 +# Remember, the first character of IFS is used to create $*,1.127 +# except with old shells:1.128 +host_os=$*1.129 +IFS=$ac_save_IFS1.130 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac1.131 +1.132 +1.136 @@ -5200,7 +5307,6 @@1.137 exit 11.138 fi1.140 -1.141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.1.144 @@ -5270,6 +5376,158 @@1.145 done1.148 +if test "${ac_cv_header_GL_gl_h+set}" = set; then1.149 + { echo "$as_me:$LINENO: checking for GL/gl.h" >&51.150 +echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }1.151 +if test "${ac_cv_header_GL_gl_h+set}" = set; then1.152 + echo $ECHO_N "(cached) $ECHO_C" >&61.153 +fi1.154 +{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&51.155 +echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }1.156 +else1.157 + # Is the header compilable?1.158 +{ echo "$as_me:$LINENO: checking GL/gl.h usability" >&51.159 +echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }1.160 +cat >conftest.$ac_ext <<_ACEOF1.161 +/* confdefs.h. */1.162 +_ACEOF1.163 +cat confdefs.h >>conftest.$ac_ext1.164 +cat >>conftest.$ac_ext <<_ACEOF1.165 +/* end confdefs.h. */1.166 +$ac_includes_default1.167 +#include <GL/gl.h>1.168 +_ACEOF1.169 +rm -f conftest.$ac_objext1.170 +if { (ac_try="$ac_compile"1.171 +case "(($ac_try" in1.172 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.173 + *) ac_try_echo=$ac_try;;1.174 +esac1.175 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.176 + (eval "$ac_compile") 2>conftest.er11.177 + ac_status=$?1.178 + grep -v '^ *+' conftest.er1 >conftest.err1.179 + rm -f conftest.er11.180 + cat conftest.err >&51.181 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.182 + (exit $ac_status); } && {1.183 + test -z "$ac_c_werror_flag" ||1.184 + test ! -s conftest.err1.185 + } && test -s conftest.$ac_objext; then1.186 + ac_header_compiler=yes1.187 +else1.188 + echo "$as_me: failed program was:" >&51.189 +sed 's/^/| /' conftest.$ac_ext >&51.190 +1.191 + ac_header_compiler=no1.192 +fi1.193 +1.194 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1.195 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&51.196 +echo "${ECHO_T}$ac_header_compiler" >&6; }1.197 +1.198 +# Is the header present?1.199 +{ echo "$as_me:$LINENO: checking GL/gl.h presence" >&51.200 +echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }1.201 +cat >conftest.$ac_ext <<_ACEOF1.202 +/* confdefs.h. */1.203 +_ACEOF1.204 +cat confdefs.h >>conftest.$ac_ext1.205 +cat >>conftest.$ac_ext <<_ACEOF1.206 +/* end confdefs.h. */1.207 +#include <GL/gl.h>1.208 +_ACEOF1.209 +if { (ac_try="$ac_cpp conftest.$ac_ext"1.210 +case "(($ac_try" in1.211 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.212 + *) ac_try_echo=$ac_try;;1.213 +esac1.214 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.215 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er11.216 + ac_status=$?1.217 + grep -v '^ *+' conftest.er1 >conftest.err1.218 + rm -f conftest.er11.219 + cat conftest.err >&51.220 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.221 + (exit $ac_status); } >/dev/null && {1.222 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1.223 + test ! -s conftest.err1.224 + }; then1.225 + ac_header_preproc=yes1.226 +else1.227 + echo "$as_me: failed program was:" >&51.228 +sed 's/^/| /' conftest.$ac_ext >&51.229 +1.230 + ac_header_preproc=no1.231 +fi1.232 +1.233 +rm -f conftest.err conftest.$ac_ext1.234 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&51.235 +echo "${ECHO_T}$ac_header_preproc" >&6; }1.236 +1.237 +# So? What about this header?1.238 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in1.239 + yes:no: )1.240 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&51.241 +echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}1.242 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&51.243 +echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}1.244 + ac_header_preproc=yes1.245 + ;;1.246 + no:yes:* )1.247 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&51.248 +echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}1.249 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&51.250 +echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}1.251 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&51.252 +echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}1.253 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&51.254 +echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}1.255 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&51.256 +echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}1.257 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&51.258 +echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}1.259 +1.260 + ;;1.261 +esac1.262 +{ echo "$as_me:$LINENO: checking for GL/gl.h" >&51.263 +echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }1.264 +if test "${ac_cv_header_GL_gl_h+set}" = set; then1.265 + echo $ECHO_N "(cached) $ECHO_C" >&61.266 +else1.267 + ac_cv_header_GL_gl_h=$ac_header_preproc1.268 +fi1.269 +{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&51.270 +echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }1.271 +1.272 +fi1.273 +if test $ac_cv_header_GL_gl_h = yes; then1.274 + :1.275 +else1.276 +1.277 + echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."1.278 + exit 11.279 +fi1.280 +1.281 +1.282 +1.283 +case $host_cpu in1.284 + i386|i486|i586|i686|x86_64)1.285 + TRANSLATOR="x86";;1.286 + *)1.287 + echo "Warning: No translator available for $host. Building emulation core only";;1.288 +esac1.289 +1.290 +1.291 +if test "$TRANSLATOR"="x86"; then1.292 + BUILD_SH4X86_TRUE=1.293 + BUILD_SH4X86_FALSE='#'1.294 +else1.295 + BUILD_SH4X86_TRUE='#'1.296 + BUILD_SH4X86_FALSE=1.297 +fi1.298 +1.299 +1.300 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then1.301 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&51.302 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }1.303 @@ -5414,6 +5672,280 @@1.304 fi1.307 +# Extract the first word of "sh-elf-gcc", so it can be a program name with args.1.308 +set dummy sh-elf-gcc; ac_word=$21.309 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.310 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.311 +if test "${ac_cv_path_SHCC+set}" = set; then1.312 + echo $ECHO_N "(cached) $ECHO_C" >&61.313 +else1.314 + case $SHCC in1.315 + [\\/]* | ?:[\\/]*)1.316 + ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.1.317 + ;;1.318 + *)1.319 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.320 +for as_dir in $PATH1.321 +do1.322 + IFS=$as_save_IFS1.323 + test -z "$as_dir" && as_dir=.1.324 + for ac_exec_ext in '' $ac_executable_extensions; do1.325 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.326 + ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"1.327 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.328 + break 21.329 + fi1.330 +done1.331 +done1.332 +IFS=$as_save_IFS1.333 +1.334 + ;;1.335 +esac1.336 +fi1.337 +SHCC=$ac_cv_path_SHCC1.338 +if test -n "$SHCC"; then1.339 + { echo "$as_me:$LINENO: result: $SHCC" >&51.340 +echo "${ECHO_T}$SHCC" >&6; }1.341 +else1.342 + { echo "$as_me:$LINENO: result: no" >&51.343 +echo "${ECHO_T}no" >&6; }1.344 +fi1.345 +1.346 +1.347 +# Extract the first word of "sh-elf-ld", so it can be a program name with args.1.348 +set dummy sh-elf-ld; ac_word=$21.349 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.350 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.351 +if test "${ac_cv_path_SHLD+set}" = set; then1.352 + echo $ECHO_N "(cached) $ECHO_C" >&61.353 +else1.354 + case $SHLD in1.355 + [\\/]* | ?:[\\/]*)1.356 + ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.1.357 + ;;1.358 + *)1.359 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.360 +for as_dir in $PATH1.361 +do1.362 + IFS=$as_save_IFS1.363 + test -z "$as_dir" && as_dir=.1.364 + for ac_exec_ext in '' $ac_executable_extensions; do1.365 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.366 + ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"1.367 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.368 + break 21.369 + fi1.370 +done1.371 +done1.372 +IFS=$as_save_IFS1.373 +1.374 + ;;1.375 +esac1.376 +fi1.377 +SHLD=$ac_cv_path_SHLD1.378 +if test -n "$SHLD"; then1.379 + { echo "$as_me:$LINENO: result: $SHLD" >&51.380 +echo "${ECHO_T}$SHLD" >&6; }1.381 +else1.382 + { echo "$as_me:$LINENO: result: no" >&51.383 +echo "${ECHO_T}no" >&6; }1.384 +fi1.385 +1.386 +1.387 +# Extract the first word of "sh-elf-objcopy", so it can be a program name with args.1.388 +set dummy sh-elf-objcopy; ac_word=$21.389 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.390 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.391 +if test "${ac_cv_path_SHOBJCOPY+set}" = set; then1.392 + echo $ECHO_N "(cached) $ECHO_C" >&61.393 +else1.394 + case $SHOBJCOPY in1.395 + [\\/]* | ?:[\\/]*)1.396 + ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.1.397 + ;;1.398 + *)1.399 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.400 +for as_dir in $PATH1.401 +do1.402 + IFS=$as_save_IFS1.403 + test -z "$as_dir" && as_dir=.1.404 + for ac_exec_ext in '' $ac_executable_extensions; do1.405 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.406 + ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"1.407 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.408 + break 21.409 + fi1.410 +done1.411 +done1.412 +IFS=$as_save_IFS1.413 +1.414 + ;;1.415 +esac1.416 +fi1.417 +SHOBJCOPY=$ac_cv_path_SHOBJCOPY1.418 +if test -n "$SHOBJCOPY"; then1.419 + { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&51.420 +echo "${ECHO_T}$SHOBJCOPY" >&6; }1.421 +else1.422 + { echo "$as_me:$LINENO: result: no" >&51.423 +echo "${ECHO_T}no" >&6; }1.424 +fi1.425 +1.426 +1.427 +# Extract the first word of "arm-elf-gcc", so it can be a program name with args.1.428 +set dummy arm-elf-gcc; ac_word=$21.429 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.430 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.431 +if test "${ac_cv_path_ARMCC+set}" = set; then1.432 + echo $ECHO_N "(cached) $ECHO_C" >&61.433 +else1.434 + case $ARMCC in1.435 + [\\/]* | ?:[\\/]*)1.436 + ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.1.437 + ;;1.438 + *)1.439 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.440 +for as_dir in $PATH1.441 +do1.442 + IFS=$as_save_IFS1.443 + test -z "$as_dir" && as_dir=.1.444 + for ac_exec_ext in '' $ac_executable_extensions; do1.445 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.446 + ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"1.447 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.448 + break 21.449 + fi1.450 +done1.451 +done1.452 +IFS=$as_save_IFS1.453 +1.454 + ;;1.455 +esac1.456 +fi1.457 +ARMCC=$ac_cv_path_ARMCC1.458 +if test -n "$ARMCC"; then1.459 + { echo "$as_me:$LINENO: result: $ARMCC" >&51.460 +echo "${ECHO_T}$ARMCC" >&6; }1.461 +else1.462 + { echo "$as_me:$LINENO: result: no" >&51.463 +echo "${ECHO_T}no" >&6; }1.464 +fi1.465 +1.466 +1.467 +# Extract the first word of "arm-elf-ld", so it can be a program name with args.1.468 +set dummy arm-elf-ld; ac_word=$21.469 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.470 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.471 +if test "${ac_cv_path_ARMLD+set}" = set; then1.472 + echo $ECHO_N "(cached) $ECHO_C" >&61.473 +else1.474 + case $ARMLD in1.475 + [\\/]* | ?:[\\/]*)1.476 + ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.1.477 + ;;1.478 + *)1.479 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.480 +for as_dir in $PATH1.481 +do1.482 + IFS=$as_save_IFS1.483 + test -z "$as_dir" && as_dir=.1.484 + for ac_exec_ext in '' $ac_executable_extensions; do1.485 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.486 + ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"1.487 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.488 + break 21.489 + fi1.490 +done1.491 +done1.492 +IFS=$as_save_IFS1.493 +1.494 + ;;1.495 +esac1.496 +fi1.497 +ARMLD=$ac_cv_path_ARMLD1.498 +if test -n "$ARMLD"; then1.499 + { echo "$as_me:$LINENO: result: $ARMLD" >&51.500 +echo "${ECHO_T}$ARMLD" >&6; }1.501 +else1.502 + { echo "$as_me:$LINENO: result: no" >&51.503 +echo "${ECHO_T}no" >&6; }1.504 +fi1.505 +1.506 +1.507 +# Extract the first word of "arm-elf-objcopy", so it can be a program name with args.1.508 +set dummy arm-elf-objcopy; ac_word=$21.509 +{ echo "$as_me:$LINENO: checking for $ac_word" >&51.510 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }1.511 +if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then1.512 + echo $ECHO_N "(cached) $ECHO_C" >&61.513 +else1.514 + case $ARMOBJCOPY in1.515 + [\\/]* | ?:[\\/]*)1.516 + ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.1.517 + ;;1.518 + *)1.519 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR1.520 +for as_dir in $PATH1.521 +do1.522 + IFS=$as_save_IFS1.523 + test -z "$as_dir" && as_dir=.1.524 + for ac_exec_ext in '' $ac_executable_extensions; do1.525 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then1.526 + ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"1.527 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&51.528 + break 21.529 + fi1.530 +done1.531 +done1.532 +IFS=$as_save_IFS1.533 +1.534 + ;;1.535 +esac1.536 +fi1.537 +ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY1.538 +if test -n "$ARMOBJCOPY"; then1.539 + { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&51.540 +echo "${ECHO_T}$ARMOBJCOPY" >&6; }1.541 +else1.542 + { echo "$as_me:$LINENO: result: no" >&51.543 +echo "${ECHO_T}no" >&6; }1.544 +fi1.545 +1.546 +1.547 +1.548 +if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then1.549 + BUILD_SH="no"1.550 + echo "Warning: SH4 cross-compiler not found, system tests will be disabled."1.551 +else1.552 + BUILD_SH="yes"1.553 +fi1.554 +if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then1.555 + BUILD_ARM="no"1.556 + echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."1.557 +else1.558 + BUILD_ARM="yes"1.559 +fi1.560 +1.561 +1.562 +if test "$BUILD_SH" = "yes"; then1.563 + BUILD_SYSTEST_TRUE=1.564 + BUILD_SYSTEST_FALSE='#'1.565 +else1.566 + BUILD_SYSTEST_TRUE='#'1.567 + BUILD_SYSTEST_FALSE=1.568 +fi1.569 +1.570 +1.571 +1.572 +if test "$BUILD_ARM" = "yes"; then1.573 + BUILD_ARMTEST_TRUE=1.574 + BUILD_ARMTEST_FALSE='#'1.575 +else1.576 + BUILD_ARMTEST_TRUE='#'1.577 + BUILD_ARMTEST_FALSE=1.578 +fi1.579 +1.580 +1.581 GETTEXT_PACKAGE=lxdream1.583 cat >>confdefs.h <<_ACEOF1.584 @@ -6913,7 +7445,7 @@1.585 < $srcdir/po/POTFILES.in > po/POTFILES1.588 -ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"1.589 +ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"1.591 cat >confcache <<\_ACEOF1.592 # This file is a shell script that caches the results of configure1.593 @@ -7039,6 +7571,13 @@1.594 Usually this means the macro was only invoked conditionally." >&2;}1.595 { (exit 1); exit 1; }; }1.596 fi1.597 +if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then1.598 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.1.599 +Usually this means the macro was only invoked conditionally." >&51.600 +echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.1.601 +Usually this means the macro was only invoked conditionally." >&2;}1.602 + { (exit 1); exit 1; }; }1.603 +fi1.604 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then1.605 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.1.606 Usually this means the macro was only invoked conditionally." >&51.607 @@ -7046,6 +7585,20 @@1.608 Usually this means the macro was only invoked conditionally." >&2;}1.609 { (exit 1); exit 1; }; }1.610 fi1.611 +if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then1.612 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.1.613 +Usually this means the macro was only invoked conditionally." >&51.614 +echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.1.615 +Usually this means the macro was only invoked conditionally." >&2;}1.616 + { (exit 1); exit 1; }; }1.617 +fi1.618 +if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then1.619 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.1.620 +Usually this means the macro was only invoked conditionally." >&51.621 +echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.1.622 +Usually this means the macro was only invoked conditionally." >&2;}1.623 + { (exit 1); exit 1; }; }1.624 +fi1.626 : ${CONFIG_STATUS=./config.status}1.627 ac_clean_files_save=$ac_clean_files1.628 @@ -7519,6 +8072,7 @@1.629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;1.630 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;1.631 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;1.632 + "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;1.634 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&51.635 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}1.636 @@ -7658,11 +8212,72 @@1.637 CPP!$CPP$ac_delim1.638 GREP!$GREP$ac_delim1.639 EGREP!$EGREP$ac_delim1.640 +build!$build$ac_delim1.641 +build_cpu!$build_cpu$ac_delim1.642 +build_vendor!$build_vendor$ac_delim1.643 +build_os!$build_os$ac_delim1.644 +host!$host$ac_delim1.645 +host_cpu!$host_cpu$ac_delim1.646 +host_vendor!$host_vendor$ac_delim1.647 +host_os!$host_os$ac_delim1.648 PKG_CONFIG!$PKG_CONFIG$ac_delim1.649 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim1.650 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim1.651 +BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim1.652 +BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim1.653 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim1.654 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim1.655 +SHCC!$SHCC$ac_delim1.656 +SHLD!$SHLD$ac_delim1.657 +SHOBJCOPY!$SHOBJCOPY$ac_delim1.658 +ARMCC!$ARMCC$ac_delim1.659 +ARMLD!$ARMLD$ac_delim1.660 +_ACEOF1.661 +1.662 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then1.663 + break1.664 + elif $ac_last_try; then1.665 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&51.666 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}1.667 + { (exit 1); exit 1; }; }1.668 + else1.669 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "1.670 + fi1.671 +done1.672 +1.673 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`1.674 +if test -n "$ac_eof"; then1.675 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`1.676 + ac_eof=`expr $ac_eof + 1`1.677 +fi1.678 +1.679 +cat >>$CONFIG_STATUS <<_ACEOF1.680 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof1.681 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b1.682 +_ACEOF1.683 +sed '1.684 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g1.685 +s/^/s,@/; s/!/@,|#_!!_#|/1.686 +:n1.687 +t n1.688 +s/'"$ac_delim"'$/,g/; t1.689 +s/$/\\/; p1.690 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n1.691 +' >>$CONFIG_STATUS <conf$$subs.sed1.692 +rm -f conf$$subs.sed1.693 +cat >>$CONFIG_STATUS <<_ACEOF1.694 +CEOF$ac_eof1.695 +_ACEOF1.696 +1.697 +1.698 +ac_delim='%!_!# '1.699 +for ac_last_try in false false false false false :; do1.700 + cat >conf$$subs.sed <<_ACEOF1.701 +ARMOBJCOPY!$ARMOBJCOPY$ac_delim1.702 +BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim1.703 +BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim1.704 +BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim1.705 +BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim1.706 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim1.707 USE_NLS!$USE_NLS$ac_delim1.708 MSGFMT!$MSGFMT$ac_delim1.709 @@ -7678,53 +8293,12 @@1.710 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim1.711 POFILES!$POFILES$ac_delim1.712 POSUB!$POSUB$ac_delim1.713 -_ACEOF1.714 -1.715 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then1.716 - break1.717 - elif $ac_last_try; then1.718 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&51.719 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}1.720 - { (exit 1); exit 1; }; }1.721 - else1.722 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "1.723 - fi1.724 -done1.725 -1.726 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`1.727 -if test -n "$ac_eof"; then1.728 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`1.729 - ac_eof=`expr $ac_eof + 1`1.730 -fi1.731 -1.732 -cat >>$CONFIG_STATUS <<_ACEOF1.733 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof1.734 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b1.735 -_ACEOF1.736 -sed '1.737 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g1.738 -s/^/s,@/; s/!/@,|#_!!_#|/1.739 -:n1.740 -t n1.741 -s/'"$ac_delim"'$/,g/; t1.742 -s/$/\\/; p1.743 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n1.744 -' >>$CONFIG_STATUS <conf$$subs.sed1.745 -rm -f conf$$subs.sed1.746 -cat >>$CONFIG_STATUS <<_ACEOF1.747 -CEOF$ac_eof1.748 -_ACEOF1.749 -1.750 -1.751 -ac_delim='%!_!# '1.752 -for ac_last_try in false false false false false :; do1.753 - cat >conf$$subs.sed <<_ACEOF1.754 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim1.755 LIBOBJS!$LIBOBJS$ac_delim1.756 LTLIBOBJS!$LTLIBOBJS$ac_delim1.757 _ACEOF1.759 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then1.760 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then1.761 break1.762 elif $ac_last_try; then1.763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
.