changeset 1138:402ee2120cb1 trunk

[svn] - added options in configure.ac to disable sse2 and altivec support (madplug) even if available on the system
author giacomo
date Sun, 27 May 2007 17:11:58 -0700
parents 48b586065895
children 038298d9fbe3
files ChangeLog configure.ac
diffstat 2 files changed, 45 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- 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 <ralf@skytale.net>
+  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 <ralf@skytale.net>
   revision [2438]
   Move effect plugin handling out of the output plugins
--- 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 <emmintrin.h>
-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 <emmintrin.h>
+  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"