aboutsummaryrefslogtreecommitdiff
path: root/m4/database.m4
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-22 16:00:49 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-22 16:00:49 +0200
commit321aaee205aee9035497b32c9087fabe325a7696 (patch)
tree86e3c68677f96310850272f59bbe9910b6b024d8 /m4/database.m4
parentde71cad748dcc3105a50741e71a5958780b43c61 (diff)
MAke automake scripts PostgreSQL aware
Diffstat (limited to 'm4/database.m4')
-rw-r--r--m4/database.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/database.m4 b/m4/database.m4
index 9478016..476ec19 100644
--- a/m4/database.m4
+++ b/m4/database.m4
@@ -27,6 +27,10 @@ AC_ARG_WITH(
database=sqlite
AC_DEFINE([DATABASE_SQLITE], [1], [Using SQLite.])
;;
+ pgsql)
+ database=pgsql
+ AC_DEFINE([DATABASE_PGSQL], [1], [Using PostgreSQL.])
+ ;;
*)
AC_MSG_RESULT([])
AC_MSG_ERROR([unknown database $withval])
@@ -42,5 +46,6 @@ AC_SUBST([database])
AM_CONDITIONAL([DATABASE_MYSQL], [test x$database = xmysql])
AM_CONDITIONAL([DATABASE_SQLITE], [test x$database = xsqlite])
+AM_CONDITIONAL([DATABASE_PGSQL], [test x$database = xpgsql])
])dnl