]> git.pld-linux.org Git - packages/autoconf.git/blob - autoconf-largefile.patch
- added patch for AC_SYS_LARGEFILE etc.
[packages/autoconf.git] / autoconf-largefile.patch
1 --- autoconf-2.72/lib/autoconf/specific.m4.orig 2023-12-01 14:25:07.000000000 +0100
2 +++ autoconf-2.72/lib/autoconf/specific.m4      2024-04-12 21:55:21.447121323 +0200
3 @@ -281,23 +281,23 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m
4  AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
5  [AC_CACHE_CHECK([for $CC option to enable large file support],
6    [ac_cv_sys_largefile_opts],
7 -  [ac_save_CC="$CC"
8 +  [ac_save_compile="$ac_compile"
9    ac_opt_found=no
10    for ac_opt in _AC_SYS_LARGEFILE_OPTIONS; do
11      AS_IF([test x"$ac_opt" != x"none needed"],
12 -      [CC="$ac_save_CC $ac_opt"])
13 +      [ac_compile="$ac_save_compile $ac_opt"])
14      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])],
15       [AS_IF([test x"$ac_opt" = x"none needed"],
16         [# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
17 -        CC="$CC -DFTYPE=ino_t"
18 +        ac_compile="$ac_compile -DFTYPE=ino_t"
19          AC_COMPILE_IFELSE([], [],
20 -          [CC="$CC -D_FILE_OFFSET_BITS=64"
21 +          [ac_compile="$ac_compile -D_FILE_OFFSET_BITS=64"
22             AC_COMPILE_IFELSE([], [ac_opt='-D_FILE_OFFSET_BITS=64'])])])
23        ac_cv_sys_largefile_opts=$ac_opt
24        ac_opt_found=yes])
25      test $ac_opt_found = no || break
26    done
27 -  CC="$ac_save_CC"
28 +  ac_compile="$ac_save_compile"
29    dnl Gnulib implements large file support for native Windows, based on the
30    dnl variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE.
31    m4_ifdef([gl_LARGEFILE], [
This page took 0.099838 seconds and 3 git commands to generate.