5e395b1f |
AC_ARG_WITH([system-llvm], [AC_HELP_STRING([--with-system-llvm],
[use system llvm instead of built-in, uses full path to llvm-config
@<:@default=/usr/local or /usr if not found in /usr/local@:>@])], |
b9763c42 |
[case "$withval" in
yes)
system_llvm="default"
;;
no)
system_llvm="built-in"
;;
*)
system_llvm=$withval
esac
], [system_llvm="built-in"])
|
9a022125 |
AC_ARG_ENABLE([llvm],AC_HELP_STRING([--enable-llvm], |
5e395b1f |
[enable 'llvm' JIT/verifier support @<:@default=auto@:>@]), |
b9763c42 |
[enable_llvm=$enableval],
[
if test "x$system_llvm" != "xbuilt-in"; then
enable_llvm="yes"
else
enable_llvm="auto"
fi
]) |
9a022125 |
if test "$enable_llvm" != "no"; then
dnl Try to configure subdir, optionally
AC_CONFIG_SUBDIRS_OPTIONAL([libclamav/c++]) |
b9763c42 |
else
system_llvm="none" |
9a022125 |
fi |