Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: Use libelogind when libsystemd is not available #32

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ AC_TYPE_UINT64_T
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC

PKG_CHECK_MODULES(SYSTEMD, libsystemd >= 221) # event loop supported in libsystemd version >= 221
# event loop supported in libsystemd version >= 221
PKG_CHECK_MODULES(SYSTEMD, libsystemd >= 221, [], [
PKG_CHECK_MODULES(ELOGIND, [libelogind >= 221])])

PKG_CHECK_MODULES(UDEV, libudev >= 174) # support for device tagging added in libudev version >= 174

Expand Down
2 changes: 2 additions & 0 deletions src/resource/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ pkginclude_HEADERS = $(top_builddir)/src/include/types.h \
$(top_builddir)/src/include/ubridge-cmd-module.h \
$(top_builddir)/src/include/worker-control.h
libsidresource_la_CFLAGS = $(SYSTEMD_CFLAGS) \
$(ELOGIND_CFLAGS) \
$(UDEV_CFLAGS)
libsidresource_la_LIBADD = $(top_builddir)/src/misc/libsidmisc.la \
$(SYSTEMD_LIBS) \
$(ELOGIND_LIBS) \
$(UDEV_LIBS) \
-ldl