[MPlayer-dev-eng] [PATCH] require static libswscale for mga

Diego Biurrun diego at biurrun.de
Thu Jun 10 16:00:17 CEST 2010


On Thu, Jun 03, 2010 at 08:18:24PM +0200, Reinhard Tartler wrote:
> 

> Since I don't expect anyone to actually fix the mgadrivers to actually
> avoid swscale internals and stick to the public API,

Why not?  Attila?

> I'm aware that this patch moves the mga check fairly to the
> bottom. However, I think this clarifies the issue a bit in case this
> check engages:

Move the check first before doing the other changes.  Do it right away.

> --- configure	(revision 31303)
> +++ configure	(working copy)
> @@ -7431,6 +7403,46 @@
>    && def_libswscale_so='#define CONFIG_LIBSWSCALE_SO 1'
>  echores "$_libswscale"
>  
> +echocheck "/dev/mga_vid"
> +if test "$_mga" = auto ; then
> +  _mga=no
> +  test -c /dev/mga_vid && _mga=yes
> +fi
> +if test "$_mga" = yes ; then
> +  if test "$_libswscale_a" = no ; then
> +    _mga=no
> +    echores "mga requires libswscale.a"
> +  else
> +    def_mga='#define CONFIG_MGA 1'
> +    vomodules="mga $vomodules"
> +    echores "$_mga"
> +  fi
> +else
> +  def_mga='#undef CONFIG_MGA'
> +  novomodules="mga $novomodules"
> +  echores "$_mga"
> +fi

mga will not end up in novomodules if static libswscale is not available.

Diego



More information about the MPlayer-dev-eng mailing list