summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-20 00:10:09 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-20 00:10:09 +0000
commit7948a807fb2dea131ca4a36f559d1dd77047dd28 (patch)
tree97a518a383212efef96fb849b9b57b22ea33db13 /configure
parentfc4f7417095597625c8fbeec44984e7d78439224 (diff)
downloadmpv-7948a807fb2dea131ca4a36f559d1dd77047dd28.tar.bz2
mpv-7948a807fb2dea131ca4a36f559d1dd77047dd28.tar.xz
Add check for XFORM ASM, needed by FFmpeg/PPC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29199 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 467e799650..cbf3146f97 100755
--- a/configure
+++ b/configure
@@ -2611,6 +2611,17 @@ EOF
test "$_altivec" = yes && CFLAGS="$CFLAGS $_altivec_gcc_flags"
fi
+if ppc ; then
+def_xform_asm='#define HAVE_XFORM_ASM 0'
+xform_asm=no
+echocheck "XFORM ASM support"
+ cat > $TMPC << EOF
+int main(void) { __asm__ volatile ("lwzx 0, %y0" :: "Z"(*(int*)0)"); return 0; }
+EOF
+cc_check && xform_asm=yes && def_xform_asm='#define HAVE_XFORM_ASM 1'
+echores "$xform_asm"
+fi
+
if arm ; then
echocheck "ARM pld instruction"
cat > $TMPC << EOF
@@ -8787,6 +8798,7 @@ $def_posix_memalign
$def_pthreads
$def_ten_operands
$def_threads
+$def_xform_asm
$def_yasm
#define CONFIG_FASTDIV 0