with_raddbdir
with_ascend_binary
with_threads
+with_tcp
with_vmps
with_dhcp
with_static_modules
--with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
--with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
--with-threads Use threads, if available. (default=yes)
+ --with-tcp Compile in TCP support. (default=yes)
--with-vmps Compile in VMPS support. (default=yes)
--with-dhcp Compile in DHCP support. (default=yes)
--with-static-modules=QUOTED-MODULE-LIST
yes)
;;
*)
- WITH_ASCEND_BINARY=""
+ WITH_ASCEND_BINARY=no
esac
fi
-if test "X$WITH_ASCEND_BINARY" = "Xyes"; then
+if test "x$WITH_ASCEND_BINARY" = "xyes"; then
-$as_echo "#define WITH_ASCEND_BINARY /**/" >>confdefs.h
+$as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
fi
yes)
;;
*)
- WITH_THREADS=""
+ WITH_THREADS=no
esac
fi
+WITH_TCP=yes
+
+# Check whether --with-tcp was given.
+if test "${with_tcp+set}" = set; then :
+ withval=$with_tcp; case "$withval" in
+ yes)
+ ;;
+ *)
+ WITH_TCP=no
+ esac
+
+fi
+
+if test "x$WITH_TCP" = "xyes"; then
+
+$as_echo "#define WITH_TCP 1" >>confdefs.h
+
+fi
+
WITH_VMPS=yes
# Check whether --with-vmps was given.
fi
-
STATIC_MODULES=
# Check whether --with-static_modules was given.
fi
+if test "x$WITH_THEADS" = "xyes"; then
+
+$as_echo "#define WITH_THREADS 1" >>confdefs.h
+
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
$as_echo_n "checking for dlopen in -ldl... " >&6; }
if ${ac_cv_lib_dl_dlopen+:} false; then :
+
+
mysubdirs=""
if test "x$EXPERIMENTAL" = "xyes"; then
bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
yes)
;;
*)
- WITH_ASCEND_BINARY=""
+ WITH_ASCEND_BINARY=no
esac ]
)
-if test "X$WITH_ASCEND_BINARY" = "Xyes"; then
- AC_DEFINE(WITH_ASCEND_BINARY, [], [Include support for Ascend binary filter attributes])
+if test "x$WITH_ASCEND_BINARY" = "xyes"; then
+ AC_DEFINE(WITH_ASCEND_BINARY, [1], [Include support for Ascend binary filter attributes])
fi
dnl extra argument: --with-threads
yes)
;;
*)
- WITH_THREADS=""
+ WITH_THREADS=no
esac ]
)
+dnl extra argument: --with-tcp
+WITH_TCP=yes
+AC_ARG_WITH(tcp,
+[ --with-tcp Compile in TCP support. (default=yes)],
+[ case "$withval" in
+ yes)
+ ;;
+ *)
+ WITH_TCP=no
+ esac ]
+)
+if test "x$WITH_TCP" = "xyes"; then
+ AC_DEFINE(WITH_TCP, [1], [define if you want TCP support (For RADSec et al)])
+fi
+
dnl extra argument: --with-vmps
WITH_VMPS=yes
AC_ARG_WITH(vmps,
AC_DEFINE(WITH_DHCP, [1], [define if you want DHCP support])
fi
-
dnl #
dnl # Allow the user to specify a list of modules to be linked
dnl # statically to the server.
)
fi
+if test "x$WITH_THEADS" = "xyes"; then
+ AC_DEFINE(WITH_THREADS, [1], [define if you want thread support])
+fi
+
dnl Check if we need -lsocket
AC_CHECK_LIB(dl, dlopen)