|
|
1 | AC_SEARCH_LIBS( |
|
|
2 | pthread_create, |
|
|
3 | [pthread pthreads pthreadVC2], |
|
|
4 | , |
|
|
5 | [AC_MSG_ERROR(pthread functions not found)] |
|
|
6 | ) |
|
|
7 | |
1 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ |
8 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ |
2 | #include <sys/types.h> |
9 | #include <sys/types.h> |
3 | #include <sys/time.h> |
10 | #include <sys/time.h> |
4 | #include <utime.h> |
11 | #include <utime.h> |
5 | struct timeval tv[2]; |
12 | struct timeval tv[2]; |
… | |
… | |
12 | } |
19 | } |
13 | ]],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
20 | ]],ac_cv_futimes=yes,ac_cv_futimes=no)]) |
14 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
21 | test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) |
15 | |
22 | |
16 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
23 | AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ |
|
|
24 | #define _GNU_SOURCE |
17 | #include <fcntl.h> |
25 | #include <fcntl.h> |
18 | int main(void) |
26 | int main(void) |
19 | { |
27 | { |
20 | int fd = 0; |
28 | int fd = 0; |
21 | off64_t offset = 1; |
29 | off64_t offset = 1; |
… | |
… | |
24 | res = readahead (fd, offset, count); |
32 | res = readahead (fd, offset, count); |
25 | return 0; |
33 | return 0; |
26 | } |
34 | } |
27 | ],ac_cv_readahead=yes,ac_cv_readahead=no)]) |
35 | ],ac_cv_readahead=yes,ac_cv_readahead=no)]) |
28 | test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) |
36 | test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) |
|
|
37 | test $ac_cv_readahead = yes && AC_DEFINE(_GNU_SOURCE, 1, _GNU_SOURCE required for readahead (linux)) |
29 | |
38 | |
30 | AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([ |
39 | AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([ |
31 | #include <unistd.h> |
40 | #include <unistd.h> |
32 | int main(void) |
41 | int main(void) |
33 | { |
42 | { |