]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
configure: Add a relay module, with --disable-module-relay
authorteor <teor@torproject.org>
Thu, 17 Oct 2019 06:07:52 +0000 (16:07 +1000)
committerteor <teor@torproject.org>
Sun, 20 Oct 2019 07:52:38 +0000 (17:52 +1000)
The Makefile and C defines don't actually do anything yet.

Part of 32123.

configure.ac

index c0db30e60e4e58edbfb874cb64afc11deb3c0bb2..dcb8b1e385ef2040d59a5f133edab75af583648b 100644 (file)
@@ -255,7 +255,16 @@ dnl Tor modules options. These options are namespaced with --disable-module-XXX
 dnl ---
 
 dnl All our modules.
-m4_define(MODULES, dirauth)
+m4_define(MODULES, relay dirauth)
+
+dnl Relay module.
+AC_ARG_ENABLE([module-relay],
+              AS_HELP_STRING([--disable-module-relay],
+                             [Build tor without the Relay modules: tor can not run as a relay, bridge, or authority]))
+AM_CONDITIONAL(BUILD_MODULE_RELAY, [test "x$enable_module_relay" != "xno"])
+AM_COND_IF(BUILD_MODULE_RELAY,
+           AC_DEFINE([HAVE_MODULE_RELAY], [1],
+                     [Compile with Relay feature support]))
 
 dnl Directory Authority module.
 AC_ARG_ENABLE([module-dirauth],