aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.m4
diff options
context:
space:
mode:
Diffstat (limited to 'plugins.m4')
-rw-r--r--plugins.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins.m4 b/plugins.m4
index 04a02db..240d4f4 100644
--- a/plugins.m4
+++ b/plugins.m4
@@ -86,6 +86,7 @@ for plugin in $plugins; do
PLUGIN_PPP="yes"
PLUGIN_PROC_STAT="yes"
PLUGIN_PYTHON=$with_python
+ PLUGIN_QNAPLOG="yes"
PLUGIN_SAMPLE="yes"
PLUGIN_SETI="yes"
PLUGIN_STATFS="yes"
@@ -176,6 +177,9 @@ for plugin in $plugins; do
python)
PLUGIN_PYTHON=$val
;;
+ qnaplog)
+ PLUGIN_QNAPLOG=$val
+ ;;
sample)
PLUGIN_SAMPLE=$val
;;
@@ -455,6 +459,23 @@ if test "$PLUGIN_PYTHON" = "yes"; then
fi
fi
+# Qnaplog
+if test "$PLUGIN_QNAPLOG" = "yes"; then
+ AC_CHECK_HEADERS(sqlite3.h, [has_sqlite3_header="true"], [has_sqlite3_header="false"])
+ if test "$has_sqlite3_header" = "true"; then
+ AC_CHECK_LIB(sqlite3, sqlite3_initialize, [has_sqlite3_lib="true"], [has_sqlite3_lib="false"])
+ if test "$has_sqlite3_lib" = "true"; then
+ PLUGINS="$PLUGINS plugin_qnaplog.o"
+ PLUGINLIBS="$PLUGINLIBS -lsqlite3"
+ AC_DEFINE(PLUGIN_QNAPLOG,1,[qnaplog plugin])
+ else
+ AC_MSG_WARN(sqlite3 lib not found: qnaplog plugin disabled)
+ fi
+ else
+ AC_MSG_WARN(sqlite3.h header not found: qnaplog plugin disabled)
+ fi
+fi
+
# sample
if test "$PLUGIN_SAMPLE" = "yes"; then
PLUGINS="$PLUGINS plugin_sample.o"