… | |
… | |
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' |
… | |
… | |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4199 | test $ac_cv_prctl_set_name = yes && |
4199 | test $ac_cv_prctl_set_name = yes && |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 | |
4201 | |
4202 | |
4202 | |
|
|
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4204 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4205 | if ${ac_cv_posix_close+:} false; then : |
|
|
4206 | $as_echo_n "(cached) " >&6 |
|
|
4207 | else |
|
|
4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4209 | /* end confdefs.h. */ |
|
|
4210 | |
|
|
4211 | #include <unistd.h> |
|
|
4212 | int res; |
|
|
4213 | int main (void) |
|
|
4214 | { |
|
|
4215 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4216 | return 0; |
|
|
4217 | } |
|
|
4218 | |
|
|
4219 | _ACEOF |
|
|
4220 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4221 | ac_cv_posix_close=yes |
|
|
4222 | else |
|
|
4223 | ac_cv_posix_close=no |
|
|
4224 | fi |
|
|
4225 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4226 | conftest$ac_exeext conftest.$ac_ext |
|
|
4227 | fi |
|
|
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4229 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4230 | test $ac_cv_posix_close = yes && |
|
|
4231 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4232 | |
|
|
4233 | |
|
|
4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4235 | $as_echo_n "checking for renameat2... " >&6; } |
|
|
4236 | if ${ac_cv_renameat2+:} false; then : |
|
|
4237 | $as_echo_n "(cached) " >&6 |
|
|
4238 | else |
|
|
4239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4240 | /* end confdefs.h. */ |
|
|
4241 | |
|
|
4242 | #include <unistd.h> |
|
|
4243 | #include <sys/syscall.h> |
|
|
4244 | #include <linux/fs.h> |
|
|
4245 | int res; |
|
|
4246 | int main (void) |
|
|
4247 | { |
|
|
4248 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4249 | return 0; |
|
|
4250 | } |
|
|
4251 | |
|
|
4252 | _ACEOF |
|
|
4253 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4254 | ac_cv_renameat2=yes |
|
|
4255 | else |
|
|
4256 | ac_cv_renameat2=no |
|
|
4257 | fi |
|
|
4258 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4259 | conftest$ac_exeext conftest.$ac_ext |
|
|
4260 | fi |
|
|
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4262 | $as_echo "$ac_cv_renameat2" >&6; } |
|
|
4263 | test $ac_cv_renameat2 = yes && |
|
|
4264 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4265 | |
|
|
4266 | |
|
|
4267 | |
|
|
4268 | |
|
|
4269 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
|
|
4270 | |
|
|
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4272 | $as_echo_n "checking for set/getrlimit... " >&6; } |
|
|
4273 | if ${ac_cv_rlimits+:} false; then : |
|
|
4274 | $as_echo_n "(cached) " >&6 |
|
|
4275 | else |
|
|
4276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4277 | /* end confdefs.h. */ |
|
|
4278 | |
|
|
4279 | #include <sys/time.h> |
|
|
4280 | #include <sys/resource.h> |
|
|
4281 | int res; |
|
|
4282 | int main (void) |
|
|
4283 | { |
|
|
4284 | struct rlimit srl; |
|
|
4285 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4286 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4287 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4288 | return 0; |
|
|
4289 | } |
|
|
4290 | |
|
|
4291 | _ACEOF |
|
|
4292 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4293 | ac_cv_rlimits=yes |
|
|
4294 | else |
|
|
4295 | ac_cv_rlimits=no |
|
|
4296 | fi |
|
|
4297 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4298 | conftest$ac_exeext conftest.$ac_ext |
|
|
4299 | fi |
|
|
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4301 | $as_echo "$ac_cv_rlimits" >&6; } |
|
|
4302 | test $ac_cv_rlimits = yes && |
|
|
4303 | $as_echo "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4304 | |
4203 | |
4305 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4205 | $as_echo_n "checking for posix_madvise... " >&6; } |
4307 | $as_echo_n "checking for posix_madvise... " >&6; } |
4206 | if ${ac_cv_posix_madvise+:} false; then : |
4308 | if ${ac_cv_posix_madvise+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4309 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4283 | fi |
4385 | fi |
4284 | |
4386 | |
4285 | done |
4387 | done |
4286 | |
4388 | |
4287 | |
4389 | |
|
|
4390 | for ac_header in sys/sysmacros.h |
|
|
4391 | do : |
|
|
4392 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
|
|
4393 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
|
|
4394 | cat >>confdefs.h <<_ACEOF |
|
|
4395 | #define HAVE_SYS_SYSMACROS_H 1 |
|
|
4396 | _ACEOF |
|
|
4397 | |
|
|
4398 | fi |
|
|
4399 | |
|
|
4400 | done |
|
|
4401 | |
|
|
4402 | |
|
|
4403 | for ac_header in sys/mkdev.h |
|
|
4404 | do : |
|
|
4405 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
|
|
4406 | if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
|
|
4407 | cat >>confdefs.h <<_ACEOF |
|
|
4408 | #define HAVE_SYS_MKDEV_H 1 |
|
|
4409 | _ACEOF |
|
|
4410 | |
|
|
4411 | fi |
|
|
4412 | |
|
|
4413 | done |
|
|
4414 | |
|
|
4415 | |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4416 | { $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; } |
4417 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4290 | if ${ac_cv_linux_splice+:} false; then : |
4418 | if ${ac_cv_linux_splice+:} false; then : |
4291 | $as_echo_n "(cached) " >&6 |
4419 | $as_echo_n "(cached) " >&6 |
4292 | else |
4420 | else |
… | |
… | |
4348 | $as_echo "$ac_cv_pipe2" >&6; } |
4476 | $as_echo "$ac_cv_pipe2" >&6; } |
4349 | test $ac_cv_pipe2 = yes && |
4477 | test $ac_cv_pipe2 = yes && |
4350 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4478 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4351 | |
4479 | |
4352 | |
4480 | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4354 | $as_echo_n "checking for renameat2... " >&6; } |
4482 | $as_echo_n "checking for eventfd... " >&6; } |
4355 | if ${ac_cv_renameat2+:} false; then : |
4483 | if ${ac_cv_eventfd+:} false; then : |
4356 | $as_echo_n "(cached) " >&6 |
4484 | $as_echo_n "(cached) " >&6 |
4357 | else |
4485 | else |
4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4359 | /* end confdefs.h. */ |
4487 | /* end confdefs.h. */ |
4360 | |
4488 | |
|
|
4489 | #include <sys/eventfd.h> |
|
|
4490 | int res; |
|
|
4491 | int main (void) |
|
|
4492 | { |
|
|
4493 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4494 | return 0; |
|
|
4495 | } |
|
|
4496 | |
|
|
4497 | _ACEOF |
|
|
4498 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4499 | ac_cv_eventfd=yes |
|
|
4500 | else |
|
|
4501 | ac_cv_eventfd=no |
|
|
4502 | fi |
|
|
4503 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4504 | conftest$ac_exeext conftest.$ac_ext |
|
|
4505 | fi |
|
|
4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4507 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4508 | test $ac_cv_eventfd = yes && |
|
|
4509 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4510 | |
|
|
4511 | |
|
|
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
|
|
4513 | $as_echo_n "checking for timerfd... " >&6; } |
|
|
4514 | if ${ac_cv_timerfd+:} false; then : |
|
|
4515 | $as_echo_n "(cached) " >&6 |
|
|
4516 | else |
|
|
4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4518 | /* end confdefs.h. */ |
|
|
4519 | |
|
|
4520 | #include <sys/timerfd.h> |
|
|
4521 | int res; |
|
|
4522 | int main (void) |
|
|
4523 | { |
|
|
4524 | struct itimerspec its; |
|
|
4525 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4526 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4527 | res = timerfd_gettime (res, &its); |
|
|
4528 | return 0; |
|
|
4529 | } |
|
|
4530 | |
|
|
4531 | _ACEOF |
|
|
4532 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4533 | ac_cv_timerfd=yes |
|
|
4534 | else |
|
|
4535 | ac_cv_timerfd=no |
|
|
4536 | fi |
|
|
4537 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4538 | conftest$ac_exeext conftest.$ac_ext |
|
|
4539 | fi |
|
|
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4541 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4542 | test $ac_cv_timerfd = yes && |
|
|
4543 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4544 | |
|
|
4545 | |
|
|
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4547 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4548 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4549 | $as_echo_n "(cached) " >&6 |
|
|
4550 | else |
|
|
4551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4552 | /* end confdefs.h. */ |
|
|
4553 | |
4361 | #include <unistd.h> |
4554 | #include <unistd.h> |
4362 | #include <sys/syscall.h> |
4555 | #include <sys/syscall.h> |
4363 | #include <linux/fs.h> |
4556 | /*#include <linux/copy.h>*/ |
4364 | int res; |
4557 | int res; |
4365 | int main (void) |
4558 | int main (void) |
4366 | { |
4559 | { |
4367 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4560 | /*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); |
4368 | return 0; |
4562 | return 0; |
4369 | } |
4563 | } |
4370 | |
4564 | |
4371 | _ACEOF |
4565 | _ACEOF |
4372 | if ac_fn_c_try_link "$LINENO"; then : |
4566 | if ac_fn_c_try_link "$LINENO"; then : |
4373 | ac_cv_renameat2=yes |
4567 | ac_cv_copy_file_range=yes |
4374 | else |
4568 | else |
4375 | ac_cv_renameat2=no |
4569 | ac_cv_copy_file_range=no |
4376 | fi |
4570 | fi |
4377 | rm -f core conftest.err conftest.$ac_objext \ |
4571 | rm -f core conftest.err conftest.$ac_objext \ |
4378 | conftest$ac_exeext conftest.$ac_ext |
4572 | conftest$ac_exeext conftest.$ac_ext |
4379 | fi |
4573 | fi |
|
|
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4575 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4576 | test $ac_cv_copy_file_range = yes && |
|
|
4577 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4578 | |
|
|
4579 | |
|
|
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
4581 | $as_echo_n "checking for st_xtimensec... " >&6; } |
|
|
4582 | if ${ac_cv_xtimensec+:} false; then : |
|
|
4583 | $as_echo_n "(cached) " >&6 |
|
|
4584 | else |
|
|
4585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4586 | /* end confdefs.h. */ |
|
|
4587 | |
|
|
4588 | #include "EXTERN.h" |
|
|
4589 | #include "perl.h" |
|
|
4590 | #include "XSUB.h" |
|
|
4591 | |
|
|
4592 | int res; |
|
|
4593 | int main (void) |
|
|
4594 | { |
|
|
4595 | return PL_statcache.st_atimensec |
|
|
4596 | + PL_statcache.st_mtimensec |
|
|
4597 | + PL_statcache.st_ctimensec; |
|
|
4598 | return 0; |
|
|
4599 | } |
|
|
4600 | |
|
|
4601 | _ACEOF |
|
|
4602 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4603 | ac_cv_xtimensec=yes |
|
|
4604 | else |
|
|
4605 | ac_cv_xtimensec=no |
|
|
4606 | fi |
|
|
4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4608 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
4610 | $as_echo "$ac_cv_xtimensec" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
4611 | test $ac_cv_xtimensec = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4612 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
4384 | |
4613 | |
4385 | |
4614 | |
|
|
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4616 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4617 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4618 | $as_echo_n "(cached) " >&6 |
|
|
4619 | else |
|
|
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4621 | /* end confdefs.h. */ |
4386 | |
4622 | |
|
|
4623 | #include "EXTERN.h" |
|
|
4624 | #include "perl.h" |
|
|
4625 | #include "XSUB.h" |
|
|
4626 | |
|
|
4627 | int res; |
|
|
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? |
4387 | |
4650 | |
4388 | cat >confcache <<\_ACEOF |
4651 | cat >confcache <<\_ACEOF |
4389 | # This file is a shell script that caches the results of configure |
4652 | # 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 |
4653 | # tests run on this system so they can be shared between configure |
4391 | # scripts and configure runs, see configure's option --config-cache. |
4654 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
5055 | |
5318 | |
5056 | # Handling of arguments. |
5319 | # Handling of arguments. |
5057 | for ac_config_target in $ac_config_targets |
5320 | for ac_config_target in $ac_config_targets |
5058 | do |
5321 | do |
5059 | case $ac_config_target in |
5322 | case $ac_config_target in |
5060 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5323 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5061 | |
5324 | |
5062 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5325 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5063 | esac |
5326 | esac |
5064 | done |
5327 | done |
5065 | |
5328 | |
… | |
… | |
5400 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5663 | 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 |
5664 | { $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;} |
5665 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5403 | fi |
5666 | fi |
5404 | |
5667 | |
|
|
5668 | |