From c81da2dd7dd9bcc9881158a0ff83f30117cd28c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 6 Mar 2018 10:27:46 -0500 Subject: [PATCH] indexation: enable by default --- CMakeLists.txt | 2 +- configure.ac | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a594c79..98bfc3fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ option (OPENDHT_PROXY_SERVER "Enable DHT proxy server, use Restbed and jsoncpp" option (OPENDHT_PUSH_NOTIFICATIONS "Enable push notifications support" OFF) option (OPENDHT_PROXY_SERVER_IDENTITY "Allow clients to use the node identity" OFF) option (OPENDHT_PROXY_CLIENT "Enable DHT proxy client, use Restbed and jsoncpp" OFF) -option (OPENDHT_INDEX "Build DHT indexation feature" OFF) +option (OPENDHT_INDEX "Build DHT indexation feature" ON) find_package(Doxygen) option (OPENDHT_DOCUMENTATION "Create and install the HTML based API documentation (requires Doxygen)" ${DOXYGEN_FOUND}) diff --git a/configure.ac b/configure.ac index 2890f2ab..f8475cc9 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_PROG_CXX AM_PROG_AR dnl Check for logs -AC_ARG_ENABLE([logs], [AS_HELP_STRING([--disable-logs], [Disble DHT logs])]) +AC_ARG_ENABLE([logs], [AS_HELP_STRING([--disable-logs], [Disable DHT logs])]) AS_IF([test "x$enable_logs" != "xno"], [ AC_DEFINE([OPENDHT_LOG], [true], [Define if DHT logs are enabled]) ], [ @@ -33,9 +33,9 @@ AS_IF([test "x$enable_logs" != "xno"], [ ]) dnl Check for indexation -AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--enable-indexation], [Enable DHT indexation])]) -AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation == xyes) -AS_IF([test "x$enable_indexation" = "xyes"], [ +AC_ARG_ENABLE([indexation], [AS_HELP_STRING([--disable-indexation], [Disable DHT indexation])]) +AM_CONDITIONAL(ENABLE_INDEXATION, test x$enable_indexation != "xno") +AS_IF([test "x$enable_indexation" != "xno"], [ AC_DEFINE([OPENDHT_INDEXATION], [1], [Define if DHT indexation is enabled]) ]) -- GitLab