diff options
author | David Goulet <dgoulet@torproject.org> | 2018-04-03 15:06:34 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-04-27 11:40:44 -0400 |
commit | b27dc1cfb5867ad5853548acc6e1167a49395917 (patch) | |
tree | a81f8f1e4ea010c73811e211d83706b1076cf986 /src/or/include.am | |
parent | 3a47dfed349ee2c05f30ba142d3583772fa2287f (diff) | |
download | tor-b27dc1cfb5867ad5853548acc6e1167a49395917.tar.gz tor-b27dc1cfb5867ad5853548acc6e1167a49395917.zip |
mod: Build system changes for dirauth module
Make our build system support a disable dirauth module option. It can only be
disabled explicitly with:
$ ./configure --disable-module-dirauth
If *not* specified that is enabled, an automake conditional variable is set to
true and a defined value for the C code:
AM_CONDITIONAL: BUILD_MODULE_DIRAUTH
AC_DEFINE: HAVE_MODULE_DIRAUTH=1
This introduces the dirauth/ module directory in src/or/ for which .c files
are only compiled if the BUILD_MODULE_DIRAUTH is set.
All the header files are compiled in regardless of the support so we can use
the alternative entry point functions of the dirauth subsystem.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/include.am')
-rw-r--r-- | src/or/include.am | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/or/include.am b/src/or/include.am index 9a68df5c3e..56d41e47dd 100644 --- a/src/or/include.am +++ b/src/or/include.am @@ -114,6 +114,16 @@ LIBTOR_A_SOURCES = \ src/or/onion_ntor.c \ $(tor_platform_source) +# +# Modules are conditionnally compiled in tor starting here. We add the C files +# only if the modules has been enabled at configure time. +# + +# The Directory Authority module. +if BUILD_MODULE_DIRAUTH +#LIBTOR_A_SOURCES += +endif + src_or_libtor_a_SOURCES = $(LIBTOR_A_SOURCES) src_or_libtor_testing_a_SOURCES = $(LIBTOR_A_SOURCES) @@ -259,6 +269,12 @@ ORHEADERS = \ src/or/torcert.h \ src/or/tor_api_internal.h +# We add the headers of the modules even though they are disabled so we can +# properly compiled the entry points stub. + +# The Directory Authority module headers. +#ORHEADERS += + # This may someday want to be an installed file? noinst_HEADERS += src/or/tor_api.h |