Commit 178baee68bd52fd4e73639104ad7d66cbef96601

Authored by aurel32
1 parent db9a16a7

configure: also close stdout when calling cc

Remove some ugly outputs with colorgcc

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5953 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 7 deletions
configure
... ... @@ -499,7 +499,7 @@ cat &gt; $TMPC &lt;&lt;EOF
499 499 int main(void) {}
500 500 EOF
501 501  
502   -if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC 2> /dev/null ; then
  502 +if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
503 503 : C compiler works ok
504 504 else
505 505 echo "ERROR: \"$cc\" either does not exist or does not work"
... ... @@ -515,7 +515,7 @@ cat &gt; $TMPC &lt;&lt;EOF
515 515 int main(void) {}
516 516 EOF
517 517  
518   -if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC 2> /dev/null ; then
  518 +if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
519 519 mingw32="yes"
520 520 fi
521 521  
... ... @@ -641,7 +641,7 @@ int main(int argc, char ** argv){
641 641 }
642 642 EOF
643 643  
644   -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
  644 +if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
645 645 $TMPE && bigendian="yes"
646 646 else
647 647 echo big/little test failed
... ... @@ -885,7 +885,7 @@ cat &gt; $TMPC &lt;&lt; EOF
885 885 #include <brlapi.h>
886 886 int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); }
887 887 EOF
888   - if $cc ${ARCH_CFLAGS} -o $TMPE ${OS_CFLAGS} $TMPC -lbrlapi 2> /dev/null ; then
  888 + if $cc ${ARCH_CFLAGS} -o $TMPE ${OS_CFLAGS} $TMPC -lbrlapi > /dev/null 2> /dev/null ; then
889 889 brlapi=yes
890 890 fi # brlapi compile test
891 891 fi # -z $brlapi
... ... @@ -899,7 +899,7 @@ if test &quot;$curses&quot; = &quot;yes&quot; ; then
899 899 #include <curses.h>
900 900 int main(void) { return curses_version(); }
901 901 EOF
902   - if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses 2> /dev/null ; then
  902 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses > /dev/null 2> /dev/null ; then
903 903 curses=yes
904 904 fi
905 905 fi # test "$curses"
... ... @@ -1186,7 +1186,7 @@ else
1186 1186 #include <byteswap.h>
1187 1187 int main(void) { return bswap_32(0); }
1188 1188 EOF
1189   - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
  1189 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1190 1190 echo "#define HAVE_BYTESWAP_H 1" >> $config_h
1191 1191 fi
1192 1192 cat > $TMPC << EOF
... ... @@ -1195,7 +1195,7 @@ EOF
1195 1195 #include <machine/bswap.h>
1196 1196 int main(void) { return bswap32(0); }
1197 1197 EOF
1198   - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
  1198 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1199 1199 echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h
1200 1200 fi
1201 1201 fi
... ...