projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9521a59
)
grep -q is not portable
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 3 Aug 2016 15:31:08 +0000
(17:31 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 3 Aug 2016 15:31:08 +0000
(17:31 +0200)
Solaris grep doesn't have -q
Use the grep we detected with AC_PROG_EGREP and just redirect stdout.
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
b1c8301
..
45f5faf
100644
(file)
--- 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