View | Details | Raw Unified | Return to bug 206620
Collapse All | Expand All

(-)audio/lame/files/patch-configure (+65 lines)
Line 0 Link Here
1
--- configure.in.orig	2012-02-28 19:50:27.000000000 +0100
2
+++ configure.in	2016-01-25 20:15:46.034842000 +0100
3
@@ -96,9 +96,19 @@
4
 		 sys/soundcard.h \
5
 		 sys/time.h \
6
 		 unistd.h \
7
-		 xmmintrin.h \
8
 		 linux/soundcard.h)
9
 
10
+dnl Checks for actually working SSE intrinsics
11
+AC_MSG_CHECKING(working SSE intrinsics)
12
+AC_COMPILE_IFELSE(
13
+    [AC_LANG_PROGRAM(
14
+	[[#include <xmmintrin.h>]],
15
+	[[_mm_sfence();]])],
16
+    [AC_DEFINE([HAVE_XMMINTRIN_H], [1], [Define if SSE intrinsics work.])
17
+     ac_cv_header_xmmintrin_h=yes],
18
+   [ac_cv_header_xmmintrin_h=no])
19
+AC_MSG_RESULT(${ac_cv_header_xmmintrin_h})
20
+
21
 dnl Checks for typedefs, structures, and compiler characteristics.
22
 AC_C_CONST
23
 AC_C_INLINE
24
--- configure.orig	2012-02-28 19:54:37.000000000 +0100
25
+++ configure	2016-01-25 20:16:07.429512000 +0100
26
@@ -11922,7 +11918,6 @@
27
 		 sys/soundcard.h \
28
 		 sys/time.h \
29
 		 unistd.h \
30
-		 xmmintrin.h \
31
 		 linux/soundcard.h
32
 do :
33
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34
@@ -11937,6 +11932,31 @@
35
 done
36
 
37
 
38
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
39
+$as_echo_n "checking working SSE intrinsics... " >&6; }
40
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41
+/* end confdefs.h.  */
42
+#include <xmmintrin.h>
43
+int
44
+main ()
45
+{
46
+_mm_sfence();
47
+  ;
48
+  return 0;
49
+}
50
+_ACEOF
51
+if ac_fn_c_try_compile "$LINENO"; then :
52
+
53
+$as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
54
+
55
+     ac_cv_header_xmmintrin_h=yes
56
+else
57
+  ac_cv_header_xmmintrin_h=no
58
+fi
59
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
61
+$as_echo "${ac_cv_header_xmmintrin_h}" >&6; }
62
+
63
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
64
 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
65
 if ${ac_cv_c_const+:} false; then :

Return to bug 206620