# HG changeset patch # User giacomo # Date 1180311118 25200 # Node ID 402ee2120cb15989d9358bbad74c6baad93fc6d2 # Parent 48b58606589545a70a70bd2145197d3c7ebcf6b8 [svn] - added options in configure.ac to disable sse2 and altivec support (madplug) even if available on the system diff -r 48b586065895 -r 402ee2120cb1 ChangeLog --- a/ChangeLog Sun May 27 14:30:06 2007 -0700 +++ b/ChangeLog Sun May 27 17:11:58 2007 -0700 @@ -1,3 +1,10 @@ +2007-05-27 21:30:06 +0000 Ralf Ertzinger + revision [2440] + Move effect plugin handling out of the output plugins + trunk/src/esd/audio.c | 2 ++ + 1 file changed, 2 insertions(+) + + 2007-05-27 21:29:45 +0000 Ralf Ertzinger revision [2438] Move effect plugin handling out of the output plugins diff -r 48b586065895 -r 402ee2120cb1 configure.ac --- a/configure.ac Sun May 27 14:30:06 2007 -0700 +++ b/configure.ac Sun May 27 17:11:58 2007 -0700 @@ -287,35 +287,49 @@ dnl *** AltiVec -AC_CHECK_HEADERS(altivec.h, - [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.]) - AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.]) - AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.]) - DCT64=dct64_altivec.c - SIMD_CFLAGS=-maltivec - AC_SUBST(SIMD_CFLAGS)], - [DCT64=dct64.c] -) +AC_ARG_ENABLE(altivec, + [ --disable-altivec disable AltiVec support. (default=enabled) ], + [enable_altivec=$enableval], + [enable_altivec=yes] +) +if test "x$enable_altivec" = "xyes"; then + AC_CHECK_HEADERS(altivec.h, + [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.]) + AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.]) + AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.]) + DCT64=dct64_altivec.c + SIMD_CFLAGS=-maltivec + AC_SUBST(SIMD_CFLAGS)], + [DCT64=dct64.c] + ) +fi AC_SUBST(DCT64) dnl *** SSE2 -AC_MSG_CHECKING(SSE2) -ac_save_CFLAGS="$CFLAGS" -CFLAGS="-msse2" -AC_TRY_RUN([ -#include -int main() -{ - _mm_setzero_pd(); - return 0; -} -], -[AC_MSG_RESULT(SSE2 yes) -AC_DEFINE(HAVE_SSE2, 1, [Define to 1 if your system has SSE2]) -SIMD_CFLAGS=-msse2], -[AC_MSG_RESULT(SSE2 no)], +AC_ARG_ENABLE(sse2, + [ --disable-sse2 disable SSE2 support. (default=enabled) ], + [enable_sse2=$enableval], + [enable_sse2=yes] ) +if test "x$enable_sse2" = "xyes"; then + AC_MSG_CHECKING(SSE2) + ac_save_CFLAGS="$CFLAGS" + CFLAGS="-msse2" + AC_TRY_RUN([ + #include + int main() + { + _mm_setzero_pd(); + return 0; + } + ], + [AC_MSG_RESULT(SSE2 yes) + AC_DEFINE(HAVE_SSE2, 1, [Define to 1 if your system has SSE2]) + SIMD_CFLAGS=-msse2], + [AC_MSG_RESULT(SSE2 no)], + ) +fi AC_SUBST(SIMD_CFLAGS) CFLAGS="$ac_save_CFLAGS"