krb5 commit: Avoid using grep -q in configure.in
Greg Hudson
ghudson at MIT.EDU
Thu Nov 15 14:27:57 EST 2012
https://github.com/krb5/krb5/commit/2e002b96f5ce0a78d65b7f0c9e70c352788dea78
commit 2e002b96f5ce0a78d65b7f0c9e70c352788dea78
Author: Greg Hudson <ghudson at mit.edu>
Date: Thu Nov 15 14:26:23 2012 -0500
Avoid using grep -q in configure.in
grep -q isn't as portable as we would like, so don't use it.
src/configure.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/configure.in b/src/configure.in
index 5a1539c..faf93a1 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1265,7 +1265,7 @@ if test "x$with_krb5_config" != xno; then
if test "x$with_krb5_config" = xyes; then
with_krb5_config=krb5-config
fi
- if $with_krb5_config --help 2>&1 | grep -q defccname; then
+ if $with_krb5_config --help 2>&1 | grep defccname >/dev/null; then
AC_MSG_NOTICE([Using $with_krb5_config for build defaults])
: "${DEFCCNAME=`$with_krb5_config --defccname`}"
: "${DEFKTNAME=`$with_krb5_config --defktname`}"
More information about the cvs-krb5
mailing list