diff --git a/cf/auth-modules.m4 b/cf/auth-modules.m4 index 0bd0b25ee..96cf6718e 100644 --- a/cf/auth-modules.m4 +++ b/cf/auth-modules.m4 @@ -11,7 +11,14 @@ if test "$ac_cv_header_siad_h" = yes; then LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" fi -if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then +case "${host}" in +*-*-freebsd*) ac_cv_want_pam_krb4=no ;; +*) ac_cv_want_pam_krb4=yes ;; +esac + +if test "$ac_cv_want_pam_krb4" = yes -a \ + "$ac_cv_header_security_pam_modules_h" = yes -a \ + "$enable_shared" = yes; then LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" fi