If it's not present, we just don't install the icon.
[have_poppler=yes], [have_poppler=no])
AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes")
+AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
+AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],,
enable_x11_compositor=yes)
top_side.png \
xterm.png \
wayland.svg \
- wayland.png
+ $(wayland_icon_png)
+
+if HAVE_RSVG_CONVERT
+wayland_icon_png = wayland.png
wayland.png : wayland.svg
- rsvg-convert -w 128 -h 128 wayland.svg -o wayland.png
+ $(RSVG_CONVERT) -w 128 -h 128 wayland.svg -o wayland.png
+endif