From: Wouter Wijngaards Date: Mon, 11 Jan 2016 13:41:33 +0000 (+0000) Subject: Use better grep for -e -flag test. X-Git-Tag: release-1.5.8~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a2f45f418867a2f55c57802e8ccb1db74c2965e;p=thirdparty%2Funbound.git Use better grep for -e -flag test. git-svn-id: file:///svn/unbound/trunk@3597 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/configure b/configure index 82a3a17bc..6cab7e2ff 100755 --- a/configure +++ b/configure @@ -16362,7 +16362,7 @@ _ACEOF fi - if echo "$CFLAGS" | grep -e "-pthread" >/dev/null; then + if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5 $as_echo_n "checking if -pthread unused during linking... " >&6; } # catch clang warning 'argument unused during compilation' diff --git a/configure.ac b/configure.ac index af69f9ce6..44d732e46 100644 --- a/configure.ac +++ b/configure.ac @@ -419,7 +419,7 @@ if test x_$withval != x_no; then ub_have_pthreads=yes AC_CHECK_TYPES([pthread_spinlock_t, pthread_rwlock_t],,,[#include ]) - if echo "$CFLAGS" | grep -e "-pthread" >/dev/null; then + if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then AC_MSG_CHECKING([if -pthread unused during linking]) # catch clang warning 'argument unused during compilation' AC_LANG_CONFTEST([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT