configure: simplify check_lib2
authorMåns Rullgård <mans@mansr.com>
Sun, 17 Jan 2010 19:05:57 +0000 (19:05 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 17 Jan 2010 19:05:57 +0000 (19:05 +0000)
Originally committed as revision 21266 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 268e910..cf3d51a 100755 (executable)
--- a/configure
+++ b/configure
@@ -709,11 +709,7 @@ check_lib2(){
     headers="$1"
     func="$2"
     shift 2
-    temp_extralibs "$@"
-    check_func_headers "$headers" $func && add_extralibs "$@"
-    err=$?
-    restore_flags
-    return $err
+    check_func_headers "$headers" $func "$@" && add_extralibs "$@"
 }
 
 check_exec(){