Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
sds-keyval
Commits
e8c15fe4
Commit
e8c15fe4
authored
Apr 06, 2018
by
Philip Carns
Browse files
use pkgconfig leveldb if present
- fixes
#17
parent
3604629d
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
e8c15fe4
...
...
@@ -121,13 +121,18 @@ if test "x${berkelydb_backend}" == xyes ; then
fi
if test "x${leveldb_backend}" == xyes ; then
# spack provides a pkgconfig file for leveldb but other leveldb
# packages probably do not provide one
AC_CHECK_HEADERS([leveldb/c.h], ,
AC_ERROR("Could not find leveldb headers"))
AC_DEFINE([USE_LEVELDB], 1, [use leveldb backend])
SERVER_LIBS="${SERVER_LIBS} -lleveldb"
SERVER_DEPS="${SERVER_DEPS} leveldb"
PKG_CHECK_MODULES([LEVELDB],[leveldb],[
SERVER_LIBS="$LEVELDB_LIBS $SERVER_LIBS"
CPPFLAGS="$LEVELDB_CFLAGS $CPPFLAGS"
CFLAGS="$LEVELDB_CFLAGS $CFLAGS"
SERVER_DEPS="${SERVER_DEPS} leveldb"
], [
# fall back to conventional tests if no pkgconfig
AC_CHECK_HEADERS([leveldb/c.h], ,
AC_ERROR("Could not find leveldb headers"))
AC_DEFINE([USE_LEVELDB], 1, [use leveldb backend])
SERVER_LIBS="${SERVER_LIBS} -lleveldb"
])
fi
if test "x${bwtree_backend}" == xyes ; then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment