comparison configure.in @ 2264:f7f80b822c1f

Enabled SSE2 intrinsics
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Aug 2007 06:41:20 +0000
parents c20476d7d7b3
children 60b4c52a7906
comparison
equal deleted inserted replaced
2263:900c35d8e8fd 2264:f7f80b822c1f
351 ]) 351 ])
352 AC_MSG_RESULT($have_gcc_sse) 352 AC_MSG_RESULT($have_gcc_sse)
353 353
354 if test x$have_gcc_sse = xyes; then 354 if test x$have_gcc_sse = xyes; then
355 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS" 355 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
356 fi
357 fi
358
359 AC_ARG_ENABLE(sse2,
360 AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=yes]]]),
361 , enable_sse2=yes)
362 if test x$enable_sse2 = xyes; then
363 save_CFLAGS="$CFLAGS"
364 have_gcc_sse2=no
365 AC_MSG_CHECKING(for GCC -msse2 option)
366 sse2_CFLAGS="-msse2"
367 CFLAGS="$save_CFLAGS $sse2_CFLAGS"
368
369 AC_TRY_COMPILE([
370 #include <emmintrin.h>
371 #ifndef __SSE2__
372 #error Assembler CPP flag not enabled
373 #endif
374 ],[
375 ],[
376 have_gcc_sse2=yes
377 ])
378 AC_MSG_RESULT($have_gcc_sse2)
379
380 if test x$have_gcc_sse2 = xyes; then
381 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
356 fi 382 fi
357 fi 383 fi
358 384
359 AC_ARG_ENABLE(altivec, 385 AC_ARG_ENABLE(altivec,
360 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]), 386 AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),