From fbe98aee201ea448fb561e14e523f68c80ac53f9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 12 Mar 2011 19:14:55 +0100 Subject: [PATCH] Revert "configure: allow checking multiple functions in check_func_headers()" This reverts commit edaf1ae2763ce1a23dec70e730ba2bb8ee476dfd. breaks windows builds --- configure | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/configure b/configure index abef5add4..b6d12f699 100755 --- a/configure +++ b/configure @@ -700,17 +700,20 @@ EOF check_func_headers(){ log check_func_headers "$@" headers=$1 - funcs=$2 + func=$2 shift 2 - { - for hdr in $headers; do - echo "#include <$hdr>" - done - for func in $funcs; do - echo "long check_$func(void) { return (long) $func; }" - done - echo "int main(void) { return 0; }" - } | check_ld "$@" && enable $funcs && enable_safe $headers + disable $func + incs="" + for hdr in $headers; do + incs="$incs +#include <$hdr>" + done + check_ld "$@" <