[FFmpeg-cvslog] configure: add check_insn function
Mans Rullgard
git at videolan.org
Sat Dec 8 14:13:11 CET 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat Dec 1 15:06:56 2012 +0000| [c6ebc9faa2210d7f36a3036c357f6f199520f575] | committer: Mans Rullgard
configure: add check_insn function
The check_insn function tests an instruction in both inline asm and
standalone assembly, and sets _external/_inline config properties
accordingly.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6ebc9faa2210d7f36a3036c357f6f199520f575
---
configure | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure b/configure
index fe95251..6758438 100755
--- a/configure
+++ b/configure
@@ -698,6 +698,12 @@ void foo(void){ __asm__ volatile($code); }
EOF
}
+check_insn(){
+ log check_insn "$@"
+ check_inline_asm ${1}_inline "\"$2\""
+ echo "$2" | check_as && enable ${1}_external || disable ${1}_external
+}
+
check_yasm(){
log check_yasm "$@"
echo "$1" > $TMPS
More information about the ffmpeg-cvslog
mailing list