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

Comparing IO-AIO/configure.ac (file contents):
Revision 1.8 by root, Tue Aug 14 11:44:52 2018 UTC vs.
Revision 1.12 by root, Sun Mar 10 12:16:48 2019 UTC

62AC_CHECK_HEADERS([linux/fs.h linux/fiemap.h]) 62AC_CHECK_HEADERS([linux/fs.h linux/fiemap.h])
63 63
64dnl glibc major/minor macros 64dnl glibc major/minor macros
65AC_CHECK_HEADERS([sys/sysmacros.h]) 65AC_CHECK_HEADERS([sys/sysmacros.h])
66 66
67dnl solaris major/minor
68AC_CHECK_HEADERS([sys/mkdev.h])
69
70dnl readv / preadv, vmsplice
71AC_CHECK_HEADERS([sys/uio.h])
72
73
67AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([ 74AC_CACHE_CHECK([for splice, vmsplice and tee], ac_cv_linux_splice, [AC_LINK_IFELSE([AC_LANG_SOURCE([
75#include <sys/types.h>
68#include <fcntl.h> 76#include <fcntl.h>
77#include <sys/uio.h>
69int main (void) 78int main (void)
70{ 79{
71 ssize_t res; 80 ssize_t res;
72 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); 81 res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE);
73 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); 82 res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK);
131AC_CACHE_CHECK(for st_xtimensec, ac_cv_xtimensec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 140AC_CACHE_CHECK(for st_xtimensec, ac_cv_xtimensec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
132#include "EXTERN.h" 141#include "EXTERN.h"
133#include "perl.h" 142#include "perl.h"
134#include "XSUB.h" 143#include "XSUB.h"
135 144
136int res;
137int main (void) 145int main (void)
138{ 146{
139 return PL_statcache.st_atimensec 147 return PL_statcache.st_atimensec
140 + PL_statcache.st_mtimensec 148 + PL_statcache.st_mtimensec
141 + PL_statcache.st_ctimensec; 149 + PL_statcache.st_ctimensec;
142 return 0;
143} 150}
144]])],ac_cv_xtimensec=yes,ac_cv_xtimensec=no)]) 151]])],ac_cv_xtimensec=yes,ac_cv_xtimensec=no)])
145test $ac_cv_xtimensec = yes && AC_DEFINE(HAVE_ST_XTIMENSEC, 1, stat nanosecond access by st_xtimensec) 152test $ac_cv_xtimensec = yes && AC_DEFINE(HAVE_ST_XTIMENSEC, 1, stat nanosecond access by st_xtimensec)
146 153
147AC_CACHE_CHECK(for st_xtimespec, ac_cv_xtimespec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ 154AC_CACHE_CHECK(for st_xtimespec, ac_cv_xtimespec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
148#include "EXTERN.h" 155#include "EXTERN.h"
149#include "perl.h" 156#include "perl.h"
150#include "XSUB.h" 157#include "XSUB.h"
151 158
152int res;
153int main (void) 159int main (void)
154{ 160{
155 return PL_statcache.st_atim.tv_nsec 161 return PL_statcache.st_atim.tv_nsec
156 + PL_statcache.st_mtim.tv_nsec 162 + PL_statcache.st_mtim.tv_nsec
157 + PL_statcache.st_ctim.tv_nsec; 163 + PL_statcache.st_ctim.tv_nsec;
159]])],ac_cv_xtimespec=yes,ac_cv_xtimespec=no)]) 165]])],ac_cv_xtimespec=yes,ac_cv_xtimespec=no)])
160test $ac_cv_xtimespec = yes && AC_DEFINE(HAVE_ST_XTIMESPEC, 1, stat nanosecond access by st_xtimespec) 166test $ac_cv_xtimespec = yes && AC_DEFINE(HAVE_ST_XTIMESPEC, 1, stat nanosecond access by st_xtimespec)
161 167
162# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? 168# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
163 169
170AC_CACHE_CHECK(for st_birthtimensec, ac_cv_birthtimensec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
171#include "EXTERN.h"
172#include "perl.h"
173#include "XSUB.h"
174
175int main (void)
176{
177 return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec;
178}
179]])],ac_cv_birthtimensec=yes,ac_cv_birthtimensec=no)])
180test $ac_cv_birthtimensec = yes && AC_DEFINE(HAVE_ST_BIRTHTIMENSEC, 1, birthtime nanosecond access by st_birthtimensec)
181
182AC_CACHE_CHECK(for st_birthtimespec, ac_cv_birthtimespec, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
183#include "EXTERN.h"
184#include "perl.h"
185#include "XSUB.h"
186
187int main (void)
188{
189 return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec;
190}
191]])],ac_cv_birthtimespec=yes,ac_cv_birthtimespec=no)])
192test $ac_cv_birthtimespec = yes && AC_DEFINE(HAVE_ST_BIRTHTIMESPEC, 1, birthtime nanosecond access by st_birthtimespec)
193
194AC_CACHE_CHECK(for st_gen, ac_cv_st_gen, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
195#include "EXTERN.h"
196#include "perl.h"
197#include "XSUB.h"
198
199int main (void)
200{
201 return PL_statcache.st_gen;
202}
203]])],ac_cv_st_gen=yes,ac_cv_st_gen=no)])
204test $ac_cv_st_gen = yes && AC_DEFINE(HAVE_ST_GEN, 1, stat st_gen member)
205
164AC_OUTPUT 206AC_OUTPUT
165 207

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines