You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Revert "configure: allow checking multiple functions in check_func_headers()"
This reverts commit edaf1ae276
.
breaks windows builds
This commit is contained in:
23
configure
vendored
23
configure
vendored
@@ -700,17 +700,20 @@ EOF
|
|||||||
check_func_headers(){
|
check_func_headers(){
|
||||||
log check_func_headers "$@"
|
log check_func_headers "$@"
|
||||||
headers=$1
|
headers=$1
|
||||||
funcs=$2
|
func=$2
|
||||||
shift 2
|
shift 2
|
||||||
{
|
disable $func
|
||||||
|
incs=""
|
||||||
for hdr in $headers; do
|
for hdr in $headers; do
|
||||||
echo "#include <$hdr>"
|
incs="$incs
|
||||||
|
#include <$hdr>"
|
||||||
done
|
done
|
||||||
for func in $funcs; do
|
check_ld "$@" <<EOF && enable $func && enable_safe $headers
|
||||||
echo "long check_$func(void) { return (long) $func; }"
|
$incs
|
||||||
done
|
int main(int argc, char **argv){
|
||||||
echo "int main(void) { return 0; }"
|
return (long) $func;
|
||||||
} | check_ld "$@" && enable $funcs && enable_safe $headers
|
}
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cpp_condition(){
|
check_cpp_condition(){
|
||||||
@@ -737,9 +740,9 @@ check_lib(){
|
|||||||
check_lib2(){
|
check_lib2(){
|
||||||
log check_lib2 "$@"
|
log check_lib2 "$@"
|
||||||
headers="$1"
|
headers="$1"
|
||||||
funcs="$2"
|
func="$2"
|
||||||
shift 2
|
shift 2
|
||||||
check_func_headers "$headers" "$funcs" "$@" && add_extralibs "$@"
|
check_func_headers "$headers" $func "$@" && add_extralibs "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_exec(){
|
check_exec(){
|
||||||
|
Reference in New Issue
Block a user