Build KCM if we have doors or unix sockets.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15957 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-08-23 10:43:10 +00:00
parent 7ad88e4ae7
commit a62fc7b653

View File

@@ -346,15 +346,6 @@ if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
[Define if you want to use Netinfo instead of krb5.conf.])
fi
AC_ARG_ENABLE(kcm,
AS_HELP_STRING([--enable-kcm],[enable Kerberos Credentials Manager]))
if test "$ac_cv_header_sys_un_h" = yes -a "$enable_kcm" = yes; then
AC_DEFINE(HAVE_KCM, 1,
[Define if you want to use the Kerberos Credentials Manager.])
fi
AM_CONDITIONAL(KCM, test "$enable_kcm" = yes)
dnl export symbols
rk_WIN32_EXPORT(BUILD_KRB5_LIB, KRB5_LIB_FUNCTION)
rk_WIN32_EXPORT(BUILD_ROKEN_LIB, ROKEN_LIB_FUNCTION)
@@ -435,6 +426,23 @@ if test "$enable_pthread_support" != no; then
LIBS="$saved_LIBS"
fi
AC_ARG_ENABLE(kcm,
AS_HELP_STRING([--enable-kcm],[enable Kerberos Credentials Manager]),
,[enable_kcm=yes])
if test "$enable_kcm" = yes ; then
if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
enable_kcm=no
fi
fi
if test "$enable_kcm" = yes; then
AC_DEFINE(HAVE_KCM, 1,
[Define if you want to use the Kerberos Credentials Manager.])
fi
AM_CONDITIONAL(KCM, test "$enable_kcm" = yes)
dnl Cray stuff
AC_CHECK_FUNCS(getudbnam setlim)