From 62bf68287df9470ca6fb9134831cd137c06e0c22 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 26 Jun 2018 13:43:09 +0200 Subject: fix postgres version check on Debian --- m4/ax_lib_postgresql.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/ax_lib_postgresql.m4') diff --git a/m4/ax_lib_postgresql.m4 b/m4/ax_lib_postgresql.m4 index d547383e4..11b6991f0 100644 --- a/m4/ax_lib_postgresql.m4 +++ b/m4/ax_lib_postgresql.m4 @@ -91,7 +91,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL], POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`" POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`" - POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'` + POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##' | awk '{print $1}'` AC_DEFINE([HAVE_POSTGRESQL], [1], [Define to 1 if PostgreSQL libraries are available]) @@ -113,7 +113,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL], if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then - AC_MSG_CHECKING([if PostgreSQL version is >= $postgresql_version_req]) + AC_MSG_CHECKING([if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req]) dnl Decompose required version string of PostgreSQL dnl and calculate its number representation -- cgit v1.2.3