diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-07-03 16:11:11 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-03 16:11:11 +0200 |
commit | 8d96036fcd069e98f6fac69f645d6cc728281836 (patch) | |
tree | 6c0c63769efa7d4457a55b316cdaf68bb778f13e | |
parent | 8fb9d3c6d058393478d3b3ccb1f20bcb19bbe5a0 (diff) |
Build system checks for presence of eventfd.h header
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | configure.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 27cde3f..c45e5a7 100644 --- a/configure.in +++ b/configure.in @@ -247,6 +247,16 @@ stdlib.h string.h sys/socket.h sys/time.h unistd.h limits.h) # Check if we have ifaddrs.h header file. AC_CHECK_HEADERS(ifaddrs.h, [AC_DEFINE(ZMQ_HAVE_IFADDRS, 1, [Have ifaddrs.h header.])]) +# Force not to use eventfd +AC_ARG_ENABLE([eventfd], [AS_HELP_STRING([--disable-eventfd], [disable eventfd [default=no]])], + [zmq_disable_eventfd=yes], [zmq_disable_eventfd=no]) + +if test "x$zmq_disable_eventfd" != "xyes"; then + # Check if we have eventfd.h header file. + AC_CHECK_HEADERS(sys/eventfd.h, + [AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])]) +fi + # Use c++ in subsequent tests AC_LANG_PUSH(C++) |