Skip to content

Commit

Permalink
configure: add check_insn function
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mansr committed Dec 7, 2012
1 parent 7fd9011 commit c6ebc9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6ebc9f

Please sign in to comment.