summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-06-01 17:46:32 +0200
committerMarcel Raad <raad@teamviewer.com>2017-06-01 17:47:37 +0200
commit5e796c5e94e442797b6fe93aa81ff32b41dfb715 (patch)
tree078c43cce6832405d24852fc97e685b6f47b305d /m4
parent5598b0bd63f690c151074494ce47ef872f004ab4 (diff)
downloadcurl-5e796c5e94e442797b6fe93aa81ff32b41dfb715.tar.gz
curl-compilers.m4: escape square brackets in regex
Otherwise, they are removed in the final configure file. Also changed sed to "$SED" like in most other calls in this file.
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-compilers.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index dcca88493..88e9d67ba 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -84,7 +84,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
if test "$curl_cv_have_def___clang__" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="CLANG"
- clangver=`$CC -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/"`
+ clangver=`$CC -v 2>&1 | grep version | "$SED" 's/.*version \(@<:@0-9@:>@*\.@<:@0-9@:>@*\).*/\1/'`
clangvhi=`echo $clangver | cut -d . -f1`
clangvlo=`echo $clangver | cut -d . -f2`
compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`