summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorPaul Querna <pquerna@apache.org>2013-08-06 18:51:15 +0200
committerPaul Querna <pquerna@apache.org>2013-08-06 18:51:15 +0200
commitba9ab903c448f1866544e2b91317e10ebe922844 (patch)
tree75975fc15702a6fbf2299bc2d193cb622a278597 /configure.in
parenttweak indentation (diff)
downloadapache2-ba9ab903c448f1866544e2b91317e10ebe922844.tar.xz
apache2-ba9ab903c448f1866544e2b91317e10ebe922844.zip
Add support for systemd socket activation to listener sockets.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1511033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 1332377b6e..bcde867078 100644
--- a/configure.in
+++ b/configure.in
@@ -322,6 +322,15 @@ case $host in
APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
;;
*-linux-*)
+ AC_CHECK_LIB(systemd-daemon, sd_notify, SYSTEMD_LIBS="-lsystemd-daemon")
+ AC_CHECK_HEADERS(systemd/sd-daemon.h, [ap_HAVE_SD_DAEMON_H="yes"], [ap_HAVE_SD_DAEMON_H="no"])
+ if test $ap_HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then
+ AC_MSG_WARN([Your system does not support systemd.])
+ else
+ APR_ADDTO(LIBS, $SYSTEMD_LIBS)
+ APR_ADDTO(INTERNAL_CPPFLAGS, [-DAP_SYSTEMD_SUPPORT])
+ fi
+
case `uname -r` in
# Unserialized accept() was not recommended until Linux 2.2.
[[01]].* | 2.[[01]]* )