---- postgresql-9.4.0/configure.in~ 2014-12-16 02:07:34.000000000 +0100
-+++ postgresql-9.4.0/configure.in 2014-12-24 13:10:18.706719940 +0100
-@@ -946,7 +946,7 @@
+diff -ur postgresql-16.1.orig/configure.ac postgresql-16.1/configure.ac
+--- postgresql-16.1.orig/configure.ac 2023-11-06 23:04:27.000000000 +0100
++++ postgresql-16.1/configure.ac 2023-12-13 21:37:44.998989424 +0100
+@@ -1344,7 +1344,7 @@
if test "$with_gssapi" = yes ; then
if test "$PORTNAME" != "win32"; then
-- AC_SEARCH_LIBS(gss_init_sec_context, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [],
-+ AC_SEARCH_LIBS(gss_init_sec_context, [gssapi 'gssapi -lkrb5 -lcrypto' gssapi_krb5 gss], [],
- [AC_MSG_ERROR([could not find function 'gss_init_sec_context' required for GSSAPI])])
+- AC_SEARCH_LIBS(gss_store_cred_into, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [],
++ AC_SEARCH_LIBS(gss_store_cred_into, [gssapi 'gssapi -lkrb5 -lcrypto' gssapi_krb5 gss], [],
+ [AC_MSG_ERROR([could not find function 'gss_store_cred_into' required for GSSAPI])])
else
LIBS="$LIBS -lgssapi32"