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

Comparing IO-AIO/configure (file contents):
Revision 1.26 by root, Tue Aug 14 11:50:43 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;
4419 $as_echo_n "(cached) " >&6 4421 $as_echo_n "(cached) " >&6
4420else 4422else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h. */ 4424/* end confdefs.h. */
4423 4425
4426#include <sys/types.h>
4424#include <fcntl.h> 4427#include <fcntl.h>
4425int main (void) 4428int main (void)
4426{ 4429{
4427 ssize_t res; 4430 ssize_t res;
4428 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);
4587 4590
4588#include "EXTERN.h" 4591#include "EXTERN.h"
4589#include "perl.h" 4592#include "perl.h"
4590#include "XSUB.h" 4593#include "XSUB.h"
4591 4594
4592int res;
4593int main (void) 4595int main (void)
4594{ 4596{
4595 return PL_statcache.st_atimensec 4597 return PL_statcache.st_atimensec
4596 + PL_statcache.st_mtimensec 4598 + PL_statcache.st_mtimensec
4597 + PL_statcache.st_ctimensec; 4599 + PL_statcache.st_ctimensec;
4598 return 0;
4599} 4600}
4600 4601
4601_ACEOF 4602_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then : 4603if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_xtimensec=yes 4604 ac_cv_xtimensec=yes
4622 4623
4623#include "EXTERN.h" 4624#include "EXTERN.h"
4624#include "perl.h" 4625#include "perl.h"
4625#include "XSUB.h" 4626#include "XSUB.h"
4626 4627
4627int res;
4628int main (void) 4628int main (void)
4629{ 4629{
4630 return PL_statcache.st_atim.tv_nsec 4630 return PL_statcache.st_atim.tv_nsec
4631 + PL_statcache.st_mtim.tv_nsec 4631 + PL_statcache.st_mtim.tv_nsec
4632 + PL_statcache.st_ctim.tv_nsec; 4632 + PL_statcache.st_ctim.tv_nsec;
4645test $ac_cv_xtimespec = yes && 4645test $ac_cv_xtimespec = yes &&
4646$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h 4646$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4647 4647
4648 4648
4649# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? 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
4742
4650 4743
4651cat >confcache <<\_ACEOF 4744cat >confcache <<\_ACEOF
4652# 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
4653# 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
4654# scripts and configure runs, see configure's option --config-cache. 4747# scripts and configure runs, see configure's option --config-cache.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines