3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_example])
6 if test x$with_[]modname != xno; then
10 dnl put configuration checks here.
11 dnl set $fail to what's missing, on fatal errors.
12 dnl use AC_MSG_WARN() on important messages.
13 FR_SMART_CHECK_LIB(c, printf)
14 if test "x$ac_cv_lib_c_printf" != "xyes"; then
18 FR_SMART_CHECK_INCLUDE(stdio.h)
19 if test "$ac_cv_header_stdio_h" != "yes"; then
25 echo \*\*\* module modname is disabled.
28 if test x"$fail" != x""; then
29 if test x"${enable_strict_dependencies}" = x"yes"; then
30 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
32 AC_MSG_WARN([silently not building ]modname[.])
33 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
38 mod_ldflags="${SMART_LIBS}"
39 mod_cflags="${SMART_CFLAGS}"
44 AC_CONFIG_HEADER(config.h)