From 42d58526dad45bf91a77188433eb51c3c1b28f33 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 27 Jun 2015 19:43:59 +0000 Subject: also check for existence of libpq-fe header --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 443e27321..358b06634 100644 --- a/configure.ac +++ b/configure.ac @@ -777,10 +777,13 @@ AC_SUBST(SQLITE_LDFLAGS) postgres=false AX_LIB_POSTGRESQL([]) if test "$found_postgresql" = "yes"; then - postgres=true + AC_CHECK_HEADERS([libpq-fe.h], + postgres=true) fi + AM_CONDITIONAL(HAVE_POSTGRESQL, test x$postgres = xtrue) + LDFLAGS=$SAVE_LDFLAGS CPPFLAGS=$SAVE_CPPFLAGS -- cgit v1.2.3