mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Replace check for sparc with host_cpu
This commit is contained in:
parent
0ded6c1973
commit
48a90cfb34
25
configure.in
25
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
|
||||
|
Loading…
Reference in New Issue
Block a user