]> git.ozlabs.org Git - ppp.git/blobdiff - configure.ac
configure.ac, pppd/Makefile.am: use pkg-config to link against systemd
[ppp.git] / configure.ac
index 819d766081bf44ffe879ab8d29c364fc51b9cbf4..93e60f6568a102b82df0a28357695123a90d886a 100644 (file)
@@ -106,6 +106,10 @@ AM_CONDITIONAL(WITH_SYSTEMD, test "x${enable_systemd}" = "xyes")
 AM_COND_IF([WITH_SYSTEMD],
     AC_DEFINE([SYSTEMD], 1, [Enable support for systemd notifications]))
 
+if test "x${enable_systemd}" = "xyes"; then
+       PKG_CHECK_MODULES([systemd], [systemd])
+fi
+
 #
 # Enable Callback Protocol Support, disabled by default
 AC_ARG_ENABLE([cbcp],