diff options
author | Max Kellermann <max@duempel.org> | 2015-03-20 22:12:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-20 22:12:43 +0100 |
commit | 400e3ea64960f9bcaf5ab83d7e1bea405bb5fc89 (patch) | |
tree | d310f385a5d83cc4b3c2659cf5808d18bb49e3de /configure.ac | |
parent | 622d871587df9f2d638f73d3aae550c3a3dc3500 (diff) | |
download | mpd-400e3ea64960f9bcaf5ab83d7e1bea405bb5fc89.tar.gz mpd-400e3ea64960f9bcaf5ab83d7e1bea405bb5fc89.tar.xz mpd-400e3ea64960f9bcaf5ab83d7e1bea405bb5fc89.zip |
configure.ac: support libsystemd (instead of the older libsystemd-daemon)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e3aa2e7ed..dfd208ae5 100644 --- a/configure.ac +++ b/configure.ac @@ -542,9 +542,16 @@ if AC_MSG_ERROR([No client interfaces configured!]) fi -MPD_ENABLE_AUTO_PKG(systemd_daemon, SYSTEMD_DAEMON, libsystemd-daemon, - [systemd socket activation], [libsystemd-daemon not found], - [$linux_auto]) +MPD_ENABLE_AUTO(systemd_daemon, SYSTEMD_DAEMON, [systemd socket activation], + [libsystemd not found], [$linux_auto], [ + dnl Check for libsystemd and fall back to (the older) + dnl libsystemd-daemon + PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd], + [found_systemd_daemon=yes], + [PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon], + [found_systemd_daemon=yes], + [found_systemd_daemon=no])]) +]) dnl --------------------------------------------------------------------------- dnl LIBC Features |