3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_counter])
6 if test x$with_[]modname != xno; then
11 FR_SMART_CHECK_INCLUDE(gdbm.h)
12 FR_SMART_CHECK_LIB(gdbm, gdbm_open)
13 if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then
17 if test "x$fail" = "x"; then
18 AC_MSG_CHECKING(to see GDBM_SYNC status)
19 AC_EGREP_CPP(found-gdbm-sync, [
24 not found. this version must use sync by default.
27 AC_DEFINE(NEED_GDBM_SYNC, yes, [do we need GDBM_SYNC])
28 AC_MSG_RESULT(needs it.)
30 AC_MSG_RESULT(SYNCs by default.)
36 LIBS="$LIBS $SMART_LIBS"
37 AC_CHECK_FUNC(gdbm_fdesc)
38 if test "x$ac_cv_func_gdbm_fdesc" = "xyes";
40 AC_DEFINE(HAVE_GDBM_FDESC, [], [do we have gdbm_fdesc])
47 echo \*\*\* module modname is disabled.
50 if test x"$fail" != x""; then
51 if test x"${enable_strict_dependencies}" = x"yes"; then
52 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
54 AC_MSG_WARN([silently not building ]modname[.])
55 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
60 counter_ldflags=$SMART_LIBS
61 counter_cflags=$SMART_CFLAGS
62 AC_SUBST(counter_ldflags)
63 AC_SUBST(counter_cflags)
65 AC_CONFIG_HEADER(config.h)