[xiph-commits] r9602 - experimental/derf/theora-exp
j at svn.xiph.org
j at svn.xiph.org
Fri Jul 22 17:34:56 PDT 2005
Author: j
Date: 2005-07-22 17:34:54 -0700 (Fri, 22 Jul 2005)
New Revision: 9602
Modified:
experimental/derf/theora-exp/configure.ac
Log:
autodetect x86 cpus and enable mmx optimization
Modified: experimental/derf/theora-exp/configure.ac
===================================================================
--- experimental/derf/theora-exp/configure.ac 2005-07-23 00:19:14 UTC (rev 9601)
+++ experimental/derf/theora-exp/configure.ac 2005-07-23 00:34:54 UTC (rev 9602)
@@ -125,12 +125,24 @@
dnl Check for optimization
AC_ARG_ENABLE(x86asm,
AS_HELP_STRING([--enable-x86asm],
- [enable x86 assambler optimization, default=disabled]),
- AC_DEFINE([OC_X86ASM], [], [enable x86 assambler optimization])
+ [enable x86 assambler optimization, default=autodetect]),
+ []
)
-if test "$enable_x86asm" = "yes"; then
- AM_CONDITIONAL(OC_X86ASM,true)
+if test "$enable_x86asm" != "no"; then
+ case "$target_cpu" in
+ i[[3456]]86)
+ AC_DEFINE([OC_X86ASM], [], [enable x86 assambler optimization])
+ AM_CONDITIONAL(OC_X86ASM,true)
+ ;;
+ x86_64)
+ AC_DEFINE([OC_X86ASM], [], [enable x86 assambler optimization])
+ AM_CONDITIONAL(OC_X86ASM,true)
+ ;;
+ *)
+ AM_CONDITIONAL(OC_X86ASM,false)
+ ;;
+ esac
else
AM_CONDITIONAL(OC_X86ASM,false)
fi
More information about the commits
mailing list