mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Updated files needed to make a build
This commit is contained in:
parent
a58ff9073d
commit
67618ba2c4
11
Makefile.am
11
Makefile.am
@ -1,5 +1,6 @@
|
||||
|
||||
AUTOMAKE_OPTIONS = gnu
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
EXTRA_DIST = AUTHORS CREDITS COPYING NEWS autogen.sh
|
||||
|
||||
@ -16,8 +17,16 @@ MAINTAINERCLEANFILES=\
|
||||
$(srcdir)/config.sub \
|
||||
$(srcdir)/config.h.in \
|
||||
$(srcdir)/config.h.in~ \
|
||||
$(srcdir)/INSTALL
|
||||
$(srcdir)/INSTALL \
|
||||
$(srcdir)/m4/ltsugar.m4 \
|
||||
$(srcdir)/m4/libtool.m4 \
|
||||
$(srcdir)/m4/ltversion.m4 \
|
||||
$(srcdir)/m4/lt~obsolete.m4 \
|
||||
$(srcdir)/m4/ltoptions.m4
|
||||
|
||||
SUBDIRS = include libfuse-lite libntfs-3g src
|
||||
|
||||
doc_DATA = README
|
||||
|
||||
dist-hook:
|
||||
$(MKDIR_P) "$(distdir)/m4"
|
||||
|
7655
aclocal.m4
vendored
Normal file
7655
aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -18,5 +18,5 @@
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo Running autoreconf --verbose --install
|
||||
autoreconf --force --verbose --install
|
||||
echo Running autoreconf --verbose --install --force
|
||||
autoreconf --verbose --install --force
|
||||
|
138
configure.ac
138
configure.ac
@ -3,8 +3,8 @@
|
||||
# compilation.
|
||||
#
|
||||
# Copyright (c) 2000-2006 Anton Altaparmakov
|
||||
# Copyright (c) 2005-2007 Szabolcs Szakacsits
|
||||
# Copyright (C) 2007 Alon Bar-Lev
|
||||
# Copyright (c) 2005-2008 Szabolcs Szakacsits
|
||||
# Copyright (C) 2007-2008 Alon Bar-Lev
|
||||
#
|
||||
# This program/include file is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License as published
|
||||
@ -22,9 +22,9 @@
|
||||
# Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
# Autoconf
|
||||
AC_PREREQ([2.59])
|
||||
AC_INIT([ntfs-3g],[1.2129SR.1],[ntfs-3g-devel@lists.sf.net])
|
||||
LIBNTFS_3G_VERSION=211
|
||||
AC_PREREQ(2.59)
|
||||
AC_INIT([ntfs-3g],[1.2812],[ntfs-3g-devel@lists.sf.net])
|
||||
LIBNTFS_3G_VERSION="36"
|
||||
AC_CONFIG_SRCDIR([src/ntfs-3g.c])
|
||||
|
||||
# Environment
|
||||
@ -33,93 +33,105 @@ AC_CANONICAL_TARGET
|
||||
|
||||
# Automake
|
||||
AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}])
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
# Options
|
||||
AC_ARG_ENABLE(
|
||||
[debug],
|
||||
[AC_HELP_STRING([--enable-debug], [enable debugging code and output])],
|
||||
[AS_HELP_STRING([--enable-debug],[enable debugging code and output])],
|
||||
,
|
||||
[enable_debug="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[warnings],
|
||||
[AC_HELP_STRING([--enable-warnings], [enable lots of compiler warnings])],
|
||||
[AS_HELP_STRING([--enable-warnings],[enable lots of compiler warnings])],
|
||||
,
|
||||
[enable_warnings="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[pedantic],
|
||||
[AC_HELP_STRING([--enable-pedantic], [enable compile pedantic mode])],
|
||||
[AS_HELP_STRING([--enable-pedantic],[enable compile pedantic mode])],
|
||||
,
|
||||
[enable_pedantic="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[really-static],
|
||||
[AC_HELP_STRING([--enable-really-static], [create fully static binaries])],
|
||||
[AS_HELP_STRING([--enable-really-static],[create fully static binaries])],
|
||||
,
|
||||
[enable_really_static="no"]
|
||||
)
|
||||
AM_CONDITIONAL([REALLYSTATIC], [test "${enable_really_static}" = "yes"])
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[library],
|
||||
[AC_HELP_STRING([--disable-library], [do not install libntfs-3g but link it into ntfs-3g])],
|
||||
[mount-helper],
|
||||
[AS_HELP_STRING([--enable-mount-helper],[install mount helper @<:@default=enabled for linux@:>@])],
|
||||
,
|
||||
[enable_library="yes"]
|
||||
[
|
||||
case "${target_os}" in
|
||||
linux*) enable_mount_helper="yes" ;;
|
||||
*) enable_mount_helper="no" ;;
|
||||
esac
|
||||
]
|
||||
)
|
||||
test "${enable_really_static}" = "yes" && enable_library="no"
|
||||
AM_CONDITIONAL(INSTALL_LIBRARY, test "$enable_library" = yes)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[ldconfig],
|
||||
[AC_HELP_STRING([--disable-ldconfig], [do not update dynamic linker cache using ldconfig])],
|
||||
,
|
||||
[enable_ldconfig="yes"]
|
||||
)
|
||||
test "${enable_library}" = "no" && enable_ldconfig="no"
|
||||
# --disable-library will disable to run ldconfig since no point to do so.
|
||||
AM_CONDITIONAL(RUN_LDCONFIG, test "$enable_ldconfig" = yes)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[ldscript],
|
||||
[AC_HELP_STRING([--enable-ldscript], [use ldscript instead of .so symlink])],
|
||||
[AS_HELP_STRING([--enable-ldscript],[use ldscript instead of .so symlink])],
|
||||
,
|
||||
[enable_ldscript="no"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[ldconfig],
|
||||
[AS_HELP_STRING([--disable-ldconfig],[do not update dynamic linker cache using ldconfig])],
|
||||
,
|
||||
[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"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[mtab],
|
||||
[AC_HELP_STRING([--disable-mtab], [disable and ignore usage of /etc/mtab])],
|
||||
[AS_HELP_STRING([--disable-mtab],[disable and ignore usage of /etc/mtab])],
|
||||
,
|
||||
[enable_mtab="yes"]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(
|
||||
[device-default-io-ops],
|
||||
[AC_HELP_STRING([--disable-device-default-io-ops], [Install default IO ops])],
|
||||
[AS_HELP_STRING([--disable-device-default-io-ops],[install default IO ops])],
|
||||
,
|
||||
[enable_device_default_io_ops="yes"]
|
||||
)
|
||||
|
||||
# Programs
|
||||
# pthread_rwlock_t requires _GNU_SOURCE
|
||||
AC_GNU_SOURCE
|
||||
AC_PROG_CC
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
# Programs
|
||||
AC_PROG_CC(gcc cc)
|
||||
AC_PROG_LN_S
|
||||
AM_PROG_CC_C_O
|
||||
# No need to check for ldconfig if --disable-ldconfig was given
|
||||
if test "$enable_ldconfig" = yes; then
|
||||
AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
|
||||
fi
|
||||
|
||||
ifdef(
|
||||
[LT_INIT],
|
||||
[LT_INIT],
|
||||
[AC_PROG_LIBTOOL]
|
||||
)
|
||||
|
||||
AC_PATH_PROG([MV], [mv])
|
||||
AC_PATH_PROG([RM], [rm])
|
||||
AC_PATH_PROG([SED], [sed])
|
||||
AC_ARG_VAR([LDCONFIG], [ldconfig utility])
|
||||
AC_PATH_PROG([LDCONFIG], [ldconfig], [true], [/sbin /usr/sbin $PATH])
|
||||
|
||||
# Environment
|
||||
AC_MSG_CHECKING([Windows OS])
|
||||
@ -144,23 +156,31 @@ case "${target_os}" in
|
||||
linux*)
|
||||
AC_ARG_WITH(
|
||||
[fuse],
|
||||
[AC_HELP_STRING([--with-fuse=<internal|external>], [Select FUSE library: internal or external @<:@default=internal@:>@])],
|
||||
[AS_HELP_STRING([--with-fuse=<internal|external>],[Select FUSE library: internal or external @<:@default=internal@:>@])],
|
||||
,
|
||||
[with_fuse="internal"]
|
||||
)
|
||||
;;
|
||||
darwin*|netbsd*)
|
||||
darwin*|netbsd*|solaris*)
|
||||
with_fuse="external"
|
||||
;;
|
||||
freebsd*)
|
||||
AC_MSG_ERROR([Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs])
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([ntfs-3g can be built only under Linux, FreeBSD, Mac OS X, and NetBSD.])
|
||||
AC_MSG_ERROR([ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only.])
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([${with_fuse}])
|
||||
|
||||
case "${target_os}" in
|
||||
solaris*)
|
||||
if test "x$GCC" != "xyes" ; then
|
||||
AC_MSG_ERROR([ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "${enable_ldscript}" = "yes"; then
|
||||
AC_MSG_CHECKING([Output format])
|
||||
OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([[^"]]*\)",.*/\1/p')"
|
||||
@ -180,12 +200,6 @@ if test "${with_fuse}" = "internal"; then
|
||||
[LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread"],
|
||||
[AC_MSG_ERROR([Cannot find pthread library])]
|
||||
)
|
||||
AC_CHECK_LIB(
|
||||
[rt],
|
||||
[clock_gettime],
|
||||
[LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lrt"],
|
||||
[AC_MSG_ERROR([Cannot find rt library])]
|
||||
)
|
||||
AC_DEFINE(
|
||||
[_REENTRANT],
|
||||
[1],
|
||||
@ -222,7 +236,7 @@ AC_CHECK_HEADERS([ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \
|
||||
mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \
|
||||
strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \
|
||||
endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \
|
||||
sys/ioctl.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
|
||||
sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \
|
||||
sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \
|
||||
machine/endian.h windows.h syslog.h])
|
||||
|
||||
@ -258,14 +272,17 @@ AC_FUNC_STRFTIME
|
||||
AC_FUNC_UTIME_NULL
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS([ \
|
||||
atexit basename dup2 fdatasync getopt_long hasmntopt mbsinit \
|
||||
memmove memset realpath regcomp setlocale setxattr strcasecmp strchr \
|
||||
strdup strerror strnlen strtol strtoul sysconf utime fork \
|
||||
atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \
|
||||
mbsinit memmove memset realpath regcomp setlocale setxattr \
|
||||
strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \
|
||||
sysconf utime fork \
|
||||
])
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
# We add -Wall to enable some compiler warnings.
|
||||
CFLAGS="${CFLAGS} -Wall"
|
||||
if test "$GCC" = "yes" ; then
|
||||
# We add -Wall to enable some compiler warnings.
|
||||
CFLAGS="${CFLAGS} -Wall"
|
||||
fi
|
||||
|
||||
if test "${enable_pedantic}" = "yes"; then
|
||||
enable_warnings="yes"
|
||||
@ -291,8 +308,14 @@ test "${enable_device_default_io_ops}" = "no" && AC_DEFINE(
|
||||
[Don't use default IO ops]
|
||||
)
|
||||
|
||||
if test "${enable_mtab}" = "no"; then
|
||||
AC_DEFINE([IGNORE_MTAB], [1], [Don't update /etc/mtab])
|
||||
test "${enable_mtab}" = "no" && AC_DEFINE([IGNORE_MTAB], [1], [Don't update /etc/mtab])
|
||||
|
||||
test "${enable_really_static}" = "yes" && enable_library="no"
|
||||
test "${enable_library}" = "no" && enable_ldconfig="no"
|
||||
|
||||
if test "x${DISTCHECK_HACK}" != "x"; then
|
||||
enable_mount_helper="no"
|
||||
enable_ldconfig="no"
|
||||
fi
|
||||
|
||||
# Settings
|
||||
@ -323,12 +346,21 @@ AM_CONDITIONAL([FUSE_INTERNAL], [test "${with_fuse}" = "internal"])
|
||||
AM_CONDITIONAL([GENERATE_LDSCRIPT], [test "${enable_ldscript}" = "yes"])
|
||||
AM_CONDITIONAL([WINDOWS], [test "${WINDOWS}" = "yes"])
|
||||
AM_CONDITIONAL([NTFS_DEVICE_DEFAULT_IO_OPS], [test "${enable_device_default_io_ops}" = "yes"])
|
||||
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"])
|
||||
|
||||
# workaround for <autoconf-2.60
|
||||
if test -z "${docdir}"; then
|
||||
docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
|
||||
AC_SUBST([docdir])
|
||||
fi
|
||||
# workaround for <automake-1.10
|
||||
if test -z "${MKDIR_P}"; then
|
||||
MKDIR_P="\$(mkdir_p)"
|
||||
AC_SUBST([MKDIR_P])
|
||||
fi
|
||||
|
||||
# generate files
|
||||
AC_CONFIG_FILES([
|
||||
|
@ -37,14 +37,17 @@ install-exec-hook:
|
||||
$(LDCONFIG)
|
||||
endif
|
||||
|
||||
install-exec-local:
|
||||
$(INSTALL) -d "$(DESTDIR)$(rootsbindir)"
|
||||
if ENABLE_MOUNT_HELPER
|
||||
install-exec-local: install-rootbinPROGRAMS
|
||||
$(MKDIR_P) "$(DESTDIR)/sbin"
|
||||
$(LN_S) -f "$(rootbindir)/ntfs-3g" "$(DESTDIR)/sbin/mount.ntfs-3g"
|
||||
endif
|
||||
|
||||
install-data-local:
|
||||
$(INSTALL) -d "$(DESTDIR)$(man8dir)"
|
||||
install-data-local: install-man8
|
||||
$(LN_S) -f ntfs-3g.8 "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
|
||||
|
||||
uninstall-local:
|
||||
$(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g"
|
||||
$(RM) -f "$(DESTDIR)$(man8dir)/mount.ntfs-3g.8"
|
||||
if ENABLE_MOUNT_HELPER
|
||||
$(RM) -f "$(DESTDIR)/sbin/mount.ntfs-3g"
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user