$OpenBSD: patch-configure_in,v 1.1 2017/07/27 14:48:10 espie Exp $

Complete auto detection of xmmintrin_h according to actual support.
from FreeBSD

Index: configure.in
--- configure.in.orig
+++ configure.in
@@ -56,7 +56,7 @@ LIB_MAJOR_VERSION=0
 
 # increase this when changes are made, but they are upward compatible
 # to previous versions
-LIB_MINOR_VERSION=0
+LIB_MINOR_VERSION=1
 
 dnl # work around for a bug, don't know where it is exactly
 if test "${ac_cv_cygwin}" = "yes"; then
@@ -96,8 +96,18 @@ AC_CHECK_HEADERS( \
 		 sys/soundcard.h \
 		 sys/time.h \
 		 unistd.h \
-		 xmmintrin.h \
 		 linux/soundcard.h)
+
+dnl Checks for actually working SSE intrinsics
+AC_MSG_CHECKING(working SSE intrinsics)
+AC_COMPILE_IFELSE(
+    [AC_LANG_PROGRAM(
+	[[#include <xmmintrin.h>]],
+	[[_mm_sfence();]])],
+    [AC_DEFINE([HAVE_XMMINTRIN_H], [1], [Define if SSE intrinsics work.])
+     ac_cv_header_xmmintrin_h=yes],
+   [ac_cv_header_xmmintrin_h=no])
+AC_MSG_RESULT(${ac_cv_header_xmmintrin_h})
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
