From 48a90cfb347bc983362ce2bc021591d513d6a5ec Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Mon, 15 Feb 2010 22:25:01 +0100 Subject: Replace check for sparc with host_cpu --- configure.in | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/configure.in b/configure.in index ea9cb33..37c176e 100644 --- a/configure.in +++ b/configure.in @@ -175,23 +175,14 @@ case "${host_os}" in ;; esac -# Check if we are running at sparc harware -AC_MSG_CHECKING([wheter __sparc__ is defined]) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM( - [[#if defined __sparc__ - //OK we are on sparc - #else - error: we are not on sparc - #endif - ]])], - [sparc=yes], - [sparc=no]) - -AC_MSG_RESULT([$sparc]) - -if test "x$sparc" = "xyes"; then - CPPFLAGS="$CPPFLAGS -mcpu=v9" -fi +# CPU-specific optimizations +case "${host_cpu}" in + *sparc*) + CPPFLAGS="$CPPFLAGS -mcpu=v9" + ;; + *) + ;; +esac # Checks for header files. AC_HEADER_STDC -- cgit v1.2.3