Unverified Commit d07ddb1b authored by Simon Giesecke's avatar Simon Giesecke Committed by GitHub

Merge pull request #3153 from pijyoi/autoconf_wepoll

Problem: not able to use wepoll in configure script
parents c76ac547 2336e1f1
...@@ -257,6 +257,11 @@ src_libzmq_la_SOURCES = \ ...@@ -257,6 +257,11 @@ src_libzmq_la_SOURCES = \
src/zap_client.hpp \ src/zap_client.hpp \
src/zmq_draft.h src/zmq_draft.h
if USE_WEPOLL
src_libzmq_la_SOURCES += \
external/wepoll/wepoll.c
endif
if USE_TWEETNACL if USE_TWEETNACL
src_libzmq_la_SOURCES += \ src_libzmq_la_SOURCES += \
src/tweetnacl.c \ src/tweetnacl.c \
......
...@@ -1052,7 +1052,7 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{ ...@@ -1052,7 +1052,7 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{
# Allow user to override poller autodetection # Allow user to override poller autodetection
AC_ARG_WITH([poller], AC_ARG_WITH([poller],
[AS_HELP_STRING([--with-poller], [AS_HELP_STRING([--with-poller],
[choose I/O thread polling system manually. Valid values are 'kqueue', 'epoll', 'devpoll', 'pollset', 'poll', 'select', or 'auto'. [default=auto]])]) [choose I/O thread polling system manually. Valid values are 'kqueue', 'epoll', 'devpoll', 'pollset', 'poll', 'select', 'wepoll', or 'auto'. [default=auto]])])
# Allow user to override poller autodetection # Allow user to override poller autodetection
AC_ARG_WITH([api_poller], AC_ARG_WITH([api_poller],
...@@ -1134,6 +1134,12 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{ ...@@ -1134,6 +1134,12 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{
poller_found=1 poller_found=1
]) ])
;; ;;
wepoll)
# wepoll can only be manually selected
AC_MSG_NOTICE([Using 'wepoll' I/O thread polling system])
AC_DEFINE(ZMQ_IOTHREAD_POLLER_USE_EPOLL, 1, [Use 'epoll' I/O thread polling system])
poller_found=1
;;
esac esac
test $poller_found -eq 1 && break test $poller_found -eq 1 && break
done done
...@@ -1146,6 +1152,8 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{ ...@@ -1146,6 +1152,8 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{
if test "x$with_api_poller" == "xauto"; then if test "x$with_api_poller" == "xauto"; then
if test $poller == "select"; then if test $poller == "select"; then
api_poller=select api_poller=select
elif test $poller == "wepoll"; then
api_poller=select
else else
api_poller=poll api_poller=poll
fi fi
......
...@@ -507,6 +507,8 @@ AM_CONDITIONAL(USE_LIBSODIUM, test "$curve_library" = "libsodium") ...@@ -507,6 +507,8 @@ AM_CONDITIONAL(USE_LIBSODIUM, test "$curve_library" = "libsodium")
AM_CONDITIONAL(USE_TWEETNACL, test "$curve_library" = "tweetnacl") AM_CONDITIONAL(USE_TWEETNACL, test "$curve_library" = "tweetnacl")
AM_CONDITIONAL(HAVE_CURVE, test "x$curve_library" != "x") AM_CONDITIONAL(HAVE_CURVE, test "x$curve_library" != "x")
AM_CONDITIONAL(USE_WEPOLL, test "$poller" = "wepoll")
# build using pgm # build using pgm
have_pgm_library="no" have_pgm_library="no"
......
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