Merge pull request #3306 from bluca/radix_autotools

Problem: radix tree never used in autotools builds
This commit is contained in:
Doron Somech 2018-11-13 16:54:45 +02:00 committed by GitHub
commit d349f93c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -819,6 +819,21 @@ if test "x$enable_libunwind" != "xno"; then
])
fi
AC_ARG_ENABLE([radix-tree],
AS_HELP_STRING([--enable-radix-tree],
[Use radix tree implementation to manage subscriptions [default=DRAFT]]),
[radix_tree=$enableval],
[radix_tree=$enable_drafts])
AM_CONDITIONAL([ENABLE_RADIX_TREE], [test x$radix_tree != xno])
if test "x$radix_tree" = "xyes"; then
AC_MSG_NOTICE([Using radix tree implementation to manage subscriptions])
AC_DEFINE(ZMQ_USE_RADIX_TREE, 1, [Use radix tree implementation to manage subscriptions])
else
AC_MSG_NOTICE([Using mtree implementation to manage subscriptions])
fi
# See if clang-format is in PATH; the result unblocks the relevant recipes
WITH_CLANG_FORMAT=""
AS_IF([test x"$CLANG_FORMAT" = x],