Bug 491325: Redirect stderr of 'cat' to /dev/null in configure.in's check for GCC pipe support. r=ted

This commit is contained in:
Daniel Holbert 2009-05-05 10:54:38 -07:00
parent 4abeae3f2e
commit 5c46154ce5
2 changed files with 2 additions and 2 deletions

View File

@ -7062,7 +7062,7 @@ if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
echo '#include <stdio.h>' > dummy-hello.c
echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c
${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
cat dummy-hello.s | ${AS_BIN} -o dummy-hello.S - 2>&5
cat dummy-hello.s 2> /dev/null | ${AS_BIN} -o dummy-hello.S - 2>&5
if test $? = 0; then
_res_as_stdin="yes"
else

View File

@ -4484,7 +4484,7 @@ if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
echo '#include <stdio.h>' > dummy-hello.c
echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c
${CC} -S dummy-hello.c -o dummy-hello.s 2>&5
cat dummy-hello.s | ${AS_BIN} -o dummy-hello.S - 2>&5
cat dummy-hello.s 2> /dev/null | ${AS_BIN} -o dummy-hello.S - 2>&5
if test $? = 0; then
_res_as_stdin="yes"
else