Commit d3788e17 authored by ian@well-typed.com's avatar ian@well-typed.com

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 ]'.
parent 50b5150b
......@@ -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
......
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