common: Check for wayland before building GsdUdevDeviceManager

Udev is rather common, so this check doesn't suffice if anyone wants
to build with no wayland support whatsoever.

https://bugzilla.gnome.org/show_bug.cgi?id=780544
This commit is contained in:
Carlos Garnacho 2017-07-19 19:44:35 +02:00
parent 7ce6bd1e55
commit f24b528695
2 changed files with 2 additions and 1 deletions

View file

@ -191,6 +191,7 @@ if test "x$have_wayland" = xyes ; then
AC_MSG_ERROR([udev is required for Wayland support])
fi
fi
AM_CONDITIONAL(HAVE_WAYLAND, [test "x$have_wayland" = "xyes"])
# Panels that must be built on Linux systems
linux_error_or_warn()

View file

@ -62,7 +62,7 @@ libdevice_la_SOURCES = \
libdevice_la_LIBADD = \
$(DEVICES_LIBS)
if HAVE_UDEV
if HAVE_WAYLAND
AM_CPPFLAGS += $(UDEV_CFLAGS)
libdevice_la_LIBADD += $(UDEV_LIBS)
libdevice_la_SOURCES += \