[MPlayer-dev-eng] [PATCH] speedup config.h generation
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Feb 3 11:36:41 CET 2007
Hello,
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
-------------- next part --------------
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]' `
+for ucname in $ucnames; do
+ if ` echo $ucenabled | grep $ucname > /dev/null `; then
echo "#define CONFIG_$ucname 1"
echo "#define ENABLE_$ucname 1"
else
More information about the MPlayer-dev-eng
mailing list