X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fautoconf%2Fconfigure.in;h=75e849dc9ef37a0d6ff4049c94afcacacb6b64bf;hb=27cd56149945bbab7585c07b11486d8163077593;hp=926a6ed2cba1790ac6a0aa913c90f8e25669a9c3;hpb=0180f98290855d09e2e56485d718f4a8e1467233;p=bacula%2Fbacula diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 926a6ed2cb..75e849dc9e 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -189,6 +189,7 @@ support_mysql=no support_sqlite=no support_sqlite3=no support_postgresql=no +support_dbi=no support_smartalloc=yes support_readline=yes support_conio=yes @@ -920,12 +921,9 @@ AC_SUBST(OPENSSL_INC) # ----------------------------------------------------------- -# Python and OpenSSL are using dlopen +# dlopen is needed for plugins # ----------------------------------------------------------- - -if test "$support_python" = "yes" -o "$support_tls" = "yes"; then - AC_SEARCH_LIBS(dlopen, [dl]) -fi +AC_SEARCH_LIBS(dlopen, [dl]) # ------------------------------------------ # Where to place working dir @@ -1332,6 +1330,10 @@ BA_CHECK_SQLITE3_DB BA_CHECK_SQLITE_DB +BA_CHECK_DBI_DB + +BA_CHECK_DBI_DRIVER + AC_SUBST(cats) AC_SUBST(DB_TYPE) @@ -1361,6 +1363,11 @@ if test x$DB_TYPE = xpostgresql; then fi fi +if test x$DB_TYPE = xdbi; then + DB_TYPE=$DB_PROG + db_type=$DB_PROG +fi + if test $support_batch_insert = yes ; then AC_DEFINE(HAVE_BATCH_FILE_INSERT, 1, [Set if DB batch insert code enabled]) fi @@ -2335,7 +2342,7 @@ if test "x${db_type}" = "xInternal" ; then echo " " echo " " echo "You have not specified either --enable-client-only or one of the" - echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite." + echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI." echo " This is not permitted. Please reconfigure." echo " " echo "Aborting the configuration ..."