From f1de376fd1df540864b72e6e4c1edee731f05d6c Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 22 Jul 2011 15:55:44 +0200 Subject: Make automake scripts PostgreSQL aware --- m4/database.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'm4/database.m4') 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 -- cgit v1.1