0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

configure: Use action-if-enabled so -lrocksdb is not prepended everywhere.

This commit is contained in:
Jason Volk 2020-04-30 03:22:15 -07:00
parent 347c600b41
commit 8c0a6f0ba8

View file

@ -1853,12 +1853,12 @@ AC_HELP_STRING([--with-included-rocksdb[[[=shared]]]], [Use the RocksDB sources
AC_MSG_RESULT([no])
with_included_rocksdb="no"
AC_CHECK_LIB(rocksdb, rocksdb_open, [],
AC_CHECK_LIB(rocksdb, rocksdb_open,
[
ROCKSDB_LIBS="-lrocksdb"
], [
AC_MSG_ERROR([Unable to find required RocksDB package. Try apt-get install librocksdb-dev])
])
ROCKSDB_LIBS="-lrocksdb"
])
dnl