Commit ea265428 authored by Slava Monich's avatar Slava Monich

[connman] Link with libsystemd. Contributes to JB#37916

parent e7d490ff
......@@ -83,15 +83,22 @@ else
IPHB_CFLAGS=""
IPHB_LIBS=""
fi
AC_SUBST(IPHB_CFLAGS)
AC_SUBST(IPHB_LIBS)
AC_ARG_ENABLE(systemd,
AC_HELP_STRING([--enable-systemd],
[enable systemd notify on start]), [
if (test "${enableval}" = "yes"); then
CFLAGS="$CFLAGS -DSYSTEMD -lsystemd-daemon"
fi])
[enable systemd notify on start]),
[enable_systemd=${enableval}],
[enable_systemd="no"])
if (test "${enable_systemd}" = "yes"); then
PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd, dummy=yes,
AC_MSG_ERROR(libsystemd is required))
CFLAGS="$CFLAGS $LIBSYSTEMD_CFLAGS"
LIBS="$LIBS $LIBSYSTEMD_LIBS"
fi
CONNMAN_SERVICE_REQUIRES="dbus.socket oneshot-root.service"
CONNMAN_SERVICE_AFTER="dbus.socket oneshot-root.service"
......
......@@ -27,7 +27,7 @@ BuildRequires: pkgconfig(gnutls)
BuildRequires: openconnect
BuildRequires: openvpn
BuildRequires: readline-devel
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libiphb)
BuildRequires: pkgconfig(libgofono) >= 2.0.0
BuildRequires: pkgconfig(libgofonoext)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment