From fd71e36096299dd813108c14fbafcc468cbc5d64 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Wed, 6 Jul 2011 09:48:45 +0200 Subject: [PATCH] Added a new configure option '--disable-ntfs-3g'. The binaries 'ntfs-3g', 'lowntfs-3g', 'ntfs-3g.probe' 'ntfs-3g.usermap' and 'ntfs-3g.secaudit' will not be built when this option is passed to 'configure'. When specifying both '--disable-ntfsprogs' and '--disable-ntfs-3g', only libntfs-3g will be built (no executable binaries). --- configure.ac | 8 ++++++++ src/Makefile.am | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 19f73244..128340ad 100644 --- a/configure.ac +++ b/configure.ac @@ -128,6 +128,13 @@ AC_ARG_ENABLE( [enable_device_default_io_ops="yes"] ) +AC_ARG_ENABLE( + [ntfs-3g], + [AS_HELP_STRING([--disable-ntfs-3g],[disable the ntfs-3g FUSE driver])], + , + [enable_ntfs_3g="yes"] +) + AC_ARG_ENABLE( [ntfsprogs], [AS_HELP_STRING([--disable-ntfsprogs],[disable ntfsprogs utilities @@ -500,6 +507,7 @@ AM_CONDITIONAL([RUN_LDCONFIG], [test "${enable_ldconfig}" = "yes"]) AM_CONDITIONAL([REALLYSTATIC], [test "${enable_really_static}" = "yes"]) AM_CONDITIONAL([INSTALL_LIBRARY], [test "${enable_library}" = "yes"]) AM_CONDITIONAL([ENABLE_MOUNT_HELPER], [test "${enable_mount_helper}" = "yes"]) +AM_CONDITIONAL([ENABLE_NTFS_3G], [test "${enable_ntfs_3g}" = "yes"]) AM_CONDITIONAL([ENABLE_NTFSPROGS], [test "${enable_ntfsprogs}" = "yes"]) AM_CONDITIONAL([ENABLE_EXTRAS], [test "${enable_extras}" = "yes"]) diff --git a/src/Makefile.am b/src/Makefile.am index dc55ba0e..89ac5ce0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,6 +11,8 @@ FUSE_CFLAGS = $(FUSE_MODULE_CFLAGS) FUSE_LIBS = $(FUSE_MODULE_LIBS) endif +if ENABLE_NTFS_3G + bin_PROGRAMS = ntfs-3g.probe \ ntfs-3g.usermap \ ntfs-3g.secaudit @@ -80,3 +82,5 @@ uninstall-local: if ENABLE_MOUNT_HELPER $(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g" endif + +endif # ENABLE_NTFS_3G