8 AC_REVISION($Revision$)
9 AC_DEFUN(modname,[rlm_eap_tls])
15 if test x$with_[]modname != xno; then
17 dnl ############################################################
18 dnl # Check for command line options
19 dnl ############################################################
21 AC_ARG_WITH(rlm-eap-tls-lib-dir,
22 [ --with-rlm-eap-tls-lib-dir directory for eap-tls libs],
23 eap_tls_ldflags="-L$withval")
25 AC_ARG_WITH(rlm-eap-tls-include-dir,
26 [ --with-rlm-eap-tls-include-dir directory for eap-tls includes],
27 eap_tls_cflags="-I$withval")
29 dnl ############################################################
30 dnl # Check for OpenSSL support
31 dnl ############################################################
33 AC_MSG_CHECKING(for OpenSSL support)
34 if test "x$OPENSSL_LIBS" != "x"; then
44 echo \*\*\* module modname is disabled.
47 if test x"$fail" != x""; then
48 if test x"${enable_strict_dependencies}" = x"yes"; then
49 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
51 AC_MSG_WARN([silently not building ]modname[.])
52 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.])
53 if test x"$headersuggestion" != x; then
54 AC_MSG_WARN([$headersuggestion])
56 if test x"$libsuggestion" != x; then
57 AC_MSG_WARN([$libsuggestion])
63 AC_SUBST(eap_tls_ldflags)
64 AC_SUBST(eap_tls_cflags)
66 AC_CONFIG_HEADER([config.h])