From f553a4098ae625812a9d082aedfc393c212c7d13 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Fri, 6 Dec 2013 13:03:03 +0000 Subject: configure option --disable-autostart to disable auto-startup of services by ARM --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 50169797e..4ae54482d 100644 --- a/configure.ac +++ b/configure.ac @@ -1158,6 +1158,25 @@ AC_ARG_ENABLE([experimental], AC_MSG_RESULT($enable_experimental) AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) +# should services be started by default when a peer starts? Some services may +# choose to never start by default and it is upto the service/module developer to +# decide it by having "AUTOSTART = NO" instead of "AUTOSTART = @AUTOSTART" in +# the service/module's conf.in file. +AUTOSTART="YES" +AC_MSG_CHECKING(whether to auto-start peer's services by default) +AC_ARG_ENABLE([autostart], + [AS_HELP_STRING([--disable-autostart], [do not start peer's services by default])], + [enable_autostart=${enableval} + if test "x$enable_autostart" == "xno" + then + AUTOSTART="NO" + fi + ], + [enable_autostart=yes]) +AC_MSG_RESULT($enable_autostart) +#AM_CONDITIONAL([HAVE_AUTOSTART], [test "x$enable_autostart" = "xyes"]) +AC_SUBST(AUTOSTART) + # should memory statistics be kept (very expensive CPU-wise!) AC_MSG_CHECKING(whether to create expensive statistics on memory use) AC_ARG_ENABLE([heapstats], -- cgit v1.2.3