summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index e50d008b5b..45c94f784b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1975,15 +1975,17 @@ AC_DEFUN([XCODE_VERSION],[
AC_DEFUN([FIND_LLVM_PROG],[
# Test for program with version name.
FP_ARG_WITH_PATH_GNU_PROG_OPTIONAL_NOTARGET([$1], [$2], [$3-$4])
- if test "$$1" = ""; then
+ if test -z "$$1"; then
# Test for program without version name.
FP_ARG_WITH_PATH_GNU_PROG_OPTIONAL_NOTARGET([$1], [$2], [$3])
- AC_MSG_CHECKING([$$1 is version $4])
- if test `$$1 --version | grep -c "version $4"` -gt 0 ; then
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(no)
- $1=""
+ if test -n "$$1"; then
+ AC_MSG_CHECKING([$$1 is version $4])
+ if test `$$1 --version | grep -c "version $4"` -gt 0 ; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ $1=""
+ fi
fi
fi
])