Commit 417737da authored by Rob Latham's avatar Rob Latham
Browse files

switch bwtree on and off at configure time

parent 63f324d2
......@@ -45,6 +45,20 @@ AC_TYPE_SSIZE_T
AC_FUNC_MALLOC
AC_FUNC_REALLOC
bwtree_backend=yes
AC_ARG_ENABLE([bwtree],
AS_HELP_STRING([--disable-bwtree], [Disable BwTree as server backend. Will use Berkely DB if disabled (default is no) ]),
[bwtree_backend=${enableval}], [bwtree_backend=yes]
)
if test "x${bwtree_backend}" != xyes ; then
AC_DEFINE([DISABLE_BWTREE], 1, [do not use BwTree backend])
AC_CHECK_HEADERS([db.h], ,
AC_ERROR("Could not find alternate backend") )
LIBS="${LIBS} -ldb"
fi
AC_CONFIG_FILES([Makefile maint/kv-client.pc maint/kv-server.pc])
AC_OUTPUT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment