import from branch_1_1:
[freeradius.git] / src / modules / rlm_attr_rewrite / configure.in
1 AC_PREREQ([2.53])
2 AC_INIT(rlm_attr_rewrite.c)
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_attr_rewrite])
5
6 if test x$with_[]modname != xno; then
7
8         AC_PROG_CC
9         AC_PROG_CPP
10
11         AC_CHECK_HEADERS(regex.h)
12
13         if test "$ac_cv_header_regex_h" != "yes"; then
14                 AC_MSG_RESULT(no regex.h)
15                 [ fail=$fail" regex.h" ]
16         fi
17
18         targetname=modname
19 else
20         targetname=
21         echo \*\*\* module modname is disabled.
22 fi
23
24 dnl  Don't change this section.
25 if test x"$fail" != x""; then
26         if test x"${enable_strict_dependencies}" = x"yes"; then
27                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
28         else
29                 AC_MSG_WARN([silently not building ]modname[.])
30                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
31                 targetname=""
32         fi
33 fi
34
35
36 AC_SUBST(attr_rewrite_cflags)
37 AC_SUBST(attr_rewrite_ldflags)
38
39 AC_SUBST(targetname)
40 AC_OUTPUT(Makefile)