mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
build: Drop dead non-pkg-config code for ZMQ check
This commit is contained in:
parent
06cfc9cadf
commit
10cbae0c39
1 changed files with 12 additions and 24 deletions
36
configure.ac
36
configure.ac
|
@ -1311,16 +1311,6 @@ if test x$use_pkgconfig = xyes; then
|
||||||
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads >= 2.0.21],, [AC_MSG_ERROR(libevent_pthreads version 2.0.21 or greater not found.)])
|
PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads >= 2.0.21],, [AC_MSG_ERROR(libevent_pthreads version 2.0.21 or greater not found.)])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$use_zmq" = "xyes"; then
|
|
||||||
PKG_CHECK_MODULES([ZMQ],[libzmq >= 4],
|
|
||||||
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])],
|
|
||||||
[AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
|
|
||||||
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling])
|
|
||||||
use_zmq=no])
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
|
|
||||||
fi
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
@ -1333,26 +1323,24 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$use_zmq" = "xyes"; then
|
|
||||||
AC_CHECK_HEADER([zmq.h],
|
|
||||||
[AC_DEFINE([ENABLE_ZMQ],[1],[Define to 1 to enable ZMQ functions])],
|
|
||||||
[AC_MSG_WARN([zmq.h not found, disabling zmq support])
|
|
||||||
use_zmq=no
|
|
||||||
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])])
|
|
||||||
AC_CHECK_LIB([zmq],[zmq_ctx_shutdown],ZMQ_LIBS=-lzmq,
|
|
||||||
[AC_MSG_WARN([libzmq >= 4.0 not found, disabling zmq support])
|
|
||||||
use_zmq=no
|
|
||||||
AC_DEFINE([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])])
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED([ENABLE_ZMQ],[0],[Define to 1 to enable ZMQ functions])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$use_qr != xno; then
|
if test x$use_qr != xno; then
|
||||||
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
|
BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
|
||||||
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
|
BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl ZMQ check
|
||||||
|
|
||||||
|
if test "x$use_zmq" = xyes; then
|
||||||
|
PKG_CHECK_MODULES([ZMQ], [libzmq >= 4],
|
||||||
|
AC_DEFINE([ENABLE_ZMQ], [1], [Define to 1 to enable ZMQ functions]),
|
||||||
|
[AC_DEFINE([ENABLE_ZMQ], [0], [Define to 1 to enable ZMQ functions])
|
||||||
|
AC_MSG_WARN([libzmq version 4.x or greater not found, disabling])
|
||||||
|
use_zmq=no])
|
||||||
|
else
|
||||||
|
AC_DEFINE_UNQUOTED([ENABLE_ZMQ], [0], [Define to 1 to enable ZMQ functions])
|
||||||
|
fi
|
||||||
|
|
||||||
if test "x$use_zmq" = xyes; then
|
if test "x$use_zmq" = xyes; then
|
||||||
dnl Assume libzmq was built for static linking
|
dnl Assume libzmq was built for static linking
|
||||||
case $host in
|
case $host in
|
||||||
|
|
Loading…
Add table
Reference in a new issue