6 dnl Check for krb_get_default_tkt_root
9 AC_DEFUN([AC_FUNC_KRB_GET_DEFAULT_TKT_ROOT], [
11 AC_CACHE_CHECK(for krb_get_default_tkt_root, ac_cv_func_krb_get_default_tkt_root, [
12 if test "$ac_cv_found_krb4" = "yes"; then
13 save_CPPFLAGS="${CPPFLAGS}"
15 CPPFLAGS="${KRB4_INC_FLAGS} ${CPPFLAGS}"
16 LIBS="${KRB4_LIB_FLAGS} ${LIBS}"
17 AC_TRY_LINK([#include <krb.h>],
18 [krb_get_default_tkt_root();],
19 ac_cv_func_krb_get_default_tkt_root=yes,
20 ac_cv_func_krb_get_default_tkt_root=no)
21 CPPFLAGS="${save_CPPFLAGS}"
24 ac_cv_func_krb_get_default_tkt_root=no
27 if test "$ac_cv_func_krb_get_default_tkt_root" = "yes"; then
28 AC_DEFINE(HAVE_KRB_GET_DEFAULT_TKT_ROOT, 1, [define if you have krb_get_default_tkt_root])