AC_CHECK_LIB(btrfs, btrfs_read_and_process_send_stream)
+AC_ARG_ENABLE([xattrs], AC_HELP_STRING([--enable-xattrs],[Enable extended attributes support in diff, status and undochange commands]),
+ [with_xattrs=$enableval],[with_xattrs=no])
+
+AM_CONDITIONAL(HAVE_XATTRS, [test "x$with_xattrs" != "xno"])
+
+if test "x$with_xattrs" != "xno"; then
+ AC_DEFINE(ENABLE_XATTRS, 1, [Enable extended attributes support])
+fi
+
PKG_CHECK_MODULES(DBUS, dbus-1)
AC_SUBST(VERSION)
lib_LTLIBRARIES = libsnapper.la
+if HAVE_XATTRS
+TMP_XA = XAttributes.cc Xattributes.h
+endif HAVE_XATTRS
+
libsnapper_la_SOURCES = \
Factory.cc Factory.h \
Snapper.cc Snapper.h \
SystemCmd.cc SystemCmd.h \
AsciiFile.cc AsciiFile.h \
Regex.cc Regex.h \
- XAttributes.cc Xattributes.h \
Exception.h \
SnapperTmpl.h \
SnapperTypes.h \
- SnapperDefines.h
+ SnapperDefines.h \
+ $(TMP_XA)
+
+
if ENABLE_BTRFS
libsnapper_la_SOURCES += \