]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Use better grep for -e -flag test.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Jan 2016 13:41:33 +0000 (13:41 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 11 Jan 2016 13:41:33 +0000 (13:41 +0000)
git-svn-id: file:///svn/unbound/trunk@3597 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index 82a3a17bc39181c94145863051cebfc3894cf866..6cab7e2ffb38c57d8ceb7a6fba71e6d12caefca6 100755 (executable)
--- 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'
index af69f9ce6eff16535299d4da9655fc7220813054..44d732e46b48714202a06080d9148ed4c7049066 100644 (file)
@@ -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 <pthread.h>])
 
-               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