From abaa9fb2cdb9b89735ae8fa2f04b78d2d54af20f Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Tue, 5 Nov 2002 11:58:40 +0000 Subject: [PATCH] Add configury for x86-64 --- BasiliskII/src/Unix/configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 1b9e7e3e..8a9aac74 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -69,11 +69,13 @@ HAVE_I386=no HAVE_M68K=no HAVE_SPARC=no HAVE_POWERPC=no +HAVE_X86_64=no case "$target_cpu" in i386* | i486* | i586* | i686* | i786* ) HAVE_I386=yes;; m68k* ) HAVE_M68K=yes;; sparc* ) HAVE_SPARC=yes;; powerpc* ) HAVE_POWERPC=yes;; + x86_64* ) HAVE_X86_64=yes;; esac dnl Checks for programs. @@ -827,6 +829,13 @@ if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS" CAN_JIT=yes fi +elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then + dnl x86-64 CPU + DEFINES="$DEFINES -DUNALIGNED_PROFITABLE" + if [[ "x$HAVE_GAS" = "xyes" ]]; then + ASM_OPTIMIZATIONS="x86-64" + DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS" + fi elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then dnl SPARC CPU case "$target_os" in