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.6 by root, Sun Aug 12 05:21:35 2018 UTC vs.
Revision 1.12 by root, Sun Mar 10 12:16:48 2019 UTC

59test $ac_cv_posix_fadvise = yes && AC_DEFINE(HAVE_POSIX_FADVISE, 1, posix_fadvise(2) is available) 59test $ac_cv_posix_fadvise = yes && AC_DEFINE(HAVE_POSIX_FADVISE, 1, posix_fadvise(2) is available)
60 60
61dnl lots of linux specifics 61dnl lots of linux specifics
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
65AC_CHECK_HEADERS([sys/sysmacros.h])
66
67dnl solaris major/minor
68AC_CHECK_HEADERS([sys/mkdev.h])
69
70dnl readv / preadv, vmsplice
71AC_CHECK_HEADERS([sys/uio.h])
72
73
64AC_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>
65#include <fcntl.h> 76#include <fcntl.h>
77#include <sys/uio.h>
66int main (void) 78int main (void)
67{ 79{
68 ssize_t res; 80 ssize_t res;
69 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);
70 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);
128AC_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([[
129#include "EXTERN.h" 141#include "EXTERN.h"
130#include "perl.h" 142#include "perl.h"
131#include "XSUB.h" 143#include "XSUB.h"
132 144
133int res;
134int main (void) 145int main (void)
135{ 146{
136 return PL_statcache.st_atimensec 147 return PL_statcache.st_atimensec
137 + PL_statcache.st_mtimensec 148 + PL_statcache.st_mtimensec
138 + PL_statcache.st_ctimensec; 149 + PL_statcache.st_ctimensec;
139 return 0;
140} 150}
141]])],ac_cv_xtimensec=yes,ac_cv_xtimensec=no)]) 151]])],ac_cv_xtimensec=yes,ac_cv_xtimensec=no)])
142test $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)
143 153
144AC_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([[
145#include "EXTERN.h" 155#include "EXTERN.h"
146#include "perl.h" 156#include "perl.h"
147#include "XSUB.h" 157#include "XSUB.h"
148 158
149int res;
150int main (void) 159int main (void)
151{ 160{
152 return PL_statcache.st_atim.tv_nsec 161 return PL_statcache.st_atim.tv_nsec
153 + PL_statcache.st_mtim.tv_nsec 162 + PL_statcache.st_mtim.tv_nsec
154 + PL_statcache.st_ctim.tv_nsec; 163 + PL_statcache.st_ctim.tv_nsec;
155} 164}
156]])],ac_cv_xtimespec=yes,ac_cv_xtimespec=no)]) 165]])],ac_cv_xtimespec=yes,ac_cv_xtimespec=no)])
157test $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)
158 167
168# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
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
159AC_OUTPUT 206AC_OUTPUT
160 207

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines