aboutsummaryrefslogtreecommitdiff
path: root/m4/database.m4
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-30 13:10:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-30 13:10:42 +0200
commit18e0b8065af3b660a73af93dabb4767cbc64ec35 (patch)
tree54bb7540f6fb1db7b2ca9afe83f0690f8daffaca /m4/database.m4
parent27a6fdf4b5295281853254cfdde8730128038dd2 (diff)
Autotools support for SQLite
Diffstat (limited to 'm4/database.m4')
-rw-r--r--m4/database.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/database.m4 b/m4/database.m4
index 6f75e27..9478016 100644
--- a/m4/database.m4
+++ b/m4/database.m4
@@ -13,7 +13,7 @@ AC_MSG_CHECKING([for database to use])
AC_ARG_WITH(
[database],
[AC_HELP_STRING([--with-database=db],
- [database to use for tests; valid values are: 'mysql'])],
+ [database to use for tests; valid values are: 'mysql', 'sqlite'])],
[case $withval in
no | yes)
AC_MSG_RESULT([])
@@ -23,6 +23,10 @@ AC_ARG_WITH(
database=mysql
AC_DEFINE([DATABASE_MYSQL], [1], [Using MySQL.])
;;
+ sqlite)
+ database=sqlite
+ AC_DEFINE([DATABASE_SQLITE], [1], [Using SQLite.])
+ ;;
*)
AC_MSG_RESULT([])
AC_MSG_ERROR([unknown database $withval])
@@ -37,5 +41,6 @@ AC_MSG_RESULT([$database])
AC_SUBST([database])
AM_CONDITIONAL([DATABASE_MYSQL], [test x$database = xmysql])
+AM_CONDITIONAL([DATABASE_SQLITE], [test x$database = xsqlite])
])dnl