… | |
… | |
2 | pthread_create, |
2 | pthread_create, |
3 | [pthread pthreads pthreadVC2], |
3 | [pthread pthreads pthreadVC2], |
4 | , |
4 | , |
5 | [AC_MSG_ERROR(pthread functions not found)] |
5 | [AC_MSG_ERROR(pthread functions not found)] |
6 | ) |
6 | ) |
|
|
7 | |
|
|
8 | AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([[ |
|
|
9 | #include <sys/types.h> |
|
|
10 | #include <sys/time.h> |
|
|
11 | #include <utime.h> |
|
|
12 | struct timeval tv[2]; |
|
|
13 | int res; |
|
|
14 | int main (void) |
|
|
15 | { |
|
|
16 | res = utimes ("/", tv); |
|
|
17 | return 0; |
|
|
18 | } |
|
|
19 | ]],ac_cv_utimes=yes,ac_cv_utimes=no)]) |
|
|
20 | test $ac_cv_utimes = yes && AC_DEFINE(HAVE_UTIMES, 1, utimes(2) is available) |
7 | |
21 | |
8 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ |
22 | AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[ |
9 | #include <sys/types.h> |
23 | #include <sys/types.h> |
10 | #include <sys/time.h> |
24 | #include <sys/time.h> |
11 | #include <utime.h> |
25 | #include <utime.h> |