Skip to content

Commit

Permalink
Better AC macro
Browse files Browse the repository at this point in the history
  • Loading branch information
scemama committed Nov 16, 2021
1 parent 5b8aa96 commit 934e063
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
9 changes: 7 additions & 2 deletions build-config/m4/ax_zmq.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 934e063

Please sign in to comment.