Skip to content

Instantly share code, notes, and snippets.

@mkoppanen
Forked from sustrik/gist:1062237
Created July 3, 2011 13:55
Show Gist options
  • Save mkoppanen/1062244 to your computer and use it in GitHub Desktop.
Save mkoppanen/1062244 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment