Add rlm_sqlhpwippool (hierarchical, prioritized, weighted IP Pool module) with thanks...
[freeradius.git] / src / modules / rlm_sqlhpwippool / configure.in
1 AC_INIT(rlm_sqlhpwippool.c)
2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_sqlhpwippool])
4
5 if test x$with_[]modname != xno; then
6
7         AC_PROG_CC
8         AC_PROG_CPP
9
10         targetname=modname
11 else
12         targetname=
13         echo \*\*\* module modname is disabled.
14 fi
15
16 if test x"$fail" != x""; then
17         if test x"${enable_strict_dependencies}" = x"yes"; then
18                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
19         else
20                 AC_MSG_WARN([silently not building ]modname[.])
21                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); 
22                 targetname=""
23         fi
24 fi
25
26 sqlhpwippool_ldflags=$SMART_LIBS
27 sqlhpwippool_cflags=$SMART_CFLAGS
28 AC_SUBST(sqlhpwippool_ldflags)
29 AC_SUBST(sqlhpwippool_cflags)
30 AC_SUBST(targetname)
31 AC_CONFIG_HEADER(config.h)
32 AC_OUTPUT(Makefile)