Since libsnappy is needed by leveldb, check if the lib is installed
before check for leveldb.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
[with_ocf=no])
AM_CONDITIONAL(WITH_OCF, [ test "$with_ocf" = "yes" ])
+# check is snappy-devel is installed, needed by leveldb
+AC_CHECK_LIB([snappy], [snappy_compress], [], [AC_MSG_FAILURE([libsnappy not found])])
# use system leveldb
AC_CHECK_LIB([leveldb], [leveldb_open], [], [AC_MSG_FAILURE([libleveldb not found])], [-lsnappy -lpthread])