… | |
… | |
2018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2020 | |
2020 | |
2021 | |
2021 | |
2022 | |
2022 | |
2023 | ac_config_headers="$ac_config_headers libeio/config.h" |
2023 | ac_config_headers="$ac_config_headers config.h" |
2024 | |
2024 | |
2025 | |
2025 | |
2026 | |
2026 | |
2027 | ac_ext=c |
2027 | ac_ext=c |
2028 | ac_cpp='$CPP $CPPFLAGS' |
2028 | ac_cpp='$CPP $CPPFLAGS' |
… | |
… | |
3962 | $as_echo_n "(cached) " >&6 |
3962 | $as_echo_n "(cached) " >&6 |
3963 | else |
3963 | else |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3965 | /* end confdefs.h. */ |
3965 | /* end confdefs.h. */ |
3966 | |
3966 | |
|
|
3967 | #include <sys/types.h> |
3967 | #include <fcntl.h> |
3968 | #include <fcntl.h> |
3968 | int main (void) |
3969 | int main (void) |
3969 | { |
3970 | { |
3970 | int fd = 0; |
3971 | int fd = 0; |
3971 | size_t count = 2; |
3972 | size_t count = 2; |
… | |
… | |
4076 | $as_echo_n "(cached) " >&6 |
4077 | $as_echo_n "(cached) " >&6 |
4077 | else |
4078 | else |
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 | /* end confdefs.h. */ |
4080 | /* end confdefs.h. */ |
4080 | |
4081 | |
|
|
4082 | #include <sys/types.h> |
4081 | #include <fcntl.h> |
4083 | #include <fcntl.h> |
4082 | int main (void) |
4084 | int main (void) |
4083 | { |
4085 | { |
4084 | int fd = 0; |
4086 | int fd = 0; |
4085 | off64_t offset = 1; |
4087 | off64_t offset = 1; |
… | |
… | |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4200 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4199 | test $ac_cv_prctl_set_name = yes && |
4201 | test $ac_cv_prctl_set_name = yes && |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4202 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 | |
4203 | |
4202 | |
4204 | |
|
|
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4206 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4207 | if ${ac_cv_posix_close+:} false; then : |
|
|
4208 | $as_echo_n "(cached) " >&6 |
|
|
4209 | else |
|
|
4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4211 | /* end confdefs.h. */ |
|
|
4212 | |
|
|
4213 | #include <unistd.h> |
|
|
4214 | int res; |
|
|
4215 | int main (void) |
|
|
4216 | { |
|
|
4217 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4218 | return 0; |
|
|
4219 | } |
|
|
4220 | |
|
|
4221 | _ACEOF |
|
|
4222 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4223 | ac_cv_posix_close=yes |
|
|
4224 | else |
|
|
4225 | ac_cv_posix_close=no |
|
|
4226 | fi |
|
|
4227 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4228 | conftest$ac_exeext conftest.$ac_ext |
|
|
4229 | fi |
|
|
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4231 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4232 | test $ac_cv_posix_close = yes && |
|
|
4233 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4234 | |
|
|
4235 | |
|
|
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4237 | $as_echo_n "checking for renameat2... " >&6; } |
|
|
4238 | if ${ac_cv_renameat2+:} false; then : |
|
|
4239 | $as_echo_n "(cached) " >&6 |
|
|
4240 | else |
|
|
4241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4242 | /* end confdefs.h. */ |
|
|
4243 | |
|
|
4244 | #include <unistd.h> |
|
|
4245 | #include <sys/syscall.h> |
|
|
4246 | #include <linux/fs.h> |
|
|
4247 | int res; |
|
|
4248 | int main (void) |
|
|
4249 | { |
|
|
4250 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4251 | return 0; |
|
|
4252 | } |
|
|
4253 | |
|
|
4254 | _ACEOF |
|
|
4255 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4256 | ac_cv_renameat2=yes |
|
|
4257 | else |
|
|
4258 | ac_cv_renameat2=no |
|
|
4259 | fi |
|
|
4260 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4261 | conftest$ac_exeext conftest.$ac_ext |
|
|
4262 | fi |
|
|
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4264 | $as_echo "$ac_cv_renameat2" >&6; } |
|
|
4265 | test $ac_cv_renameat2 = yes && |
|
|
4266 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4267 | |
|
|
4268 | |
|
|
4269 | |
|
|
4270 | |
|
|
4271 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
|
|
4272 | |
|
|
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4274 | $as_echo_n "checking for set/getrlimit... " >&6; } |
|
|
4275 | if ${ac_cv_rlimits+:} false; then : |
|
|
4276 | $as_echo_n "(cached) " >&6 |
|
|
4277 | else |
|
|
4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4279 | /* end confdefs.h. */ |
|
|
4280 | |
|
|
4281 | #include <sys/time.h> |
|
|
4282 | #include <sys/resource.h> |
|
|
4283 | int main (void) |
|
|
4284 | { |
|
|
4285 | struct rlimit srl; |
|
|
4286 | int res; |
|
|
4287 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4288 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4289 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4290 | return 0; |
|
|
4291 | } |
|
|
4292 | |
|
|
4293 | _ACEOF |
|
|
4294 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4295 | ac_cv_rlimits=yes |
|
|
4296 | else |
|
|
4297 | ac_cv_rlimits=no |
|
|
4298 | fi |
|
|
4299 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4300 | conftest$ac_exeext conftest.$ac_ext |
|
|
4301 | fi |
|
|
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4303 | $as_echo "$ac_cv_rlimits" >&6; } |
|
|
4304 | test $ac_cv_rlimits = yes && |
|
|
4305 | $as_echo "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4306 | |
4203 | |
4307 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4205 | $as_echo_n "checking for posix_madvise... " >&6; } |
4309 | $as_echo_n "checking for posix_madvise... " >&6; } |
4206 | if ${ac_cv_posix_madvise+:} false; then : |
4310 | if ${ac_cv_posix_madvise+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4311 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4283 | fi |
4387 | fi |
4284 | |
4388 | |
4285 | done |
4389 | done |
4286 | |
4390 | |
4287 | |
4391 | |
|
|
4392 | for ac_header in sys/sysmacros.h |
|
|
4393 | do : |
|
|
4394 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
|
|
4395 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
|
|
4396 | cat >>confdefs.h <<_ACEOF |
|
|
4397 | #define HAVE_SYS_SYSMACROS_H 1 |
|
|
4398 | _ACEOF |
|
|
4399 | |
|
|
4400 | fi |
|
|
4401 | |
|
|
4402 | done |
|
|
4403 | |
|
|
4404 | |
|
|
4405 | for ac_header in sys/mkdev.h |
|
|
4406 | do : |
|
|
4407 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
|
|
4408 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
|
|
4409 | cat >>confdefs.h <<_ACEOF |
|
|
4410 | #define HAVE_SYS_MKDEV_H 1 |
|
|
4411 | _ACEOF |
|
|
4412 | |
|
|
4413 | fi |
|
|
4414 | |
|
|
4415 | done |
|
|
4416 | |
|
|
4417 | |
|
|
4418 | for ac_header in sys/uio.h |
|
|
4419 | do : |
|
|
4420 | ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
|
|
4421 | if test "x$ac_cv_header_sys_uio_h" = xyes; then : |
|
|
4422 | cat >>confdefs.h <<_ACEOF |
|
|
4423 | #define HAVE_SYS_UIO_H 1 |
|
|
4424 | _ACEOF |
|
|
4425 | |
|
|
4426 | fi |
|
|
4427 | |
|
|
4428 | done |
|
|
4429 | |
|
|
4430 | |
|
|
4431 | |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4289 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4433 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4290 | if ${ac_cv_linux_splice+:} false; then : |
4434 | if ${ac_cv_linux_splice+:} false; then : |
4291 | $as_echo_n "(cached) " >&6 |
4435 | $as_echo_n "(cached) " >&6 |
4292 | else |
4436 | else |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4294 | /* end confdefs.h. */ |
4438 | /* end confdefs.h. */ |
4295 | |
4439 | |
|
|
4440 | #include <sys/types.h> |
4296 | #include <fcntl.h> |
4441 | #include <fcntl.h> |
|
|
4442 | #include <sys/uio.h> |
4297 | int main (void) |
4443 | int main (void) |
4298 | { |
4444 | { |
4299 | ssize_t res; |
4445 | ssize_t res; |
4300 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4446 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4301 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4447 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
… | |
… | |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4327 | /* end confdefs.h. */ |
4473 | /* end confdefs.h. */ |
4328 | |
4474 | |
4329 | #include <fcntl.h> |
4475 | #include <fcntl.h> |
4330 | #include <unistd.h> |
4476 | #include <unistd.h> |
4331 | int res; |
|
|
4332 | int main (void) |
4477 | int main (void) |
4333 | { |
4478 | { |
|
|
4479 | int res; |
4334 | res = pipe2 (0, 0); |
4480 | res = pipe2 (0, 0); |
4335 | return 0; |
4481 | return 0; |
4336 | } |
4482 | } |
4337 | |
4483 | |
4338 | _ACEOF |
4484 | _ACEOF |
… | |
… | |
4348 | $as_echo "$ac_cv_pipe2" >&6; } |
4494 | $as_echo "$ac_cv_pipe2" >&6; } |
4349 | test $ac_cv_pipe2 = yes && |
4495 | test $ac_cv_pipe2 = yes && |
4350 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4496 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4351 | |
4497 | |
4352 | |
4498 | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4354 | $as_echo_n "checking for renameat2... " >&6; } |
4500 | $as_echo_n "checking for eventfd... " >&6; } |
4355 | if ${ac_cv_renameat2+:} false; then : |
4501 | if ${ac_cv_eventfd+:} false; then : |
4356 | $as_echo_n "(cached) " >&6 |
4502 | $as_echo_n "(cached) " >&6 |
4357 | else |
4503 | else |
4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4359 | /* end confdefs.h. */ |
4505 | /* end confdefs.h. */ |
4360 | |
4506 | |
|
|
4507 | #include <sys/eventfd.h> |
|
|
4508 | int main (void) |
|
|
4509 | { |
|
|
4510 | int res; |
|
|
4511 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4512 | return 0; |
|
|
4513 | } |
|
|
4514 | |
|
|
4515 | _ACEOF |
|
|
4516 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4517 | ac_cv_eventfd=yes |
|
|
4518 | else |
|
|
4519 | ac_cv_eventfd=no |
|
|
4520 | fi |
|
|
4521 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4522 | conftest$ac_exeext conftest.$ac_ext |
|
|
4523 | fi |
|
|
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4525 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4526 | test $ac_cv_eventfd = yes && |
|
|
4527 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4528 | |
|
|
4529 | |
|
|
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
|
|
4531 | $as_echo_n "checking for timerfd_*... " >&6; } |
|
|
4532 | if ${ac_cv_timerfd+:} false; then : |
|
|
4533 | $as_echo_n "(cached) " >&6 |
|
|
4534 | else |
|
|
4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4536 | /* end confdefs.h. */ |
|
|
4537 | |
|
|
4538 | #include <sys/timerfd.h> |
|
|
4539 | int main (void) |
|
|
4540 | { |
|
|
4541 | struct itimerspec its; |
|
|
4542 | int res; |
|
|
4543 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4544 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4545 | res = timerfd_gettime (res, &its); |
|
|
4546 | return 0; |
|
|
4547 | } |
|
|
4548 | |
|
|
4549 | _ACEOF |
|
|
4550 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4551 | ac_cv_timerfd=yes |
|
|
4552 | else |
|
|
4553 | ac_cv_timerfd=no |
|
|
4554 | fi |
|
|
4555 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4556 | conftest$ac_exeext conftest.$ac_ext |
|
|
4557 | fi |
|
|
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4559 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4560 | test $ac_cv_timerfd = yes && |
|
|
4561 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4562 | |
|
|
4563 | |
|
|
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
|
|
4565 | $as_echo_n "checking for memfd_create... " >&6; } |
|
|
4566 | if ${ac_cv_memfd_create+:} false; then : |
|
|
4567 | $as_echo_n "(cached) " >&6 |
|
|
4568 | else |
|
|
4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4570 | /* end confdefs.h. */ |
|
|
4571 | |
|
|
4572 | #include <sys/mman.h> |
|
|
4573 | int main (void) |
|
|
4574 | { |
|
|
4575 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
4576 | return 0; |
|
|
4577 | } |
|
|
4578 | |
|
|
4579 | _ACEOF |
|
|
4580 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4581 | ac_cv_memfd_create=yes |
|
|
4582 | else |
|
|
4583 | ac_cv_memfd_create=no |
|
|
4584 | fi |
|
|
4585 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4586 | conftest$ac_exeext conftest.$ac_ext |
|
|
4587 | fi |
|
|
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
|
|
4589 | $as_echo "$ac_cv_memfd_create" >&6; } |
|
|
4590 | test $ac_cv_memfd_create = yes && |
|
|
4591 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
|
|
4592 | |
|
|
4593 | |
|
|
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4595 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4596 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4597 | $as_echo_n "(cached) " >&6 |
|
|
4598 | else |
|
|
4599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4600 | /* end confdefs.h. */ |
|
|
4601 | |
4361 | #include <unistd.h> |
4602 | #include <unistd.h> |
4362 | #include <sys/syscall.h> |
4603 | #include <sys/syscall.h> |
4363 | #include <linux/fs.h> |
4604 | /*#include <linux/copy.h>*/ |
|
|
4605 | int main (void) |
|
|
4606 | { |
|
|
4607 | int res; |
|
|
4608 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4609 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
4610 | return 0; |
|
|
4611 | } |
|
|
4612 | |
|
|
4613 | _ACEOF |
|
|
4614 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4615 | ac_cv_copy_file_range=yes |
|
|
4616 | else |
|
|
4617 | ac_cv_copy_file_range=no |
|
|
4618 | fi |
|
|
4619 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4620 | conftest$ac_exeext conftest.$ac_ext |
|
|
4621 | fi |
|
|
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4623 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4624 | test $ac_cv_copy_file_range = yes && |
|
|
4625 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4626 | |
|
|
4627 | |
|
|
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
4629 | $as_echo_n "checking for st_xtimensec... " >&6; } |
|
|
4630 | if ${ac_cv_xtimensec+:} false; then : |
|
|
4631 | $as_echo_n "(cached) " >&6 |
|
|
4632 | else |
|
|
4633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4634 | /* end confdefs.h. */ |
|
|
4635 | |
|
|
4636 | #include "EXTERN.h" |
|
|
4637 | #include "perl.h" |
|
|
4638 | #include "XSUB.h" |
|
|
4639 | |
|
|
4640 | int main (void) |
|
|
4641 | { |
|
|
4642 | return PL_statcache.st_atimensec |
|
|
4643 | + PL_statcache.st_mtimensec |
|
|
4644 | + PL_statcache.st_ctimensec; |
|
|
4645 | } |
|
|
4646 | |
|
|
4647 | _ACEOF |
|
|
4648 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4649 | ac_cv_xtimensec=yes |
|
|
4650 | else |
|
|
4651 | ac_cv_xtimensec=no |
|
|
4652 | fi |
|
|
4653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4654 | fi |
|
|
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
4656 | $as_echo "$ac_cv_xtimensec" >&6; } |
|
|
4657 | test $ac_cv_xtimensec = yes && |
|
|
4658 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
4659 | |
|
|
4660 | |
|
|
4661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4662 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4663 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4664 | $as_echo_n "(cached) " >&6 |
|
|
4665 | else |
|
|
4666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4667 | /* end confdefs.h. */ |
|
|
4668 | |
|
|
4669 | #include "EXTERN.h" |
|
|
4670 | #include "perl.h" |
|
|
4671 | #include "XSUB.h" |
|
|
4672 | |
|
|
4673 | int main (void) |
|
|
4674 | { |
|
|
4675 | return PL_statcache.st_atim.tv_nsec |
|
|
4676 | + PL_statcache.st_mtim.tv_nsec |
|
|
4677 | + PL_statcache.st_ctim.tv_nsec; |
|
|
4678 | } |
|
|
4679 | |
|
|
4680 | _ACEOF |
|
|
4681 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4682 | ac_cv_xtimespec=yes |
|
|
4683 | else |
|
|
4684 | ac_cv_xtimespec=no |
|
|
4685 | fi |
|
|
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4687 | fi |
|
|
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
4689 | $as_echo "$ac_cv_xtimespec" >&6; } |
|
|
4690 | test $ac_cv_xtimespec = yes && |
|
|
4691 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
4692 | |
|
|
4693 | |
|
|
4694 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
4695 | |
|
|
4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
4697 | $as_echo_n "checking for st_birthtimensec... " >&6; } |
|
|
4698 | if ${ac_cv_birthtimensec+:} false; then : |
|
|
4699 | $as_echo_n "(cached) " >&6 |
|
|
4700 | else |
|
|
4701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4702 | /* end confdefs.h. */ |
|
|
4703 | |
|
|
4704 | #include "EXTERN.h" |
|
|
4705 | #include "perl.h" |
|
|
4706 | #include "XSUB.h" |
|
|
4707 | |
|
|
4708 | int main (void) |
|
|
4709 | { |
|
|
4710 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
4711 | } |
|
|
4712 | |
|
|
4713 | _ACEOF |
|
|
4714 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4715 | ac_cv_birthtimensec=yes |
|
|
4716 | else |
|
|
4717 | ac_cv_birthtimensec=no |
|
|
4718 | fi |
|
|
4719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4720 | fi |
|
|
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
4722 | $as_echo "$ac_cv_birthtimensec" >&6; } |
|
|
4723 | test $ac_cv_birthtimensec = yes && |
|
|
4724 | $as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
4725 | |
|
|
4726 | |
|
|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
4728 | $as_echo_n "checking for st_birthtimespec... " >&6; } |
|
|
4729 | if ${ac_cv_birthtimespec+:} false; then : |
|
|
4730 | $as_echo_n "(cached) " >&6 |
|
|
4731 | else |
|
|
4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4733 | /* end confdefs.h. */ |
|
|
4734 | |
|
|
4735 | #include "EXTERN.h" |
|
|
4736 | #include "perl.h" |
|
|
4737 | #include "XSUB.h" |
|
|
4738 | |
|
|
4739 | int main (void) |
|
|
4740 | { |
|
|
4741 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
4742 | } |
|
|
4743 | |
|
|
4744 | _ACEOF |
|
|
4745 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4746 | ac_cv_birthtimespec=yes |
|
|
4747 | else |
|
|
4748 | ac_cv_birthtimespec=no |
|
|
4749 | fi |
|
|
4750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4751 | fi |
|
|
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
4753 | $as_echo "$ac_cv_birthtimespec" >&6; } |
|
|
4754 | test $ac_cv_birthtimespec = yes && |
|
|
4755 | $as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
4756 | |
|
|
4757 | |
|
|
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
4759 | $as_echo_n "checking for st_gen... " >&6; } |
|
|
4760 | if ${ac_cv_st_gen+:} false; then : |
|
|
4761 | $as_echo_n "(cached) " >&6 |
|
|
4762 | else |
|
|
4763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4764 | /* end confdefs.h. */ |
|
|
4765 | |
|
|
4766 | #include "EXTERN.h" |
|
|
4767 | #include "perl.h" |
|
|
4768 | #include "XSUB.h" |
|
|
4769 | |
|
|
4770 | int main (void) |
|
|
4771 | { |
|
|
4772 | return PL_statcache.st_gen; |
|
|
4773 | } |
|
|
4774 | |
|
|
4775 | _ACEOF |
|
|
4776 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4777 | ac_cv_st_gen=yes |
|
|
4778 | else |
|
|
4779 | ac_cv_st_gen=no |
|
|
4780 | fi |
|
|
4781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4782 | fi |
|
|
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
4784 | $as_echo "$ac_cv_st_gen" >&6; } |
|
|
4785 | test $ac_cv_st_gen = yes && |
|
|
4786 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
4787 | |
|
|
4788 | |
|
|
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
|
|
4790 | $as_echo_n "checking for statx... " >&6; } |
|
|
4791 | if ${ac_cv_statx+:} false; then : |
|
|
4792 | $as_echo_n "(cached) " >&6 |
|
|
4793 | else |
|
|
4794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4795 | /* end confdefs.h. */ |
|
|
4796 | |
|
|
4797 | #include <sys/types.h> |
|
|
4798 | #include <sys/stat.h> |
|
|
4799 | #include <unistd.h> |
|
|
4800 | #include <fcntl.h> |
4364 | int res; |
4801 | int res; |
4365 | int main (void) |
4802 | int main (void) |
4366 | { |
4803 | { |
4367 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4804 | struct statx sx; |
|
|
4805 | int res; |
|
|
4806 | res = statx (AT_FDCWD, ".", |
|
|
4807 | AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
|
|
4808 | STATX_ALL, &sx); |
|
|
4809 | STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
|
|
4810 | STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
|
|
4811 | STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
4368 | return 0; |
4812 | return 0; |
4369 | } |
4813 | } |
4370 | |
4814 | |
4371 | _ACEOF |
4815 | _ACEOF |
4372 | if ac_fn_c_try_link "$LINENO"; then : |
4816 | if ac_fn_c_try_link "$LINENO"; then : |
4373 | ac_cv_renameat2=yes |
4817 | ac_cv_statx=yes |
4374 | else |
4818 | else |
4375 | ac_cv_renameat2=no |
4819 | ac_cv_statx=no |
4376 | fi |
4820 | fi |
4377 | rm -f core conftest.err conftest.$ac_objext \ |
4821 | rm -f core conftest.err conftest.$ac_objext \ |
4378 | conftest$ac_exeext conftest.$ac_ext |
4822 | conftest$ac_exeext conftest.$ac_ext |
4379 | fi |
4823 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4825 | $as_echo "$ac_cv_statx" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4826 | test $ac_cv_statx = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4827 | $as_echo "#define HAVE_STATX 1" >>confdefs.h |
4384 | |
|
|
4385 | |
|
|
4386 | |
4828 | |
4387 | |
4829 | |
4388 | cat >confcache <<\_ACEOF |
4830 | cat >confcache <<\_ACEOF |
4389 | # This file is a shell script that caches the results of configure |
4831 | # This file is a shell script that caches the results of configure |
4390 | # tests run on this system so they can be shared between configure |
4832 | # tests run on this system so they can be shared between configure |
… | |
… | |
5055 | |
5497 | |
5056 | # Handling of arguments. |
5498 | # Handling of arguments. |
5057 | for ac_config_target in $ac_config_targets |
5499 | for ac_config_target in $ac_config_targets |
5058 | do |
5500 | do |
5059 | case $ac_config_target in |
5501 | case $ac_config_target in |
5060 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5502 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5061 | |
5503 | |
5062 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5504 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5063 | esac |
5505 | esac |
5064 | done |
5506 | done |
5065 | |
5507 | |
… | |
… | |
5400 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5842 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5402 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5844 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5403 | fi |
5845 | fi |
5404 | |
5846 | |
|
|
5847 | |