0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Add libllvm support check to configure.

This commit is contained in:
Jason Volk 2020-02-03 11:43:58 -08:00
parent 13469512c3
commit cbd95adb49

View file

@ -1833,6 +1833,39 @@ AM_COND_IF([MALLOC_LIBS],
AC_DEFINE(IRCD_ALLOCATOR_USE_DEFAULT, 1, [Use the default allocator])
])
dnl
dnl
dnl libLLVM
dnl
dnl
AC_SUBST(LLVM_CPPFLAGS, [])
AC_SUBST(LLVM_LDFLAGS, [])
AC_SUBST(LLVM_LIBS, [])
AC_ARG_WITH(llvm-includes,
AC_HELP_STRING([--with-llvm-includes=[[[DIR]]]], [Path to libllvm include directory]),
[
LLVM_CPPFLAGS="-isystem $withval"
], [])
AC_ARG_WITH(llvm-libs,
AC_HELP_STRING([--with-llvm-libs=[[[DIR]]]], [Path to libllvm library directory]),
[
LLVM_LDFLAGS="-L$withval"
], [])
AC_CHECK_LIB([LLVM-9], [LLVMBuildAnd],
[
have_libllvm="yes"
LLVM_LIBS="-lLLVM-9"
], [
have_libllvm="no"
AC_MSG_WARN([Unable to find LLVM-9 compiler infrastructure library on this system.])
])
AM_CONDITIONAL([LLVM], [test "x$have_libllvm" = "xyes" ])
dnl
dnl
dnl Additional linkages
@ -2039,6 +2072,7 @@ echo "SSL support ....................... $have_ssl"
echo "Crypto support .................... $have_crypto"
echo "Magic support ..................... $have_magic"
echo "ImageMagick support ............... $have_imagemagick"
echo "LLVM library support .............. $have_libllvm"
echo "Linux AIO support ................. $aio"
echo "Linux io_uring support ............ $io_uring"
echo "Logging level ..................... $LOG_LEVEL"