configure: fix return value from check_header
authorMåns Rullgård <mans@mansr.com>
Sun, 1 Mar 2009 17:57:14 +0000 (17:57 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 1 Mar 2009 17:57:14 +0000 (17:57 +0000)
Originally committed as revision 17695 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 813a333..281ce24 100755 (executable)
--- a/configure
+++ b/configure
@@ -574,7 +574,8 @@ check_header(){
     log check_header "$@"
     header=$1
     shift
     log check_header "$@"
     header=$1
     shift
-    check_cpp "$@" <<EOF && enable_safe $header || disable_safe $header
+    disable_safe $header
+    check_cpp "$@" <<EOF && enable_safe $header
 #include <$header>
 int x;
 EOF
 #include <$header>
 int x;
 EOF