ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.18 by root, Tue Apr 10 05:01:34 2012 UTC vs.
Revision 1.20 by root, Sat Jun 2 20:13:26 2012 UTC

60 return 0; 60 return 0;
61} 61}
62],ac_cv_fdatasync=yes,ac_cv_fdatasync=no)]) 62],ac_cv_fdatasync=yes,ac_cv_fdatasync=no)])
63test $ac_cv_fdatasync = yes && AC_DEFINE(HAVE_FDATASYNC, 1, fdatasync(2) is available) 63test $ac_cv_fdatasync = yes && AC_DEFINE(HAVE_FDATASYNC, 1, fdatasync(2) is available)
64 64
65AC_CACHE_CHECK(for pread and pwrite, ac_cv_preadwrite, [AC_LINK_IFELSE([
66#include <unistd.h>
67int main (void)
68{
69 int fd = 0;
70 size_t count = 1;
71 char buf;
72 off_t offset = 1;
73 ssize_t res;
74 res = pread (fd, &buf, count, offset);
75 res = pwrite (fd, &buf, count, offset);
76 return 0;
77}
78],ac_cv_preadwrite=yes,ac_cv_preadwrite=no)])
79test $ac_cv_preadwrite = yes && AC_DEFINE(HAVE_PREADWRITE, 1, pread(2) and pwrite(2) are available)
80
81AC_CACHE_CHECK(for sendfile, ac_cv_sendfile, [AC_LINK_IFELSE([ 65AC_CACHE_CHECK(for sendfile, ac_cv_sendfile, [AC_LINK_IFELSE([
82# include <sys/types.h> 66# include <sys/types.h>
83#if __linux 67#if __linux
84# include <sys/sendfile.h> 68# include <sys/sendfile.h>
85#elif __FreeBSD__ || defined __APPLE__ 69#elif __FreeBSD__ || defined __APPLE__
121 return 0; 105 return 0;
122} 106}
123],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)]) 107],ac_cv_sync_file_range=yes,ac_cv_sync_file_range=no)])
124test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available) 108test $ac_cv_sync_file_range = yes && AC_DEFINE(HAVE_SYNC_FILE_RANGE, 1, sync_file_range(2) is available)
125 109
126AC_CACHE_CHECK(for fallocate, ac_cv_flinux_allocate, [AC_LINK_IFELSE([ 110AC_CACHE_CHECK(for fallocate, ac_cv_linux_fallocate, [AC_LINK_IFELSE([
127#include <fcntl.h> 111#include <fcntl.h>
128int main (void) 112int main (void)
129{ 113{
130 int fd = 0; 114 int fd = 0;
131 int mode = 0; 115 int mode = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines