summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-11 23:11:06 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-11 23:11:06 +0000
commitceae4989a223fe4fd023564b49c474181ecb2d10 (patch)
tree48daf53217d8fa4e5e079260a5a951d11b7d2828 /configure
parentf9e26397b7cb65e08dcc6d87dfb3d8c85fca2dcf (diff)
downloadmpv-ceae4989a223fe4fd023564b49c474181ecb2d10.tar.bz2
mpv-ceae4989a223fe4fd023564b49c474181ecb2d10.tar.xz
Port check for 10 assembler operands support from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28534 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index d1ec138627..6c5add27af 100755
--- a/configure
+++ b/configure
@@ -2471,6 +2471,22 @@ fi
echores $_asmalign_pot
if x86 ; then
+echocheck "10 assembler operands"
+ten_operands=no
+def_ten_operands='#define HAVE_TEN_OPERANDS 0'
+cat > $TMPC << EOF
+int main(void) {
+ int x=0;
+ __asm__ volatile(
+ ""
+ :"+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x)
+ );
+ return 0;
+}
+EOF
+cc_check && ten_operands=yes && def_ten_operands='#define HAVE_TEN_OPERANDS 1'
+echores $ten_operands
+
echocheck "yasm"
if test -z "$YASMFLAGS" ; then
if darwin ; then
@@ -8640,6 +8656,7 @@ $def_mlib
$def_mkstemp
$def_posix_memalign
$def_pthreads
+$def_ten_operands
$def_threads
$def_yasm