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
12
configure.ac
12
configure.ac
|
@ -2021,13 +2021,19 @@ AC_HELP_STRING([--with-llvm-libs=[[[DIR]]]], [Path to libllvm library directory]
|
|||
LLVM_LDFLAGS="-L/usr/lib/llvm-9/lib"
|
||||
])
|
||||
|
||||
AC_CHECK_LIB([LLVM], [LLVMBuildAnd],
|
||||
PKG_CHECK_MODULES(LLVM, [LLVM],
|
||||
[
|
||||
have_libllvm="yes"
|
||||
LLVM_LIBS="-lLLVM"
|
||||
], [
|
||||
have_libllvm="no"
|
||||
AC_MSG_WARN([Unable to find LLVM compiler infrastructure library on this system.])
|
||||
AC_CHECK_LIB([LLVM], [LLVMBuildAnd],
|
||||
[
|
||||
have_libllvm="yes"
|
||||
LLVM_LIBS="-lLLVM"
|
||||
], [
|
||||
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