AM_CONDITIONAL([BUILDPYTHON], [test x$OSRF_INSTALL_PYTHON = xtrue])
AC_SUBST([OSRF_INSTALL_PYTHON])
+# enable chopchop, the basic XMPP server
+
+AC_ARG_ENABLE([chopchop],
+[ --enable-chopchop build and install chopchop, a basic XMPP server],
+[case "${enableval}" in
+ yes) OSRF_INSTALL_CHOPCHOP=true ;;
+ no) OSRF_INSTALL_CHOPCHOP=false ;;
+ *) AC_MSG_ERROR([please choose another value for --enable-chopchop (supported values are yes or no)]) ;;
+esac],
+[OSRF_INSTALL_CHOPCHOP=false])
+
+AM_CONDITIONAL([BUILDCHOPCHOP], [test x$OSRF_INSTALL_CHOPCHOP = xtrue])
+AC_SUBST([OSRF_INSTALL_CHOPCHOP])
+
# enable debug?
AC_ARG_ENABLE(debug,
AC_MSG_RESULT([OSRF install python?: no])
fi
+if test "$OSRF_INSTALL_CHOPCHOP" = "true" ; then
+ AC_MSG_RESULT([OSRF install chopchop?: yes])
+else
+ AC_MSG_RESULT([OSRF install chopchop?: no])
+fi
+
AC_MSG_RESULT(Installation directory prefix: ${prefix})
AC_MSG_RESULT(Tmp dir location: ${TMP})
AC_MSG_RESULT(APXS2 location: ${APXS2})
endif
if BUILDCORE
-MAYBE_CORE = libopensrf c-apps router srfsh jserver gateway perl
+MAYBE_CORE = libopensrf c-apps router srfsh gateway perl
dist_bin_SCRIPTS = @top_srcdir@/bin/opensrf-perl.pl
bin_SCRIPTS = @top_srcdir@/bin/osrf_config @top_srcdir@/bin/osrf_ctl.sh
dist_sysconf_DATA = @top_srcdir@/examples/opensrf.xml.example @top_srcdir@/examples/opensrf_core.xml.example @top_srcdir@/examples/srfsh.xml.example
endif
+if BUILDCHOPCHOP
+MAYBE_CHOPCHOP = jserver
+endif
+
SUBDIRS = $(MAYBE_CORE) $(MAYBE_PY) $(MAYBE_JA)
install-exec-local: