From faeb154a014725013d47d5fd7dd533bfed8ea2ec Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Thu, 1 Dec 2022 00:51:07 +0530 Subject: [PATCH] build: restore support for building immer from local subtree --- Makefile.am | 1 + configure.ac | 3 --- src/Makefile.am | 8 +++++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 99fdca0183..d160bda53a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -193,6 +193,7 @@ LCOV_FILTER_PATTERN = \ -p "/usr/lib/" \ -p "/usr/lib64/" \ -p "src/dashbls/" \ + -p "src/immer/" \ -p "src/leveldb/" \ -p "src/crc32c/" \ -p "src/bench/" \ diff --git a/configure.ac b/configure.ac index 396978c587..95f837b548 100644 --- a/configure.ac +++ b/configure.ac @@ -1520,9 +1520,6 @@ dnl check if libgmp is present AC_CHECK_HEADER([gmp.h],, AC_MSG_ERROR(libgmp headers missing)) AC_CHECK_LIB([gmp], [__gmpz_init],GMP_LIBS=-lgmp, AC_MSG_ERROR(libgmp missing)) -dnl check if immer headers-only library is present -AC_CHECK_HEADER([immer/map.hpp],, AC_MSG_ERROR(immer map headers missing)) - AC_MSG_CHECKING([whether to build dashd]) AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes]) AC_MSG_RESULT($build_bitcoind) diff --git a/src/Makefile.am b/src/Makefile.am index 6304c3ed14..9952a2bfab 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -34,6 +34,7 @@ endif #ENABLE_STACKTRACES BITCOIN_INCLUDES=-I$(builddir) -I$(srcdir)/secp256k1/include -I$(srcdir)/$(UNIVALUE_INCLUDE_DIR_INT) $(BDB_CPPFLAGS) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS) BITCOIN_INCLUDES+=-I$(srcdir)/dashbls/include -I$(srcdir)/dashbls/depends/relic/include -I$(srcdir)/dashbls/depends/minialloc/include +BITCOIN_INCLUDES+=-I$(srcdir)/immer LIBBITCOIN_SERVER=libbitcoin_server.a LIBBITCOIN_COMMON=libbitcoin_common.a @@ -856,6 +857,7 @@ libdashconsensus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(RELDFLAGS) libdashconsensus_la_LIBADD = $(LIBDASHBLS) $(LIBSECP256K1) $(GMP_LIBS) libdashconsensus_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(builddir)/obj -I$(srcdir)/secp256k1/include -DBUILD_BITCOIN_INTERNAL libdashconsensus_la_CPPFLAGS += -I$(srcdir)/dashbls/include -I$(srcdir)/dashbls/depends/relic/include -I$(srcdir)/dashbls/depends/minialloc/include +libdashconsensus_la_CPPFLAGS += -I$(srcdir)/immer libdashconsensus_la_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) endif @@ -889,9 +891,13 @@ CLEANFILES += wallet/test/*.gcda wallet/test/*.gcno CLEANFILES += zmq/*.gcda zmq/*.gcno CLEANFILES += obj/build.h +IMMER_DIST = immer/immer LIBDASHBLS_DIST = dashbls -EXTRA_DIST = $(CTAES_DIST) $(LIBDASHBLS_DIST) +EXTRA_DIST = \ + $(CTAES_DIST) \ + $(IMMER_DIST) \ + $(LIBDASHBLS_DIST) config/bitcoin-config.h: config/stamp-h1 @$(MAKE) -C $(top_builddir) $(subdir)/$(@)