mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
Make ff_config_enable work with lowercase values.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30920 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f3928b9464
commit
dc440b47d3
6
configure
vendored
6
configure
vendored
@ -8766,10 +8766,12 @@ EOF
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
ff_config_enable () {
|
ff_config_enable () {
|
||||||
|
list=$(echo $1 | tr '[a-z]' '[A-Z]')
|
||||||
|
item=$(echo $2 | tr '[a-z]' '[A-Z]')
|
||||||
_nprefix=$3;
|
_nprefix=$3;
|
||||||
test -z "$_nprefix" && _nprefix='CONFIG'
|
test -z "$_nprefix" && _nprefix='CONFIG'
|
||||||
for part in $1; do
|
for part in $list; do
|
||||||
if $(echo $2 | grep -q -E "(^| )$part($| )"); then
|
if $(echo $item | grep -q -E "(^| )$part($| )"); then
|
||||||
echo "#define ${_nprefix}_$part 1"
|
echo "#define ${_nprefix}_$part 1"
|
||||||
else
|
else
|
||||||
echo "#define ${_nprefix}_$part 0"
|
echo "#define ${_nprefix}_$part 0"
|
||||||
|
Loading…
Reference in New Issue
Block a user