summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-07-04 03:55:25 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-07-04 03:55:25 +0000
commitcc4f8bcedc44920ce0a50619f4f667b28b40dffa (patch)
tree4ed15ba805f64fc1c6a5d74101547bb044088c08 /autoconf
parent86a3510a68928885412a00e1698ab0297dcaf199 (diff)
downloadllvm-cc4f8bcedc44920ce0a50619f4f667b28b40dffa.tar.gz
llvm-cc4f8bcedc44920ce0a50619f4f667b28b40dffa.tar.bz2
llvm-cc4f8bcedc44920ce0a50619f4f667b28b40dffa.tar.xz
LLVMC can be now compiled w/o dynamic plugin support.
Controlled via the --enable-llvmc-dynamic-plugins option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 3812222c6d..6b3c4caac0 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -605,12 +605,23 @@ AC_ARG_ENABLE(llvmc-dynamic,AS_HELP_STRING(
--enable-llvmc-dynamic,
[Link LLVMC dynamically (default is NO, unless on Win32)]),,
enableval=$llvmc_dynamic)
-if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1; then
+if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[ENABLE_LLVMC_DYNAMIC=1]])
else
AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[]])
fi
+dnl --enable-llvmc-dynamic-plugins : should LLVMC support dynamic plugins?
+AC_ARG_ENABLE(llvmc-dynamic-plugins,AS_HELP_STRING(
+--enable-llvmc-dynamic-plugins,
+[Enable dynamic LLVMC plugins (default is YES)]),,
+enableval=yes)
+if test ${enableval} = "yes" ; then
+ AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[ENABLE_LLVMC_DYNAMIC_PLUGINS=1]])
+else
+ AC_SUBST(ENABLE_LLVMC_DYNAMIC_PLUGINS,[[]])
+fi
+
dnl===-----------------------------------------------------------------------===
dnl===
dnl=== SECTION 4: Check for programs we need and that they are the right version