ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/libeio.m4
(Generate patch)

Comparing libeio/libeio.m4 (file contents):
Revision 1.1 by root, Sun May 11 00:06:25 2008 UTC vs.
Revision 1.2 by root, Sun May 11 01:00:03 2008 UTC

1AC_SEARCH_LIBS(
2 pthread_create,
3 [pthread pthreads pthreadVC2],
4 ,
5 [AC_MSG_ERROR(pthread functions not found)]
6)
7
1AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ 8AC_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>
5struct timeval tv[2]; 12struct timeval tv[2];
12} 19}
13]],ac_cv_futimes=yes,ac_cv_futimes=no)]) 20]],ac_cv_futimes=yes,ac_cv_futimes=no)])
14test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available) 21test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available)
15 22
16AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([ 23AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([
24#define _GNU_SOURCE
17#include <fcntl.h> 25#include <fcntl.h>
18int main(void) 26int 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)])
28test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux)) 36test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux))
37test $ac_cv_readahead = yes && AC_DEFINE(_GNU_SOURCE, 1, _GNU_SOURCE required for readahead (linux))
29 38
30AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([ 39AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([
31#include <unistd.h> 40#include <unistd.h>
32int main(void) 41int main(void)
33{ 42{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines