Commit 48a90cfb authored by Martin Lucina's avatar Martin Lucina

Replace check for sparc with host_cpu

parent 0ded6c19
...@@ -175,23 +175,14 @@ case "${host_os}" in ...@@ -175,23 +175,14 @@ case "${host_os}" in
;; ;;
esac esac
# Check if we are running at sparc harware # CPU-specific optimizations
AC_MSG_CHECKING([wheter __sparc__ is defined]) case "${host_cpu}" in
AC_COMPILE_IFELSE([AC_LANG_PROGRAM( *sparc*)
[[#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" CPPFLAGS="$CPPFLAGS -mcpu=v9"
fi ;;
*)
;;
esac
# Checks for header files. # Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment