Mercurial > mplayer.hg
changeset 28499:5d76e0dbe16e
Port check for 10 assembler operands support from FFmpeg.
author | diego |
---|---|
date | Wed, 11 Feb 2009 23:11:06 +0000 |
parents | d492a439d7d0 |
children | 0fdb808fda41 |
files | configure |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Feb 11 21:34:44 2009 +0000 +++ b/configure Wed Feb 11 23:11:06 2009 +0000 @@ -2471,6 +2471,22 @@ 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_mkstemp $def_posix_memalign $def_pthreads +$def_ten_operands $def_threads $def_yasm