]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- add configuration option --enable-xattrs
authorOndrej Kozina <okozina@redhat.com>
Tue, 5 Feb 2013 18:11:14 +0000 (19:11 +0100)
committerOndrej Kozina <okozina@redhat.com>
Wed, 27 Feb 2013 16:30:09 +0000 (17:30 +0100)
configure.in
snapper/Makefile.am

index af98f5ae7ee84835bd8fa4fb99bf58d00f881458..ca55d62280f46902f0b5089d7d90252f4d754c83 100644 (file)
@@ -96,6 +96,15 @@ AM_CONDITIONAL(HAVE_ZYPP, [test "$with_zypp" != "no"])
 
 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)
index a32e4ea217fc9059dbf6e99ae8c5aa673387ac02..1ea31e8bc4d02acbad256a8d5460e699f44458d0 100644 (file)
@@ -8,6 +8,10 @@ INCLUDES = -I/usr/include/libxml2
 
 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               \
@@ -25,11 +29,13 @@ libsnapper_la_SOURCES =                                     \
        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 +=                               \