]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Avoid using grep -q in configure.in
authorGreg Hudson <ghudson@mit.edu>
Thu, 15 Nov 2012 19:26:23 +0000 (14:26 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 15 Nov 2012 19:26:23 +0000 (14:26 -0500)
grep -q isn't as portable as we would like, so don't use it.

src/configure.in

index 5a1539c096cc15c20155e8d2c293fcb3c8061c25..faf93a1c9469bf4b8b7505deaa25e7c1e0738fe3 100644 (file)
@@ -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`}"