[Mesa-dev] [PATCH 1/3] configure.ac: Add detection for sse2 compilation support

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Wed Nov 12 04:50:14 PST 2014


Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index fc7d372..a01e605 100644
--- a/configure.ac
+++ b/configure.ac
@@ -258,6 +258,13 @@ if test "x$SSE41_SUPPORTED" = x1; then
 fi
 AM_CONDITIONAL([SSE41_SUPPORTED], [test x$SSE41_SUPPORTED = x1])
 
+AX_CHECK_COMPILE_FLAG([-msse2], [SSE2_SUPPORTED=1], [SSE2_SUPPORTED=0])
+if test "x$SSE2_SUPPORTED" = x1; then
+    DEFINES="$DEFINES -DUSE_SSE2"
+fi
+AM_CONDITIONAL([SSE2_SUPPORTED], [test x$SSE2_SUPPORTED = x1])
+
+
 dnl Can't have static and shared libraries, default to static if user
 dnl explicitly requested. If both disabled, set to static since shared
 dnl was explicitly requested.
-- 
1.8.5.1



More information about the mesa-dev mailing list