Commit fbe98aee authored by Michael Niedermayer's avatar Michael Niedermayer

Revert "configure: allow checking multiple functions in check_func_headers()"

This reverts commit edaf1ae2.

breaks windows builds
parent 8876c8ae
...@@ -700,17 +700,20 @@ EOF ...@@ -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
for hdr in $headers; do incs=""
echo "#include <$hdr>" for hdr in $headers; do
done incs="$incs
for func in $funcs; do #include <$hdr>"
echo "long check_$func(void) { return (long) $func; }" done
done check_ld "$@" <<EOF && enable $func && enable_safe $headers
echo "int main(void) { return 0; }" $incs
} | check_ld "$@" && enable $funcs && enable_safe $headers int main(int argc, char **argv){
return (long) $func;
}
EOF
} }
check_cpp_condition(){ check_cpp_condition(){
...@@ -737,9 +740,9 @@ check_lib(){ ...@@ -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(){
......
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