From: Ruben Kerkhof Date: Wed, 3 Aug 2016 15:31:08 +0000 (+0200) Subject: grep -q is not portable X-Git-Tag: collectd-5.6.0~122 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=437ddc0a0594e825bfbf44f318a722157f9279a4;p=collectd.git grep -q is not portable Solaris grep doesn't have -q Use the grep we detected with AC_PROG_EGREP and just redirect stdout. --- diff --git a/configure.ac b/configure.ac index b1c83013..45f5fafa 100644 --- a/configure.ac +++ b/configure.ac @@ -83,7 +83,7 @@ AC_PATH_PROG([PROTOC], [protoc]) have_protoc3="no" if test "x$PROTOC" != "x"; then AC_MSG_CHECKING([for protoc 3.0.0+]) - if $PROTOC --version | grep -q libprotoc.3; then + if $PROTOC --version | $EGREP libprotoc.3 >/dev/null; then protoc3="yes (`$PROTOC --version`)" have_protoc3="yes" else