Add --disable-library option: don't install libntfs-3g but link into ntfs-3g.

Binary size is 10-15% down, performance is 2-5% up (Bernhard Kaindl)
master
szaka 2007-08-23 22:32:25 +00:00
parent 8824fbe7ae
commit 965dd72bb3
3 changed files with 17 additions and 0 deletions

View File

@ -78,6 +78,16 @@ AC_ARG_ENABLE(ldconfig,
)
AM_CONDITIONAL(RUN_LDCONFIG, test "$enable_ldconfig" = yes)
AC_ARG_ENABLE(library,
AS_HELP_STRING(--disable-library,do not install libntfs-3g but link
it into ntfs-3g), ,
enable_library=yes
)
if test "$enable_library" != yes; then
enable_shared=no
fi
AM_CONDITIONAL(INSTALL_LIBRARY, test "$enable_library" = yes)
# Use GNU extensions if available.
AC_GNU_SOURCE

View File

@ -1,4 +1,5 @@
if INSTALL_LIBRARY
linux_ntfsincludedir = $(includedir)/ntfs-3g
linux_ntfsinclude_HEADERS = \
attrib.h \
@ -30,5 +31,6 @@ linux_ntfsinclude_HEADERS = \
unistr.h \
version.h \
volume.h
endif
MAINTAINERCLEANFILES = Makefile.in

View File

@ -27,7 +27,12 @@
linux_ntfsincludedir = -I$(top_srcdir)/include/ntfs-3g
if INSTALL_LIBRARY
lib_LTLIBRARIES = libntfs-3g.la
else
noinst_LTLIBRARIES = libntfs-3g.la
endif
libntfs_3g_la_LDFLAGS = -version-number $(LIBNTFS_3G_VERSION)
libntfs_3g_la_CFLAGS = $(LIBNTFS_3G_CFLAGS)
libntfs_3g_la_SOURCES = \