Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-12 21:14:55 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-03-12 21:14:55 +0300
commitfbe98aee201ea448fb561e14e523f68c80ac53f9 (patch)
treeed14075a60114c225e8f0c46a83ecc6fe274e8f3 /configure
parent8876c8ae24b4abfeeb62184ceeb0de4b11be8acc (diff)
Revert "configure: allow checking multiple functions in check_func_headers()"
This reverts commit edaf1ae2763ce1a23dec70e730ba2bb8ee476dfd. breaks windows builds
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 15 insertions, 12 deletions
diff --git a/configure b/configure
index abef5add4d..b6d12f6991 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 "$@" <<EOF && enable $func && enable_safe $headers
+$incs
+int main(int argc, char **argv){
+ return (long) $func;
+}
+EOF
}
check_cpp_condition(){
@@ -737,9 +740,9 @@ check_lib(){
check_lib2(){
log check_lib2 "$@"
headers="$1"
- funcs="$2"
+ func="$2"
shift 2
- check_func_headers "$headers" "$funcs" "$@" && add_extralibs "$@"
+ check_func_headers "$headers" $func "$@" && add_extralibs "$@"
}
check_exec(){