From: Danny Al-Gaaf Date: Wed, 27 Feb 2013 13:27:48 +0000 (+0100) Subject: configure.ac: check for libsnappy X-Git-Tag: v0.59~86^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37d148ba914876336b35823d3ba08daec81f8124;p=ceph.git configure.ac: check for libsnappy Since libsnappy is needed by leveldb, check if the lib is installed before check for leveldb. Signed-off-by: Danny Al-Gaaf --- diff --git a/configure.ac b/configure.ac index c7bb3d0515cc..b4b729f4f649 100644 --- a/configure.ac +++ b/configure.ac @@ -412,6 +412,8 @@ AC_ARG_WITH([ocf], [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])