Ramiro Polla <[EMAIL PROTECTED]> added the comment:
New patch that produces a much cleaner output.
There must be a way to not require the spaces variable, but that's the best I
could do for now.
_____________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue17>
_____________________________________________________
Index: configure
===================================================================
--- configure (revision 10540)
+++ configure (working copy)
@@ -922,11 +922,27 @@
exit 1
}
+linesize=`stty size 2>/dev/null | cut -d ' ' -f 2`
+test -z "$linesize" && linesize=80
+spaces=" "
+
show_list() {
+ sortedlist=`
for part in $*; do
echo $part | sed 's/_[^_]*$//'
- done | sort
- exit 0
+ done | sort`
+ line=""
+ for part in $sortedlist; do
+ let "length=8-(${#part}%8)"
+ tmpline="$line$part${spaces:0:$length}"
+ if test ${#tmpline} -gt $linesize; then
+ echo -e "$line"
+ line="$part${spaces:0:$length}"
+ else
+ line="$tmpline"
+ fi
+ done
+ echo -e "$line"
}
for opt do
@@ -1007,6 +1023,7 @@
is_in $NAME $COMPONENT_LIST || die_unknown $opt
NAME=$(toupper ${NAME%s})
eval show_list \$${NAME}_LIST
+ exit 0
;;
--help) show_help
;;
@@ -1850,6 +1867,19 @@
echo "License: GPL" ||
echo "License: LGPL"
+echo
+for type in decoder encoder parser demuxer muxer protocol bsf; do
+ echo "Enabled ${type}s:"
+ ucname="\$`toupper $type`_LIST"
+ list="`eval echo $ucname`"
+ partlist=""
+ for part in $list; do
+ enabled $part && partlist="$partlist $part"
+ done
+ show_list $partlist
+ echo
+done
+
echo "Creating config.mak and config.h..."
echo "# Automatically generated by configure - do not modify!" > config.mak