mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
configure: Use PKG_CHECK_MODULES first for libllvm.
This commit is contained in:
parent
0f74e9327d
commit
7601031267
1 changed files with 9 additions and 3 deletions
|
@ -2021,6 +2021,11 @@ AC_HELP_STRING([--with-llvm-libs=[[[DIR]]]], [Path to libllvm library directory]
|
|||
LLVM_LDFLAGS="-L/usr/lib/llvm-9/lib"
|
||||
])
|
||||
|
||||
PKG_CHECK_MODULES(LLVM, [LLVM],
|
||||
[
|
||||
have_libllvm="yes"
|
||||
LLVM_LIBS="-lLLVM"
|
||||
], [
|
||||
AC_CHECK_LIB([LLVM], [LLVMBuildAnd],
|
||||
[
|
||||
have_libllvm="yes"
|
||||
|
@ -2029,6 +2034,7 @@ AC_CHECK_LIB([LLVM], [LLVMBuildAnd],
|
|||
have_libllvm="no"
|
||||
AC_MSG_WARN([Unable to find LLVM compiler infrastructure library on this system.])
|
||||
])
|
||||
])
|
||||
|
||||
AM_CONDITIONAL([LLVM], [test "x$have_libllvm" = "xyes" ])
|
||||
|
||||
|
|
Loading…
Reference in a new issue