mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 21:48:20 +00:00
configure: Add check_builtin convenience function
This commit is contained in:
parent
f868b24d0f
commit
9c7d85b3b4
10
configure
vendored
10
configure
vendored
@ -937,6 +937,16 @@ check_struct(){
|
|||||||
enable_safe "${struct}_${member}"
|
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(){
|
require(){
|
||||||
name="$1"
|
name="$1"
|
||||||
header="$2"
|
header="$2"
|
||||||
|
Loading…
Reference in New Issue
Block a user