backport from HEAD
[freeradius.git] / src / modules / rlm_checkval / configure.in
1 AC_INIT(rlm_checkval.c)
2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_checkval])
4
5 if test x$with_[]modname != xno; then
6
7         AC_PROG_CC
8         AC_PROG_CPP
9
10         ## We may need more complex checking here.  Assume for now that 
11         ## everyone has it.
12         AC_CHECK_HEADERS(regex.h)
13
14         targetname=modname
15 else
16         targetname=
17         echo \*\*\* module modname is disabled.
18 fi
19
20 dnl  Don't change this section.
21 if test x"$fail" != x""; then
22         if test x"${enable_strict_dependencies}" = x"yes"; then
23                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
24         else
25                 AC_MSG_WARN([silently not building ]modname[.])
26                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); 
27                 targetname=""
28         fi
29 fi
30
31
32 AC_SUBST(checkval_cflags)
33 AC_SUBST(checkval_ldflags)
34
35 AC_CONFIG_HEADER(config.h)  # delete if you don't want a config.h file.
36
37 AC_SUBST(targetname)
38 AC_OUTPUT(Makefile)