aboutsummaryrefslogtreecommitdiff
path: root/m4/database.m4
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-24 09:47:29 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-24 09:48:38 +0200
commit0cbf7216a6455525e67d6cbca462d568471e5c26 (patch)
tree5cfa33fc7ffdc1183bc3ae7f77493f9191a368e7 /m4/database.m4
parentb2778d6818ffa7fcbf68e3f7bbfd1a342dac98e4 (diff)
Add Oracle to automake and Visual Studio build
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 968f764..5f5a03e 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', 'sqlite', and 'pgsql'])],
+ [database to use for tests; valid values are: 'mysql', 'sqlite', 'pgsql', and 'oracle'])],
[case $withval in
no | yes)
AC_MSG_RESULT([])
@@ -31,6 +31,10 @@ AC_ARG_WITH(
database=pgsql
AC_DEFINE([DATABASE_PGSQL], [1], [Using PostgreSQL.])
;;
+ oracle)
+ database=oracle
+ AC_DEFINE([DATABASE_ORACLE], [1], [Using Oracle.])
+ ;;
*)
AC_MSG_RESULT([])
AC_MSG_ERROR([unknown database $withval])
@@ -47,5 +51,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])
+AM_CONDITIONAL([DATABASE_ORACLE], [test x$database = xoracle])
])dnl