Commit 4c6ea125 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1232 from johntconklin/master

Support both --enable-eventfd and --disable-eventfd options.
parents 3ac1925d 10c18f74
...@@ -334,10 +334,10 @@ AC_CHECK_HEADERS(sys/uio.h, [AC_DEFINE(ZMQ_HAVE_UIO, 1, [Have uio.h header.])]) ...@@ -334,10 +334,10 @@ AC_CHECK_HEADERS(sys/uio.h, [AC_DEFINE(ZMQ_HAVE_UIO, 1, [Have uio.h header.])])
# Force not to use eventfd # Force not to use eventfd
AC_ARG_ENABLE([eventfd], AC_ARG_ENABLE([eventfd],
[AS_HELP_STRING([--disable-eventfd], [disable eventfd [default=no]])], [AS_HELP_STRING([--disable-eventfd], [disable eventfd [default=no]])],
[zmq_disable_eventfd=yes], [zmq_enable_eventfd=$enableval],
[zmq_disable_eventfd=no]) [zmq_enable_eventfd=yes])
if test "x$zmq_disable_eventfd" != "xyes"; then if test "x$zmq_enable_eventfd" = "xyes"; then
# Check if we have eventfd.h header file. # Check if we have eventfd.h header file.
AC_CHECK_HEADERS(sys/eventfd.h, AC_CHECK_HEADERS(sys/eventfd.h,
[AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])]) [AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment