[MPlayer-dev-eng] [PATCH] speedup config.h generation

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 3 14:32:16 CET 2007


Hello,
On Sat, Feb 03, 2007 at 11:36:41AM +0100, Reimar D?ffinger wrote:
> I think attached patch should greatly speedup config.h generation on
> e.g. mingw.
> Even on linux it makes about 2 seconds difference.
> Might be possible to save a tiny bit more by using grep -i instead of
> uppercase conversion for the enabled variable, but probably not worth
> it.
> Does it look okay to apply?
> 
> Greetings,
> Reimar Döffinger

> Index: configure
> ===================================================================
> --- configure	(revision 22099)
> +++ configure	(working copy)
> @@ -7619,9 +7655,10 @@
>  #############################################################################
>  
>  ff_config_enable () {
> -for part in $1; do
> -  ucname=` echo $part | tr '[a-z]' '[A-Z]' `
> -  if ` echo $2 | grep $part > /dev/null `; then
> +ucnames=` echo $1 | tr '[a-z]' '[A-Z]' `
> +ucenable=` echo $2 | tr '[a-z]' '[A-Z]' `

Must be "ucenabled" instead of "ucenable" of course...

> +for ucname in $ucnames; do
> +  if ` echo $ucenabled | grep $ucname > /dev/null `; then
>      echo "#define CONFIG_$ucname 1"
>      echo "#define ENABLE_$ucname 1"
>    else


Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list