summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorARATA Mizuki <minorinoki@gmail.com>2022-11-11 18:13:01 +0900
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-15 21:36:03 -0500
commit94549f8fd6b40072a58125cffd21e387e709dd9c (patch)
treeca04e265e94e19b0d5fbb3535d5852f395cd105f /m4
parent65ce43cc647109fb18c8703563cf25fc8cf103fc (diff)
downloadhaskell-94549f8fd6b40072a58125cffd21e387e709dd9c.tar.gz
configure: Don't check for an unsupported version of LLVM
The upper bound is not inclusive. Fixes #22449
Diffstat (limited to 'm4')
-rw-r--r--m4/find_llvm_prog.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/find_llvm_prog.m4 b/m4/find_llvm_prog.m4
index 353765a0fd..ece1fafee0 100644
--- a/m4/find_llvm_prog.m4
+++ b/m4/find_llvm_prog.m4
@@ -11,7 +11,7 @@
#
AC_DEFUN([FIND_LLVM_PROG],[
# Test for program with and without version name.
- PROG_VERSION_CANDIDATES=$(for llvmVersion in `seq $4 -1 $3`; do echo "$2-$llvmVersion $2-$llvmVersion.0 $2$llvmVersion"; done)
+ PROG_VERSION_CANDIDATES=$(for llvmVersion in `seq $(($4-1)) -1 $3`; do echo "$2-$llvmVersion $2-$llvmVersion.0 $2$llvmVersion"; done)
AC_CHECK_TOOLS([$1], [$PROG_VERSION_CANDIDATES $2], [])
AS_IF([test x"$$1" != x],[
PROG_VERSION=`$$1 --version | awk '/.*version [[0-9\.]]+/{for(i=1;i<=NF;i++){ if(\$i ~ /^[[0-9\.]]+$/){print \$i}}}'`