|
From: <sv...@va...> - 2008-04-27 06:06:55
|
Author: bart
Date: 2008-04-27 07:06:57 +0100 (Sun, 27 Apr 2008)
New Revision: 7930
Log:
Replaced tests for eventfd() and eventfd_read().
Modified:
trunk/configure.in
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-04-26 18:57:18 UTC (rev 7929)
+++ trunk/configure.in 2008-04-27 06:06:57 UTC (rev 7930)
@@ -633,6 +633,31 @@
AM_CONDITIONAL([HAVE_OPENMP], [test x$ac_have_openmp = xyes])
+# Check for eventfd_t, eventfd() and eventfd_read()
+AC_MSG_CHECKING([for eventfd()])
+
+AC_TRY_LINK(
+[
+#include <sys/eventfd.h>
+], [
+ eventfd_t ev;
+ int fd;
+
+ fd = eventfd(5, 0);
+ eventfd_read(fd, &ev);
+ return 0;
+],
+[
+AC_MSG_RESULT([yes])
+AC_DEFINE([HAVE_EVENTFD], 1,
+ [Define to 1 if you have the `eventfd' function.])
+AC_DEFINE([HAVE_EVENTFD_READ], 1,
+ [Define to 1 if you have the `eventfd_read' function.])
+], [
+AC_MSG_RESULT([no])
+])
+
+
# does this compiler support -m32 ?
AC_MSG_CHECKING([if gcc accepts -m32])
@@ -980,8 +1005,6 @@
AC_CHECK_FUNCS([ \
epoll_create \
epoll_pwait \
- eventfd \
- eventfd_read \
floor \
klogctl \
mallinfo \
|