From bbe289c4895ed37727be8291c9a7ec1f1e247657 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Thu, 3 May 2012 21:01:54 +0200 Subject: uuidd: implement --socket-activation option Implement --socket-activation option, which is supposed to be used with systemd (or equivalent init system) socket activation mechanism. With this option, the UUID daemon does not create the socket on its own, but instead expect the connection fd to be provided by the calling process. This option is only available if util-linux is configured with --enable-socket-activation option. With this configure option, the uuidd is compiled with sd-daemon.c. Signed-off-by: Petr Uzel --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b5f3d5700..8b80f388f 100644 --- a/configure.ac +++ b/configure.ac @@ -1131,6 +1131,18 @@ if test "x$enable_login_chown_vcs" = xyes; then fi +AC_ARG_ENABLE([socket-activation], + AS_HELP_STRING([--enable-socket-activation], [build uuidd with support for systemd socket activation]), + [], enable_socket_activation=no +) + +AM_CONDITIONAL(USE_SOCKET_ACTIVATION, test "x$enable_socket_activation" = xyes) + +if test "x$enable_socket_activation" = xyes; then + AC_DEFINE(USE_SOCKET_ACTIVATION, 1, [Should uuidd support socket activation?]) +fi + + AC_ARG_ENABLE([login-stat-mail], AS_HELP_STRING([--enable-login-stat-mail], [let login stat() the mailbox]), [], enable_login_stat_mail=no -- cgit v1.2.3-55-g7522