diff --git a/configure.ac b/configure.ac index 1191266..07428ce 100644 --- a/configure.ac +++ b/configure.ac @@ -123,6 +123,10 @@ AC_ARG_ENABLE([zypp], AC_HELP_STRING([--disable-zypp],[Disable zypp plugin suppo [with_zypp=$enableval],[with_zypp=yes]) AM_CONDITIONAL(HAVE_ZYPP, [test "x$with_zypp" = "xyes"]) +AC_ARG_ENABLE([systemd], AC_HELP_STRING([--disable-systemd],[Disable systemd support]), + [enable_systemd=$enableval],[enable_systemd=yes]) +AM_CONDITIONAL(ENABLE_SYSTEMD, [test "x$enable_systemd" = "xyes"]) + AC_CHECK_LIB(btrfs, btrfs_read_and_process_send_stream) AC_CHECK_HEADERS([btrfs/version.h]) diff --git a/data/Makefile.am b/data/Makefile.am index 81f8b48..b9a761c 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -21,6 +21,7 @@ install-data-local: install -D -m 644 org.opensuse.Snapper.conf $(DESTDIR)/etc/dbus-1/system.d/org.opensuse.Snapper.conf install -D -m 644 org.opensuse.Snapper.service $(DESTDIR)/usr/share/dbus-1/system-services/org.opensuse.Snapper.service +if ENABLE_SYSTEMD install -D -m 644 timeline.service $(DESTDIR)/usr/lib/systemd/system/snapper-timeline.service install -D -m 644 timeline.timer $(DESTDIR)/usr/lib/systemd/system/snapper-timeline.timer install -D -m 644 cleanup.service $(DESTDIR)/usr/lib/systemd/system/snapper-cleanup.service @@ -28,6 +29,7 @@ install-data-local: install -D -m 644 boot.service $(DESTDIR)/usr/lib/systemd/system/snapper-boot.service install -D -m 644 boot.timer $(DESTDIR)/usr/lib/systemd/system/snapper-boot.timer install -D -m 644 snapperd.service $(DESTDIR)/usr/lib/systemd/system/snapperd.service +endif if HAVE_ZYPP install -D -m 644 zypp-plugin.conf $(DESTDIR)/etc/snapper/zypp-plugin.conf