Fix usage of `find -perm` in aclocal.m4 (#9697)
authorNicholas Hart <nic@hdb3.net>
Tue, 18 Nov 2014 18:21:03 +0000 (12:21 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 18 Nov 2014 18:21:08 +0000 (12:21 -0600)
Signed-off-by: Austin Seipp <austin@well-typed.com>
aclocal.m4

index 0db231d..68ffd9c 100644 (file)
@@ -2062,7 +2062,7 @@ AC_DEFUN([FIND_LLVM_PROG],[
                 if test "$windows" = YES; then
                     $1=`${FindCmd} "${p}" -type f -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' -or -type l -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1`
                 else
-                    $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`
+                    $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`
                 fi
                 if test -n "$$1"; then
                     break