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

gpm-brightness: add systemd-logind fallback #380

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
19 changes: 19 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ XRANDR_REQUIRED=1.3.0
XPROTO_REQUIRED=7.0.15
CANBERRA_REQUIRED=0.10
UPOWER_REQUIRED=0.99.8
LIBGUDEV_REQUIRED=234

dnl ---------------------------------------------------------------------------
dnl - Check library dependencies
Expand Down Expand Up @@ -172,6 +173,23 @@ if test "$with_libsecret" = "yes" -a "$with_keyring" = "yes"; then
AC_MSG_ERROR([Please select only 1, keyring or libsecret])
fi

dnl ---------------------------------------------------------------------------
dnl - Build udev support
dnl ---------------------------------------------------------------------------
AC_ARG_WITH(udev,
[AS_HELP_STRING([--with-udev],
[Directly query devices for enhanced hardware support])],
[],
[with_udev=no])

AM_CONDITIONAL([WITH_UDEV],[test "$with_udev" = "yes"])

if test "$with_udev" = "yes"; then
PKG_CHECK_MODULES(UDEV, gudev-1.0 >= $LIBGUDEV_REQUIRED)
AC_DEFINE([WITH_UDEV],[1],[Define if UDEV support is enabled])
fi


dnl ---------------------------------------------------------------------------
dnl - Build applets
dnl ---------------------------------------------------------------------------
Expand Down Expand Up @@ -249,6 +267,7 @@ Configure summary:

libsecret support ...........: ${with_libsecret}
gnome-keyring support .......: ${with_keyring}
udev support ................: ${with_udev}
Building extra applets ......: ${enable_applets}
Self test support ...........: ${have_tests}
dbus-1 services dir .........: $DBUS_SERVICES_DIR
Expand Down
5 changes: 5 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ AM_CPPFLAGS = \
$(CAIRO_CFLAGS) \
$(LIBSECRET_CFLAGS) \
$(KEYRING_CFLAGS) \
$(UDEV_CFLAGS) \
$(X11_CFLAGS) \
$(LIBNOTIFY_CFLAGS) \
$(CANBERRA_CFLAGS) \
Expand Down Expand Up @@ -84,6 +85,7 @@ mate_power_backlight_helper_SOURCES = \
mate_power_backlight_helper_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
$(UDEV_LIBS) \
-lm

mate_power_backlight_helper_CFLAGS = \
Expand All @@ -109,6 +111,7 @@ mate_power_statistics_SOURCES = \
mate_power_statistics_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
$(UDEV_LIBS) \
$(X11_LIBS) \
$(UPOWER_LIBS) \
$(CAIRO_LIBS) \
Expand Down Expand Up @@ -136,6 +139,7 @@ mate_power_preferences_SOURCES = \
mate_power_preferences_LDADD = \
libgpmshared.a \
$(GLIB_LIBS) \
$(UDEV_LIBS) \
$(X11_LIBS) \
$(CAIRO_LIBS) \
$(DBUS_LIBS) \
Expand Down Expand Up @@ -200,6 +204,7 @@ mate_power_manager_LDADD = \
$(CAIRO_LIBS) \
$(LIBSECRET_LIBS) \
$(KEYRING_LIBS) \
$(UDEV_LIBS) \
$(DBUS_LIBS) \
$(X11_LIBS) \
$(CANBERRA_LIBS) \
Expand Down
Loading