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

Comparing IO-AIO/configure (file contents):
Revision 1.23 by root, Sun Aug 12 05:21:35 2018 UTC vs.
Revision 1.28 by root, Sun Mar 10 12:11:46 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;
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
4390{ $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
4391$as_echo_n "checking for splice, vmsplice and tee... " >&6; } 4419$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4392if ${ac_cv_linux_splice+:} false; then : 4420if ${ac_cv_linux_splice+:} false; then :
4393 $as_echo_n "(cached) " >&6 4421 $as_echo_n "(cached) " >&6
4394else 4422else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h. */ 4424/* end confdefs.h. */
4397 4425
4426#include <sys/types.h>
4398#include <fcntl.h> 4427#include <fcntl.h>
4399int main (void) 4428int main (void)
4400{ 4429{
4401 ssize_t res; 4430 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); 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);
4561 4590
4562#include "EXTERN.h" 4591#include "EXTERN.h"
4563#include "perl.h" 4592#include "perl.h"
4564#include "XSUB.h" 4593#include "XSUB.h"
4565 4594
4566int res;
4567int main (void) 4595int main (void)
4568{ 4596{
4569 return PL_statcache.st_atimensec 4597 return PL_statcache.st_atimensec
4570 + PL_statcache.st_mtimensec 4598 + PL_statcache.st_mtimensec
4571 + PL_statcache.st_ctimensec; 4599 + PL_statcache.st_ctimensec;
4572 return 0;
4573} 4600}
4574 4601
4575_ACEOF 4602_ACEOF
4576if ac_fn_c_try_compile "$LINENO"; then : 4603if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_xtimensec=yes 4604 ac_cv_xtimensec=yes
4596 4623
4597#include "EXTERN.h" 4624#include "EXTERN.h"
4598#include "perl.h" 4625#include "perl.h"
4599#include "XSUB.h" 4626#include "XSUB.h"
4600 4627
4601int res;
4602int main (void) 4628int main (void)
4603{ 4629{
4604 return PL_statcache.st_atim.tv_nsec 4630 return PL_statcache.st_atim.tv_nsec
4605 + PL_statcache.st_mtim.tv_nsec 4631 + PL_statcache.st_mtim.tv_nsec
4606 + PL_statcache.st_ctim.tv_nsec; 4632 + PL_statcache.st_ctim.tv_nsec;
4616fi 4642fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4618$as_echo "$ac_cv_xtimespec" >&6; } 4644$as_echo "$ac_cv_xtimespec" >&6; }
4619test $ac_cv_xtimespec = yes && 4645test $ac_cv_xtimespec = yes &&
4620$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h 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; }
4653if ${ac_cv_birthtimensec+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655else
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
4663int main (void)
4664{
4665 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
4666}
4667
4668_ACEOF
4669if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_birthtimensec=yes
4671else
4672 ac_cv_birthtimensec=no
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5
4677$as_echo "$ac_cv_birthtimensec" >&6; }
4678test $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; }
4684if ${ac_cv_birthtimespec+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686else
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
4694int main (void)
4695{
4696 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
4697}
4698
4699_ACEOF
4700if ac_fn_c_try_compile "$LINENO"; then :
4701 ac_cv_birthtimespec=yes
4702else
4703 ac_cv_birthtimespec=no
4704fi
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5
4708$as_echo "$ac_cv_birthtimespec" >&6; }
4709test $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; }
4715if ${ac_cv_st_gen+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717else
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
4725int main (void)
4726{
4727 return PL_statcache.st_gen;
4728}
4729
4730_ACEOF
4731if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_st_gen=yes
4733else
4734 ac_cv_st_gen=no
4735fi
4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4739$as_echo "$ac_cv_st_gen" >&6; }
4740test $ac_cv_st_gen = yes &&
4741$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4621 4742
4622 4743
4623cat >confcache <<\_ACEOF 4744cat >confcache <<\_ACEOF
4624# 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
4625# 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines