OPTION(ENABLE_STATIC "Enable static compiling [default: OFF]" OFF)
OPTION(ENABLE_LUAJIT "Link with libluajit [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: ON]" ON)
OPTION(ENABLE_URL_INCLUDE "Enable urls in ucl includes (requires libcurl or libfetch) [default: OFF]" OFF)
OPTION(NO_SHARED "Build internal libs static [default: ON]" ON)
OPTION(INSTALL_EXAMPLES "Install examples [default: OFF]" OFF)
#include <openssl/evp.h>
#endif
+#include "sqlite3.h"
+
/* 2 seconds to fork new process in place of dead one */
#define SOFT_FORK_TIME 2
return res ? EXIT_SUCCESS : EXIT_FAILURE;
}
+ sqlite3_initialize ();
+
/* Load config */
if (!load_rspamd_config (rspamd_main, rspamd_main->cfg, TRUE,
RSPAMD_CONFIG_LOAD_ALL, FALSE)) {
g_free (rspamd_main);
event_base_free (ev_base);
+ sqlite3_shutdown ();
if (control_addr) {
rspamd_inet_address_free (control_addr);