From c6ebc9faa2210d7f36a3036c357f6f199520f575 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sat, 1 Dec 2012 15:06:56 +0000 Subject: 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 --- configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure') diff --git a/configure b/configure index fe95251c68..6758438e11 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 -- cgit v1.2.3