From 8fad26610193efeb3a4076329ee616a29c0f837d Mon Sep 17 00:00:00 2001 From: Jean-Daniel Dupas Date: Fri, 30 Jul 2010 00:05:16 +0000 Subject: [PATCH] Make pkgconfig_generate() explicitly return 0 in instead of returning without value when the target library is disabled. If it does not explicitly return 0, when the last library is disabled (swscale), the final "configure" exit value is 1, even if the configure script is successfully executed. So it breaks scripts that invoke configure and rely on 0 for success and 1 for failure. Patch by Jean-Daniel Dupas reverse(). Originally committed as revision 24585 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index a6ee5e2a52..d6f06818e4 100755 --- a/configure +++ b/configure @@ -3192,7 +3192,7 @@ comment=$2 version=$3 libs=$4 requires=$5 -enabled $shortname || return +enabled $shortname || return 0 cat < $name/$name.pc prefix=$prefix exec_prefix=\${prefix}