2 AC_CONFIG_HEADER(config.h)
3 AC_REVISION($Revision$)
4 AC_DEFUN(modname,[rlm_smb])
6 if test x$with_[]modname != xno; then
11 dnl extra argument: --with-rlm-smb-lib-dir
13 AC_ARG_WITH(rlm-smb-lib-dir,
14 [ --with-rlm-smb-lib-dir=DIR Directory for samba library files []],
17 AC_MSG_ERROR(Need rlm-smb-lib-dir)
22 rlm_smb_lib_dir="$withval"
27 dnl extra argument: --with-rlm-smb-include-dir
29 AC_ARG_WITH(rlm-smb-include-dir,
30 [ --with-rlm-smb-include-dir=DIR Directory for samba include files []],
33 AC_MSG_ERROR(Need rlm-smb-include-dir)
38 rlm_smb_include_dir="$withval"
43 AC_CHECK_HEADERS(arpa/inet.h \
61 echo \*\*\* module modname is disabled.
64 if test x"$fail" != x""; then
65 if test x"${enable_strict_dependencies}" = x"yes"; then
66 AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
68 AC_MSG_WARN([silently not building ]modname[.])
69 AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);