From 1bdd03ad3bd36fd63517dc8d3437ab71a1aa01c0 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Thu, 7 Oct 2021 14:54:22 +0100 Subject: [PATCH] Need to update the configure.ac file as well (#4253) --- .../drivers/rlm_sql_postgresql/configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac index 74610aeadb..8ac1022e89 100644 --- a/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac +++ b/src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac @@ -78,6 +78,20 @@ if test x$with_[]modname != xno; then [ AC_MSG_RESULT(no) ]) + + AC_MSG_CHECKING([for PGRES_PIPELINE_SYNC]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([#include ], [[ + if (PGRES_PIPELINE_SYNC) return 0; + return 1; + ]])], + [ + AC_DEFINE([HAVE_PGRES_PIPELINE_SYNC], [1], [Whether the PGRES_PIPELINE_SYNC constant is defined]) + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_RESULT(no) + ]) fi smart_try_dir="$rlm_sql_postgresql_lib_dir /usr/lib /usr/local/pgsql/lib" -- 2.47.3