]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Need to update the configure.ac file as well (#4254)
authorNick Porter <nick@portercomputing.co.uk>
Thu, 7 Oct 2021 14:56:34 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 14:56:34 +0000 (09:56 -0500)
src/modules/rlm_sql/drivers/rlm_sql_postgresql/configure.ac

index 6f74c23cf5b2f02866945e14b2afe779e4e4e774..8fab1cfb9d4e50bea6f1854d44e94b8a1590d421 100644 (file)
@@ -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 <libpq-fe.h>], [[
+                   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"