]
)
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]))
uncomment_dbi="#"
fi
+dnl revert after postgresql checks
+LIBS="${saved_LIBS}"
+
AC_SUBST(uncomment_dbi)
if test $support_batch_insert = yes ; then