Mercurial > gnulib
annotate m4/ftello.m4 @ 40214:452ab00796c7
Fix undefined behaviour.
* lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Case x to
'unsigned int', to avoid shift operations on 'int'.
* lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
* tests/test-count-leading-zeros.c (main): Use a random number that has
as many bits as TYPE, not only 2*15 or 2*31 bits.
* tests/test-count-trailing-zeros.c (main): Likewise.
* tests/test-count-one-bits.c (main): Likewise.
* tests/test-memmem.c: Don't include "null-ptr.h".
(main): Use zerosize_ptr() instead of null_ptr().
* modules/memmem-tests (Files): Remove tests/null-ptr.h.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 09 Mar 2019 20:32:25 +0100 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
18993
a75cfc731331
Improve cross-compilation guesses for native Windows.
Bruno Haible <bruno@clisp.org>
parents:
18935
diff
changeset
|
1 # ftello.m4 serial 13 |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
2 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc. |
8710 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_FUNC_FTELLO], | |
8 [ | |
9 AC_REQUIRE([gl_STDIO_H_DEFAULTS]) | |
10 AC_REQUIRE([AC_PROG_CC]) | |
8868
90e71310a07f
Fix fseeko/ftello on cygwin 1.5.24.
Eric Blake <ebb9@byu.net>
parents:
8710
diff
changeset
|
11 AC_REQUIRE([gl_STDIN_LARGE_OFFSET]) |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
12 AC_REQUIRE([gl_SYS_TYPES_H]) |
9771 | 13 |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
14 dnl Persuade glibc <stdio.h> to declare ftello(). |
9771 | 15 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
16 | |
13943
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13579
diff
changeset
|
17 AC_CHECK_DECLS_ONCE([ftello]) |
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13579
diff
changeset
|
18 if test $ac_cv_have_decl_ftello = no; then |
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13579
diff
changeset
|
19 HAVE_DECL_FTELLO=0 |
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13579
diff
changeset
|
20 fi |
190accfb0919
ftello: Add missing declaration on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents:
13579
diff
changeset
|
21 |
8710 | 22 AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello], |
23 [ | |
13578
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
24 AC_LINK_IFELSE( |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
25 [AC_LANG_PROGRAM( |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
26 [[#include <stdio.h>]], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
27 [[ftello (stdin);]])], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
28 [gl_cv_func_ftello=yes], |
1e26f884665f
Modernize AC_TRY_LINK invocations.
Bruno Haible <bruno@clisp.org>
parents:
13294
diff
changeset
|
29 [gl_cv_func_ftello=no]) |
8710 | 30 ]) |
13122
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
31 if test $gl_cv_func_ftello = no; then |
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
32 HAVE_FTELLO=0 |
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
33 else |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
34 if test $WINDOWS_64_BIT_OFF_T = 1; then |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
35 REPLACE_FTELLO=1 |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
36 fi |
13122
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
37 if test $gl_cv_var_stdin_large_offset = no; then |
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
38 REPLACE_FTELLO=1 |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
39 fi |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
40 if test $REPLACE_FTELLO = 0; then |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
41 dnl Detect bug on Solaris. |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
42 dnl ftell and ftello produce incorrect results after putc that followed a |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
43 dnl getc call that reached EOF on Solaris. This is because the _IOREAD |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
44 dnl flag does not get cleared in this case, even though _IOWRT gets set, |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
45 dnl and ftell and ftello look whether the _IOREAD flag is set. |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
46 AC_REQUIRE([AC_CANONICAL_HOST]) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
47 AC_CACHE_CHECK([whether ftello works], |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
48 [gl_cv_func_ftello_works], |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
49 [ |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
50 dnl Initial guess, used when cross-compiling or when /dev/tty cannot |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
51 dnl be opened. |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
52 changequote(,)dnl |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
53 case "$host_os" in |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
54 # Guess no on Solaris. |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
55 solaris*) gl_cv_func_ftello_works="guessing no" ;; |
18993
a75cfc731331
Improve cross-compilation guesses for native Windows.
Bruno Haible <bruno@clisp.org>
parents:
18935
diff
changeset
|
56 # Guess yes on native Windows. |
a75cfc731331
Improve cross-compilation guesses for native Windows.
Bruno Haible <bruno@clisp.org>
parents:
18935
diff
changeset
|
57 mingw*) gl_cv_func_ftello_works="guessing yes" ;; |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
58 # Guess yes otherwise. |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
59 *) gl_cv_func_ftello_works="guessing yes" ;; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
60 esac |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
61 changequote([,])dnl |
13579
da9779900713
Modernize AC_TRY_RUN invocations.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
62 AC_RUN_IFELSE( |
da9779900713
Modernize AC_TRY_RUN invocations.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
63 [AC_LANG_SOURCE([[ |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
64 #include <stdio.h> |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
65 #include <stdlib.h> |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
66 #include <string.h> |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
67 #define TESTFILE "conftest.tmp" |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
68 int |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
69 main (void) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
70 { |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
71 FILE *fp; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
72 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
73 /* Create a file with some contents. */ |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
74 fp = fopen (TESTFILE, "w"); |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
75 if (fp == NULL) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
76 return 70; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
77 if (fwrite ("foogarsh", 1, 8, fp) < 8) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
78 { fclose (fp); return 71; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
79 if (fclose (fp)) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
80 return 72; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
81 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
82 /* The file's contents is now "foogarsh". */ |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
83 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
84 /* Try writing after reading to EOF. */ |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
85 fp = fopen (TESTFILE, "r+"); |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
86 if (fp == NULL) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
87 return 73; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
88 if (fseek (fp, -1, SEEK_END)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
89 { fclose (fp); return 74; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
90 if (!(getc (fp) == 'h')) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
91 { fclose (fp); return 1; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
92 if (!(getc (fp) == EOF)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
93 { fclose (fp); return 2; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
94 if (!(ftell (fp) == 8)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
95 { fclose (fp); return 3; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
96 if (!(ftell (fp) == 8)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
97 { fclose (fp); return 4; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
98 if (!(putc ('!', fp) == '!')) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
99 { fclose (fp); return 5; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
100 if (!(ftell (fp) == 9)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
101 { fclose (fp); return 6; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
102 if (!(fclose (fp) == 0)) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
103 return 7; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
104 fp = fopen (TESTFILE, "r"); |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
105 if (fp == NULL) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
106 return 75; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
107 { |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
108 char buf[10]; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
109 if (!(fread (buf, 1, 10, fp) == 9)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
110 { fclose (fp); return 10; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
111 if (!(memcmp (buf, "foogarsh!", 9) == 0)) |
18935
ec3c62e83a8b
Avoid wrong configure results with gcc -fsanitize=address.
Bruno Haible <bruno@clisp.org>
parents:
18626
diff
changeset
|
112 { fclose (fp); return 11; } |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
113 } |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
114 if (!(fclose (fp) == 0)) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
115 return 12; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
116 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
117 /* The file's contents is now "foogarsh!". */ |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
118 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
119 return 0; |
13579
da9779900713
Modernize AC_TRY_RUN invocations.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
120 }]])], |
da9779900713
Modernize AC_TRY_RUN invocations.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
121 [gl_cv_func_ftello_works=yes], |
da9779900713
Modernize AC_TRY_RUN invocations.
Bruno Haible <bruno@clisp.org>
parents:
13578
diff
changeset
|
122 [gl_cv_func_ftello_works=no], [:]) |
13294
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
123 ]) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
124 case "$gl_cv_func_ftello_works" in |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
125 *yes) ;; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
126 *) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
127 REPLACE_FTELLO=1 |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
128 AC_DEFINE([FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE], [1], |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
129 [Define to 1 if the system's ftello function has the Solaris bug.]) |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
130 ;; |
4263e09100fb
ftell, ftello: Work around Solaris bug.
Bruno Haible <bruno@clisp.org>
parents:
13122
diff
changeset
|
131 esac |
13122
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
132 fi |
01741ff1a40e
ftello: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
133 fi |
8710 | 134 ]) |
16795
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
135 |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
136 # Prerequisites of lib/ftello.c. |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
137 AC_DEFUN([gl_PREREQ_FTELLO], |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
138 [ |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
139 dnl Native Windows has the function _ftelli64. mingw hides it, but mingw64 |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
140 dnl makes it usable again. |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
141 AC_CHECK_FUNCS([_ftelli64]) |
6a9ea5d7b466
Large File Support for native Windows platforms.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
142 ]) |