[FFmpeg-devel] [PATCH 1/2] configure: warn when en/disabling has no effect.
Clément Bœsch
ubitux at gmail.com
Wed Nov 14 00:46:22 CET 2012
On Sun, Nov 11, 2012 at 09:39:09PM +0100, Nicolas George wrote:
> Print a warning for --enable- or --disable-something=pattern
> does not match any component.
>
Do you have a use case for this?
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> configure | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index ae11f5d..0700b1f 100755
> --- a/configure
> +++ b/configure
> @@ -2216,7 +2216,9 @@ for opt do
> is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
> eval list=\$$(toupper $thing)_LIST
> name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing}
> - $action $(filter "$name" $list)
> + list=$(filter "$name" $list)
> + [ "$list" = "" ] && warn "Option $opt did not match anything"
> + $action $list
> ;;
> --enable-?*|--disable-?*)
> eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121114/4d502927/attachment.asc>
More information about the ffmpeg-devel
mailing list