diff --git a/aclocal.m4 b/aclocal.m4
index da283284abd2827d7f1990e1ec64ce1b8bb9ec8f..55ce05701230114ede38e14c5cb034d11dd6485e 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2527,7 +2527,7 @@ AC_DEFUN([FIND_LD],[
 # Sets $result to 0 if not affected, 1 otherwise
 AC_DEFUN([CHECK_FOR_GOLD_T22266],[
     AC_MSG_CHECKING([for ld.gold object merging bug (binutils 22266)])
-    if ! $1 --version | grep -v -q "GNU gold"; then
+    if ! $1 --version | grep -q "GNU gold"; then
         # Not gold
         result=0
     elif test "$cross_compiling" = "yes"; then