diff -purN stella-3.0.orig/configure stella-3.0/configure --- stella-3.0.orig/configure 2010-01-08 13:54:31.000000000 +0100 +++ stella-3.0/configure 2010-01-08 14:32:03.000000000 +0100 @@ -293,6 +293,10 @@ mingw32-cross) _host_cpu=i386 _host_prefix=i386-mingw32msvc ;; +arm-*) + _host_os=crux-arm + _host_cpu=arm + ;; *) guessed_host=`$_srcdir/config.guess` _host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` @@ -447,6 +451,10 @@ if test -n "$_host"; then DEFINES="$DEFINES -DWIN32" _host_os=win32 ;; + arm-*) + echo "Cross-compiling for ARM processors ($_host)" + _build_gl=no + ;; *) echo "Cross-compiling to unknown target, please add your target to configure." exit 1 @@ -484,6 +492,11 @@ else LIBS="$LIBS -lz" _host_os=unix ;; + arm-*) + DEFINES="$DEFINES -DUNIX" + LIBS="$LIBS -lz" + _host_os=crux-arm + ;; # given this is a shell script assume some type of unix *) echo "WARNING: could not establish system type, assuming unix like" @@ -673,6 +686,16 @@ case $_host_os in _ranlib="arm-linux-ranlib" _ar="arm-linux-ar cru" ;; + crux-arm) + CXXFLAGS="-O2 -finline-functions" + DEFINES="$DEFINES -DUNIX -DBSPF_UNIX -DHAVE_GETTIMEOFDAY -DHAVE_INTTYPES" + MODULES="$MODULES $SRC/unix" + INCLUDES="$INCLUDES -I$SRC/unix -I$SRC/emucore $ZLIB_CFLAGS" + + _ranlib="arm-unknown-linux-gnu-ranlib" + _ar="arm-unknown-linux-gnu-ar cru" + _strip="arm-unknown-linux-gnu-strip" + ;; *) echo "WARNING: host system not currenty supported" exit