… | |
… | |
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 :( |
4203 | |
4272 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4205 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4274 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4206 | if ${ac_cv_rlimits+:} false; then : |
4275 | if ${ac_cv_rlimits+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4276 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4210 | /* end confdefs.h. */ |
4279 | /* end confdefs.h. */ |
4211 | |
4280 | |
4212 | #include <sys/time.h> |
4281 | #include <sys/time.h> |
4213 | #include <sys/resource.h> |
4282 | #include <sys/resource.h> |
4214 | int res; |
|
|
4215 | int main (void) |
4283 | int main (void) |
4216 | { |
4284 | { |
4217 | struct rlimit srl; |
4285 | struct rlimit srl; |
|
|
4286 | int res; |
4218 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4287 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4219 | res = getrlimit (RLIMIT_NOFILE, &srl); |
4288 | res = getrlimit (RLIMIT_NOFILE, &srl); |
4220 | res = setrlimit (RLIMIT_NOFILE, &srl); |
4289 | res = setrlimit (RLIMIT_NOFILE, &srl); |
4221 | return 0; |
4290 | return 0; |
4222 | } |
4291 | } |
… | |
… | |
4318 | fi |
4387 | fi |
4319 | |
4388 | |
4320 | done |
4389 | done |
4321 | |
4390 | |
4322 | |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5 |
|
|
4432 | $as_echo_n "checking for unix-style syscall interface... " >&6; } |
|
|
4433 | if ${ac_cv_syscall+:} false; then : |
|
|
4434 | $as_echo_n "(cached) " >&6 |
|
|
4435 | else |
|
|
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4437 | /* end confdefs.h. */ |
|
|
4438 | |
|
|
4439 | #include <unistd.h> |
|
|
4440 | #include <sys/syscall.h> |
|
|
4441 | int main (void) |
|
|
4442 | { |
|
|
4443 | long res = syscall (SYS_exit, 0); |
|
|
4444 | return 0; |
|
|
4445 | } |
|
|
4446 | |
|
|
4447 | _ACEOF |
|
|
4448 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4449 | ac_cv_syscall=yes |
|
|
4450 | else |
|
|
4451 | ac_cv_syscall=no |
|
|
4452 | fi |
|
|
4453 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4454 | conftest$ac_exeext conftest.$ac_ext |
|
|
4455 | fi |
|
|
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5 |
|
|
4457 | $as_echo "$ac_cv_syscall" >&6; } |
|
|
4458 | test $ac_cv_syscall = yes && |
|
|
4459 | $as_echo "#define HAVE_SYSCALL 1" >>confdefs.h |
|
|
4460 | |
|
|
4461 | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4324 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4463 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4325 | if ${ac_cv_linux_splice+:} false; then : |
4464 | if ${ac_cv_linux_splice+:} false; then : |
4326 | $as_echo_n "(cached) " >&6 |
4465 | $as_echo_n "(cached) " >&6 |
4327 | else |
4466 | else |
4328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4329 | /* end confdefs.h. */ |
4468 | /* end confdefs.h. */ |
4330 | |
4469 | |
|
|
4470 | #include <sys/types.h> |
4331 | #include <fcntl.h> |
4471 | #include <fcntl.h> |
|
|
4472 | #include <sys/uio.h> |
4332 | int main (void) |
4473 | int main (void) |
4333 | { |
4474 | { |
4334 | ssize_t res; |
4475 | ssize_t res; |
4335 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4476 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4336 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4477 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
… | |
… | |
4361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4362 | /* end confdefs.h. */ |
4503 | /* end confdefs.h. */ |
4363 | |
4504 | |
4364 | #include <fcntl.h> |
4505 | #include <fcntl.h> |
4365 | #include <unistd.h> |
4506 | #include <unistd.h> |
4366 | int res; |
|
|
4367 | int main (void) |
4507 | int main (void) |
4368 | { |
4508 | { |
|
|
4509 | int res; |
4369 | res = pipe2 (0, 0); |
4510 | res = pipe2 (0, 0); |
4370 | return 0; |
4511 | return 0; |
4371 | } |
4512 | } |
4372 | |
4513 | |
4373 | _ACEOF |
4514 | _ACEOF |
… | |
… | |
4383 | $as_echo "$ac_cv_pipe2" >&6; } |
4524 | $as_echo "$ac_cv_pipe2" >&6; } |
4384 | test $ac_cv_pipe2 = yes && |
4525 | test $ac_cv_pipe2 = yes && |
4385 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4526 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4386 | |
4527 | |
4387 | |
4528 | |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4389 | $as_echo_n "checking for renameat2... " >&6; } |
4530 | $as_echo_n "checking for eventfd... " >&6; } |
4390 | if ${ac_cv_renameat2+:} false; then : |
4531 | if ${ac_cv_eventfd+:} false; then : |
4391 | $as_echo_n "(cached) " >&6 |
4532 | $as_echo_n "(cached) " >&6 |
4392 | else |
4533 | else |
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4394 | /* end confdefs.h. */ |
4535 | /* end confdefs.h. */ |
4395 | |
4536 | |
4396 | #include <unistd.h> |
4537 | #include <sys/eventfd.h> |
4397 | #include <sys/syscall.h> |
|
|
4398 | #include <linux/fs.h> |
|
|
4399 | int res; |
|
|
4400 | int main (void) |
4538 | int main (void) |
4401 | { |
4539 | { |
4402 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4540 | int res; |
|
|
4541 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
4403 | return 0; |
4542 | return 0; |
4404 | } |
4543 | } |
4405 | |
4544 | |
4406 | _ACEOF |
4545 | _ACEOF |
4407 | if ac_fn_c_try_link "$LINENO"; then : |
4546 | if ac_fn_c_try_link "$LINENO"; then : |
4408 | ac_cv_renameat2=yes |
4547 | ac_cv_eventfd=yes |
4409 | else |
4548 | else |
4410 | ac_cv_renameat2=no |
4549 | ac_cv_eventfd=no |
4411 | fi |
4550 | fi |
4412 | rm -f core conftest.err conftest.$ac_objext \ |
4551 | rm -f core conftest.err conftest.$ac_objext \ |
4413 | conftest$ac_exeext conftest.$ac_ext |
4552 | conftest$ac_exeext conftest.$ac_ext |
4414 | fi |
4553 | fi |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
4416 | $as_echo "$ac_cv_renameat2" >&6; } |
4555 | $as_echo "$ac_cv_eventfd" >&6; } |
4417 | test $ac_cv_renameat2 = yes && |
4556 | test $ac_cv_eventfd = yes && |
4418 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4557 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4558 | |
|
|
4559 | |
|
|
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
|
|
4561 | $as_echo_n "checking for timerfd_*... " >&6; } |
|
|
4562 | if ${ac_cv_timerfd+:} false; then : |
|
|
4563 | $as_echo_n "(cached) " >&6 |
|
|
4564 | else |
|
|
4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4566 | /* end confdefs.h. */ |
|
|
4567 | |
|
|
4568 | #include <sys/timerfd.h> |
|
|
4569 | int main (void) |
|
|
4570 | { |
|
|
4571 | struct itimerspec its; |
|
|
4572 | int res; |
|
|
4573 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4574 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4575 | res = timerfd_gettime (res, &its); |
|
|
4576 | return 0; |
|
|
4577 | } |
|
|
4578 | |
|
|
4579 | _ACEOF |
|
|
4580 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4581 | ac_cv_timerfd=yes |
|
|
4582 | else |
|
|
4583 | ac_cv_timerfd=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_timerfd" >&5 |
|
|
4589 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4590 | test $ac_cv_timerfd = yes && |
|
|
4591 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4592 | |
|
|
4593 | |
|
|
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
|
|
4595 | $as_echo_n "checking for memfd_create... " >&6; } |
|
|
4596 | if ${ac_cv_memfd_create+:} false; then : |
|
|
4597 | $as_echo_n "(cached) " >&6 |
|
|
4598 | else |
|
|
4599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4600 | /* end confdefs.h. */ |
|
|
4601 | |
|
|
4602 | #include <sys/mman.h> |
|
|
4603 | int main (void) |
|
|
4604 | { |
|
|
4605 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
4606 | return 0; |
|
|
4607 | } |
|
|
4608 | |
|
|
4609 | _ACEOF |
|
|
4610 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4611 | ac_cv_memfd_create=yes |
|
|
4612 | else |
|
|
4613 | ac_cv_memfd_create=no |
|
|
4614 | fi |
|
|
4615 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4616 | conftest$ac_exeext conftest.$ac_ext |
|
|
4617 | fi |
|
|
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
|
|
4619 | $as_echo "$ac_cv_memfd_create" >&6; } |
|
|
4620 | test $ac_cv_memfd_create = yes && |
|
|
4621 | $as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
4419 | |
4622 | |
4420 | |
4623 | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4422 | $as_echo_n "checking for copy_file_range... " >&6; } |
4625 | $as_echo_n "checking for copy_file_range... " >&6; } |
4423 | if ${ac_cv_copy_file_range+:} false; then : |
4626 | if ${ac_cv_copy_file_range+:} false; then : |
… | |
… | |
4427 | /* end confdefs.h. */ |
4630 | /* end confdefs.h. */ |
4428 | |
4631 | |
4429 | #include <unistd.h> |
4632 | #include <unistd.h> |
4430 | #include <sys/syscall.h> |
4633 | #include <sys/syscall.h> |
4431 | /*#include <linux/copy.h>*/ |
4634 | /*#include <linux/copy.h>*/ |
4432 | int res; |
|
|
4433 | int main (void) |
4635 | int main (void) |
4434 | { |
4636 | { |
|
|
4637 | int res; |
4435 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
4638 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
4436 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4639 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4437 | return 0; |
4640 | return 0; |
4438 | } |
4641 | } |
4439 | |
4642 | |
… | |
… | |
4450 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4653 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4451 | test $ac_cv_copy_file_range = yes && |
4654 | test $ac_cv_copy_file_range = yes && |
4452 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4655 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4453 | |
4656 | |
4454 | |
4657 | |
|
|
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
4659 | $as_echo_n "checking for st_xtimensec... " >&6; } |
|
|
4660 | if ${ac_cv_xtimensec+:} false; then : |
|
|
4661 | $as_echo_n "(cached) " >&6 |
|
|
4662 | else |
|
|
4663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4664 | /* end confdefs.h. */ |
|
|
4665 | |
|
|
4666 | #include "EXTERN.h" |
|
|
4667 | #include "perl.h" |
|
|
4668 | #include "XSUB.h" |
|
|
4669 | |
|
|
4670 | int main (void) |
|
|
4671 | { |
|
|
4672 | return PL_statcache.st_atimensec |
|
|
4673 | + PL_statcache.st_mtimensec |
|
|
4674 | + PL_statcache.st_ctimensec; |
|
|
4675 | } |
|
|
4676 | |
|
|
4677 | _ACEOF |
|
|
4678 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4679 | ac_cv_xtimensec=yes |
|
|
4680 | else |
|
|
4681 | ac_cv_xtimensec=no |
|
|
4682 | fi |
|
|
4683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4684 | fi |
|
|
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
4686 | $as_echo "$ac_cv_xtimensec" >&6; } |
|
|
4687 | test $ac_cv_xtimensec = yes && |
|
|
4688 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
4689 | |
|
|
4690 | |
|
|
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4692 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4693 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4694 | $as_echo_n "(cached) " >&6 |
|
|
4695 | else |
|
|
4696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4697 | /* end confdefs.h. */ |
|
|
4698 | |
|
|
4699 | #include "EXTERN.h" |
|
|
4700 | #include "perl.h" |
|
|
4701 | #include "XSUB.h" |
|
|
4702 | |
|
|
4703 | int main (void) |
|
|
4704 | { |
|
|
4705 | return PL_statcache.st_atim.tv_nsec |
|
|
4706 | + PL_statcache.st_mtim.tv_nsec |
|
|
4707 | + PL_statcache.st_ctim.tv_nsec; |
|
|
4708 | } |
|
|
4709 | |
|
|
4710 | _ACEOF |
|
|
4711 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4712 | ac_cv_xtimespec=yes |
|
|
4713 | else |
|
|
4714 | ac_cv_xtimespec=no |
|
|
4715 | fi |
|
|
4716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4717 | fi |
|
|
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
4719 | $as_echo "$ac_cv_xtimespec" >&6; } |
|
|
4720 | test $ac_cv_xtimespec = yes && |
|
|
4721 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
4722 | |
|
|
4723 | |
|
|
4724 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
4725 | |
|
|
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
4727 | $as_echo_n "checking for st_birthtimensec... " >&6; } |
|
|
4728 | if ${ac_cv_birthtimensec+:} false; then : |
|
|
4729 | $as_echo_n "(cached) " >&6 |
|
|
4730 | else |
|
|
4731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4732 | /* end confdefs.h. */ |
|
|
4733 | |
|
|
4734 | #include "EXTERN.h" |
|
|
4735 | #include "perl.h" |
|
|
4736 | #include "XSUB.h" |
|
|
4737 | |
|
|
4738 | int main (void) |
|
|
4739 | { |
|
|
4740 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
4741 | } |
|
|
4742 | |
|
|
4743 | _ACEOF |
|
|
4744 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4745 | ac_cv_birthtimensec=yes |
|
|
4746 | else |
|
|
4747 | ac_cv_birthtimensec=no |
|
|
4748 | fi |
|
|
4749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4750 | fi |
|
|
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
4752 | $as_echo "$ac_cv_birthtimensec" >&6; } |
|
|
4753 | test $ac_cv_birthtimensec = yes && |
|
|
4754 | $as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
4755 | |
|
|
4756 | |
|
|
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
4758 | $as_echo_n "checking for st_birthtimespec... " >&6; } |
|
|
4759 | if ${ac_cv_birthtimespec+:} false; then : |
|
|
4760 | $as_echo_n "(cached) " >&6 |
|
|
4761 | else |
|
|
4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4763 | /* end confdefs.h. */ |
|
|
4764 | |
|
|
4765 | #include "EXTERN.h" |
|
|
4766 | #include "perl.h" |
|
|
4767 | #include "XSUB.h" |
|
|
4768 | |
|
|
4769 | int main (void) |
|
|
4770 | { |
|
|
4771 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
4772 | } |
|
|
4773 | |
|
|
4774 | _ACEOF |
|
|
4775 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4776 | ac_cv_birthtimespec=yes |
|
|
4777 | else |
|
|
4778 | ac_cv_birthtimespec=no |
|
|
4779 | fi |
|
|
4780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4781 | fi |
|
|
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
4783 | $as_echo "$ac_cv_birthtimespec" >&6; } |
|
|
4784 | test $ac_cv_birthtimespec = yes && |
|
|
4785 | $as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
4786 | |
|
|
4787 | |
|
|
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
4789 | $as_echo_n "checking for st_gen... " >&6; } |
|
|
4790 | if ${ac_cv_st_gen+:} false; then : |
|
|
4791 | $as_echo_n "(cached) " >&6 |
|
|
4792 | else |
|
|
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4794 | /* end confdefs.h. */ |
|
|
4795 | |
|
|
4796 | #include "EXTERN.h" |
|
|
4797 | #include "perl.h" |
|
|
4798 | #include "XSUB.h" |
|
|
4799 | |
|
|
4800 | int main (void) |
|
|
4801 | { |
|
|
4802 | return PL_statcache.st_gen; |
|
|
4803 | } |
|
|
4804 | |
|
|
4805 | _ACEOF |
|
|
4806 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4807 | ac_cv_st_gen=yes |
|
|
4808 | else |
|
|
4809 | ac_cv_st_gen=no |
|
|
4810 | fi |
|
|
4811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4812 | fi |
|
|
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
4814 | $as_echo "$ac_cv_st_gen" >&6; } |
|
|
4815 | test $ac_cv_st_gen = yes && |
|
|
4816 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
4817 | |
|
|
4818 | |
|
|
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
|
|
4820 | $as_echo_n "checking for statx... " >&6; } |
|
|
4821 | if ${ac_cv_statx+:} false; then : |
|
|
4822 | $as_echo_n "(cached) " >&6 |
|
|
4823 | else |
|
|
4824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4825 | /* end confdefs.h. */ |
|
|
4826 | |
|
|
4827 | #include <sys/types.h> |
|
|
4828 | #include <sys/stat.h> |
|
|
4829 | #include <unistd.h> |
|
|
4830 | #include <fcntl.h> |
|
|
4831 | int res; |
|
|
4832 | int main (void) |
|
|
4833 | { |
|
|
4834 | struct statx sx; |
|
|
4835 | int res; |
|
|
4836 | res = statx (AT_FDCWD, ".", |
|
|
4837 | AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
|
|
4838 | STATX_ALL, &sx); |
|
|
4839 | STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
|
|
4840 | STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
|
|
4841 | STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
|
|
4842 | return 0; |
|
|
4843 | } |
|
|
4844 | |
|
|
4845 | _ACEOF |
|
|
4846 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4847 | ac_cv_statx=yes |
|
|
4848 | else |
|
|
4849 | ac_cv_statx=no |
|
|
4850 | fi |
|
|
4851 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4852 | conftest$ac_exeext conftest.$ac_ext |
|
|
4853 | fi |
|
|
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
|
|
4855 | $as_echo "$ac_cv_statx" >&6; } |
|
|
4856 | test $ac_cv_statx = yes && |
|
|
4857 | $as_echo "#define HAVE_STATX 1" >>confdefs.h |
|
|
4858 | |
|
|
4859 | |
|
|
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
|
|
4861 | $as_echo_n "checking for accept4... " >&6; } |
|
|
4862 | if ${ac_cv_accept4+:} false; then : |
|
|
4863 | $as_echo_n "(cached) " >&6 |
|
|
4864 | else |
|
|
4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4866 | /* end confdefs.h. */ |
|
|
4867 | |
|
|
4868 | #include <sys/types.h> |
|
|
4869 | #include <sys/socket.h> |
|
|
4870 | int main (void) |
|
|
4871 | { |
|
|
4872 | int res; |
|
|
4873 | res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
4874 | return 0; |
|
|
4875 | } |
|
|
4876 | |
|
|
4877 | _ACEOF |
|
|
4878 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4879 | ac_cv_accept4=yes |
|
|
4880 | else |
|
|
4881 | ac_cv_accept4=no |
|
|
4882 | fi |
|
|
4883 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4884 | conftest$ac_exeext conftest.$ac_ext |
|
|
4885 | fi |
|
|
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
|
|
4887 | $as_echo "$ac_cv_accept4" >&6; } |
|
|
4888 | test $ac_cv_accept4 = yes && |
|
|
4889 | $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h |
4455 | |
4890 | |
4456 | |
4891 | |
4457 | cat >confcache <<\_ACEOF |
4892 | cat >confcache <<\_ACEOF |
4458 | # This file is a shell script that caches the results of configure |
4893 | # This file is a shell script that caches the results of configure |
4459 | # tests run on this system so they can be shared between configure |
4894 | # tests run on this system so they can be shared between configure |
… | |
… | |
5124 | |
5559 | |
5125 | # Handling of arguments. |
5560 | # Handling of arguments. |
5126 | for ac_config_target in $ac_config_targets |
5561 | for ac_config_target in $ac_config_targets |
5127 | do |
5562 | do |
5128 | case $ac_config_target in |
5563 | case $ac_config_target in |
5129 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5564 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5130 | |
5565 | |
5131 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5566 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5132 | esac |
5567 | esac |
5133 | done |
5568 | done |
5134 | |
5569 | |
… | |
… | |
5469 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5904 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5471 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5906 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5472 | fi |
5907 | fi |
5473 | |
5908 | |
|
|
5909 | |