From: Nick Porter Date: Thu, 7 Oct 2021 14:56:34 +0000 (+0100) Subject: Need to update the configure.ac file as well (#4254) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8bc81a83be24a0a274d66a1318074b49e06d5c;p=thirdparty%2Ffreeradius-server.git Need to update the configure.ac file as well (#4254) --- 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 6f74c23cf5b..8fab1cfb9d4 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"