When we have a tunneled MS-CHAP2-Success attribute, it goes
[freeradius.git] / src / modules / rlm_eap / configure.in
1 AC_INIT(rlm_eap.c)
2 AC_REVISION($Revision$)
3 AC_DEFUN(modname,[rlm_eap])
4
5 fail=
6 SMART_LIBS=
7 SMART_CLFAGS=
8 if test x$with_[]modname != xno; then
9
10         AC_PROG_CC
11
12         eapsubdirs=
13         for foo in `find ./types -name configure -print`; do
14           bar=`echo $foo | sed 's%/configure$%%g'`
15           eapsubdirs="$eapsubdirs $bar"
16         done
17
18         dnl # don't ask... this is done to avoid autoconf stupidities.
19         ln -s ../../../install-sh install-sh
20
21         dnl #
22         dnl #  Don't change the variable name here.  Autoconf goes bonkers
23         dnl #  if you do.
24         dnl #
25         AC_CONFIG_SUBDIRS($eapsubdirs)
26         rm install-sh
27
28         dnl # 
29         dnl # Don't bother looking for errors in the child directories
30         dnl # 
31
32         targetname=modname
33 else
34         targetname=
35         echo \*\*\* module modname is disabled.
36 fi
37
38 if test x"$fail" != x""; then
39         if test x"${enable_strict_dependencies}" = x"yes"; then
40                 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
41         else
42                 AC_MSG_WARN([silently not building ]modname[.])
43                 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.])
44                 if test x"$headersuggestion" != x; then
45                         AC_MSG_WARN([$headersuggestion]) 
46                 fi
47                 if test x"$libsuggestion" != x; then
48                         AC_MSG_WARN([$libsuggestion]) 
49                 fi
50                 targetname=""
51             eapsubdirs=""
52         fi
53 fi
54
55 eaptypes=types
56 if test x"$eapsubdirs" = x""; then
57         eaptypes=""
58 fi
59
60 eap_ldflags=$SMART_LIBS
61 eap_cflags=$SMART_CFLAGS
62 AC_SUBST(eaptypes)
63 AC_SUBST(eap_ldflags)
64 AC_SUBST(eap_cflags)
65 AC_SUBST(targetname)
66 AC_OUTPUT(Makefile)