From: Dan Fandrich Date: Fri, 9 Aug 2024 00:08:34 +0000 (-0700) Subject: Replace nonportable grep -o with awk X-Git-Tag: curl-8_10_0~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e48d8821ab1d9ff8337f1f64d7f816cc9c974288;p=thirdparty%2Fcurl.git Replace nonportable grep -o with awk This stops an error shown at the end of configure on systems with POSIX grep and fixes the warning it's trying to convey. Closes #14469 --- diff --git a/configure.ac b/configure.ac index b059be35df..b8b71501af 100644 --- a/configure.ac +++ b/configure.ac @@ -5212,7 +5212,8 @@ AC_MSG_NOTICE([Configured to build curl/libcurl: Features: ${SUPPORT_FEATURES} ]) -non13=`echo "$TLSCHOICE" | $EGREP -io 'bearssl|secure-transport'`; +# grep -o would simplify this, but is nonportable +[non13=`echo "$TLSCHOICE" | $AWK '{split("bearssl secure-transport", a); for (i in a) if(match(tolower($0), a[i])) print a[i];}'`] if test -n "$non13"; then for a in $non13; do AC_MSG_WARN([$a is enabled for TLS but it does not support TLS 1.3])