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(<org.shadowlab@devlists>).

Originally committed as revision 24585 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Jean-Daniel Dupas 2010-07-30 00:05:16 +00:00 committed by Stefano Sabatini
parent 3dec10cded
commit 8fad266101
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -3192,7 +3192,7 @@ comment=$2
version=$3
libs=$4
requires=$5
enabled $shortname || return
enabled $shortname || return 0
cat <<EOF > $name/$name.pc
prefix=$prefix
exec_prefix=\${prefix}