1
mirror of https://github.com/mpv-player/mpv synced 2024-09-16 22:19:59 +02:00

Add an optional third parameter to ff_config_enable in preparation

of next patches (allows to define e.g. ARCH_ instead of CONFIG_).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23584 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-06-19 13:54:48 +00:00
parent ba99ef4655
commit 38a9c8ff7a

4
configure vendored
View File

@ -7704,9 +7704,11 @@ EOF
############################################################################# #############################################################################
ff_config_enable () { ff_config_enable () {
_nprefix=$3;
test -z "$_nprefix" && _nprefix='CONFIG'
for part in $1; do for part in $1; do
if ` echo $2 | grep $part > /dev/null `; then if ` echo $2 | grep $part > /dev/null `; then
echo "#define CONFIG_$part 1" echo "#define ${_nprefix}_$part 1"
echo "#define ENABLE_$part 1" echo "#define ENABLE_$part 1"
else else
echo "#define ENABLE_$part 0" echo "#define ENABLE_$part 0"