ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.24 by root, Sun Aug 12 06:10:31 2018 UTC vs.
Revision 1.32 by root, Fri Sep 6 22:03:09 2019 UTC

3962 $as_echo_n "(cached) " >&6 3962 $as_echo_n "(cached) " >&6
3963else 3963else
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>
3968int main (void) 3969int 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
4077else 4078else
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>
4082int main (void) 4084int 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>
4281int res;
4282int main (void) 4283int 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}
4385fi 4387fi
4386 4388
4387done 4389done
4388 4390
4389 4391
4392for ac_header in sys/sysmacros.h
4393do :
4394 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4395if 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
4400fi
4401
4402done
4403
4404
4405for ac_header in sys/mkdev.h
4406do :
4407 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4408if 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
4413fi
4414
4415done
4416
4417
4418for ac_header in sys/uio.h
4419do :
4420 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4421if 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
4426fi
4427
4428done
4429
4430
4431
4390{ $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
4391$as_echo_n "checking for splice, vmsplice and tee... " >&6; } 4433$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4392if ${ac_cv_linux_splice+:} false; then : 4434if ${ac_cv_linux_splice+:} false; then :
4393 $as_echo_n "(cached) " >&6 4435 $as_echo_n "(cached) " >&6
4394else 4436else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h. */ 4438/* end confdefs.h. */
4397 4439
4440#include <sys/types.h>
4398#include <fcntl.h> 4441#include <fcntl.h>
4442#include <sys/uio.h>
4399int main (void) 4443int main (void)
4400{ 4444{
4401 ssize_t res; 4445 ssize_t res;
4402 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);
4403 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);
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h. */ 4473/* end confdefs.h. */
4430 4474
4431#include <fcntl.h> 4475#include <fcntl.h>
4432#include <unistd.h> 4476#include <unistd.h>
4433int res;
4434int main (void) 4477int main (void)
4435{ 4478{
4479 int res;
4436 res = pipe2 (0, 0); 4480 res = pipe2 (0, 0);
4437 return 0; 4481 return 0;
4438} 4482}
4439 4483
4440_ACEOF 4484_ACEOF
4459else 4503else
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h. */ 4505/* end confdefs.h. */
4462 4506
4463#include <sys/eventfd.h> 4507#include <sys/eventfd.h>
4464int res;
4465int main (void) 4508int main (void)
4466{ 4509{
4510 int res;
4467 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); 4511 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4468 return 0; 4512 return 0;
4469} 4513}
4470 4514
4471_ACEOF 4515_ACEOF
4481$as_echo "$ac_cv_eventfd" >&6; } 4525$as_echo "$ac_cv_eventfd" >&6; }
4482test $ac_cv_eventfd = yes && 4526test $ac_cv_eventfd = yes &&
4483$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h 4527$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4484 4528
4485 4529
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5
4487$as_echo_n "checking for timerfd... " >&6; } 4531$as_echo_n "checking for timerfd_*... " >&6; }
4488if ${ac_cv_timerfd+:} false; then : 4532if ${ac_cv_timerfd+:} false; then :
4489 $as_echo_n "(cached) " >&6 4533 $as_echo_n "(cached) " >&6
4490else 4534else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h. */ 4536/* end confdefs.h. */
4493 4537
4494#include <sys/timerfd.h> 4538#include <sys/timerfd.h>
4495int res;
4496int main (void) 4539int main (void)
4497{ 4540{
4498 struct itimerspec its; 4541 struct itimerspec its;
4542 int res;
4499 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); 4543 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4500 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);
4501 res = timerfd_gettime (res, &its); 4545 res = timerfd_gettime (res, &its);
4502 return 0; 4546 return 0;
4503} 4547}
4515$as_echo "$ac_cv_timerfd" >&6; } 4559$as_echo "$ac_cv_timerfd" >&6; }
4516test $ac_cv_timerfd = yes && 4560test $ac_cv_timerfd = yes &&
4517$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h 4561$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4518 4562
4519 4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
4565$as_echo_n "checking for memfd_create... " >&6; }
4566if ${ac_cv_memfd_create+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568else
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h. */
4571
4572#include <sys/mman.h>
4573int main (void)
4574{
4575 int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING);
4576 return 0;
4577}
4578
4579_ACEOF
4580if ac_fn_c_try_link "$LINENO"; then :
4581 ac_cv_memfd_create=yes
4582else
4583 ac_cv_memfd_create=no
4584fi
4585rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext conftest.$ac_ext
4587fi
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5
4589$as_echo "$ac_cv_memfd_create" >&6; }
4590test $ac_cv_memfd_create = yes &&
4591$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
4592
4593
4520{ $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
4521$as_echo_n "checking for copy_file_range... " >&6; } 4595$as_echo_n "checking for copy_file_range... " >&6; }
4522if ${ac_cv_copy_file_range+:} false; then : 4596if ${ac_cv_copy_file_range+:} false; then :
4523 $as_echo_n "(cached) " >&6 4597 $as_echo_n "(cached) " >&6
4524else 4598else
4526/* end confdefs.h. */ 4600/* end confdefs.h. */
4527 4601
4528#include <unistd.h> 4602#include <unistd.h>
4529#include <sys/syscall.h> 4603#include <sys/syscall.h>
4530/*#include <linux/copy.h>*/ 4604/*#include <linux/copy.h>*/
4531int res;
4532int main (void) 4605int main (void)
4533{ 4606{
4607 int res;
4534 /*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);*/
4535 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);
4536 return 0; 4610 return 0;
4537} 4611}
4538 4612
4561 4635
4562#include "EXTERN.h" 4636#include "EXTERN.h"
4563#include "perl.h" 4637#include "perl.h"
4564#include "XSUB.h" 4638#include "XSUB.h"
4565 4639
4566int res;
4567int main (void) 4640int main (void)
4568{ 4641{
4569 return PL_statcache.st_atimensec 4642 return PL_statcache.st_atimensec
4570 + PL_statcache.st_mtimensec 4643 + PL_statcache.st_mtimensec
4571 + PL_statcache.st_ctimensec; 4644 + PL_statcache.st_ctimensec;
4572 return 0;
4573} 4645}
4574 4646
4575_ACEOF 4647_ACEOF
4576if ac_fn_c_try_compile "$LINENO"; then : 4648if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_xtimensec=yes 4649 ac_cv_xtimensec=yes
4596 4668
4597#include "EXTERN.h" 4669#include "EXTERN.h"
4598#include "perl.h" 4670#include "perl.h"
4599#include "XSUB.h" 4671#include "XSUB.h"
4600 4672
4601int res;
4602int main (void) 4673int main (void)
4603{ 4674{
4604 return PL_statcache.st_atim.tv_nsec 4675 return PL_statcache.st_atim.tv_nsec
4605 + PL_statcache.st_mtim.tv_nsec 4676 + PL_statcache.st_mtim.tv_nsec
4606 + PL_statcache.st_ctim.tv_nsec; 4677 + PL_statcache.st_ctim.tv_nsec;
4619test $ac_cv_xtimespec = yes && 4690test $ac_cv_xtimespec = yes &&
4620$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h 4691$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4621 4692
4622 4693
4623# 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; }
4698if ${ac_cv_birthtimensec+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
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
4708int main (void)
4709{
4710 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4711}
4712
4713_ACEOF
4714if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_birthtimensec=yes
4716else
4717 ac_cv_birthtimensec=no
4718fi
4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4722$as_echo "$ac_cv_birthtimensec" >&6; }
4723test $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; }
4729if ${ac_cv_birthtimespec+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
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
4739int main (void)
4740{
4741 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4742}
4743
4744_ACEOF
4745if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_birthtimespec=yes
4747else
4748 ac_cv_birthtimespec=no
4749fi
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4753$as_echo "$ac_cv_birthtimespec" >&6; }
4754test $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; }
4760if ${ac_cv_st_gen+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
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
4770int main (void)
4771{
4772 return PL_statcache.st_gen;
4773}
4774
4775_ACEOF
4776if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_st_gen=yes
4778else
4779 ac_cv_st_gen=no
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4784$as_echo "$ac_cv_st_gen" >&6; }
4785test $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; }
4791if ${ac_cv_statx+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793else
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>
4801int res;
4802int 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
4816if ac_fn_c_try_link "$LINENO"; then :
4817 ac_cv_statx=yes
4818else
4819 ac_cv_statx=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4825$as_echo "$ac_cv_statx" >&6; }
4826test $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; }
4832if ${ac_cv_accept4+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834else
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837
4838#include <sys/types.h>
4839#include <sys/socket.h>
4840int 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
4848if ac_fn_c_try_link "$LINENO"; then :
4849 ac_cv_accept4=yes
4850else
4851 ac_cv_accept4=no
4852fi
4853rm -f core conftest.err conftest.$ac_objext \
4854 conftest$ac_exeext conftest.$ac_ext
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
4857$as_echo "$ac_cv_accept4" >&6; }
4858test $ac_cv_accept4 = yes &&
4859$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
4860
4624 4861
4625cat >confcache <<\_ACEOF 4862cat >confcache <<\_ACEOF
4626# 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
4627# 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
4628# scripts and configure runs, see configure's option --config-cache. 4865# scripts and configure runs, see configure's option --config-cache.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines