+# SD_DAEMON (Only needed if systemd socket activation is desired.)
+#
+if (WITH_SD_DAEMON)
+ find_package(PkgConfig)
+ pkg_check_modules(SD_DAEMON REQUIRED libsystemd-daemon)
+
+ include_directories(${SD_DAEMON_INCLUDE_DIRS})
+ list(APPEND LIB_LIST ${SD_DAEMON_LIBRARIES})
+ add_definitions(${SD_DAEMON_CFLAGS_OTHER})
+ add_definitions(-DHAVE_SYSTEMD_DAEMON)
+endif()
+
+#