diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-03 03:52:47 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-07-03 03:52:47 +0000 |
commit | 2373c99433b634b8cf9c4deb28d68d1be255a564 (patch) | |
tree | 14674fa664e00f7e1cbb89eb246b0a9095844591 /autoconf | |
parent | 895f32c212032e546c743bf0a815044981521160 (diff) | |
download | llvm-2373c99433b634b8cf9c4deb28d68d1be255a564.tar.gz llvm-2373c99433b634b8cf9c4deb28d68d1be255a564.tar.bz2 llvm-2373c99433b634b8cf9c4deb28d68d1be255a564.tar.xz |
Add --enable-llvmc-dynamic configure option.
Controls whether libCompilerDriver should be loaded dynamically. By default this
is needed only on Win32, to make dynamic plugins work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 0ed3a26f6c..bb9c9d84b0 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -593,6 +593,24 @@ case "$enableval" in *) AC_MSG_ERROR([Invalid setting for --enable-libffi. Use "yes" or "no"]) ;; esac +dnl Only Windows needs dynamic libCompilerDriver to support plugins. +if test "$llvm_cv_os_type" = "Win32" ; then + llvmc_dynamic="yes" +else + llvmc_dynamic="no" +fi + +dnl --enable-llvmc-dynamic : should LLVMC link libCompilerDriver dynamically? +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} = "no"; then + AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[]]) +else + AC_SUBST(ENABLE_LLVMC_DYNAMIC,[[ENABLE_LLVMC_DYNAMIC=1]]) +fi + dnl===-----------------------------------------------------------------------=== dnl=== dnl=== SECTION 4: Check for programs we need and that they are the right version |