]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak fix backward test in batch insert configure test
authorKern Sibbald <kern@sibbald.com>
Thu, 12 Aug 2010 08:18:39 +0000 (10:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 29 Aug 2010 13:39:45 +0000 (15:39 +0200)
bacula/autoconf/configure.in

index 28e31a98546fab8ef8048a9377a11ac15f2da748..6ad27f23f46f30b0ec859c2c1d3acac3e08d4a79 100644 (file)
@@ -1757,7 +1757,7 @@ 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]))
-   test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
+   test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
    pkg=$?
    if test $pkg = 0; then
       AC_ARG_ENABLE(batch-insert,
@@ -1781,7 +1781,7 @@ if test x$DB_TYPE = xdbi; then
    if test $DB_PROG = postgresql; then
       AC_CHECK_LIB(pq, PQisthreadsafe, AC_DEFINE(HAVE_PQISTHREADSAFE))
       AC_CHECK_LIB(pq, PQputCopyData, AC_DEFINE(HAVE_PQ_COPY))
-      test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
+      test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
       pkg=$?
    fi