… | |
… | |
37 | } |
37 | } |
38 | ]])],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
38 | ]])],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
39 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
39 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
40 | |
40 | |
41 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
41 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
|
|
42 | #include <sys/types.h> |
42 | #include <fcntl.h> |
43 | #include <fcntl.h> |
43 | int main (void) |
44 | int main (void) |
44 | { |
45 | { |
45 | int fd = 0; |
46 | int fd = 0; |
46 | size_t count = 2; |
47 | size_t count = 2; |
… | |
… | |
91 | } |
92 | } |
92 | ])],ac_cv_sendfile=yes,ac_cv_sendfile=no)]) |
93 | ])],ac_cv_sendfile=yes,ac_cv_sendfile=no)]) |
93 | test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported) |
94 | test $ac_cv_sendfile = yes && AC_DEFINE(HAVE_SENDFILE, 1, sendfile(2) is available and supported) |
94 | |
95 | |
95 | AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
96 | AC_CACHE_CHECK(for sync_file_range, ac_cv_sync_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
|
|
97 | #include <sys/types.h> |
96 | #include <fcntl.h> |
98 | #include <fcntl.h> |
97 | int main (void) |
99 | int main (void) |
98 | { |
100 | { |
99 | int fd = 0; |
101 | int fd = 0; |
100 | off64_t offset = 1; |
102 | off64_t offset = 1; |