Commit 26e2d36e authored by Geoff Simmons's avatar Geoff Simmons

add --enable configure options to optionally build the MQ plugins

parent f60dd3a2
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src src/test src/mq/activemq src/mq/activemq/test \
src/mq/kafka src/mq/kafka/test
if AMQ_OPT
MAYBE_AMQ = src/mq/activemq src/mq/activemq/test
endif
if KAFKA_OPT
MAYBE_KAFKA = src/mq/kafka src/mq/kafka/test
endif
SUBDIRS = src src/test $(MAYBE_AMQ) $(MAYBE_KAFKA)
if HAVE_RST2MAN
dist_man_MANS = trackrdrd.3
......
......@@ -78,6 +78,17 @@ PKG_CHECK_MODULES([AMQ], [activemq-cpp])
PKG_CHECK_MODULES([APR], [apr-1])
PKG_CHECK_MODULES([APU], [apr-util-1])
# optionally choose the MQ plugins to build, by default all
AC_ARG_ENABLE([kafka], [AS_HELP_STRING([--enable-kafka],
[build the Kafka MQ plugin @<:@default=yes@:>@])],
[], [enable_kafka=yes])
AM_CONDITIONAL([KAFKA_OPT], [test "$enable_kafka" = yes])
AC_ARG_ENABLE([activemq], [AS_HELP_STRING([--enable-activemq],
[build the ActiveMQ MQ plugin @<:@default=yes@:>@])],
[], [enable_activemq=yes])
AM_CONDITIONAL([AMQ_OPT], [test "$enable_activemq" = yes])
# From Varnish configure.ac
# Now that we're done using the compiler to look for functions and
# libraries, set CFLAGS to what we want them to be for our own code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment