From 3c1731217dd12274bc7b1aea32da62f201b07214 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 18 Jun 2010 10:18:12 +0200 Subject: [PATCH] fix #1595 about batch mode detection problem for postgresql with non standard install dir --- bacula/autoconf/configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index cba5c7344e..64fbd64eb4 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1751,8 +1751,12 @@ if test $pkg = 0; then ] ) fi + +dnl For postgresql checking +saved_LIBS="${LIBS}" +LIBS="${saved_LIBS} ${SQL_LFLAGS}" -dnl Check if postgresql can support batch mode +dnl Check if postgresql can support batch mode if test x$DB_TYPE = xpostgresql; then 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])) @@ -1802,6 +1806,9 @@ else uncomment_dbi="#" fi +dnl revert after postgresql checks +LIBS="${saved_LIBS}" + AC_SUBST(uncomment_dbi) if test $support_batch_insert = yes ; then -- 2.39.5