Commit 8fad2661 authored by Jean-Daniel Dupas's avatar Jean-Daniel Dupas Committed by Stefano Sabatini

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
parent 3dec10cd
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment