… | |
… | |
68 | AC_CHECK_HEADERS([sys/mkdev.h]) |
68 | AC_CHECK_HEADERS([sys/mkdev.h]) |
69 | |
69 | |
70 | dnl readv / preadv, vmsplice |
70 | dnl readv / preadv, vmsplice |
71 | AC_CHECK_HEADERS([sys/uio.h]) |
71 | AC_CHECK_HEADERS([sys/uio.h]) |
72 | |
72 | |
|
|
73 | AC_CACHE_CHECK([for unix-style syscall interface], ac_cv_syscall, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
|
|
74 | #include <unistd.h> |
|
|
75 | #include <sys/syscall.h> |
|
|
76 | int main (void) |
|
|
77 | { |
|
|
78 | long res = syscall (SYS_exit, 0); |
|
|
79 | return 0; |
|
|
80 | } |
|
|
81 | ])],ac_cv_syscall=yes,ac_cv_syscall=no)]) |
|
|
82 | test $ac_cv_syscall = yes && AC_DEFINE(HAVE_SYSCALL, 1, unix syscall interface) |
73 | |
83 | |
74 | AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
84 | AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([ |
75 | #include <sys/types.h> |
85 | #include <sys/types.h> |
76 | #include <fcntl.h> |
86 | #include <fcntl.h> |
77 | #include <sys/uio.h> |
87 | #include <sys/uio.h> |
… | |
… | |
107 | return 0; |
117 | return 0; |
108 | } |
118 | } |
109 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
119 | ]])],ac_cv_eventfd=yes,ac_cv_eventfd=no)]) |
110 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
120 | test $ac_cv_eventfd = yes && AC_DEFINE(HAVE_EVENTFD, 1, eventfd(2) is available) |
111 | |
121 | |
112 | AC_CACHE_CHECK(for timerfd, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
122 | AC_CACHE_CHECK(for timerfd_*, ac_cv_timerfd, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
113 | #include <sys/timerfd.h> |
123 | #include <sys/timerfd.h> |
114 | int main (void) |
124 | int main (void) |
115 | { |
125 | { |
116 | struct itimerspec its; |
126 | struct itimerspec its; |
117 | int res; |
127 | int res; |
… | |
… | |
120 | res = timerfd_gettime (res, &its); |
130 | res = timerfd_gettime (res, &its); |
121 | return 0; |
131 | return 0; |
122 | } |
132 | } |
123 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
133 | ]])],ac_cv_timerfd=yes,ac_cv_timerfd=no)]) |
124 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
134 | test $ac_cv_timerfd = yes && AC_DEFINE(HAVE_TIMERFD, 1, timerfd_*(2) are available) |
|
|
135 | |
|
|
136 | AC_CACHE_CHECK(for memfd_create, ac_cv_memfd_create, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
137 | #include <sys/mman.h> |
|
|
138 | int main (void) |
|
|
139 | { |
|
|
140 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
141 | return 0; |
|
|
142 | } |
|
|
143 | ]])],ac_cv_memfd_create=yes,ac_cv_memfd_create=no)]) |
|
|
144 | test $ac_cv_memfd_create = yes && AC_DEFINE(HAVE_MEMFD_CREATE, 1, memfd_create(2) is available) |
125 | |
145 | |
126 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
146 | AC_CACHE_CHECK(for copy_file_range, ac_cv_copy_file_range, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
127 | #include <unistd.h> |
147 | #include <unistd.h> |
128 | #include <sys/syscall.h> |
148 | #include <sys/syscall.h> |
129 | /*#include <linux/copy.h>*/ |
149 | /*#include <linux/copy.h>*/ |
… | |
… | |
222 | return 0; |
242 | return 0; |
223 | } |
243 | } |
224 | ]])],ac_cv_statx=yes,ac_cv_statx=no)]) |
244 | ]])],ac_cv_statx=yes,ac_cv_statx=no)]) |
225 | test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available) |
245 | test $ac_cv_statx = yes && AC_DEFINE(HAVE_STATX, 1, statx(2) is available) |
226 | |
246 | |
|
|
247 | AC_CACHE_CHECK(for accept4, ac_cv_accept4, [AC_LINK_IFELSE([AC_LANG_SOURCE([[ |
|
|
248 | #include <sys/types.h> |
|
|
249 | #include <sys/socket.h> |
|
|
250 | int main (void) |
|
|
251 | { |
|
|
252 | int res; |
|
|
253 | res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
254 | return 0; |
|
|
255 | } |
|
|
256 | ]])],ac_cv_accept4=yes,ac_cv_accept4=no)]) |
|
|
257 | test $ac_cv_accept4 = yes && AC_DEFINE(HAVE_ACCEPT4, 1, accept4(2) is available) |
|
|
258 | |
227 | AC_OUTPUT |
259 | AC_OUTPUT |
228 | |
260 | |