[Chapel Merge] Add better checking in find-llvm-config.sh

Branch: refs/heads/master
Revision: 6078398
Author: mppf
Log Message:

Merge pull request #16432 from mppf/add-llvm-system-version-check

Add better checking in find-llvm-config.sh

Resolves #16325

Updates find-llvm-config.sh to check that the found llvm-config
has a compatible version.

And, while there, update find-llvm-config.sh to
handle checking for multiple compatible LLVM versions
(there is currently just 1 version allowed but we expect
to change that).

Reviewed by @ronawho - thanks!

  • [x] make and make check and hellos work with CHPL_LLVM=system
  • [x] manual testing of find-llvm-config.sh for multiple versions that are missing
  • [x] reasonable error on make when I change the LLVM_VERSION file to something not installed

Modified Files:
M third-party/llvm/Makefile.share-system
M third-party/llvm/find-llvm-config.sh

Compare: https://github.com/chapel-lang/chapel/compare/9355aa5bb175...6078398f2c68