changeset 30878:bdf505839bb1

Make ff_config_enable work with lowercase values.
author diego
date Wed, 17 Mar 2010 13:34:33 +0000
parents 447a58cf1611
children cb432a3b5b75
files configure
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Mar 17 13:20:06 2010 +0000
+++ b/configure	Wed Mar 17 13:34:33 2010 +0000
@@ -8766,10 +8766,12 @@
 #############################################################################
 
 ff_config_enable () {
+list=$(echo $1 | tr '[a-z]' '[A-Z]')
+item=$(echo $2 | tr '[a-z]' '[A-Z]')
 _nprefix=$3;
 test -z "$_nprefix" && _nprefix='CONFIG'
-for part in $1; do
-  if $(echo $2 | grep -q -E "(^| )$part($| )"); then
+for part in $list; do
+  if $(echo $item | grep -q -E "(^| )$part($| )"); then
     echo "#define ${_nprefix}_$part 1"
   else
     echo "#define ${_nprefix}_$part 0"