Commit 4897e705 authored by tuncer's avatar tuncer Committed by Austin Seipp

configure.ac: fix test == bashism

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent ed56c023
......@@ -560,7 +560,7 @@ then
# Check whether LLVM backend is default for this platform
"${WithGhc}" conftestghc.hs 2>&1 >/dev/null
res=`./conftestghc`
if test "x$res" == "x%object"
if test "x$res" = "x%object"
then
AC_MSG_RESULT(yes)
echo "Buggy bootstrap compiler"
......@@ -576,14 +576,14 @@ then
# -fllvm is not the default, but set a flag so the Makefile can check
# -for it in the build flags later on
"${WithGhc}" -fforce-recomp -fllvm conftestghc.hs 2>&1 >/dev/null
if test $? == 0
if test $? = 0
then
res=`./conftestghc`
if test "x$res" == "x%object"
if test "x$res" = "x%object"
then
AC_MSG_RESULT(yes)
GHC_LLVM_AFFECTED_BY_9439=1
elif test "x$res" == "x%function"
elif test "x$res" = "x%function"
then
AC_MSG_RESULT(no)
GHC_LLVM_AFFECTED_BY_9439=0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment