From a2a6ad16d2c3157153aae7e0835e478237b01507 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 13 Dec 2019 23:20:49 -0800 Subject: configure.ac: Remove largefile hackery It requires a program to be ran, which cannot be done when cross compiling. AC_SYS_LARGEFILE seems to be enough to implement largefile checking. A similar change was merged into libimobiledevice.--- configure.ac | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/configure.ac b/configure.ac index e5fb611..030a32b 100644 --- a/configure.ac +++ b/configure.ac @@ -101,30 +101,6 @@ AC_SUBST(AC_LDADD) # check for large file support AC_SYS_LARGEFILE -LFS_CFLAGS='' -if test "$enable_largefile" != no; then - if test "$ac_cv_sys_file_offset_bits" != 'no'; then - LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" - else - AC_MSG_CHECKING(for native large file support) - AC_RUN_IFELSE([AC_LANG_SOURCE([#include - int main (int argc, char **argv) - { - exit(!(sizeof(off_t) == 8)); - }])], - [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) - AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no)]) - fi - if test "$ac_cv_sys_large_files" != 'no'; then - LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1" - fi - AC_FUNC_FSEEKO - if test "$ac_cv_sys_largefile_source" != 'no'; then - LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1" - fi -fi -AC_SUBST(LFS_CFLAGS) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) -- cgit v1.1-32-gdbae