6 dnl Check for krb_get_err_text
9 AC_DEFUN([AC_FUNC_KRB_GET_ERR_TEXT], [
11 AC_CACHE_CHECK(for krb_get_err_text, ac_cv_func_krb_get_err_text, [
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_err_text(0);],
19 ac_cv_func_krb_get_err_text=yes,
20 ac_cv_func_krb_get_err_text=no)
21 CPPFLAGS="${save_CPPFLAGS}"
25 if test "$ac_cv_func_krb_get_err_text" = "yes"; then
26 AC_DEFINE(HAVE_KRB_GET_ERR_TEXT, 1, [define if you have krb_get_err_text])