… | |
… | |
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 res; |
|
|
4284 | int main (void) |
|
|
4285 | { |
|
|
4286 | struct rlimit srl; |
|
|
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 | |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4418 | { $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; } |
4419 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4290 | if ${ac_cv_linux_splice+:} false; then : |
4420 | if ${ac_cv_linux_splice+:} false; then : |
4291 | $as_echo_n "(cached) " >&6 |
4421 | $as_echo_n "(cached) " >&6 |
4292 | else |
4422 | else |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4294 | /* end confdefs.h. */ |
4424 | /* end confdefs.h. */ |
4295 | |
4425 | |
|
|
4426 | #include <sys/types.h> |
4296 | #include <fcntl.h> |
4427 | #include <fcntl.h> |
4297 | int main (void) |
4428 | int main (void) |
4298 | { |
4429 | { |
4299 | ssize_t res; |
4430 | 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); |
4431 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
… | |
… | |
4348 | $as_echo "$ac_cv_pipe2" >&6; } |
4479 | $as_echo "$ac_cv_pipe2" >&6; } |
4349 | test $ac_cv_pipe2 = yes && |
4480 | test $ac_cv_pipe2 = yes && |
4350 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4481 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4351 | |
4482 | |
4352 | |
4483 | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4354 | $as_echo_n "checking for renameat2... " >&6; } |
4485 | $as_echo_n "checking for eventfd... " >&6; } |
4355 | if ${ac_cv_renameat2+:} false; then : |
4486 | if ${ac_cv_eventfd+:} false; then : |
4356 | $as_echo_n "(cached) " >&6 |
4487 | $as_echo_n "(cached) " >&6 |
4357 | else |
4488 | else |
4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4359 | /* end confdefs.h. */ |
4490 | /* end confdefs.h. */ |
4360 | |
4491 | |
|
|
4492 | #include <sys/eventfd.h> |
|
|
4493 | int res; |
|
|
4494 | int main (void) |
|
|
4495 | { |
|
|
4496 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4497 | return 0; |
|
|
4498 | } |
|
|
4499 | |
|
|
4500 | _ACEOF |
|
|
4501 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4502 | ac_cv_eventfd=yes |
|
|
4503 | else |
|
|
4504 | ac_cv_eventfd=no |
|
|
4505 | fi |
|
|
4506 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4507 | conftest$ac_exeext conftest.$ac_ext |
|
|
4508 | fi |
|
|
4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4510 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4511 | test $ac_cv_eventfd = yes && |
|
|
4512 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4513 | |
|
|
4514 | |
|
|
4515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
|
|
4516 | $as_echo_n "checking for timerfd... " >&6; } |
|
|
4517 | if ${ac_cv_timerfd+:} false; then : |
|
|
4518 | $as_echo_n "(cached) " >&6 |
|
|
4519 | else |
|
|
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4521 | /* end confdefs.h. */ |
|
|
4522 | |
|
|
4523 | #include <sys/timerfd.h> |
|
|
4524 | int res; |
|
|
4525 | int main (void) |
|
|
4526 | { |
|
|
4527 | struct itimerspec its; |
|
|
4528 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4529 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4530 | res = timerfd_gettime (res, &its); |
|
|
4531 | return 0; |
|
|
4532 | } |
|
|
4533 | |
|
|
4534 | _ACEOF |
|
|
4535 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4536 | ac_cv_timerfd=yes |
|
|
4537 | else |
|
|
4538 | ac_cv_timerfd=no |
|
|
4539 | fi |
|
|
4540 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4541 | conftest$ac_exeext conftest.$ac_ext |
|
|
4542 | fi |
|
|
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4544 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4545 | test $ac_cv_timerfd = yes && |
|
|
4546 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4547 | |
|
|
4548 | |
|
|
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4550 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4551 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4552 | $as_echo_n "(cached) " >&6 |
|
|
4553 | else |
|
|
4554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4555 | /* end confdefs.h. */ |
|
|
4556 | |
4361 | #include <unistd.h> |
4557 | #include <unistd.h> |
4362 | #include <sys/syscall.h> |
4558 | #include <sys/syscall.h> |
4363 | #include <linux/fs.h> |
4559 | /*#include <linux/copy.h>*/ |
4364 | int res; |
4560 | int res; |
4365 | int main (void) |
4561 | int main (void) |
4366 | { |
4562 | { |
4367 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4563 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4564 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4368 | return 0; |
4565 | return 0; |
4369 | } |
4566 | } |
4370 | |
4567 | |
4371 | _ACEOF |
4568 | _ACEOF |
4372 | if ac_fn_c_try_link "$LINENO"; then : |
4569 | if ac_fn_c_try_link "$LINENO"; then : |
4373 | ac_cv_renameat2=yes |
4570 | ac_cv_copy_file_range=yes |
4374 | else |
4571 | else |
4375 | ac_cv_renameat2=no |
4572 | ac_cv_copy_file_range=no |
4376 | fi |
4573 | fi |
4377 | rm -f core conftest.err conftest.$ac_objext \ |
4574 | rm -f core conftest.err conftest.$ac_objext \ |
4378 | conftest$ac_exeext conftest.$ac_ext |
4575 | conftest$ac_exeext conftest.$ac_ext |
4379 | fi |
4576 | fi |
|
|
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4578 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4579 | test $ac_cv_copy_file_range = yes && |
|
|
4580 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4581 | |
|
|
4582 | |
|
|
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
4584 | $as_echo_n "checking for st_xtimensec... " >&6; } |
|
|
4585 | if ${ac_cv_xtimensec+:} false; then : |
|
|
4586 | $as_echo_n "(cached) " >&6 |
|
|
4587 | else |
|
|
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4589 | /* end confdefs.h. */ |
|
|
4590 | |
|
|
4591 | #include "EXTERN.h" |
|
|
4592 | #include "perl.h" |
|
|
4593 | #include "XSUB.h" |
|
|
4594 | |
|
|
4595 | int main (void) |
|
|
4596 | { |
|
|
4597 | return PL_statcache.st_atimensec |
|
|
4598 | + PL_statcache.st_mtimensec |
|
|
4599 | + PL_statcache.st_ctimensec; |
|
|
4600 | } |
|
|
4601 | |
|
|
4602 | _ACEOF |
|
|
4603 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4604 | ac_cv_xtimensec=yes |
|
|
4605 | else |
|
|
4606 | ac_cv_xtimensec=no |
|
|
4607 | fi |
|
|
4608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4609 | fi |
|
|
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
4611 | $as_echo "$ac_cv_xtimensec" >&6; } |
|
|
4612 | test $ac_cv_xtimensec = yes && |
|
|
4613 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
4614 | |
|
|
4615 | |
|
|
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4617 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4618 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4619 | $as_echo_n "(cached) " >&6 |
|
|
4620 | else |
|
|
4621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4622 | /* end confdefs.h. */ |
|
|
4623 | |
|
|
4624 | #include "EXTERN.h" |
|
|
4625 | #include "perl.h" |
|
|
4626 | #include "XSUB.h" |
|
|
4627 | |
|
|
4628 | int main (void) |
|
|
4629 | { |
|
|
4630 | return PL_statcache.st_atim.tv_nsec |
|
|
4631 | + PL_statcache.st_mtim.tv_nsec |
|
|
4632 | + PL_statcache.st_ctim.tv_nsec; |
|
|
4633 | } |
|
|
4634 | |
|
|
4635 | _ACEOF |
|
|
4636 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4637 | ac_cv_xtimespec=yes |
|
|
4638 | else |
|
|
4639 | ac_cv_xtimespec=no |
|
|
4640 | fi |
|
|
4641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4642 | fi |
|
|
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
4644 | $as_echo "$ac_cv_xtimespec" >&6; } |
|
|
4645 | test $ac_cv_xtimespec = yes && |
|
|
4646 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
4647 | |
|
|
4648 | |
|
|
4649 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
4650 | |
|
|
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
4652 | $as_echo_n "checking for st_birthtimensec... " >&6; } |
|
|
4653 | if ${ac_cv_birthtimensec+:} false; then : |
|
|
4654 | $as_echo_n "(cached) " >&6 |
|
|
4655 | else |
|
|
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4657 | /* end confdefs.h. */ |
|
|
4658 | |
|
|
4659 | #include "EXTERN.h" |
|
|
4660 | #include "perl.h" |
|
|
4661 | #include "XSUB.h" |
|
|
4662 | |
|
|
4663 | int main (void) |
|
|
4664 | { |
|
|
4665 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
4666 | } |
|
|
4667 | |
|
|
4668 | _ACEOF |
|
|
4669 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4670 | ac_cv_birthtimensec=yes |
|
|
4671 | else |
|
|
4672 | ac_cv_birthtimensec=no |
|
|
4673 | fi |
|
|
4674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4675 | fi |
|
|
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
4677 | $as_echo "$ac_cv_birthtimensec" >&6; } |
|
|
4678 | test $ac_cv_birthtimensec = yes && |
|
|
4679 | $as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
4680 | |
|
|
4681 | |
|
|
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
4683 | $as_echo_n "checking for st_birthtimespec... " >&6; } |
|
|
4684 | if ${ac_cv_birthtimespec+:} false; then : |
|
|
4685 | $as_echo_n "(cached) " >&6 |
|
|
4686 | else |
|
|
4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4688 | /* end confdefs.h. */ |
|
|
4689 | |
|
|
4690 | #include "EXTERN.h" |
|
|
4691 | #include "perl.h" |
|
|
4692 | #include "XSUB.h" |
|
|
4693 | |
|
|
4694 | int main (void) |
|
|
4695 | { |
|
|
4696 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
4697 | } |
|
|
4698 | |
|
|
4699 | _ACEOF |
|
|
4700 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4701 | ac_cv_birthtimespec=yes |
|
|
4702 | else |
|
|
4703 | ac_cv_birthtimespec=no |
|
|
4704 | fi |
|
|
4705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4706 | fi |
|
|
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
4708 | $as_echo "$ac_cv_birthtimespec" >&6; } |
|
|
4709 | test $ac_cv_birthtimespec = yes && |
|
|
4710 | $as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
4711 | |
|
|
4712 | |
|
|
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
4714 | $as_echo_n "checking for st_gen... " >&6; } |
|
|
4715 | if ${ac_cv_st_gen+:} false; then : |
|
|
4716 | $as_echo_n "(cached) " >&6 |
|
|
4717 | else |
|
|
4718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4719 | /* end confdefs.h. */ |
|
|
4720 | |
|
|
4721 | #include "EXTERN.h" |
|
|
4722 | #include "perl.h" |
|
|
4723 | #include "XSUB.h" |
|
|
4724 | |
|
|
4725 | int main (void) |
|
|
4726 | { |
|
|
4727 | return PL_statcache.st_gen; |
|
|
4728 | } |
|
|
4729 | |
|
|
4730 | _ACEOF |
|
|
4731 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4732 | ac_cv_st_gen=yes |
|
|
4733 | else |
|
|
4734 | ac_cv_st_gen=no |
|
|
4735 | fi |
|
|
4736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4737 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4739 | $as_echo "$ac_cv_st_gen" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4740 | test $ac_cv_st_gen = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4741 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h |
4384 | |
|
|
4385 | |
|
|
4386 | |
4742 | |
4387 | |
4743 | |
4388 | cat >confcache <<\_ACEOF |
4744 | cat >confcache <<\_ACEOF |
4389 | # This file is a shell script that caches the results of configure |
4745 | # 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 |
4746 | # tests run on this system so they can be shared between configure |
… | |
… | |
5055 | |
5411 | |
5056 | # Handling of arguments. |
5412 | # Handling of arguments. |
5057 | for ac_config_target in $ac_config_targets |
5413 | for ac_config_target in $ac_config_targets |
5058 | do |
5414 | do |
5059 | case $ac_config_target in |
5415 | case $ac_config_target in |
5060 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5416 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5061 | |
5417 | |
5062 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5418 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5063 | esac |
5419 | esac |
5064 | done |
5420 | done |
5065 | |
5421 | |
… | |
… | |
5400 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5756 | 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 |
5757 | { $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;} |
5758 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5403 | fi |
5759 | fi |
5404 | |
5760 | |
|
|
5761 | |