1dnl $Id$
2dnl
3dnl Figure what authentication modules should be built
4dnl
5dnl rk_AUTH_MODULES(module-list)
6
7AC_DEFUN([rk_AUTH_MODULES],[
8AC_MSG_CHECKING([which authentication modules should be built])
9
10z='m4_ifval([$1], $1, [sia pam afskauthlib])'
11LIB_AUTH_SUBDIRS=
12for i in $z; do
13case $i in
14sia)
15if test "$ac_cv_header_siad_h" = yes; then
16	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
17fi
18;;
19pam)
20case "${host}" in
21*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
22*)		ac_cv_want_pam_krb4=yes ;;
23esac
24
25if test "$ac_cv_want_pam_krb4" = yes -a \
26    "$ac_cv_header_security_pam_modules_h" = yes -a \
27    "$enable_shared" = yes; then
28	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
29fi
30;;
31afskauthlib)
32case "${host}" in
33*-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
34esac
35;;
36esac
37done
38if test "$LIB_AUTH_SUBDIRS"; then
39	AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
40else
41	AC_MSG_RESULT(none)
42fi
43
44AC_SUBST(LIB_AUTH_SUBDIRS)dnl
45])
46