From: Kern Sibbald Date: Thu, 12 Aug 2010 10:28:30 +0000 (+0200) Subject: Tweak another try at detecting batch insert on SLES for postgres X-Git-Tag: Release-7.0.0~1608 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f567f52928f9168ec608cc9e52d66d6f485a11d;p=bacula%2Fbacula Tweak another try at detecting batch insert on SLES for postgres --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 6ad27f23f4..7341ec1890 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1755,6 +1755,7 @@ LIBS="${saved_LIBS} ${SQL_LFLAGS}" dnl Check if postgresql can support batch mode if test x$DB_TYPE = xpostgresql; then + support_batch_insert=yes AC_CHECK_LIB(pq, PQisthreadsafe, AC_DEFINE(HAVE_PQISTHREADSAFE, 1, [Set if have PQisthreadsafe])) AC_CHECK_LIB(pq, PQputCopyData, AC_DEFINE(HAVE_PQ_COPY, 1, [Set if have PQputCopyData])) test "x$ac_cv_lib_pq_PQputCopyData" = "xyes" @@ -1765,11 +1766,11 @@ if test x$DB_TYPE = xpostgresql; then [ if test x$enableval = xno; then support_batch_insert=no - else - support_batch_insert=yes fi ] ) + else + support_batch_insert=no fi fi