diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 0e8d3d2..4fd7cd1 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 - name: Install zeromq - run: sudo apt-get install libzmq5 + run: sudo apt-get install libzmq3-dev - name: Build run: | diff --git a/build-config/m4/ax_zmq.m4 b/build-config/m4/ax_zmq.m4 index 43f6cd4..83e7b78 100644 --- a/build-config/m4/ax_zmq.m4 +++ b/build-config/m4/ax_zmq.m4 @@ -60,8 +60,13 @@ AC_DEFUN([AX_ZMQ], [ #endif ],[ AC_MSG_RESULT(yes) - HAVE_ZMQ=1 - ZMQ_LIBS="-lzmq" + AC_CHECK_LIB([zmq],[zmq_send],[ + HAVE_ZMQ=1 + ZMQ_LIBS="-lzmq" + ],[ + AC_MSG_ERROR([libzmq.so not in LIBRARY_PATH]) + ]) + AC_SUBST(ZMQ_LDFLAGS) AC_SUBST(ZMQ_CPPFLAGS) AC_SUBST(ZMQ_LIBS)