Merge commit '24d5680bbc01fc124709d522d348572ad4672563'
authorJames Almer <jamrial@gmail.com>
Tue, 26 Sep 2017 20:01:21 +0000 (17:01 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 26 Sep 2017 20:01:21 +0000 (17:01 -0300)
* commit '24d5680bbc01fc124709d522d348572ad4672563':
  configure: Simplify inline asm check with appropriate helper function

Merged-by: James Almer <jamrial@gmail.com>
configure

index 74c754d..3bd9e7a 100755 (executable)
--- a/configure
+++ b/configure
@@ -5308,9 +5308,7 @@ EOF
 sym=$($nm $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }')
 extern_prefix=${sym%%ff_extern*}
 
-check_cc <<EOF && enable_weak inline_asm
-void foo(void) { __asm__ volatile ("" ::); }
-EOF
+check_inline_asm inline_asm '"" ::'
 
 _restrict=
 for restrict_keyword in restrict __restrict__ __restrict; do