From bc492e47c89a4f5c21bcbab7adcc2c897d48a761 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 25 May 2010 18:50:01 +0000 Subject: configure.ac: Redirect grep stdout, stderr to /dev/null instead of grep -q. libjava: * configure.ac: Redirect grep stdout, stderr to /dev/null instead of grep -q. Use -- instead of grep -e. * configure: Regenerate. gcc: * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout, stderr to /dev/null instead of grep -q. * configure: Regenerate. contrib: * dg-extract-results.sh: Redirect grep output to /dev/null instead of grep -q. From-SVN: r159840 --- libjava/configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libjava/configure.ac') diff --git a/libjava/configure.ac b/libjava/configure.ac index 5376a01..a359afe 100644 --- a/libjava/configure.ac +++ b/libjava/configure.ac @@ -1778,8 +1778,8 @@ AM_CONDITIONAL(ANONVERSCRIPT, test "$libjava_cv_anon_version_script" = yes) # Check if linker supports static linking on a per library basis LD_START_STATIC_SPEC= LD_FINISH_STATIC_SPEC= -if $LD --help 2>&1 | grep -q -e -call_shared ; then - if $LD --help 2>&1 | grep -q -e -non_shared ; then +if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then + if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}' LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}' fi -- cgit v1.1