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)