summaryrefslogtreecommitdiff
path: root/libeio.m4
diff options
context:
space:
mode:
authorroot <root>2008-05-11 01:00:03 +0000
committerroot <root>2008-05-11 01:00:03 +0000
commita3ff49fd480320c5cf7e01af241775116373dbfc (patch)
tree9df801ce82e5e6982453f9f59fea242cc6b8a8bd /libeio.m4
parent1adb313f215bbe062eefa2c03e871d141458f749 (diff)
*** empty log message ***
Diffstat (limited to 'libeio.m4')
-rw-r--r--libeio.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/libeio.m4 b/libeio.m4
index 31d8487..ba866d8 100644
--- a/libeio.m4
+++ b/libeio.m4
@@ -1,3 +1,10 @@
+AC_SEARCH_LIBS(
+ pthread_create,
+ [pthread pthreads pthreadVC2],
+ ,
+ [AC_MSG_ERROR(pthread functions not found)]
+)
+
AC_CACHE_CHECK(for futimes, ac_cv_futimes, [AC_LINK_IFELSE([[
#include <sys/types.h>
#include <sys/time.h>
@@ -14,6 +21,7 @@ int main(void)
test $ac_cv_futimes = yes && AC_DEFINE(HAVE_FUTIMES, 1, futimes(2) is available)
AC_CACHE_CHECK(for readahead, ac_cv_readahead, [AC_LINK_IFELSE([
+#define _GNU_SOURCE
#include <fcntl.h>
int main(void)
{
@@ -26,6 +34,7 @@ int main(void)
}
],ac_cv_readahead=yes,ac_cv_readahead=no)])
test $ac_cv_readahead = yes && AC_DEFINE(HAVE_READAHEAD, 1, readahead(2) is available (linux))
+test $ac_cv_readahead = yes && AC_DEFINE(_GNU_SOURCE, 1, _GNU_SOURCE required for readahead (linux))
AC_CACHE_CHECK(for fdatasync, ac_cv_fdatasync, [AC_LINK_IFELSE([
#include <unistd.h>