ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure.ac
(Generate patch)

Comparing IO-AIO/configure.ac (file contents):
Revision 1.12 by root, Sun Mar 10 12:16:48 2019 UTC vs.
Revision 1.13 by root, Mon Mar 18 23:52:09 2019 UTC

12# for these to work, you need to run autoheader in IO::AIO, not libeio :( 12# for these to work, you need to run autoheader in IO::AIO, not libeio :(
13 13
14AC_CACHE_CHECK(for set/getrlimit, ac_cv_rlimits, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 14AC_CACHE_CHECK(for set/getrlimit, ac_cv_rlimits, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
15#include <sys/time.h> 15#include <sys/time.h>
16#include <sys/resource.h> 16#include <sys/resource.h>
17int res;
18int main (void) 17int main (void)
19{ 18{
20 struct rlimit srl; 19 struct rlimit srl;
20 int res;
21 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; 21 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
22 res = getrlimit (RLIMIT_NOFILE, &srl); 22 res = getrlimit (RLIMIT_NOFILE, &srl);
23 res = setrlimit (RLIMIT_NOFILE, &srl); 23 res = setrlimit (RLIMIT_NOFILE, &srl);
24 return 0; 24 return 0;
25} 25}
87test $ac_cv_linux_splice = yes && AC_DEFINE(HAVE_LINUX_SPLICE, 1, splice/vmsplice/tee(2) are available) 87test $ac_cv_linux_splice = yes && AC_DEFINE(HAVE_LINUX_SPLICE, 1, splice/vmsplice/tee(2) are available)
88 88
89AC_CACHE_CHECK(for pipe2, ac_cv_pipe2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 89AC_CACHE_CHECK(for pipe2, ac_cv_pipe2, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
90#include <fcntl.h> 90#include <fcntl.h>
91#include <unistd.h> 91#include <unistd.h>
92int main (void)
93{
92int res; 94 int res;
93int main (void)
94{
95 res = pipe2 (0, 0); 95 res = pipe2 (0, 0);
96 return 0; 96 return 0;
97} 97}
98]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)]) 98]])],ac_cv_pipe2=yes,ac_cv_pipe2=no)])
99test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available) 99test $ac_cv_pipe2 = yes && AC_DEFINE(HAVE_PIPE2, 1, pipe2(2) is available)
100 100
101AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 101AC_CACHE_CHECK(for eventfd, ac_cv_eventfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
102#include <sys/eventfd.h> 102#include <sys/eventfd.h>
103int main (void)
104{
103int res; 105 int res;
104int main (void)
105{
106 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); 106 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
107 return 0; 107 return 0;
108} 108}
109]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) 109]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)])
110test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) 110test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available)
111 111
112AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 112AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
113#include <sys/timerfd.h> 113#include <sys/timerfd.h>
114int res;
115int main (void) 114int main (void)
116{ 115{
117 struct itimerspec its; 116 struct itimerspec its;
117 int res;
118 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); 118 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
119 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); 119 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
120 res = timerfd_gettime (res, &its); 120 res = timerfd_gettime (res, &its);
121 return 0; 121 return 0;
122} 122}
125 125
126AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ 126AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
127#include <unistd.h> 127#include <unistd.h>
128#include <sys/syscall.h> 128#include <sys/syscall.h>
129/*#include <linux/copy.h>*/ 129/*#include <linux/copy.h>*/
130int main (void)
131{
130int res; 132 int res;
131int main (void)
132{
133 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ 133 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
134 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); 134 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
135 return 0; 135 return 0;
136} 136}
137]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)]) 137]])],ac_cv_copy_file_range=yes,ac_cv_copy_file_range=no)])
201 return PL_statcache.st_gen; 201 return PL_statcache.st_gen;
202} 202}
203]])],ac_cv_st_gen=yes,ac_cv_st_gen=no)]) 203]])],ac_cv_st_gen=yes,ac_cv_st_gen=no)])
204test $ac_cv_st_gen = yes && AC_DEFINE(HAVE_ST_GEN, 1, stat st_gen member) 204test $ac_cv_st_gen = yes && AC_DEFINE(HAVE_ST_GEN, 1, stat st_gen member)
205 205
206AC_CACHE_CHECK(for statx, ac_cv_statx, [AC_LINK_IFELSE([AC_LANG_SOURCE([[
207#include <sys/types.h>
208#include <sys/stat.h>
209#include <unistd.h>
210#include <fcntl.h>
211int res;
212int main (void)
213{
214 struct statx sx;
215 int res;
216 res = statx (AT_FDCWD, ".",
217 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
218 STATX_ALL, &sx);
219 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
220 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
221 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
222 return 0;
223}
224]])],ac_cv_statx=yes,ac_cv_statx=no)])
225test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available)
226
206AC_OUTPUT 227AC_OUTPUT
207 228

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines