Message ID | ee6222efd5b5b46e61b25bc9bd4ea222d3d3b188.1471107858.git.felix.janda@posteo.de (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Sat, Aug 13, 2016 at 06:50:28PM +0200, Felix Janda wrote: > Signed-off-by: Felix Janda <felix.janda@posteo.de> Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/configure.ac b/configure.ac index 8fa96a5..ed75d62 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,7 @@ AC_MULTILIB($enable_lib64) AC_RT($enable_librt) AC_SYS_LARGEFILE +AC_NEED_LFS AC_PACKAGE_NEED_UUID_H AC_PACKAGE_NEED_UUIDCOMPARE diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 7a847e9..6c94475 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -265,3 +265,19 @@ AC_DEFUN([AC_HAVE_MREMAP], ) AC_SUBST(have_mremap) ]) + +# +# Check if transparent LFS is enabled +# +AC_DEFUN([AC_NEED_LFS], + [ AC_MSG_CHECKING([whether large file support works]) + AC_TRY_COMPILE([ +#include <unistd.h> + ], [ + int i[sizeof(off_t)-8]; + ], AC_MSG_RESULT(yes), + [AC_MSG_RESULT(no) + echo + echo 'FATAL ERROR: C library does not support transparent LFS.' + exit 1]) + ])
Signed-off-by: Felix Janda <felix.janda@posteo.de> --- configure.ac | 1 + m4/package_libcdev.m4 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+)