diff options
author | 2008-07-16 15:38:06 +0000 | |
---|---|---|
committer | 2008-07-16 15:38:06 +0000 | |
commit | fb01819aba80bee6b5b911373cb35909fe05ff50 (patch) | |
tree | d5591f9911e830d9a97e3ed873994d1b32e8391c | |
parent | 4d16c72fa0f9cad215b44092769561cf265ee8d9 (diff) |
Replace output redirection with grep by POSIX standard options.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27295 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2602,7 +2602,7 @@ echores "$_langinfo" echocheck "language" test -z "$_language" && _language=$LINGUAS _language=`echo $_language | tr , " "` -echo $_language | grep all > /dev/null || LANGUAGES="$_language en" +echo $_language | grep -q all || LANGUAGES="$_language en" for lang in $_language ; do test "$lang" = all && lang=en if test -f "help/help_mp-${lang}.h" ; then @@ -6670,7 +6670,7 @@ echocheck "zr" if test "$_zr" = auto ; then #36067's seem to identify themselves as 36057PQC's, so the line #below should work for 36067's and 36057's. - if grep -e "Multimedia video controller: Zoran Corporation ZR36057" /proc/pci > /dev/null 2>&1; then + if grep -q -s -e "Multimedia video controller: Zoran Corporation ZR36057" /proc/pci ; then _zr=yes else _zr=no @@ -7125,7 +7125,7 @@ short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B int main(void) { return (int)ascii_name; } EOF if cc_check ; then - if strings $TMPEXE | grep -l MPlayerBigEndian >/dev/null ; then + if strings $TMPEXE | grep -q -l MPlayerBigEndian ; then _big_endian=yes else _big_endian=no @@ -7238,7 +7238,7 @@ if test "$_gui" = yes ; then # Required libraries if test "$_libavcodec" != yes || - ! echo $_libavdecoders | grep PNG_DECODER >/dev/null 2>&1 ; then + ! echo $_libavdecoders | grep -q PNG_DECODER ; then die "The GUI requires libavcodec with PNG support (needs zlib)." fi test "$_freetype" = no && test "$_bitmap_font" = no && \ @@ -7842,7 +7842,7 @@ ff_config_enable () { _nprefix=$3; test -z "$_nprefix" && _nprefix='CONFIG' for part in $1; do - if ` echo $2 | grep -E "(^| )$part($| )" > /dev/null `; then + if ` echo $2 | grep -q -E "(^| )$part($| )" `; then echo "#define ${_nprefix}_$part 1" echo "#define ENABLE_$part 1" else |