From: Bart Van Assche Date: Sun, 27 Apr 2008 06:06:57 +0000 (+0000) Subject: Replaced tests for eventfd() and eventfd_read(). X-Git-Tag: svn/VALGRIND_3_4_0~693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c89aa1e1b81f57e444effce2a48eee018a9ce7a;p=thirdparty%2Fvalgrind.git Replaced tests for eventfd() and eventfd_read(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7930 --- diff --git a/configure.in b/configure.in index 3b0d937670..96e4b49a4c 100644 --- a/configure.in +++ b/configure.in @@ -633,6 +633,31 @@ CFLAGS=$safe_CFLAGS 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 +], [ + 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_TYPE_SIGNAL AC_CHECK_FUNCS([ \ epoll_create \ epoll_pwait \ - eventfd \ - eventfd_read \ floor \ klogctl \ mallinfo \