From 25d03c89e9e00d61121ca3f8b684c6db502a54bb Mon Sep 17 00:00:00 2001 From: "Jacques A. Vidrine" Date: Wed, 28 Aug 2002 15:04:57 +0000 Subject: [PATCH] Do not build pam_krb4 on FreeBSD. FreeBSD ships with a pam_kerberosIV module in the base system. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11249 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/auth-modules.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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