From a62fc7b653964d8a9b13bbe83af6e374f8a5ee67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 23 Aug 2005 10:43:10 +0000 Subject: [PATCH] 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 --- configure.in | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index 28445c5f1..f5514fce9 100644 --- a/configure.in +++ b/configure.in @@ -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)