From 8d96036fcd069e98f6fac69f645d6cc728281836 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 3 Jul 2011 16:11:11 +0200 Subject: Build system checks for presence of eventfd.h header Signed-off-by: Martin Sustrik --- configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.in') 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++) -- cgit v1.2.3