From 667ffddf018da1b770dc709fcc051f6f483fd466 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 18 Feb 2014 17:57:59 +0000 Subject: Remove judy and use glib hash tables. There is no significant advantage to use Judy arrays over glib HashTables to store hashes in fuzzy storage. Therefore, drop support of Judy completely. Also rename `use_judy` parameter to `strict_hash` indicating that hashes are matched strictly (not a fuzzy match but a hash lookup). --- CMakeLists.txt | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5eed2f089..1fcce10f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,6 @@ OPTION(ENABLE_REDIRECTOR "Enable redirector install [default: OFF]" OPTION(ENABLE_GPERF_TOOLS "Enable google perftools [default: OFF]" OFF) OPTION(ENABLE_STATIC "Enable static compiling [default: OFF]" OFF) OPTION(ENABLE_LUAJIT "Link with libluajit [default: OFF]" OFF) -OPTION(ENABLE_JUDY "Find and link with Judy library [default: ON]" ON) OPTION(ENABLE_DB "Find and link with DB library [default: OFF]" OFF) OPTION(ENABLE_SQLITE "Find and link with sqlite3 library [default: OFF]" OFF) OPTION(ENABLE_HIREDIS "Find and link with external redis library [default: OFF]" OFF) @@ -485,32 +484,6 @@ GET_FILENAME_COMPONENT(LIBEVENT_PATH "${LIBEVENT_LIBRARY}" PATH) INCLUDE_DIRECTORIES("${LIBEVENT_INCLUDE}") LINK_DIRECTORIES("${LIBEVENT_PATH}") -IF(ENABLE_JUDY MATCHES "ON") - # Find libjudy - FIND_LIBRARY(LIBJUDY_LIBRARY NAMES Judy PATH_SUFFIXES lib64 lib - PATHS - ~/Library/Frameworks - /Library/Frameworks - /usr/local - /usr - /sw - /opt/local - /opt/csw - /opt - DOC "Path where the libjudy library can be found") - IF(LIBJUDY_LIBRARY) - FIND_PATH(LIBJUDY_INCLUDE Judy.h PATHS /opt/include - /usr/include - /usr/local/include - DOC "Path where the judy header files can be found") - - GET_FILENAME_COMPONENT(LIBJUDY_PATH "${LIBJUDY_LIBRARY}" PATH) - INCLUDE_DIRECTORIES("${LIBJUDY_INCLUDE}") - LINK_DIRECTORIES("${LIBJUDY_PATH}") - SET(WITH_JUDY 1) - ENDIF(LIBJUDY_LIBRARY) -ENDIF(ENABLE_JUDY MATCHES "ON") - # Find libbd IF(ENABLE_DB MATCHES "ON") FIND_LIBRARY(LIBDB_LIBRARY NAMES db PATHS PATH_SUFFIXES lib64 lib @@ -960,10 +933,6 @@ TARGET_LINK_LIBRARIES(rspamd rspamd-server) TARGET_LINK_LIBRARIES(rspamd rspamd-util) TARGET_LINK_LIBRARIES(rspamd rspamd-lua) -IF(LIBJUDY_LIBRARY) - TARGET_LINK_LIBRARIES(rspamd Judy) -ENDIF(LIBJUDY_LIBRARY) - TARGET_LINK_LIBRARIES(rspamd event) IF(HAVE_LIBEVENT2) TARGET_LINK_LIBRARIES(rspamd event_pthreads) -- cgit v1.2.3