diff options
author | Max Horn | 2011-07-12 11:28:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-08-08 20:33:42 +0200 |
commit | d6e0afc00277ea17193235ae17219f4a72c55e0f (patch) | |
tree | 3acc8e30d24962820ef09af18e33086b9d847bbe | |
parent | 529919e20bb1be08de4fe52ebe323996ecb9b509 (diff) | |
download | scummvm-rg350-d6e0afc00277ea17193235ae17219f4a72c55e0f.tar.gz scummvm-rg350-d6e0afc00277ea17193235ae17219f4a72c55e0f.tar.bz2 scummvm-rg350-d6e0afc00277ea17193235ae17219f4a72c55e0f.zip |
CONFIGURE: Unify cpu arch detection
-rwxr-xr-x | configure | 56 |
1 files changed, 28 insertions, 28 deletions
@@ -193,7 +193,6 @@ _posix=no _endian=unknown _need_memalign=yes _have_x86=no -_arm_asm=no @@ -1686,38 +1685,37 @@ echo "$_need_memalign" define_in_config_h_if_yes $_need_memalign 'SCUMM_NEED_ALIGNMENT' # -# Check whether we can use x86 asm routines +# Check the CPU architecture # -echo_n "Compiling for x86... " +echo_n "Checking host CPU architecture... " case $_host_cpu in - i386|i486|i586|i686) + arm*) + echo "ARM" + define_in_config_if_yes yes 'USE_ARM_SCALER_ASM' + define_in_config_if_yes yes 'USE_ARM_SOUND_ASM' + define_in_config_if_yes yes 'USE_ARM_SMUSH_ASM' + define_in_config_if_yes yes 'USE_ARM_GFX_ASM' + define_in_config_if_yes yes 'USE_ARM_COSTUME_ASM' + + DEFINES="$DEFINES -DARM_TARGET" + ;; + i[3-6]86) + echo "x86" _have_x86=yes + define_in_config_h_if_yes $_have_x86 'HAVE_X86' ;; - *) - _have_x86=no + mips*) + echo "MIPS" + DEFINES="$DEFINES -DMIPS_TARGET" ;; -esac -echo "$_have_x86" -define_in_config_h_if_yes $_have_x86 'HAVE_X86' - -# -# Check whether to use optimized ARM asm -# -echo_n "Compiling for ARM... " -case $_host_cpu in - arm*) - _arm_asm=yes + ppc*) + echo "PowerPC" + DEFINES="$DEFINES -DPPC_TARGET" ;; *) - _arm_asm=no + echo "unknown ($_host_cpu)" ;; esac -echo "$_arm_asm" -define_in_config_if_yes "$_arm_asm" 'USE_ARM_SCALER_ASM' -define_in_config_if_yes "$_arm_asm" 'USE_ARM_SOUND_ASM' -define_in_config_if_yes "$_arm_asm" 'USE_ARM_SMUSH_ASM' -define_in_config_if_yes "$_arm_asm" 'USE_ARM_GFX_ASM' -define_in_config_if_yes "$_arm_asm" 'USE_ARM_COSTUME_ASM' # @@ -2580,7 +2578,9 @@ POST_OBJS_FLAGS := -Wl,--no-whole-archive ;; ds) _elf_loader=yes - DEFINES="$DEFINES -DARM_TARGET -DELF_LOADER_CXA_ATEXIT -DUNCACHED_PLUGINS -DELF_NO_MEM_MANAGER" + DEFINES="$DEFINES -DELF_LOADER_CXA_ATEXIT" + DEFINES="$DEFINES -DUNCACHED_PLUGINS" + DEFINES="$DEFINES -DELF_NO_MEM_MANAGER" _mak_plugins=' PLUGIN_LDFLAGS += -Wl,-T$(srcdir)/backends/plugins/ds/plugin.ld -mthumb-interwork -mno-fpu ' @@ -2598,7 +2598,8 @@ POST_OBJS_FLAGS := -Wl,-no-whole-archive ;; gamecube | wii) _elf_loader=yes - DEFINES="$DEFINES -DPPC_TARGET -DELF_LOADER_CXA_ATEXIT -DUNCACHED_PLUGINS" + DEFINES="$DEFINES -DELF_LOADER_CXA_ATEXIT" + DEFINES="$DEFINES -DUNCACHED_PLUGINS" _mak_plugins=' PLUGIN_LDFLAGS += -Wl,-T$(srcdir)/backends/plugins/wii/plugin.ld ' @@ -2651,7 +2652,6 @@ POST_OBJS_FLAGS := -Wl,--export-all-symbols -Wl,--no-whole-archive -Wl,--out-im ;; ps2) _elf_loader=yes - DEFINES="$DEFINES -DMIPS_TARGET" _mak_plugins=' LDFLAGS += -mno-crt0 $(PS2SDK)/ee/startup/crt0.o -Wl,-T$(srcdir)/backends/plugins/ps2/main_prog.ld PLUGIN_LDFLAGS += -mno-crt0 $(PS2SDK)/ee/startup/crt0.o -Wl,-T$(srcdir)/backends/plugins/ps2/plugin.ld -lstdc++ -lc @@ -2659,7 +2659,7 @@ PLUGIN_LDFLAGS += -mno-crt0 $(PS2SDK)/ee/startup/crt0.o -Wl,-T$(srcdir)/backend ;; psp) _elf_loader=yes - DEFINES="$DEFINES -DMIPS_TARGET -DUNCACHED_PLUGINS" + DEFINES="$DEFINES -DUNCACHED_PLUGINS" _mak_plugins=' LDFLAGS += -Wl,-T$(srcdir)/backends/plugins/psp/main_prog.ld PLUGIN_LDFLAGS += -Wl,-T$(srcdir)/backends/plugins/psp/plugin.ld -lstdc++ -lc |