mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Merge pull request #1344 from febeling/cond-build-tools
Problem: Cross compile for iOS isn't working for auxiliary tools
This commit is contained in:
commit
c9418db684
@ -254,6 +254,7 @@ src_libzmq_la_CPPFLAGS += ${pgm_CFLAGS}
|
||||
src_libzmq_la_LIBADD += ${pgm_LIBS}
|
||||
endif
|
||||
|
||||
if ENABLE_PERF
|
||||
noinst_PROGRAMS = \
|
||||
perf/local_lat \
|
||||
perf/remote_lat \
|
||||
@ -279,11 +280,14 @@ perf_inproc_lat_SOURCES = perf/inproc_lat.cpp
|
||||
|
||||
perf_inproc_thr_LDADD = src/libzmq.la
|
||||
perf_inproc_thr_SOURCES = perf/inproc_thr.cpp
|
||||
endif
|
||||
|
||||
if ENABLE_CURVE_KEYGEN
|
||||
bin_PROGRAMS = tools/curve_keygen
|
||||
|
||||
tools_curve_keygen_LDADD = src/libzmq.la
|
||||
tools_curve_keygen_SOURCES = tools/curve_keygen.cpp
|
||||
endif
|
||||
|
||||
#
|
||||
# tests
|
||||
|
16
configure.ac
16
configure.ac
@ -346,6 +346,22 @@ if test "x$zmq_enable_eventfd" = "xyes"; then
|
||||
[AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])])
|
||||
fi
|
||||
|
||||
# Conditionally build performance measurement tools
|
||||
AC_ARG_ENABLE([perf],
|
||||
[AS_HELP_STRING([--enable-perf], [Build performance measurement tools [default=yes].])],
|
||||
[zmq_enable_perf=$enableval],
|
||||
[zmq_enable_perf=yes])
|
||||
|
||||
AM_CONDITIONAL(ENABLE_PERF, test "x$zmq_enable_perf" = "xyes")
|
||||
|
||||
# Conditionally build curve key generation tool
|
||||
AC_ARG_ENABLE([curve-keygen],
|
||||
[AS_HELP_STRING([--enable-curve-keygen], [Build curve key-generation tool [default=yes].])],
|
||||
[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++)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user