build: check if AS supports the '.func' directive
[ffmpeg.git] / configure
index 13bcdfe..59f7273 100755 (executable)
--- a/configure
+++ b/configure
@@ -1468,6 +1468,7 @@ SYSTEM_FUNCS="
 
 TOOLCHAIN_FEATURES="
     as_dn_directive
+    as_func
     asm_mod_q
     attribute_may_alias
     attribute_packed
@@ -3734,6 +3735,11 @@ if enabled asm; then
 .endm
 m x
 EOF
+
+    check_as <<EOF && enable as_func
+.func test
+.endfunc
+EOF
 fi
 
 check_inline_asm inline_asm_labels '"1:\n"'