Commit 9c7d85b3 authored by Diego Biurrun's avatar Diego Biurrun

configure: Add check_builtin convenience function

parent f868b24d
......@@ -937,6 +937,16 @@ check_struct(){
enable_safe "${struct}_${member}"
}
check_builtin(){
log check_builtin "$@"
name=$1
headers=$2
builtin=$3
shift 3
disable "$name"
check_code ld "$headers" "$builtin" "$@" && enable "$name"
}
require(){
name="$1"
header="$2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment