Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 521:33d2d92784c7
prev509:d72564edc482
next526:ba3da45b5754
author nkeynes
date Sat Nov 17 01:13:41 2007 +0000 (12 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 +0000
1.2 +++ b/configure Sat Nov 17 01:13:41 2007 +0000
1.3 @@ -690,11 +690,31 @@
1.4 CPP
1.5 GREP
1.6 EGREP
1.7 +build
1.8 +build_cpu
1.9 +build_vendor
1.10 +build_os
1.11 +host
1.12 +host_cpu
1.13 +host_vendor
1.14 +host_os
1.15 PKG_CONFIG
1.16 PACKAGE_CFLAGS
1.17 PACKAGE_LIBS
1.18 +BUILD_SH4X86_TRUE
1.19 +BUILD_SH4X86_FALSE
1.20 CDROM_LINUX_TRUE
1.21 CDROM_LINUX_FALSE
1.22 +SHCC
1.23 +SHLD
1.24 +SHOBJCOPY
1.25 +ARMCC
1.26 +ARMLD
1.27 +ARMOBJCOPY
1.28 +BUILD_SYSTEST_TRUE
1.29 +BUILD_SYSTEST_FALSE
1.30 +BUILD_ARMTEST_TRUE
1.31 +BUILD_ARMTEST_FALSE
1.32 GETTEXT_PACKAGE
1.33 USE_NLS
1.34 MSGFMT
1.35 @@ -1289,6 +1309,10 @@
1.36 --program-prefix=PREFIX prepend PREFIX to installed program names
1.37 --program-suffix=SUFFIX append SUFFIX to installed program names
1.38 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.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 _ACEOF
1.44 fi
1.45
1.46 @@ -4818,6 +4842,89 @@
1.47
1.48 fi
1.49
1.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" >&5
1.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" >&5
1.57 +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.58 +if test "${ac_cv_build+set}" = set; then
1.59 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.60 +else
1.61 + ac_build_alias=$build_alias
1.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" >&5
1.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" >&5
1.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 +fi
1.74 +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.75 +echo "${ECHO_T}$ac_cv_build" >&6; }
1.76 +case $ac_cv_build in
1.77 +*-*-*) ;;
1.78 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1.79 +echo "$as_me: error: invalid value of canonical build" >&2;}
1.80 + { (exit 1); exit 1; }; };;
1.81 +esac
1.82 +build=$ac_cv_build
1.83 +ac_save_IFS=$IFS; IFS='-'
1.84 +set x $ac_cv_build
1.85 +shift
1.86 +build_cpu=$1
1.87 +build_vendor=$2
1.88 +shift; shift
1.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_IFS
1.93 +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.94 +
1.95 +
1.96 +{ echo "$as_me:$LINENO: checking host system type" >&5
1.97 +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.98 +if test "${ac_cv_host+set}" = set; then
1.99 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.100 +else
1.101 + if test "x$host_alias" = x; then
1.102 + ac_cv_host=$ac_cv_build
1.103 +else
1.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" >&5
1.106 +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.107 + { (exit 1); exit 1; }; }
1.108 +fi
1.109 +
1.110 +fi
1.111 +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.112 +echo "${ECHO_T}$ac_cv_host" >&6; }
1.113 +case $ac_cv_host in
1.114 +*-*-*) ;;
1.115 +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1.116 +echo "$as_me: error: invalid value of canonical host" >&2;}
1.117 + { (exit 1); exit 1; }; };;
1.118 +esac
1.119 +host=$ac_cv_host
1.120 +ac_save_IFS=$IFS; IFS='-'
1.121 +set x $ac_cv_host
1.122 +shift
1.123 +host_cpu=$1
1.124 +host_vendor=$2
1.125 +shift; shift
1.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_IFS
1.130 +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.131 +
1.132 +
1.133
1.134
1.135
1.136 @@ -5200,7 +5307,6 @@
1.137 exit 1
1.138 fi
1.139
1.140 -
1.141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.142
1.143
1.144 @@ -5270,6 +5376,158 @@
1.145 done
1.146
1.147
1.148 +if test "${ac_cv_header_GL_gl_h+set}" = set; then
1.149 + { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
1.150 +echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
1.151 +if test "${ac_cv_header_GL_gl_h+set}" = set; then
1.152 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.153 +fi
1.154 +{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
1.155 +echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
1.156 +else
1.157 + # Is the header compilable?
1.158 +{ echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
1.159 +echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
1.160 +cat >conftest.$ac_ext <<_ACEOF
1.161 +/* confdefs.h. */
1.162 +_ACEOF
1.163 +cat confdefs.h >>conftest.$ac_ext
1.164 +cat >>conftest.$ac_ext <<_ACEOF
1.165 +/* end confdefs.h. */
1.166 +$ac_includes_default
1.167 +#include <GL/gl.h>
1.168 +_ACEOF
1.169 +rm -f conftest.$ac_objext
1.170 +if { (ac_try="$ac_compile"
1.171 +case "(($ac_try" in
1.172 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.173 + *) ac_try_echo=$ac_try;;
1.174 +esac
1.175 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.176 + (eval "$ac_compile") 2>conftest.er1
1.177 + ac_status=$?
1.178 + grep -v '^ *+' conftest.er1 >conftest.err
1.179 + rm -f conftest.er1
1.180 + cat conftest.err >&5
1.181 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.182 + (exit $ac_status); } && {
1.183 + test -z "$ac_c_werror_flag" ||
1.184 + test ! -s conftest.err
1.185 + } && test -s conftest.$ac_objext; then
1.186 + ac_header_compiler=yes
1.187 +else
1.188 + echo "$as_me: failed program was:" >&5
1.189 +sed 's/^/| /' conftest.$ac_ext >&5
1.190 +
1.191 + ac_header_compiler=no
1.192 +fi
1.193 +
1.194 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.195 +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
1.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" >&5
1.200 +echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
1.201 +cat >conftest.$ac_ext <<_ACEOF
1.202 +/* confdefs.h. */
1.203 +_ACEOF
1.204 +cat confdefs.h >>conftest.$ac_ext
1.205 +cat >>conftest.$ac_ext <<_ACEOF
1.206 +/* end confdefs.h. */
1.207 +#include <GL/gl.h>
1.208 +_ACEOF
1.209 +if { (ac_try="$ac_cpp conftest.$ac_ext"
1.210 +case "(($ac_try" in
1.211 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.212 + *) ac_try_echo=$ac_try;;
1.213 +esac
1.214 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.215 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.216 + ac_status=$?
1.217 + grep -v '^ *+' conftest.er1 >conftest.err
1.218 + rm -f conftest.er1
1.219 + cat conftest.err >&5
1.220 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.221 + (exit $ac_status); } >/dev/null && {
1.222 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.223 + test ! -s conftest.err
1.224 + }; then
1.225 + ac_header_preproc=yes
1.226 +else
1.227 + echo "$as_me: failed program was:" >&5
1.228 +sed 's/^/| /' conftest.$ac_ext >&5
1.229 +
1.230 + ac_header_preproc=no
1.231 +fi
1.232 +
1.233 +rm -f conftest.err conftest.$ac_ext
1.234 +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
1.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 in
1.239 + yes:no: )
1.240 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
1.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" >&5
1.243 +echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
1.244 + ac_header_preproc=yes
1.245 + ;;
1.246 + no:yes:* )
1.247 + { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
1.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?" >&5
1.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" >&5
1.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\"" >&5
1.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" >&5
1.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" >&5
1.258 +echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
1.259 +
1.260 + ;;
1.261 +esac
1.262 +{ echo "$as_me:$LINENO: checking for GL/gl.h" >&5
1.263 +echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
1.264 +if test "${ac_cv_header_GL_gl_h+set}" = set; then
1.265 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.266 +else
1.267 + ac_cv_header_GL_gl_h=$ac_header_preproc
1.268 +fi
1.269 +{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
1.270 +echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
1.271 +
1.272 +fi
1.273 +if test $ac_cv_header_GL_gl_h = yes; then
1.274 + :
1.275 +else
1.276 +
1.277 + echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
1.278 + exit 1
1.279 +fi
1.280 +
1.281 +
1.282 +
1.283 +case $host_cpu in
1.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 +esac
1.289 +
1.290 +
1.291 +if test "$TRANSLATOR"="x86"; then
1.292 + BUILD_SH4X86_TRUE=
1.293 + BUILD_SH4X86_FALSE='#'
1.294 +else
1.295 + BUILD_SH4X86_TRUE='#'
1.296 + BUILD_SH4X86_FALSE=
1.297 +fi
1.298 +
1.299 +
1.300 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
1.301 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
1.302 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
1.303 @@ -5414,6 +5672,280 @@
1.304 fi
1.305
1.306
1.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=$2
1.309 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.310 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.311 +if test "${ac_cv_path_SHCC+set}" = set; then
1.312 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.313 +else
1.314 + case $SHCC in
1.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_SEPARATOR
1.320 +for as_dir in $PATH
1.321 +do
1.322 + IFS=$as_save_IFS
1.323 + test -z "$as_dir" && as_dir=.
1.324 + for ac_exec_ext in '' $ac_executable_extensions; do
1.325 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.328 + break 2
1.329 + fi
1.330 +done
1.331 +done
1.332 +IFS=$as_save_IFS
1.333 +
1.334 + ;;
1.335 +esac
1.336 +fi
1.337 +SHCC=$ac_cv_path_SHCC
1.338 +if test -n "$SHCC"; then
1.339 + { echo "$as_me:$LINENO: result: $SHCC" >&5
1.340 +echo "${ECHO_T}$SHCC" >&6; }
1.341 +else
1.342 + { echo "$as_me:$LINENO: result: no" >&5
1.343 +echo "${ECHO_T}no" >&6; }
1.344 +fi
1.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=$2
1.349 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.350 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.351 +if test "${ac_cv_path_SHLD+set}" = set; then
1.352 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.353 +else
1.354 + case $SHLD in
1.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_SEPARATOR
1.360 +for as_dir in $PATH
1.361 +do
1.362 + IFS=$as_save_IFS
1.363 + test -z "$as_dir" && as_dir=.
1.364 + for ac_exec_ext in '' $ac_executable_extensions; do
1.365 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.368 + break 2
1.369 + fi
1.370 +done
1.371 +done
1.372 +IFS=$as_save_IFS
1.373 +
1.374 + ;;
1.375 +esac
1.376 +fi
1.377 +SHLD=$ac_cv_path_SHLD
1.378 +if test -n "$SHLD"; then
1.379 + { echo "$as_me:$LINENO: result: $SHLD" >&5
1.380 +echo "${ECHO_T}$SHLD" >&6; }
1.381 +else
1.382 + { echo "$as_me:$LINENO: result: no" >&5
1.383 +echo "${ECHO_T}no" >&6; }
1.384 +fi
1.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=$2
1.389 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.390 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.391 +if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
1.392 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.393 +else
1.394 + case $SHOBJCOPY in
1.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_SEPARATOR
1.400 +for as_dir in $PATH
1.401 +do
1.402 + IFS=$as_save_IFS
1.403 + test -z "$as_dir" && as_dir=.
1.404 + for ac_exec_ext in '' $ac_executable_extensions; do
1.405 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.408 + break 2
1.409 + fi
1.410 +done
1.411 +done
1.412 +IFS=$as_save_IFS
1.413 +
1.414 + ;;
1.415 +esac
1.416 +fi
1.417 +SHOBJCOPY=$ac_cv_path_SHOBJCOPY
1.418 +if test -n "$SHOBJCOPY"; then
1.419 + { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
1.420 +echo "${ECHO_T}$SHOBJCOPY" >&6; }
1.421 +else
1.422 + { echo "$as_me:$LINENO: result: no" >&5
1.423 +echo "${ECHO_T}no" >&6; }
1.424 +fi
1.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=$2
1.429 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.430 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.431 +if test "${ac_cv_path_ARMCC+set}" = set; then
1.432 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.433 +else
1.434 + case $ARMCC in
1.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_SEPARATOR
1.440 +for as_dir in $PATH
1.441 +do
1.442 + IFS=$as_save_IFS
1.443 + test -z "$as_dir" && as_dir=.
1.444 + for ac_exec_ext in '' $ac_executable_extensions; do
1.445 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.448 + break 2
1.449 + fi
1.450 +done
1.451 +done
1.452 +IFS=$as_save_IFS
1.453 +
1.454 + ;;
1.455 +esac
1.456 +fi
1.457 +ARMCC=$ac_cv_path_ARMCC
1.458 +if test -n "$ARMCC"; then
1.459 + { echo "$as_me:$LINENO: result: $ARMCC" >&5
1.460 +echo "${ECHO_T}$ARMCC" >&6; }
1.461 +else
1.462 + { echo "$as_me:$LINENO: result: no" >&5
1.463 +echo "${ECHO_T}no" >&6; }
1.464 +fi
1.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=$2
1.469 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.470 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.471 +if test "${ac_cv_path_ARMLD+set}" = set; then
1.472 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.473 +else
1.474 + case $ARMLD in
1.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_SEPARATOR
1.480 +for as_dir in $PATH
1.481 +do
1.482 + IFS=$as_save_IFS
1.483 + test -z "$as_dir" && as_dir=.
1.484 + for ac_exec_ext in '' $ac_executable_extensions; do
1.485 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.488 + break 2
1.489 + fi
1.490 +done
1.491 +done
1.492 +IFS=$as_save_IFS
1.493 +
1.494 + ;;
1.495 +esac
1.496 +fi
1.497 +ARMLD=$ac_cv_path_ARMLD
1.498 +if test -n "$ARMLD"; then
1.499 + { echo "$as_me:$LINENO: result: $ARMLD" >&5
1.500 +echo "${ECHO_T}$ARMLD" >&6; }
1.501 +else
1.502 + { echo "$as_me:$LINENO: result: no" >&5
1.503 +echo "${ECHO_T}no" >&6; }
1.504 +fi
1.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=$2
1.509 +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1.510 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.511 +if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
1.512 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.513 +else
1.514 + case $ARMOBJCOPY in
1.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_SEPARATOR
1.520 +for as_dir in $PATH
1.521 +do
1.522 + IFS=$as_save_IFS
1.523 + test -z "$as_dir" && as_dir=.
1.524 + for ac_exec_ext in '' $ac_executable_extensions; do
1.525 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.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" >&5
1.528 + break 2
1.529 + fi
1.530 +done
1.531 +done
1.532 +IFS=$as_save_IFS
1.533 +
1.534 + ;;
1.535 +esac
1.536 +fi
1.537 +ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
1.538 +if test -n "$ARMOBJCOPY"; then
1.539 + { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
1.540 +echo "${ECHO_T}$ARMOBJCOPY" >&6; }
1.541 +else
1.542 + { echo "$as_me:$LINENO: result: no" >&5
1.543 +echo "${ECHO_T}no" >&6; }
1.544 +fi
1.545 +
1.546 +
1.547 +
1.548 +if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
1.549 + BUILD_SH="no"
1.550 + echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
1.551 +else
1.552 + BUILD_SH="yes"
1.553 +fi
1.554 +if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
1.555 + BUILD_ARM="no"
1.556 + echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
1.557 +else
1.558 + BUILD_ARM="yes"
1.559 +fi
1.560 +
1.561 +
1.562 +if test "$BUILD_SH" = "yes"; then
1.563 + BUILD_SYSTEST_TRUE=
1.564 + BUILD_SYSTEST_FALSE='#'
1.565 +else
1.566 + BUILD_SYSTEST_TRUE='#'
1.567 + BUILD_SYSTEST_FALSE=
1.568 +fi
1.569 +
1.570 +
1.571 +
1.572 +if test "$BUILD_ARM" = "yes"; then
1.573 + BUILD_ARMTEST_TRUE=
1.574 + BUILD_ARMTEST_FALSE='#'
1.575 +else
1.576 + BUILD_ARMTEST_TRUE='#'
1.577 + BUILD_ARMTEST_FALSE=
1.578 +fi
1.579 +
1.580 +
1.581 GETTEXT_PACKAGE=lxdream
1.582
1.583 cat >>confdefs.h <<_ACEOF
1.584 @@ -6913,7 +7445,7 @@
1.585 < $srcdir/po/POTFILES.in > po/POTFILES
1.586
1.587
1.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.590
1.591 cat >confcache <<\_ACEOF
1.592 # This file is a shell script that caches the results of configure
1.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 fi
1.597 +if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
1.598 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
1.599 +Usually this means the macro was only invoked conditionally." >&5
1.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 +fi
1.604 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
1.605 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
1.606 Usually this means the macro was only invoked conditionally." >&5
1.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 fi
1.611 +if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
1.612 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
1.613 +Usually this means the macro was only invoked conditionally." >&5
1.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 +fi
1.618 +if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
1.619 + { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
1.620 +Usually this means the macro was only invoked conditionally." >&5
1.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 +fi
1.625
1.626 : ${CONFIG_STATUS=./config.status}
1.627 ac_clean_files_save=$ac_clean_files
1.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.633
1.634 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.635 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1.636 @@ -7658,11 +8212,72 @@
1.637 CPP!$CPP$ac_delim
1.638 GREP!$GREP$ac_delim
1.639 EGREP!$EGREP$ac_delim
1.640 +build!$build$ac_delim
1.641 +build_cpu!$build_cpu$ac_delim
1.642 +build_vendor!$build_vendor$ac_delim
1.643 +build_os!$build_os$ac_delim
1.644 +host!$host$ac_delim
1.645 +host_cpu!$host_cpu$ac_delim
1.646 +host_vendor!$host_vendor$ac_delim
1.647 +host_os!$host_os$ac_delim
1.648 PKG_CONFIG!$PKG_CONFIG$ac_delim
1.649 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
1.650 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
1.651 +BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
1.652 +BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
1.653 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
1.654 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
1.655 +SHCC!$SHCC$ac_delim
1.656 +SHLD!$SHLD$ac_delim
1.657 +SHOBJCOPY!$SHOBJCOPY$ac_delim
1.658 +ARMCC!$ARMCC$ac_delim
1.659 +ARMLD!$ARMLD$ac_delim
1.660 +_ACEOF
1.661 +
1.662 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.663 + break
1.664 + elif $ac_last_try; then
1.665 + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
1.666 +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1.667 + { (exit 1); exit 1; }; }
1.668 + else
1.669 + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.670 + fi
1.671 +done
1.672 +
1.673 +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
1.674 +if test -n "$ac_eof"; then
1.675 + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
1.676 + ac_eof=`expr $ac_eof + 1`
1.677 +fi
1.678 +
1.679 +cat >>$CONFIG_STATUS <<_ACEOF
1.680 +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
1.681 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.682 +_ACEOF
1.683 +sed '
1.684 +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
1.685 +s/^/s,@/; s/!/@,|#_!!_#|/
1.686 +:n
1.687 +t n
1.688 +s/'"$ac_delim"'$/,g/; t
1.689 +s/$/\\/; p
1.690 +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
1.691 +' >>$CONFIG_STATUS <conf$$subs.sed
1.692 +rm -f conf$$subs.sed
1.693 +cat >>$CONFIG_STATUS <<_ACEOF
1.694 +CEOF$ac_eof
1.695 +_ACEOF
1.696 +
1.697 +
1.698 +ac_delim='%!_!# '
1.699 +for ac_last_try in false false false false false :; do
1.700 + cat >conf$$subs.sed <<_ACEOF
1.701 +ARMOBJCOPY!$ARMOBJCOPY$ac_delim
1.702 +BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
1.703 +BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
1.704 +BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
1.705 +BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
1.706 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
1.707 USE_NLS!$USE_NLS$ac_delim
1.708 MSGFMT!$MSGFMT$ac_delim
1.709 @@ -7678,53 +8293,12 @@
1.710 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
1.711 POFILES!$POFILES$ac_delim
1.712 POSUB!$POSUB$ac_delim
1.713 -_ACEOF
1.714 -
1.715 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
1.716 - break
1.717 - elif $ac_last_try; then
1.718 - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
1.719 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1.720 - { (exit 1); exit 1; }; }
1.721 - else
1.722 - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.723 - fi
1.724 -done
1.725 -
1.726 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
1.727 -if test -n "$ac_eof"; then
1.728 - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
1.729 - ac_eof=`expr $ac_eof + 1`
1.730 -fi
1.731 -
1.732 -cat >>$CONFIG_STATUS <<_ACEOF
1.733 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
1.734 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.735 -_ACEOF
1.736 -sed '
1.737 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
1.738 -s/^/s,@/; s/!/@,|#_!!_#|/
1.739 -:n
1.740 -t n
1.741 -s/'"$ac_delim"'$/,g/; t
1.742 -s/$/\\/; p
1.743 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
1.744 -' >>$CONFIG_STATUS <conf$$subs.sed
1.745 -rm -f conf$$subs.sed
1.746 -cat >>$CONFIG_STATUS <<_ACEOF
1.747 -CEOF$ac_eof
1.748 -_ACEOF
1.749 -
1.750 -
1.751 -ac_delim='%!_!# '
1.752 -for ac_last_try in false false false false false :; do
1.753 - cat >conf$$subs.sed <<_ACEOF
1.754 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
1.755 LIBOBJS!$LIBOBJS$ac_delim
1.756 LTLIBOBJS!$LTLIBOBJS$ac_delim
1.757 _ACEOF
1.758
1.759 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
1.760 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
1.761 break
1.762 elif $ac_last_try; then
1.763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
.