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

Comparing IO-AIO/configure (file contents):
Revision 1.29 by root, Sun Mar 10 12:16:48 2019 UTC vs.
Revision 1.30 by root, Mon Mar 18 23:52:09 2019 UTC

4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */ 4279/* end confdefs.h. */
4280 4280
4281#include <sys/time.h> 4281#include <sys/time.h>
4282#include <sys/resource.h> 4282#include <sys/resource.h>
4283int res;
4284int main (void) 4283int main (void)
4285{ 4284{
4286 struct rlimit srl; 4285 struct rlimit srl;
4286 int res;
4287 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; 4287 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4288 res = getrlimit (RLIMIT_NOFILE, &srl); 4288 res = getrlimit (RLIMIT_NOFILE, &srl);
4289 res = setrlimit (RLIMIT_NOFILE, &srl); 4289 res = setrlimit (RLIMIT_NOFILE, &srl);
4290 return 0; 4290 return 0;
4291} 4291}
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */ 4473/* end confdefs.h. */
4474 4474
4475#include <fcntl.h> 4475#include <fcntl.h>
4476#include <unistd.h> 4476#include <unistd.h>
4477int res;
4478int main (void) 4477int main (void)
4479{ 4478{
4479 int res;
4480 res = pipe2 (0, 0); 4480 res = pipe2 (0, 0);
4481 return 0; 4481 return 0;
4482} 4482}
4483 4483
4484_ACEOF 4484_ACEOF
4503else 4503else
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */ 4505/* end confdefs.h. */
4506 4506
4507#include <sys/eventfd.h> 4507#include <sys/eventfd.h>
4508int res;
4509int main (void) 4508int main (void)
4510{ 4509{
4510 int res;
4511 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); 4511 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4512 return 0; 4512 return 0;
4513} 4513}
4514 4514
4515_ACEOF 4515_ACEOF
4534else 4534else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */ 4536/* end confdefs.h. */
4537 4537
4538#include <sys/timerfd.h> 4538#include <sys/timerfd.h>
4539int res;
4540int main (void) 4539int main (void)
4541{ 4540{
4542 struct itimerspec its; 4541 struct itimerspec its;
4542 int res;
4543 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); 4543 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4544 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);
4545 res = timerfd_gettime (res, &its); 4545 res = timerfd_gettime (res, &its);
4546 return 0; 4546 return 0;
4547} 4547}
4570/* end confdefs.h. */ 4570/* end confdefs.h. */
4571 4571
4572#include <unistd.h> 4572#include <unistd.h>
4573#include <sys/syscall.h> 4573#include <sys/syscall.h>
4574/*#include <linux/copy.h>*/ 4574/*#include <linux/copy.h>*/
4575int res;
4576int main (void) 4575int main (void)
4577{ 4576{
4577 int res;
4578 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ 4578 /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/
4579 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); 4579 res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0);
4580 return 0; 4580 return 0;
4581} 4581}
4582 4582
4752fi 4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5
4754$as_echo "$ac_cv_st_gen" >&6; } 4754$as_echo "$ac_cv_st_gen" >&6; }
4755test $ac_cv_st_gen = yes && 4755test $ac_cv_st_gen = yes &&
4756$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h 4756$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
4757
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for statx" >&5
4760$as_echo_n "checking for statx... " >&6; }
4761if ${ac_cv_statx+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766
4767#include <sys/types.h>
4768#include <sys/stat.h>
4769#include <unistd.h>
4770#include <fcntl.h>
4771int res;
4772int main (void)
4773{
4774 struct statx sx;
4775 int res;
4776 res = statx (AT_FDCWD, ".",
4777 AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC,
4778 STATX_ALL, &sx);
4779 STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME;
4780 STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL;
4781 STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED;
4782 return 0;
4783}
4784
4785_ACEOF
4786if ac_fn_c_try_link "$LINENO"; then :
4787 ac_cv_statx=yes
4788else
4789 ac_cv_statx=no
4790fi
4791rm -f core conftest.err conftest.$ac_objext \
4792 conftest$ac_exeext conftest.$ac_ext
4793fi
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5
4795$as_echo "$ac_cv_statx" >&6; }
4796test $ac_cv_statx = yes &&
4797$as_echo "#define HAVE_STATX 1" >>confdefs.h
4757 4798
4758 4799
4759cat >confcache <<\_ACEOF 4800cat >confcache <<\_ACEOF
4760# This file is a shell script that caches the results of configure 4801# This file is a shell script that caches the results of configure
4761# tests run on this system so they can be shared between configure 4802# tests run on this system so they can be shared between configure

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines