mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Build system checks for presence of eventfd.h header
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
8fb9d3c6d0
commit
8d96036fcd
10
configure.in
10
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++)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user