1 diff -ur postgresql-14.0.orig/configure.ac postgresql-14.0/configure.ac
2 --- postgresql-14.0.orig/configure.ac 2021-11-01 14:51:09.840575983 +0100
3 +++ postgresql-14.0/configure.ac 2021-11-01 14:52:27.718774543 +0100
6 if test "$with_gssapi" = yes ; then
7 if test "$PORTNAME" != "win32"; then
8 - AC_SEARCH_LIBS(gss_init_sec_context, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [],
9 + AC_SEARCH_LIBS(gss_init_sec_context, [gssapi 'gssapi -lkrb5 -lcrypto' gssapi_krb5 gss], [],
10 [AC_MSG_ERROR([could not find function 'gss_init_sec_context' required for GSSAPI])])
12 LIBS="$LIBS -lgssapi32"