Package: phyml / 3:3.3.20220408-4

sse_only_if_supported.patch Patch series | download
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>
Last-Update: 2013-08-05
Bug-Debian: 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

--- phyml.orig/configure.ac
+++ phyml/configure.ac
@@ -13,6 +13,16 @@
 
 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])