From 944025e006e273af4564623e451a7ab828b71e65 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 23 Jun 2015 12:30:27 +0200 Subject: [PATCH] Enable large file support Mattias Klose reported that building libabigail in the Debian build system raised an error because the libabigail binaries were built without the Large File Support (LFS), as described by https://lintian.debian.org/tags/binary-file-built-without-LFS-support.html. This just calls the configure macro AC_SYS_LARGEFILE for that. * configure.ac: Call the AC_SYS_LARGEFILE autoconf macro. * config.h.in: Update. Signed-off-by: Dodji Seketeli --- config.h.in | 11 +++++++++++ configure.ac | 3 +++ 2 files changed, 14 insertions(+) diff --git a/config.h.in b/config.h.in index 0c3342f2..21fb74cd 100644 --- a/config.h.in +++ b/config.h.in @@ -101,6 +101,17 @@ /* compile the zip archive support */ #undef WITH_ZIP_ARCHIVE +/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + /* Define to 1 if on MINIX. */ #undef _MINIX diff --git a/configure.ac b/configure.ac index 33e8d2c0..5192bbca 100644 --- a/configure.ac +++ b/configure.ac @@ -225,6 +225,9 @@ if test x$HAS_EM_TILEGX = xyes; then [Defined to 1 if elf.h has EM_TILEGX macro defined]) fi +dnl Set large files support +AC_SYS_LARGEFILE + AC_CONFIG_FILES([Makefile libabigail.pc include/Makefile