2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_ippool])
5 if test x$with_[]modname != xno; then
10 AC_SMART_CHECK_INCLUDE(gdbm.h)
11 AC_SMART_CHECK_LIB(gdbm, gdbm_open)
12 if test "x$ac_cv_lib_gdbm_gdbm_open" != "xyes"; then
16 if test "x$fail" = "x"; then
17 AC_MSG_CHECKING(to see GDBM_SYNC status)
18 AC_EGREP_CPP(found-gdbm-sync, [
23 not found. this version must use sync by default.
26 AC_DEFINE(NEED_GDBM_SYNC, yes)
27 AC_MSG_RESULT(needs it.)
29 AC_MSG_RESULT(SYNCs by default.)
35 LIBS="$LIBS $SMART_LIBS"
36 AC_CHECK_FUNC(gdbm_fdesc)
37 if test "x$ac_cv_func_gdbm_fdesc" = "xyes";
39 AC_DEFINE(HAVE_GDBM_FDESC)
46 echo \*\*\* module modname is disabled.
49 if test x"$fail" != x""; then
50 if test x"${enable_strict_dependencies}" = x"yes"; then
51 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
53 AC_MSG_WARN([silently not building ]modname[.])
54 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
59 if test x"$targetname" != x""; then
60 ippool_utils="rlm_ippool_tool"
61 ippool_install="rlm_ippool_install"
64 ippool_ldflags=$SMART_LIBS
65 ippool_cflags=$SMART_CFLAGS
66 AC_SUBST(ippool_ldflags)
67 AC_SUBST(ippool_cflags)
69 AC_SUBST(ippool_utils)
70 AC_SUBST(ippool_install)
71 AC_CONFIG_HEADER(config.h)