Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
AC_RT($enable_librt)
AC_SYS_LARGEFILE
+AC_NEED_LFS
AC_PACKAGE_NEED_UUID_H
AC_PACKAGE_NEED_UUIDCOMPARE
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])
+ ])
+
#
# Check if we need to override the system struct fsxattr with
# the internal definition. This /only/ happens if the system