2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_dbm])
5 if test x$with_[]modname != xno; then
10 AC_SMART_CHECK_INCLUDE(ndbm.h)
11 if test "x$ac_cv_header_ndbm_h" = "xyes"; then
12 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_NDBM_H"
14 AC_SMART_CHECK_INCLUDE(gdbm/ndbm.h)
15 if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then
16 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBM_NDBM_H"
20 AC_SMART_CHECK_LIB(ndbm, dbm_open)
21 if test "x$ac_cv_lib_ndbm_dbm_open" != "xyes"; then
28 echo \*\*\* module modname is disabled.
31 if test x"$fail" != x""; then
32 if test x"${enable_strict_dependencies}" = x"yes"; then
33 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
35 AC_MSG_WARN([silently not building ]modname[.])
36 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
41 dbm_ldflags=$SMART_LIBS
42 dbm_cflags=$SMART_CFLAGS