Commit 61569e50 authored by Rob Latham's avatar Rob Latham
Browse files

only build bwtree if needed

one purpose of the alternate backends is to get us building when we
don't have gcc5 or newer.  If we always build bwtree, then we're not
helping things.  Now BwTree is only built if it's the selected backend
parent ae917a4b
......@@ -20,8 +20,12 @@ lib_libkvgroupclient_la_SOURCES = src/kvgroup-client.cc
lib_libkvgroupclient_la_CPPFLAGS = ${CPPFLAGS}
lib_libkvserver_la_SOURCES = src/kv-server.cc \
src/datastore.cc \
src/BwTree/src/bwtree.cpp
src/datastore.cc
if BUILD_BWTREE
lib_libkvserver_la_SOURCES += src/BwTree/src/bwtree.cpp
endif
include_HEADERS = src/sds-keyval.h \
src/sds-keyval-group.h
......
......@@ -103,6 +103,8 @@ if test "x${bwtree_backend}" == xyes ; then
berkeleydb_backend=no
leveldb_backend=no
fi
AM_CONDITIONAL([BUILD_BWTREE], [test "x${bwtree_backend}" == xyes])
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