Mercurial > mplayer.hg
comparison configure @ 23564:8b7d62452ebd
Add an optional third parameter to ff_config_enable in preparation
of next patches (allows to define e.g. ARCH_ instead of CONFIG_).
author | reimar |
---|---|
date | Tue, 19 Jun 2007 13:54:48 +0000 |
parents | 0348714047be |
children | 916056111725 |
comparison
equal
deleted
inserted
replaced
23563:0348714047be | 23564:8b7d62452ebd |
---|---|
7702 EOF | 7702 EOF |
7703 | 7703 |
7704 ############################################################################# | 7704 ############################################################################# |
7705 | 7705 |
7706 ff_config_enable () { | 7706 ff_config_enable () { |
7707 _nprefix=$3; | |
7708 test -z "$_nprefix" && _nprefix='CONFIG' | |
7707 for part in $1; do | 7709 for part in $1; do |
7708 if ` echo $2 | grep $part > /dev/null `; then | 7710 if ` echo $2 | grep $part > /dev/null `; then |
7709 echo "#define CONFIG_$part 1" | 7711 echo "#define ${_nprefix}_$part 1" |
7710 echo "#define ENABLE_$part 1" | 7712 echo "#define ENABLE_$part 1" |
7711 else | 7713 else |
7712 echo "#define ENABLE_$part 0" | 7714 echo "#define ENABLE_$part 0" |
7713 fi | 7715 fi |
7714 done | 7716 done |