summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-10 16:58:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-10 16:58:35 +0000
commitbdb05aa392c6931872e085baee6e4b2b01872a8e (patch)
treec68202904641db388084e23140f4fd60472be07b /autoconf
parent017bc0fca699f3319f87cb28d04e2d7321d17157 (diff)
Add a --enable-clang-plugin-support option to configure.
This will replace the now badly named CLANG_IS_PRODUCTION. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 9bebdaa529e..dd6fc860151 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -641,6 +641,20 @@ case "$enableval" in
*) AC_MSG_ERROR([Invalid setting for --enable-clang-arcmt. Use "yes" or "no"]) ;;
esac
+dnl --enable-clang-plugin-support: check whether to enable plugins in clang
+clang_plugin_support="yes"
+AC_ARG_ENABLE(clang-plugin-support,
+ AS_HELP_STRING([--enable-clang-plugin-support],
+ [Enable plugin support in clang (default is YES)]),
+ clang_plugin_support="$enableval",
+ enableval="yes")
+case "$enableval" in
+ yes) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]) ;;
+ no) AC_SUBST(CLANG_PLUGIN_SUPPORT,[0]) ;;
+ default) AC_SUBST(CLANG_PLUGIN_SUPPORT,[1]);;
+ *) AC_MSG_ERROR([Invalid setting for --enable-clang-plugin-support. Use "yes" or "no"]) ;;
+esac
+
dnl --enable-clang-static-analyzer: check whether to enable static-analyzer
clang_static_analyzer="yes"
AC_ARG_ENABLE(clang-static-analyzer,