gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -improve postgres check


From: gnunet
Subject: [taler-exchange] branch master updated: -improve postgres check
Date: Thu, 08 Dec 2022 14:20:38 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 329b7692 -improve postgres check
     new f9cc76ad Merge branch 'master' of git+ssh://git.taler.net/exchange
329b7692 is described below

commit 329b7692ea4b09d9fb1399ad38af87b6e7486f38
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Dec 8 14:20:22 2022 +0100

    -improve postgres check
---
 configure.ac | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index c80c2e8f..bbbce187 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,9 +246,18 @@ LIBS=$LIBS_SAVE
 
 # test for postgres
 AX_LIB_POSTGRESQL([13.0])
-AS_IF([test "x$found_postgresql" = "xyes"],[postgres=true])
-
-AM_CONDITIONAL(HAVE_POSTGRESQL, test x$postgres = xtrue)
+AS_IF([test "x$found_postgresql" = "xyes"],
+  [SAVE_CPPFLAGS="$CPPFLAGS"
+   CPPFLAGS="$POSTGRES_CPPFLAGS $CPPFLAGS"
+   AC_CHECK_HEADERS([libpq-fe.h], [postgres=1], [postgres=0])])
+AS_IF([test "x$postgres" != "x1"],
+  [AC_MSG_ERROR([[
+***
+*** You need libpq(-dev) >= 13.0 to build this program.
+*** ]])])
+AM_CONDITIONAL([HAVE_POSTGRESQL], [test "x$postgres" = "x1"])
+AC_DEFINE_UNQUOTED([HAVE_POSTGRESQL], [$postgres],
+                   [Define to 1 if Postgres is available])
 
 # Check for GNUnet's libgnunetpq.
 libgnunetpq=0

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]