From: Dario <djdas@djdas.net>
To: ofono@ofono.org
Subject: [PATCH 1/2] Added rules to disable SQLite history plugin
Date: Sun, 04 Apr 2010 23:50:30 +0200 [thread overview]
Message-ID: <4BB909A6.7030201@djdas.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1653 bytes --]
Hi all,
as promised here are the 2 patches to add the SQLite history plugin.
Thanks for your kind support,
best regards,
Dario
---
Makefile.am | 10 ++++++++++
configure.ac | 9 +++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index ee10095..adff96f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -222,6 +222,16 @@ builtin_modules += example_history
builtin_sources += plugins/example_history.c
endif
+if SQLITEHISTORY
+builtin_modules += sqlite_history
+builtin_sources += plugins/sqlite_history.c
+builtin_cflags += @SQLITE3_CFLAGS@
+builtin_libadd += @SQLITE3_LIBS@
+
+sqlitescriptsdir = $(localstatedir)/lib/ofono
+sqlitescripts_DATA = plugins/*.sql
+endif
+
sbin_PROGRAMS = src/ofonod
src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) \
diff --git a/configure.ac b/configure.ac
index d2f921f..997ee9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -151,6 +151,15 @@ AC_ARG_ENABLE(datafiles,
AC_HELP_STRING([--disable-datafiles],
AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
+AC_ARG_ENABLE(sqlitehistory, AC_HELP_STRING([--disable-sqlitehistory],
+ [don't install sqlite history plugin]),
+ [enable_sqlitehistory=${enableval}])
+
+AM_CONDITIONAL(SQLITEHISTORY, test "${enable_sqlitehistory}" != "no")
+if (test "${enable_sqlitehistory}" != "no"); then
+ PKG_CHECK_MODULES(SQLITE3, sqlite3)
+fi
+
if (test "${prefix}" = "NONE"); then
dnl no prefix and no localstatedir, so default to /var
if (test "$localstatedir" = '${prefix}/var'); then
--
1.6.3.3
next reply other threads:[~2010-04-04 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-04 21:50 Dario [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-06 10:37 [PATCH 1/2] Added rules to disable SQLite history plugin Dario
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB909A6.7030201@djdas.net \
--to=djdas@djdas.net \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.