[FFmpeg-cvslog] r19604 - trunk/configure

mru subversion
Thu Aug 6 17:45:25 CEST 2009


Author: mru
Date: Thu Aug  6 17:45:25 2009
New Revision: 19604

Log:
configure: allow comma-separated list in --enable/disable-thing=name

The argument to these options is now a comma-separated list of shell
patterns, e.g. --disable-decoder='indeo*,rv*'

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Thu Aug  6 17:45:22 2009	(r19603)
+++ trunk/configure	Thu Aug  6 17:45:25 2009	(r19604)
@@ -1390,10 +1390,11 @@ for opt do
     --enable-debug=*) debuglevel="$optval"
     ;;
     --enable-*=*|--disable-*=*)
-    eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/')
+    eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
     is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
     eval list=\$$(toupper $thing)_LIST
-    $action $(filter "${optval}_${thing}" $list)
+    name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing}
+    $action $(filter "$name" $list)
     ;;
     --enable-?*|--disable-?*)
     eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')



More information about the ffmpeg-cvslog mailing list