From d3e5f34fa7e7c8e8ce60b478f5bba7e8c283a853 Mon Sep 17 00:00:00 2001 From: Jiri Kastner Date: Thu, 7 Jul 2022 12:50:07 +0200 Subject: [PATCH] configure.ac: support libgssapi_krb5 Fixes: #59 --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 26541f3..28b473b 100644 --- a/configure.ac +++ b/configure.ac @@ -638,7 +638,17 @@ AC_ARG_WITH(gssapi, cons_with_gssapi="YES" AC_DEFINE(HAVE_GSSAPI) have_gssapi=yes], - [AC_MSG_RESULT(no)])])])],) + [AC_MSG_RESULT(no) + LIBS="$oLIBS -lgssapi_krb5" + AC_MSG_CHECKING(for gssapi library -lgssapi_krb5) + AC_TRY_LINK([#include + ],[gss_create_empty_oid_set(NULL, NULL)], + [AC_MSG_RESULT(yes) + cons_with_gssapi="YES" + AC_DEFINE(HAVE_GSSAPI) + have_gssapi=yes], + [AC_MSG_RESULT(no)])])])])],) + if test $have_gssapi = no; then LIBS="$oLIBS"