mctp-demux-daemon: Use systemd socket activation

Take advantage of lazy initialisation.

However, this also allows (one) daemon providing services over MCTP
(pldmd) an opportunity to start prior to MCTP interfaces coming up. This
is a stunted way to provide capabilities that might be assumed by other
components (the host) without implementing some required messages from
the MCTP standard.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4b1c21f4fd42f84e2c85a453570a74330fc70ecf
diff --git a/configure.ac b/configure.ac
index 1e8a419..bbdc7b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,6 +48,12 @@
            [with_systemdsystemunitdir="$def_systemdsystemunitdir"]
      )]
 )
+
+AC_CHECK_HEADER([systemd/sd-daemon.h],
+                [AC_DEFINE([HAVE_SYSTEMD_SD_DAEMON_H], [1],
+                           [Define to 1 if you have <systemd/sd-daemon.h>.])],
+                [])
+AC_CHECK_LIB([systemd], [sd_listen_fds])
 AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
       [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])]
 )