mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-10-29 19:32:24 +00:00
check that LLVM is version 10.0.0 ort greater
This commit is contained in:
parent
23027108b5
commit
1e64f6ba6f
16
configure.ac
16
configure.ac
@ -136,11 +136,17 @@ AC_ARG_ENABLE([llvm],
|
||||
AS_HELP_STRING([--enable-llvm],[Support for JIT using LLVM]),
|
||||
[], [enable_llvm=no])
|
||||
AS_IF([test x"$enable_llvm" = "xyes"], [
|
||||
AC_DEFINE([HAVE_LLVM], [1], [Define HAVE_LLVM])
|
||||
CFLAGS="$CFLAGS -I$(llvm-config --includedir)"
|
||||
CXXFLAGS="$CXXFLAGS -I$(llvm-config --includedir)"
|
||||
LIBS="$LIBS $(llvm-config --libs)"
|
||||
LDFLAGS="$LDFLAGS $(llvm-config --ldflags)"
|
||||
LLVM_VERSION="$(llvm-config --version)"
|
||||
AX_COMPARE_VERSION([$LLVM_VERSION], [ge], [10.0.0], [
|
||||
AC_DEFINE([HAVE_LLVM], [1], [Define HAVE_LLVM])
|
||||
CFLAGS="$CFLAGS -I$(llvm-config --includedir)"
|
||||
CXXFLAGS="$CXXFLAGS -I$(llvm-config --includedir)"
|
||||
LIBS="$LIBS $(llvm-config --libs)"
|
||||
LDFLAGS="$LDFLAGS $(llvm-config --ldflags)"
|
||||
echo "Found llvm version=$LLVM_VERSION"
|
||||
],[
|
||||
AC_MSG_ERROR( [Requires LLVM_VERSION >= 10.0.0] )
|
||||
])
|
||||
])
|
||||
|
||||
dnl from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user