1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Author: Andreas Tille <tille@debian.org>
LastChanged: Mon, 05 Aug 2013 09:56:27 +0200
BugsClosed: http://bugs.debian.org/718747
Forwarded: guindon@lirmm.fr
Description: Verify architecture whether we comiple on i386 or amd64 and
only in this case use -msse
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,16 @@ AC_CANONICAL_HOST
AC_PROG_CC([gcc])
+case "${host}" in
+*i386*|*amd64*|*x86_64*)
+MSSE=-msse
+AC_MSG_NOTICE("On arch ${host} use MSSE = ${MSSE}")
+;;
+*)
+MSSE=
+AC_MSG_NOTICE("Do not use MSSE = ${MSSE} because not available on arch ${host}")
+;;
+esac
# Checks for libraries.
AC_CHECK_LIB([m], [log])
|