From 84400e9d10ca3b9a3835e4866bfca7e13ea48526 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Fri, 25 Jun 2010 15:44:55 +0000
Subject: [PATCH] configure: simplify check_lib function

Originally committed as revision 23777 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/configure b/configure
index 76c8bf23afc..1e103ff0979 100755
--- a/configure
+++ b/configure
@@ -731,11 +731,7 @@ check_lib(){
     header="$1"
     func="$2"
     shift 2
-    temp_extralibs "$@"
-    check_header $header && check_func $func && add_extralibs "$@"
-    err=$?
-    restore_flags
-    return $err
+    check_header $header && check_func $func "$@" && add_extralibs "$@"
 }
 
 check_lib2(){
-- 
GitLab