summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-05-17 18:27:54 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-28 18:00:13 +0200
commitb6116506ec81735afa647af112c6aaa1ed35e9df (patch)
tree1d50228c173a313320f4720ed70398661a6a5694 /configure.ac
parentMerge pull request #1054 from dslicenc/eigrp-connected (diff)
downloadfrr-b6116506ec81735afa647af112c6aaa1ed35e9df.tar.xz
frr-b6116506ec81735afa647af112c6aaa1ed35e9df.zip
lib: ZeroMQ read handler, v2
This uses zmq_getsockopt(ZMQ_FD) to create a libfrr read event, which then wraps zmq_poll and calls an user-specified ZeroMQ read handler. It's wrapped in a separate library in order to make ZeroMQ support an installation-time option instead of build-time. Extended to support per-message and per-fragment callbacks as discussed with Bingen in PR #566. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index bf66e00f9..ec0419048 100755
--- a/configure.ac
+++ b/configure.ac
@@ -320,6 +320,8 @@ AC_ARG_WITH(rfp-path,
AS_HELP_STRING([--with-rfp-path[=DIR]],[path to replaced stub RFP used with BGP VNC]))
AC_ARG_ENABLE(snmp,
AS_HELP_STRING([--enable-snmp=ARG], [enable SNMP support (smux or agentx)]))
+AC_ARG_ENABLE(zeromq,
+ AS_HELP_STRING([--enable-zeromq], [enable ZeroMQ handler (libfrrzmq)]))
AC_ARG_WITH(libpam,
AS_HELP_STRING([--with-libpam], [use libpam for PAM support in vtysh]))
AC_ARG_ENABLE(ospfapi,
@@ -1714,6 +1716,21 @@ AC_CHECK_HEADER([malloc.h],
)
], [], FRR_INCLUDES)
+dnl ------
+dnl ZeroMQ
+dnl ------
+if test "x$enable_zeromq" != "xno"; then
+ PKG_CHECK_MODULES(ZEROMQ, [libzmq >= 4.0.0], [
+ AC_DEFINE(HAVE_ZEROMQ, 1, [Enable ZeroMQ support])
+ ZEROMQ=true
+ ], [
+ if test "x$enable_zeromq" = "xyes"; then
+ AC_MSG_ERROR([configuration specifies --enable-zeromq but libzmq was not found])
+ fi
+ ])
+fi
+AM_CONDITIONAL([ZEROMQ], test "x$ZEROMQ" = "xtrue")
+
dnl ----------
dnl configure date
dnl ----------