configure: add print_enabled() function
The print_enabled() function prints all elements in a list which are enabled. Originally committed as revision 24119 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a9ef1aef79
commit
31c0121db7
13
configure
vendored
13
configure
vendored
@ -510,6 +510,15 @@ print_config(){
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_enabled(){
|
||||||
|
test "$1" = -n && end=" " && shift || end="\n"
|
||||||
|
suf=$1
|
||||||
|
shift
|
||||||
|
for v; do
|
||||||
|
enabled $v && printf "%s$end" ${v%$suf};
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
append(){
|
append(){
|
||||||
var=$1
|
var=$1
|
||||||
shift
|
shift
|
||||||
@ -2829,9 +2838,7 @@ echo
|
|||||||
for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
|
for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf indev outdev; do
|
||||||
echo "Enabled ${type}s:"
|
echo "Enabled ${type}s:"
|
||||||
eval list=\$$(toupper $type)_LIST
|
eval list=\$$(toupper $type)_LIST
|
||||||
for part in $list; do
|
print_enabled '_*' $list | sort | pr -3 -t
|
||||||
enabled $part && echo ${part%_*}
|
|
||||||
done | sort | pr -3 -t
|
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user