summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPHO <pho@cielonegro.org>2022-02-08 16:24:30 +0900
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-09 03:57:37 -0500
commit62fa126d0f04c507e622c1f0356f26c9692e2b8e (patch)
treed9b5116e625d9c23fd02c151f9b98e7414ffca15
parenta172be07e3dce758a2325104a3a37fc8b1d20c9c (diff)
downloadhaskell-62fa126d0f04c507e622c1f0356f26c9692e2b8e.tar.gz
Fix a portability issue in m4/find_llvm_prog.m4
`test A == B' is a Bash extension, which doesn't work on platforms where /bin/sh is not Bash.
-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 dc620ae470..ea2031a9f6 100644
--- a/m4/find_llvm_prog.m4
+++ b/m4/find_llvm_prog.m4
@@ -15,7 +15,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
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}}}'`
- AS_IF([test x"$PROG_VERSION" == x],
+ AS_IF([test x"$PROG_VERSION" = x],
[AC_MSG_RESULT(no)
$1=""
AC_MSG_NOTICE([We only support llvm $3 to $4 (no version found).])],