Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
4654f78e
Commit
4654f78e
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
autotools: allow to build without peer discovery
parent
38644fc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+6
-2
6 additions, 2 deletions
configure.ac
src/Makefile.am
+5
-2
5 additions, 2 deletions
src/Makefile.am
with
11 additions
and
4 deletions
configure.ac
+
6
−
2
View file @
4654f78e
...
...
@@ -35,10 +35,14 @@ AS_IF([test "x$enable_logs" != "xno"], [
dnl Check for indexation
AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--disable-indexation], [Disable DHT indexation])])
AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation != "xno")
A
S_IF([test "x$enable_indexation" != "xno"]
, [
AC_DEFINE([OPENDHT_INDEXATION], [
1
], [Define if DHT indexation is enabled])
A
M_COND_IF(ENABLE_INDEXATION
, [
AC_DEFINE([OPENDHT_INDEXATION], [], [Define if DHT indexation is enabled])
])
AC_ARG_ENABLE([peer-discovery], [AS_HELP_STRING([--disable-peer-discovery], [Disable peer-discovery])])
AM_CONDITIONAL(ENABLE_PEER_DISCOVERY, test x$enable_peer_discovery != "xno")
AM_COND_IF(ENABLE_PEER_DISCOVERY, [AC_DEFINE([OPENDHT_PEER_DISCOVERY], [], [Define if peer discovery is enabled])])
dnl Check for Doxygen
AC_ARG_ENABLE([doc], AS_HELP_STRING([--enable-doc], [Enable documentation generation (doxygen)]))
AS_IF([test "x$enable_doc" = "xyes"], [
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.am
+
5
−
2
View file @
4654f78e
...
...
@@ -27,7 +27,6 @@ libopendht_la_SOURCES = \
dhtrunner.cpp
\
default_types.cpp
\
log.cpp
\
peer_discovery.cpp
\
network_utils.cpp
\
thread_pool.cpp
...
...
@@ -56,7 +55,6 @@ nobase_include_HEADERS = \
../include/opendht/default_types.h
\
../include/opendht/log.h
\
../include/opendht/log_enable.h
\
../include/opendht/peer_discovery.h
\
../include/opendht/network_utils.h
\
../include/opendht/rng.h
\
../include/opendht/thread_pool.h
...
...
@@ -77,6 +75,11 @@ libopendht_la_SOURCES += http.cpp
nobase_include_HEADERS
+=
../include/opendht/proxy.h ../include/opendht/http.h
endif
if
ENABLE_PEER_DISCOVERY
libopendht_la_SOURCES
+=
peer_discovery.cpp
nobase_include_HEADERS
+=
../include/opendht/peer_discovery.h
endif
if
ENABLE_INDEXATION
libopendht_la_SOURCES
+=
indexation/pht.cpp
nobase_include_HEADERS
+=
../include/opendht/indexation/pht.h
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment