3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_pam])
6 if test x$with_[]modname != xno; then
11 AC_CHECK_LIB(dl, dlopen,
12 [ pam_ldflags="-ldl" ]
15 AC_CHECK_LIB(pam, pam_start,
16 [ pam_ldflags="-lpam $pam_ldflags" ],
17 [ fail=$fail" libpam" ],
22 dnl # Yes, these DO have to be on seperate lines,
23 dnl # otherwise autoheader won't pick them up.
34 echo \*\*\* module modname is disabled.
37 if test x"$fail" != x""; then
38 if test x"${enable_strict_dependencies}" = x"yes"; then
39 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
41 AC_MSG_WARN([silently not building ]modname[.])
42 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
50 AC_CONFIG_HEADER(config.h)