Skip to content

Commit

Permalink
configure: Catch case where LLVM tools can't be found
Browse files Browse the repository at this point in the history
Previously we didn't specify the prog-not-found value passed to
AC_CHECK_TOOLS.  Reported by @snowleopard in
snowleopard/hadrian#415.

Test Plan: validate

Reviewers: austin, hvr

Subscribers: rwbarton, thomie, snowleopard, erikd

Differential Revision: https://phabricator.haskell.org/D3992
  • Loading branch information
bgamari committed Sep 26, 2017
1 parent 9738e8b commit 49c1a20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ AC_DEFUN([XCODE_VERSION],[
#
AC_DEFUN([FIND_LLVM_PROG],[
# Test for program with and without version name.
AC_CHECK_TOOLS([$1], [$2-$3 $2])
AC_CHECK_TOOLS([$1], [$2-$3 $2], [:])
if test "$$1" != ":"; then
AC_MSG_CHECKING([$$1 is version $3])
if test `$$1 --version | grep -c "version $3"` -gt 0 ; then
Expand All @@ -2044,6 +2044,8 @@ AC_DEFUN([FIND_LLVM_PROG],[
AC_MSG_RESULT(no)
$1=""
fi
else
$1=""
fi
])

Expand Down

0 comments on commit 49c1a20

Please sign in to comment.