revert last change, it breaks on brain damaged distros
[ffmpeg.git] / configure
index d834a32..308366d 100755 (executable)
--- a/configure
+++ b/configure
@@ -443,7 +443,11 @@ check_lib(){
     header="$1"
     func="$2"
     shift 2
-    check_header $header && check_func $func "$@" && add_extralibs "$@"
+    temp_extralibs "$@"
+    check_header $header && check_func $func && add_extralibs "$@"
+    err=$?
+    restore_flags
+    return $err
 }
 
 check_exec(){