… | |
… | |
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 :( |
4203 | |
4270 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4205 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4272 | $as_echo_n "checking for set/getrlimit... " >&6; } |
4206 | if ${ac_cv_rlimits+:} false; then : |
4273 | if ${ac_cv_rlimits+:} false; then : |
4207 | $as_echo_n "(cached) " >&6 |
4274 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
4481 | $as_echo "$ac_cv_eventfd" >&6; } |
4415 | test $ac_cv_eventfd = yes && |
4482 | test $ac_cv_eventfd = yes && |
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4483 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4417 | |
4484 | |
4418 | |
4485 | |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
4420 | $as_echo_n "checking for renameat2... " >&6; } |
4487 | $as_echo_n "checking for timerfd... " >&6; } |
4421 | if ${ac_cv_renameat2+:} false; then : |
4488 | if ${ac_cv_timerfd+:} false; then : |
4422 | $as_echo_n "(cached) " >&6 |
4489 | $as_echo_n "(cached) " >&6 |
4423 | else |
4490 | else |
4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4425 | /* end confdefs.h. */ |
4492 | /* end confdefs.h. */ |
4426 | |
4493 | |
4427 | #include <unistd.h> |
4494 | #include <sys/timerfd.h> |
4428 | #include <sys/syscall.h> |
|
|
4429 | #include <linux/fs.h> |
|
|
4430 | int res; |
4495 | int res; |
4431 | int main (void) |
4496 | int main (void) |
4432 | { |
4497 | { |
4433 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4498 | struct itimerspec its; |
|
|
4499 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4500 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4501 | res = timerfd_gettime (res, &its); |
4434 | return 0; |
4502 | return 0; |
4435 | } |
4503 | } |
4436 | |
4504 | |
4437 | _ACEOF |
4505 | _ACEOF |
4438 | if ac_fn_c_try_link "$LINENO"; then : |
4506 | if ac_fn_c_try_link "$LINENO"; then : |
4439 | ac_cv_renameat2=yes |
4507 | ac_cv_timerfd=yes |
4440 | else |
4508 | else |
4441 | ac_cv_renameat2=no |
4509 | ac_cv_timerfd=no |
4442 | fi |
4510 | fi |
4443 | rm -f core conftest.err conftest.$ac_objext \ |
4511 | rm -f core conftest.err conftest.$ac_objext \ |
4444 | conftest$ac_exeext conftest.$ac_ext |
4512 | conftest$ac_exeext conftest.$ac_ext |
4445 | fi |
4513 | fi |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
4447 | $as_echo "$ac_cv_renameat2" >&6; } |
4515 | $as_echo "$ac_cv_timerfd" >&6; } |
4448 | test $ac_cv_renameat2 = yes && |
4516 | test $ac_cv_timerfd = yes && |
4449 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4517 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4450 | |
4518 | |
4451 | |
4519 | |
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4453 | $as_echo_n "checking for copy_file_range... " >&6; } |
4521 | $as_echo_n "checking for copy_file_range... " >&6; } |
4454 | if ${ac_cv_copy_file_range+:} false; then : |
4522 | if ${ac_cv_copy_file_range+:} false; then : |
… | |
… | |
4481 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4549 | $as_echo "$ac_cv_copy_file_range" >&6; } |
4482 | test $ac_cv_copy_file_range = yes && |
4550 | test $ac_cv_copy_file_range = yes && |
4483 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4551 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4484 | |
4552 | |
4485 | |
4553 | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
4487 | $as_echo_n "checking for posix_close... " >&6; } |
4555 | $as_echo_n "checking for st_xtimensec... " >&6; } |
4488 | if ${ac_cv_posix_close+:} false; then : |
4556 | if ${ac_cv_xtimensec+:} false; then : |
4489 | $as_echo_n "(cached) " >&6 |
4557 | $as_echo_n "(cached) " >&6 |
4490 | else |
4558 | else |
4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4492 | /* end confdefs.h. */ |
4560 | /* end confdefs.h. */ |
4493 | |
4561 | |
4494 | #include <unistd.h> |
4562 | #include "EXTERN.h" |
|
|
4563 | #include "perl.h" |
|
|
4564 | #include "XSUB.h" |
|
|
4565 | |
4495 | int res; |
4566 | int res; |
4496 | int main (void) |
4567 | int main (void) |
4497 | { |
4568 | { |
4498 | res = posix_close (0, 0); /* we do not need any flags */ |
4569 | return PL_statcache.st_atimensec |
|
|
4570 | + PL_statcache.st_mtimensec |
|
|
4571 | + PL_statcache.st_ctimensec; |
4499 | return 0; |
4572 | return 0; |
4500 | } |
4573 | } |
4501 | |
4574 | |
4502 | _ACEOF |
4575 | _ACEOF |
4503 | if ac_fn_c_try_link "$LINENO"; then : |
4576 | if ac_fn_c_try_compile "$LINENO"; then : |
4504 | ac_cv_posix_close=yes |
4577 | ac_cv_xtimensec=yes |
4505 | else |
4578 | else |
4506 | ac_cv_posix_close=no |
4579 | ac_cv_xtimensec=no |
4507 | fi |
4580 | fi |
4508 | rm -f core conftest.err conftest.$ac_objext \ |
4581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4509 | conftest$ac_exeext conftest.$ac_ext |
|
|
4510 | fi |
4582 | fi |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
4512 | $as_echo "$ac_cv_posix_close" >&6; } |
4584 | $as_echo "$ac_cv_xtimensec" >&6; } |
4513 | test $ac_cv_posix_close = yes && |
4585 | test $ac_cv_xtimensec = yes && |
4514 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4586 | $as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
4515 | |
4587 | |
4516 | |
4588 | |
|
|
4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
4590 | $as_echo_n "checking for st_xtimespec... " >&6; } |
|
|
4591 | if ${ac_cv_xtimespec+:} false; then : |
|
|
4592 | $as_echo_n "(cached) " >&6 |
|
|
4593 | else |
|
|
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4595 | /* end confdefs.h. */ |
|
|
4596 | |
|
|
4597 | #include "EXTERN.h" |
|
|
4598 | #include "perl.h" |
|
|
4599 | #include "XSUB.h" |
|
|
4600 | |
|
|
4601 | int res; |
|
|
4602 | int main (void) |
|
|
4603 | { |
|
|
4604 | return PL_statcache.st_atim.tv_nsec |
|
|
4605 | + PL_statcache.st_mtim.tv_nsec |
|
|
4606 | + PL_statcache.st_ctim.tv_nsec; |
|
|
4607 | } |
|
|
4608 | |
|
|
4609 | _ACEOF |
|
|
4610 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
4611 | ac_cv_xtimespec=yes |
|
|
4612 | else |
|
|
4613 | ac_cv_xtimespec=no |
|
|
4614 | fi |
|
|
4615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4616 | fi |
|
|
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
4618 | $as_echo "$ac_cv_xtimespec" >&6; } |
|
|
4619 | test $ac_cv_xtimespec = yes && |
|
|
4620 | $as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4517 | |
4621 | |
4518 | |
4622 | |
4519 | cat >confcache <<\_ACEOF |
4623 | cat >confcache <<\_ACEOF |
4520 | # This file is a shell script that caches the results of configure |
4624 | # This file is a shell script that caches the results of configure |
4521 | # tests run on this system so they can be shared between configure |
4625 | # tests run on this system so they can be shared between configure |
… | |
… | |
5186 | |
5290 | |
5187 | # Handling of arguments. |
5291 | # Handling of arguments. |
5188 | for ac_config_target in $ac_config_targets |
5292 | for ac_config_target in $ac_config_targets |
5189 | do |
5293 | do |
5190 | case $ac_config_target in |
5294 | case $ac_config_target in |
5191 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
5295 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5192 | |
5296 | |
5193 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5297 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5194 | esac |
5298 | esac |
5195 | done |
5299 | done |
5196 | |
5300 | |
… | |
… | |
5531 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5635 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5533 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5637 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5534 | fi |
5638 | fi |
5535 | |
5639 | |
|
|
5640 | |