diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-08-01 09:23:24 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-08-04 18:18:45 -0400 |
commit | 2e031806e7a25d56156c1b2fa2a61d3f73d46402 (patch) | |
tree | 6680a4c83b551dac66330ac781d1b4146657743f /aclocal.m4 | |
parent | 3b31a94df4cf7e55d93dfcad9b96d0f49f4d3f8d (diff) | |
download | haskell-2e031806e7a25d56156c1b2fa2a61d3f73d46402.tar.gz |
configure: Search for LLVM executables with two-number versions
Fedora uses the naming llc-7.0 while Debian uses llc-7. Ensure that both
are found.
Fixes #16990.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 0d564f3885..dd5efdf61a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2112,7 +2112,8 @@ AC_DEFUN([XCODE_VERSION],[ # FIND_LLVM_PROG() # -------------------------------- # Find where the llvm tools are. We have a special function to handle when they -# are installed with a version suffix (e.g., llc-3.1). +# are installed with a version suffix (e.g., llc-7, llc-7.0) and without (e.g. +# llc). # # $1 = the variable to set # $2 = the command to look for @@ -2120,7 +2121,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-$3.0 $2], [:]) if test "$$1" != ":"; then AC_MSG_CHECKING([$$1 is version $3]) if test `$$1 --version | grep -c "version $3"` -gt 0 ; then |