From a24fa26f0fbce6c3d1dc1e6019c8c3c55eb21a45 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Sun, 1 Mar 2015 21:18:51 +0300 Subject: [PATCH] Bug #1415750: --with-pgsql-libs is ignored Merged a contributed patch. --- m4/ac_check_pgsql.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m4/ac_check_pgsql.m4 b/m4/ac_check_pgsql.m4 index bca0c06..59049ee 100644 --- a/m4/ac_check_pgsql.m4 +++ b/m4/ac_check_pgsql.m4 @@ -28,6 +28,12 @@ then [ac_cv_pgsql_libs=$withval]) fi +if test [ -n "$ac_cv_pgsql_libs" ] +then + AC_CACHE_CHECK([PostgreSQL libraries], [ac_cv_pgsql_libs], [ac_cv_pgsql_libs=""]) + PGSQL_LIBS="-L$ac_cv_pgsql_libs -lpq" +fi + # If some path is missing, try to autodetermine with pgsql_config if test [ -z "$ac_cv_pgsql_includes" -o -z "$ac_cv_pgsql_libs" ] then