large-inode: New module
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Jul 2011 16:36:56 +0000 (09:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Jul 2011 17:08:33 +0000 (10:08 -0700)
* MODULES.html.sh: Add it.
* modules/large-inode, m4/large-inode.m4: New files.

ChangeLog
MODULES.html.sh
m4/large-inode.m4 [new file with mode: 0644]
modules/large-inode [new file with mode: 0644]

index 0a90446ecad67c18474059c1011d5a6c2db7e8b7..793368b0ed76d0785f4648ef06fff9323f8cd425 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
 
+       large-inode: New module
+       * MODULES.html.sh: Add it.
+       * modules/large-inode, m4/large-inode.m4: New files.
+
        extensions: Enable extensions on MacOS X 10.5 and later.
        * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
 
index bcd8aac18f8e9c0a8e1d32d5f2ea752e4bfa92a9..80befa9bc3e6a2fd2bbcdf1d1c3e9e5f2557192c 100755 (executable)
@@ -2656,6 +2656,7 @@ func_all_modules ()
   func_module file-set
   func_module hash-triple
   func_module i-ring
+  func_module large-inode
   func_module same-inode
   func_end_table
 
diff --git a/m4/large-inode.m4 b/m4/large-inode.m4
new file mode 100644 (file)
index 0000000..b41a391
--- /dev/null
@@ -0,0 +1,24 @@
+# Enable large inode numbers on systems normally without them. -*- Autoconf -*-
+
+# Copyright (C) 2011 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# written by Paul Eggert
+
+AC_DEFUN([gl_SYS_LARGE_INODE],
+[
+  dnl Many systems enable large inodes if you enable large offsets.
+  AC_REQUIRE([AC_SYS_LARGEFILE])
+
+  dnl Some Mac OS X variants won't access large inode numbers by default.
+  dnl Defining _DARWIN_USE_64_BIT_INODE fixes this.  See
+  dnl <http://developer.apple.com/library/mac/releasenotes/Darwin/SymbolVariantsRelNotes>.
+  dnl
+  dnl The simplest thing is to define this symbol everywhere.
+  dnl That helps on the affected systems, and doesn't hurt anywhere.
+  AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
+    [Define if you want to use large inode numbers
+     when running on Mac OS X 10.5 or later.])
+])
diff --git a/modules/large-inode b/modules/large-inode
new file mode 100644 (file)
index 0000000..de067ac
--- /dev/null
@@ -0,0 +1,22 @@
+Description:
+Use large inode numbers.
+
+Files:
+m4/large-inode.m4
+
+Depends-on:
+
+configure.ac-early:
+AC_REQUIRE([gl_SYS_LARGE_INODE])
+
+configure.ac:
+
+Makefile.am:
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+all