… | |
… | |
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; |
… | |
… | |
4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4277 | /* end confdefs.h. */ |
4279 | /* end confdefs.h. */ |
4278 | |
4280 | |
4279 | #include <sys/time.h> |
4281 | #include <sys/time.h> |
4280 | #include <sys/resource.h> |
4282 | #include <sys/resource.h> |
4281 | int res; |
|
|
4282 | int main (void) |
4283 | int main (void) |
4283 | { |
4284 | { |
4284 | struct rlimit srl; |
4285 | struct rlimit srl; |
|
|
4286 | int res; |
4285 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4287 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4286 | res = getrlimit (RLIMIT_NOFILE, &srl); |
4288 | res = getrlimit (RLIMIT_NOFILE, &srl); |
4287 | res = setrlimit (RLIMIT_NOFILE, &srl); |
4289 | res = setrlimit (RLIMIT_NOFILE, &srl); |
4288 | return 0; |
4290 | return 0; |
4289 | } |
4291 | } |
… | |
… | |
4411 | fi |
4413 | fi |
4412 | |
4414 | |
4413 | done |
4415 | done |
4414 | |
4416 | |
4415 | |
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 | |
4416 | { $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 |
4417 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4433 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4418 | if ${ac_cv_linux_splice+:} false; then : |
4434 | if ${ac_cv_linux_splice+:} false; then : |
4419 | $as_echo_n "(cached) " >&6 |
4435 | $as_echo_n "(cached) " >&6 |
4420 | else |
4436 | else |
4421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4422 | /* end confdefs.h. */ |
4438 | /* end confdefs.h. */ |
4423 | |
4439 | |
|
|
4440 | #include <sys/types.h> |
4424 | #include <fcntl.h> |
4441 | #include <fcntl.h> |
|
|
4442 | #include <sys/uio.h> |
4425 | int main (void) |
4443 | int main (void) |
4426 | { |
4444 | { |
4427 | ssize_t res; |
4445 | ssize_t res; |
4428 | 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); |
4429 | 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); |
… | |
… | |
4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4455 | /* end confdefs.h. */ |
4473 | /* end confdefs.h. */ |
4456 | |
4474 | |
4457 | #include <fcntl.h> |
4475 | #include <fcntl.h> |
4458 | #include <unistd.h> |
4476 | #include <unistd.h> |
4459 | int res; |
|
|
4460 | int main (void) |
4477 | int main (void) |
4461 | { |
4478 | { |
|
|
4479 | int res; |
4462 | res = pipe2 (0, 0); |
4480 | res = pipe2 (0, 0); |
4463 | return 0; |
4481 | return 0; |
4464 | } |
4482 | } |
4465 | |
4483 | |
4466 | _ACEOF |
4484 | _ACEOF |
… | |
… | |
4485 | else |
4503 | else |
4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4487 | /* end confdefs.h. */ |
4505 | /* end confdefs.h. */ |
4488 | |
4506 | |
4489 | #include <sys/eventfd.h> |
4507 | #include <sys/eventfd.h> |
4490 | int res; |
|
|
4491 | int main (void) |
4508 | int main (void) |
4492 | { |
4509 | { |
|
|
4510 | int res; |
4493 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
4511 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
4494 | return 0; |
4512 | return 0; |
4495 | } |
4513 | } |
4496 | |
4514 | |
4497 | _ACEOF |
4515 | _ACEOF |
… | |
… | |
4507 | $as_echo "$ac_cv_eventfd" >&6; } |
4525 | $as_echo "$ac_cv_eventfd" >&6; } |
4508 | test $ac_cv_eventfd = yes && |
4526 | test $ac_cv_eventfd = yes && |
4509 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4527 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4510 | |
4528 | |
4511 | |
4529 | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
4513 | $as_echo_n "checking for timerfd... " >&6; } |
4531 | $as_echo_n "checking for timerfd_*... " >&6; } |
4514 | if ${ac_cv_timerfd+:} false; then : |
4532 | if ${ac_cv_timerfd+:} false; then : |
4515 | $as_echo_n "(cached) " >&6 |
4533 | $as_echo_n "(cached) " >&6 |
4516 | else |
4534 | else |
4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4518 | /* end confdefs.h. */ |
4536 | /* end confdefs.h. */ |
4519 | |
4537 | |
4520 | #include <sys/timerfd.h> |
4538 | #include <sys/timerfd.h> |
4521 | int res; |
|
|
4522 | int main (void) |
4539 | int main (void) |
4523 | { |
4540 | { |
4524 | struct itimerspec its; |
4541 | struct itimerspec its; |
|
|
4542 | int res; |
4525 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
4543 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
4526 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
4544 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
4527 | res = timerfd_gettime (res, &its); |
4545 | res = timerfd_gettime (res, &its); |
4528 | return 0; |
4546 | return 0; |
4529 | } |
4547 | } |
… | |
… | |
4541 | $as_echo "$ac_cv_timerfd" >&6; } |
4559 | $as_echo "$ac_cv_timerfd" >&6; } |
4542 | test $ac_cv_timerfd = yes && |
4560 | test $ac_cv_timerfd = yes && |
4543 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4561 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4544 | |
4562 | |
4545 | |
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 | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4547 | $as_echo_n "checking for copy_file_range... " >&6; } |
4595 | $as_echo_n "checking for copy_file_range... " >&6; } |
4548 | if ${ac_cv_copy_file_range+:} false; then : |
4596 | if ${ac_cv_copy_file_range+:} false; then : |
4549 | $as_echo_n "(cached) " >&6 |
4597 | $as_echo_n "(cached) " >&6 |
4550 | else |
4598 | else |
… | |
… | |
4552 | /* end confdefs.h. */ |
4600 | /* end confdefs.h. */ |
4553 | |
4601 | |
4554 | #include <unistd.h> |
4602 | #include <unistd.h> |
4555 | #include <sys/syscall.h> |
4603 | #include <sys/syscall.h> |
4556 | /*#include <linux/copy.h>*/ |
4604 | /*#include <linux/copy.h>*/ |
4557 | int res; |
|
|
4558 | int main (void) |
4605 | int main (void) |
4559 | { |
4606 | { |
|
|
4607 | int res; |
4560 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
4608 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
4561 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4609 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4562 | return 0; |
4610 | return 0; |
4563 | } |
4611 | } |
4564 | |
4612 | |
… | |
… | |
4587 | |
4635 | |
4588 | #include "EXTERN.h" |
4636 | #include "EXTERN.h" |
4589 | #include "perl.h" |
4637 | #include "perl.h" |
4590 | #include "XSUB.h" |
4638 | #include "XSUB.h" |
4591 | |
4639 | |
4592 | int res; |
|
|
4593 | int main (void) |
4640 | int main (void) |
4594 | { |
4641 | { |
4595 | return PL_statcache.st_atimensec |
4642 | return PL_statcache.st_atimensec |
4596 | + PL_statcache.st_mtimensec |
4643 | + PL_statcache.st_mtimensec |
4597 | + PL_statcache.st_ctimensec; |
4644 | + PL_statcache.st_ctimensec; |
4598 | return 0; |
|
|
4599 | } |
4645 | } |
4600 | |
4646 | |
4601 | _ACEOF |
4647 | _ACEOF |
4602 | if ac_fn_c_try_compile "$LINENO"; then : |
4648 | if ac_fn_c_try_compile "$LINENO"; then : |
4603 | ac_cv_xtimensec=yes |
4649 | ac_cv_xtimensec=yes |
… | |
… | |
4622 | |
4668 | |
4623 | #include "EXTERN.h" |
4669 | #include "EXTERN.h" |
4624 | #include "perl.h" |
4670 | #include "perl.h" |
4625 | #include "XSUB.h" |
4671 | #include "XSUB.h" |
4626 | |
4672 | |
4627 | int res; |
|
|
4628 | int main (void) |
4673 | int main (void) |
4629 | { |
4674 | { |
4630 | return PL_statcache.st_atim.tv_nsec |
4675 | return PL_statcache.st_atim.tv_nsec |
4631 | + PL_statcache.st_mtim.tv_nsec |
4676 | + PL_statcache.st_mtim.tv_nsec |
4632 | + PL_statcache.st_ctim.tv_nsec; |
4677 | + PL_statcache.st_ctim.tv_nsec; |
… | |
… | |
4645 | test $ac_cv_xtimespec = yes && |
4690 | test $ac_cv_xtimespec = yes && |
4646 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4691 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4647 | |
4692 | |
4648 | |
4693 | |
4649 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
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> |
|
|
4801 | int res; |
|
|
4802 | int main (void) |
|
|
4803 | { |
|
|
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; |
|
|
4812 | return 0; |
|
|
4813 | } |
|
|
4814 | |
|
|
4815 | _ACEOF |
|
|
4816 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4817 | ac_cv_statx=yes |
|
|
4818 | else |
|
|
4819 | ac_cv_statx=no |
|
|
4820 | fi |
|
|
4821 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4822 | conftest$ac_exeext conftest.$ac_ext |
|
|
4823 | fi |
|
|
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
|
|
4825 | $as_echo "$ac_cv_statx" >&6; } |
|
|
4826 | test $ac_cv_statx = yes && |
|
|
4827 | $as_echo "#define HAVE_STATX 1" >>confdefs.h |
|
|
4828 | |
|
|
4829 | |
|
|
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
|
|
4831 | $as_echo_n "checking for accept4... " >&6; } |
|
|
4832 | if ${ac_cv_accept4+:} false; then : |
|
|
4833 | $as_echo_n "(cached) " >&6 |
|
|
4834 | else |
|
|
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4836 | /* end confdefs.h. */ |
|
|
4837 | |
|
|
4838 | #include <sys/types.h> |
|
|
4839 | #include <sys/socket.h> |
|
|
4840 | int main (void) |
|
|
4841 | { |
|
|
4842 | int res; |
|
|
4843 | res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
4844 | return 0; |
|
|
4845 | } |
|
|
4846 | |
|
|
4847 | _ACEOF |
|
|
4848 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4849 | ac_cv_accept4=yes |
|
|
4850 | else |
|
|
4851 | ac_cv_accept4=no |
|
|
4852 | fi |
|
|
4853 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4854 | conftest$ac_exeext conftest.$ac_ext |
|
|
4855 | fi |
|
|
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
|
|
4857 | $as_echo "$ac_cv_accept4" >&6; } |
|
|
4858 | test $ac_cv_accept4 = yes && |
|
|
4859 | $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h |
|
|
4860 | |
4650 | |
4861 | |
4651 | cat >confcache <<\_ACEOF |
4862 | cat >confcache <<\_ACEOF |
4652 | # This file is a shell script that caches the results of configure |
4863 | # This file is a shell script that caches the results of configure |
4653 | # tests run on this system so they can be shared between configure |
4864 | # tests run on this system so they can be shared between configure |
4654 | # scripts and configure runs, see configure's option --config-cache. |
4865 | # scripts and configure runs, see configure's option --config-cache. |