The check for heimdal is outdated. The problem is twofolds: - at some point, heimdal started to provide /usr/include/gssapi.h, instead of just /usr/include/gssapi/gssapi.h - the other part is bug 389343 It seems that turning 'AC_EGREP_HEADER(GSS_C_NT_HOSTBASED_SERVICE, gssapi.h,' into: 'AC_EGREP_CPP(hostbased_service_gss_nt_yes, gssapi.h, [#include <gssapi.h> #ifdef GSS_C_NT_HOSTBASED_SERVICE hostbased_service_gss_nt_yes #endif],' will fix the problem.
+ 06 Nov 2011; Eray Aslan <eras@gentoo.org> fetchmail-6.3.21.ebuild, + +files/fetchmail-gss_c_nt_hostbased_service.patch: + Fix compiling against >=heimdal-1.4 - bug #389347. Thanks to Rafał Mużyło. + Thanks for the bug report.