Large file support committed



Hello!

I've committed a patch that enables large file support in MC. Autoconf
2.50 should be used to enable this support, since Autoconf 2.13 lacks
AC_SYS_LARGEFILE.

The large file support should be enabled explicitly by giving
--enable-largefile to configure. This support has not been tested much, so
please consider this feature experimental for the time being, especially
on big-endian machines (PowerPC, Sparc), where it hasn't been tested at
all.

ChangeLog
        * configure.in: For Autoconf 2.50+, use AC_SYS_LARGEFILE.
        It should be enabled explicitly by giving `--enable-largefile'
        to configure.
        * INSTALL: Document it.

-- 
Regards,
Pavel Roskin

__________________________________________
--- INSTALL
+++ INSTALL
@@ -141,6 +141,11 @@
      transparent tar File system manipulation as well nor the
      networked Midnight Commander file system.

+`--enable-largefile'
+     This option enables support for large files (2 gigabytes and more)
+     on the systems where file operation use 32-bit offsets by default,
+     but support for 64-bit file operations is available.
+
 You may also tell configure which display manager you want to use with
 the Midnight Commander.  The configure script will use SLang as default,
 but you can override this by using any of the following flags (please
--- configure.in
+++ configure.in
@@ -23,6 +23,15 @@
 ifdef([AC_PROG_CC_STDC], [AC_PROG_CC_STDC], [AM_PROG_CC_STDC])
 AC_HEADER_MAJOR
 AC_C_CONST
+
+dnl AC_SYS_LARGEFILE is missing in Autoconf-2.13
+ifelse(AC_ACVERSION, [2.13], [],
+[dnl Only enable large file support if --enable-largefile was given
+if test "x$enable_largefile" = xyes; then
+   AC_SYS_LARGEFILE
+fi
+])
+
 AC_CHECK_TOOL(AR, ar, ar)

 AC_CHECK_PROGS(X11_WWW,netscape arena Mosaic chimera)
__________________________________________






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]