diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-02-15 22:25:01 +0100 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-02-15 22:25:01 +0100 |
commit | 48a90cfb347bc983362ce2bc021591d513d6a5ec (patch) | |
tree | 6eb5b3db044c970ed2deb01045874400beae1185 | |
parent | 0ded6c1973596436d7e5c54cfb89ada4d6c7473d (diff) |
Replace check for sparc with host_cpu
-rw-r--r-- | configure.in | 25 |
1 files 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 |