summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-28 12:52:59 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-28 13:12:44 +0000
commitd3788e17430f05390ae59b31f62ebae19692b00f (patch)
treeace067824d64c312388df960401bccb1bf233eaf /aclocal.m4
parent50b5150b4fe714cc591cad16dbc38ccce36a7f06 (diff)
downloadhaskell-d3788e17430f05390ae59b31f62ebae19692b00f.tar.gz
Fix some m4/shell syntax in aclocal.m4, spotted by Jan Stolarek
[ ] is m4 syntax, so we need to use 'test foo' rather than '[ foo ]'.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 268e6311f5..415388d827 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1969,7 +1969,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
save_IFS=$IFS
IFS=":;"
for p in ${PATH}; do
- if [ -d "${p}" ]; then
+ if test -d "${p}"; then
$1=`${FindCmd} "${p}" -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' -or -type l -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1`
if test -n "$1"; then
break