comparison acinclude.m4 @ 4699:7bf9affe88b6

Use also GCC inline assembler for detecting SSE2 support, because apparently intrinsics get compiled to nothing in some cases where SSE2 is not supported, thus making the test give a false positive upon execution.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 06 Jul 2008 15:33:19 +0300
parents 578f61630833
children 60d8d8f667ed
comparison
equal deleted inserted replaced
4698:cfc8d1e0c78b 4699:7bf9affe88b6
204 AC_TRY_RUN([ 204 AC_TRY_RUN([
205 #include <emmintrin.h> 205 #include <emmintrin.h>
206 int main() 206 int main()
207 { 207 {
208 _mm_setzero_pd(); 208 _mm_setzero_pd();
209 asm volatile("xorpd %xmm0,%xmm0\n\t");
209 return 0; 210 return 0;
210 } 211 }
211 ],[ 212 ],[
212 AC_MSG_RESULT([yes]) 213 AC_MSG_RESULT([yes])
213 AC_DEFINE([HAVE_SSE2], 1, [Define to 1 if your system has SSE2 support]) 214 AC_DEFINE([HAVE_SSE2], 1, [Define to 1 if your system has SSE2 support])