0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 07:58:14 +08:00

Merge pull request #2195 from vyskocilm/master

Problem: curve_keygen not build unless --enable-curve is passed
This commit is contained in:
Luca Boccassi 2016-11-05 17:13:00 +01:00 committed by GitHub
commit 6585aeaba2

View File

@ -371,8 +371,6 @@ AC_ARG_ENABLE([curve-keygen],
[zmq_enable_curve_keygen=$enableval],
[zmq_enable_curve_keygen=yes])
AM_CONDITIONAL(ENABLE_CURVE_KEYGEN, test "x$zmq_enable_curve_keygen" = "xyes")
# Use c++ in subsequent tests
AC_LANG_PUSH(C++)
@ -445,6 +443,7 @@ elif test "x$with_libsodium" = "xyes"; then
AC_DEFINE(ZMQ_HAVE_CURVE, [1], [Using curve encryption])
AC_DEFINE(ZMQ_USE_LIBSODIUM, [1], [Using libsodium for curve encryption])
curve_library="libsodium"
enable_curve="yes"
# On Solaris, libsodium depends on libssp
case "${host_os}" in
@ -461,9 +460,11 @@ else
AC_DEFINE(ZMQ_HAVE_CURVE, [1], [Using curve encryption])
AC_DEFINE(ZMQ_USE_TWEETNACL, [1], [Using tweetnacl for curve encryption])
curve_library="tweetnacl"
enable_curve="yes"
fi
AM_CONDITIONAL(ENABLE_CURVE_KEYGEN, test "x$enable_curve" = "xyes")
AM_CONDITIONAL(ENABLE_CURVE_KEYGEN, test "x$enable_curve" = "xyes" -a "x$zmq_enable_curve_keygen" = "xyes")
AM_CONDITIONAL(USE_LIBSODIUM, test "$curve_library" = "libsodium")
AM_CONDITIONAL(USE_TWEETNACL, test "$curve_library" = "tweetnacl")