LIST(APPEND MUTTLIBS -llockfile)
IF(USE_HCACHE)
- OPTION(WITH_QDBM "Use qdbm for header caching [default: on]" ON)
+ OPTION(WITH_TC "Use tokyocabinet for header caching [default: on]" ON)
+ OPTION(WITH_QDBM "Use qdbm for header caching [default: off]" OFF)
OPTION(WITH_GDBM "Use gdbm for header caching [default: off]")
SET(USE_HCACHE)
+ if(WITH_TC)
+ pkg_search_module(TC REQUIRED tokyocabinet)
+ ADD_DEFINITIONS(${TC_CFLAGS})
+ LIST(APPEND MUTTLIBS ${TC_LDFLAGS})
+ SET(USE_HCACHE 1)
+ SET(HAVE_TOKYOCABINET 1)
+ ENDIF(WITH_TC)
IF(WITH_QDBM)
pkg_search_module(QDBM REQUIRED qdbm)
ADD_DEFINITIONS(${QDBM_CFLAGS})