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 <[email protected]> --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index ed84630..d12afa0 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 -- 1.8.0 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
