summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m410
1 files changed, 6 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b38418bf06..11c95ee017 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1967,10 +1967,12 @@ AC_DEFUN([FIND_LLVM_PROG],[
save_IFS=$IFS
IFS=":;"
for p in ${PATH}; do
- $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 "${LLC}"; then
- break
- fi
+ if [ -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
+ fi
+ fi
done
IFS=$save_IFS
fi