summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/lookup/phrase_lookup.cpp1
-rw-r--r--src/storage/Makefile.am1
3 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8994d7f..41877dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,6 +91,8 @@ if test x"$DBM" = x"BerkeleyDB"; then
AC_CHECK_HEADER([db.h], [], AC_MSG_ERROR([Cannot find Berkeley DB library version 4]))
AC_SEARCH_LIBS([db_create], [db], [], AC_MSG_ERROR([Cannot find Berkeley DB library version 4]))
+
+ AC_DEFINE([HAVE_BERKELEY_DB], [], [Have Berkeley DB.])
fi
AM_CONDITIONAL([BERKELEYDB], [test x"$DBM" = x"BerkeleyDB"])
@@ -100,6 +102,8 @@ if test x"$DBM" = x"KyotoCabinet"; then
PKG_CHECK_MODULES(KYOTOCABINET, [
kyotocabinet
], [])
+
+ AC_DEFINE([HAVE_KYOTO_CABINET], [], [Have Kyoto Cabinet.])
fi
AM_CONDITIONAL([KYOTOCABINET], [test x"$DBM" = x"KyotoCabinet"])
diff --git a/src/lookup/phrase_lookup.cpp b/src/lookup/phrase_lookup.cpp
index f7da0b7..451bc3a 100644
--- a/src/lookup/phrase_lookup.cpp
+++ b/src/lookup/phrase_lookup.cpp
@@ -24,7 +24,6 @@
#include "novel_types.h"
#include "phrase_index.h"
#include "facade_phrase_table2.h"
-#include "ngram.h"
#include "phrase_lookup.h"
using namespace pinyin;
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 7c28ed8..e660608 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -31,6 +31,7 @@ noinst_HEADERS = chewing_enum.h \
phrase_index_logger.h \
phrase_large_table2.h \
ngram.h \
+ ngram_bdb.h \
flexible_ngram.h \
tag_utility.h \
pinyin_parser_table.h \