Work around Solaris tr not understanding "tr a-z A-Z" as it should.
authorDiego Biurrun <diego@biurrun.de>
Wed, 30 Aug 2006 23:55:43 +0000 (23:55 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 30 Aug 2006 23:55:43 +0000 (23:55 +0000)
Originally committed as revision 6135 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 2b3d452..6c9065f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2154,9 +2154,10 @@ else
 fi
 
 
+# "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z"
 for codec in $DECODER_LIST $ENCODER_LIST $PARSER_LIST $DEMUXER_LIST $MUXER_LIST; do
-    echo "#define CONFIG_`echo $codec | tr a-z A-Z` 1" >> $TMPH
-    echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak
+    echo "#define CONFIG_`echo $codec | tr '[a-z]' '[A-Z]'` 1" >> $TMPH
+    echo "CONFIG_`echo $codec | tr '[a-z]' '[A-Z]'`=yes" >> config.mak
 done
 
 # Do not overwrite config.h if unchanged to avoid superfluous rebuilds.