diff -ruN xine-lib-1.1.4.orig/configure.ac xine-lib-1.1.4/configure.ac --- xine-lib-1.1.4.orig/configure.ac 2007-01-29 03:17:56.000000000 +1000 +++ xine-lib-1.1.4/configure.ac 2007-05-27 00:06:37.514946481 +1000 @@ -1275,6 +1275,13 @@ if test "x$have_a52" = "xno"; then AC_MSG_RESULT([*** no usable version of a52dec found, using internal copy ***]) + else + dnl check for djbttf + AC_ARG_ENABLE([djbfft], + [ --enable-djbfft make a version using djbfft]) + if test x"$enable_djbfft" = x"yes"; then + AC_DEFINE([HAVE_DJBFFT],,[liba52 djbfft support]) + fi fi else AC_MSG_RESULT([Use included a52dec support]) diff -ruN xine-lib-1.1.4.orig/src/xine-utils/cpu_accel.c xine-lib-1.1.4/src/xine-utils/cpu_accel.c --- xine-lib-1.1.4.orig/src/xine-utils/cpu_accel.c 2006-05-23 02:35:15.000000000 +1000 +++ xine-lib-1.1.4/src/xine-utils/cpu_accel.c 2007-05-27 00:07:06.850984585 +1000 @@ -324,6 +324,16 @@ #else accel |= MM_ACCEL_MLIB; #endif +#elif defined(HAVE_DJBFFT) + /* + * HAVE_DJBFFT will be defined only if we are using an external + * liba52 and --enable-djbfft was passed to configure. External + * versions of liba52 use MM_ACCEL_DJBFFT in place of MM_ACCEL_MLIB + * although they are both #defined to be 0x00000001. What we are + * actually saying here is: + * accel |= MM_ACCEL_DJBFFT + */ + accel |= MM_ACCEL_MLIB; #endif #if defined(ARCH_X86) || defined(ARCH_X86_64) || (defined(ARCH_PPC) && defined(ENABLE_ALTIVEC)) || (defined(ARCH_SPARC) && defined(ENABLE_VIS))