1 AC_DEFUN([OPENAFS_GSS],
4 dnl Check for the characteristics of whatever GSSAPI we found, if we found one
6 AS_IF([test x"$GSSAPI_LIBS" != x],
9 AC_CHECK_FUNCS([gss_pseudo_random \
10 krb5_gss_register_acceptor_identity \
11 gss_krb5_ccache_name])
12 RRA_LIB_GSSAPI_RESTORE])
13 AC_SUBST([BUILD_GSSAPI])
15 dnl Determine if we should build rxgk
17 AS_IF([test x"$BUILD_GSSAPI" = xyes],
19 dnl At this point, rxgk only needs gssapi in general, and gss_pseudo_random()
20 AS_IF([test x"$ac_cv_func_gss_pseudo_random" != xyes],
22 AC_MSG_NOTICE([disabling rxgk due to unusable GSS-API library])])])
23 AC_SUBST([BUILD_RXGK])
24 AS_IF([test x"$BUILD_RXGK" = xyes],
25 [AC_DEFINE([BUILD_RXGK], [1], [Build rxgk])])
27 dnl Determine if we should enable rxgk support (note that this is a different
28 dnl decision than whether we should build rxgk)
34 AS_IF([test "$enable_rxgk" = yes],
35 [AS_IF([test "$BUILD_RXGK" = yes],
37 RXGK_LIBS="\$(top_builddir)/src/rxgk/liboafs_rxgk.la"
38 RXGK_LIBS_RPC="\$(top_builddir)/src/rxgk/librxgk_pic.la"
39 RXGK_CFLAGS="\$(CPPFLAGS_gssapi)"
40 RXGK_GSSAPI_LIBS="\$(LDFLAGS_gssapi) \$(LIB_gssapi)"
41 AC_DEFINE([ENABLE_RXGK], [1],
42 [Build rxgk support into applications])],
44 [AC_MSG_ERROR([Insufficient GSS-API support to enable rxgk])])],
47 AC_SUBST([ENABLE_RXGK])
49 AC_SUBST([RXGK_LIBS_RPC])
50 AC_SUBST([RXGK_CFLAGS])
51 AC_SUBST([RXGK_GSSAPI_LIBS])])