Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 526:ba3da45b5754
prev521:33d2d92784c7
next528:49cb007348aa
author nkeynes
date Sat Nov 17 06:04:19 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Don't build the translator if the architecture is unsupported. Also tidy things up a little to allow (theoretically) different translators to be selected at build time.
file annotate diff log raw
1.1 --- a/configure.in Sat Nov 17 01:13:41 2007 +0000
1.2 +++ b/configure.in Sat Nov 17 06:04:19 2007 +0000
1.3 @@ -28,12 +28,16 @@
1.4
1.5 dnl Check for a supported cpu target for translation purposes
1.6 case $host_cpu in
1.7 - i386|i486|i586|i686|x86_64)
1.8 - TRANSLATOR="x86";;
1.9 + i386|i486|i586|i686)
1.10 + SH4_TRANSLATOR="x86"
1.11 + AC_DEFINE_UNQUOTED(SH4_TRANSLATOR,["x86"], [SH4 Translator to use (if any)] );;
1.12 + x86_64)
1.13 + SH4_TRANSLATOR="x86_64"
1.14 + AC_DEFINE_UNQUOTED(SH4_TRANSLATOR,["x86_64"], [SH4 Translator to use (if any)] );;
1.15 *)
1.16 echo "Warning: No translator available for $host. Building emulation core only";;
1.17 esac
1.18 -AM_CONDITIONAL(BUILD_SH4X86, [test "$TRANSLATOR"="x86"])
1.19 +AM_CONDITIONAL(BUILD_SH4X86, [test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"])
1.20
1.21 dnl Check for cdrom device support
1.22 AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
.