@@ -338,10 +338,10 @@ AC_ARG_ENABLE([werror],
338
338
[ enable_werror=$enableval] ,
339
339
[ enable_werror=no] )
340
340
341
- AC_ARG_WITH ( [ boost-process ] ,
342
- [ AS_HELP_STRING ( [ --with-boost-process ] ,[ Opt in to using Boost Process (default is no)] ) ] ,
343
- [ boost_process=$withval ] ,
344
- [ boost_process =no] )
341
+ AC_ARG_ENABLE ( [ external-signer ] ,
342
+ [ AS_HELP_STRING ( [ --enable-external-signer ] ,[ compile external signer support (default is no, requires Boost::Process )] ) ] ,
343
+ [ use_external_signer=$enableval ] ,
344
+ [ use_external_signer =no] )
345
345
346
346
AC_LANG_PUSH ( [ C++] )
347
347
@@ -1253,6 +1253,7 @@ if test "x$enable_fuzz" = "xyes"; then
1253
1253
bitcoin_enable_qt_dbus=no
1254
1254
enable_wallet=no
1255
1255
use_bench=no
1256
+ use_external_signer=no
1256
1257
use_upnp=no
1257
1258
use_natpmp=no
1258
1259
use_zmq=no
@@ -1390,16 +1391,20 @@ fi
1390
1391
AX_BOOST_SYSTEM
1391
1392
AX_BOOST_FILESYSTEM
1392
1393
1393
- dnl Opt-in to Boost Process
1394
- if test "x$boost_process " != xno; then
1394
+ dnl Opt-in to Boost Process if external signer support is requested
1395
+ if test "x$use_external_signer " != xno; then
1395
1396
AC_MSG_CHECKING ( for Boost Process )
1396
1397
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <boost/process.hpp>] ] ,
1397
1398
[ [ boost::process::child* child = new boost::process::child; delete child; ] ] ) ] ,
1398
- [ AC_MSG_RESULT ( yes ) ; AC_DEFINE ( [ HAVE_BOOST_PROCESS] ,,[ define if Boost::Process is available] ) ] ,
1399
- [ AC_MSG_ERROR ( [ Boost::Process is not available!] ) ]
1399
+ [ AC_MSG_RESULT ( yes )
1400
+ AC_DEFINE ( [ ENABLE_EXTERNAL_SIGNER] ,,[ define if external signer support is enabled] )
1401
+ ] ,
1402
+ [ AC_MSG_ERROR ( [ Boost::Process is required for external signer support, but not available!] ) ]
1400
1403
)
1401
1404
fi
1402
1405
1406
+ AM_CONDITIONAL([ ENABLE_EXTERNAL_SIGNER] , [ test "x$use_external_signer" = "xyes"] )
1407
+
1403
1408
if test x$suppress_external_warnings != xno; then
1404
1409
BOOST_CPPFLAGS=SUPPRESS_WARNINGS($BOOST_CPPFLAGS)
1405
1410
fi
@@ -1810,6 +1815,7 @@ AC_SUBST(ARM_CRC_CXXFLAGS)
1810
1815
AC_SUBST ( LIBTOOL_APP_LDFLAGS )
1811
1816
AC_SUBST ( USE_SQLITE )
1812
1817
AC_SUBST ( USE_BDB )
1818
+ AC_SUBST ( ENABLE_EXTERNAL_SIGNER )
1813
1819
AC_SUBST ( USE_UPNP )
1814
1820
AC_SUBST ( USE_QRCODE )
1815
1821
AC_SUBST ( BOOST_LIBS )
@@ -1885,43 +1891,43 @@ esac
1885
1891
1886
1892
echo
1887
1893
echo "Options used to compile and link:"
1888
- echo " boost process = $with_boost_process "
1889
- echo " multiprocess = $build_multiprocess"
1890
- echo " with libs = $build_bitcoin_libs"
1891
- echo " with wallet = $enable_wallet"
1894
+ echo " external signer = $use_external_signer "
1895
+ echo " multiprocess = $build_multiprocess"
1896
+ echo " with libs = $build_bitcoin_libs"
1897
+ echo " with wallet = $enable_wallet"
1892
1898
if test "x$enable_wallet" != "xno"; then
1893
- echo " with sqlite = $use_sqlite"
1894
- echo " with bdb = $use_bdb"
1899
+ echo " with sqlite = $use_sqlite"
1900
+ echo " with bdb = $use_bdb"
1895
1901
fi
1896
- echo " with gui / qt = $bitcoin_enable_qt"
1902
+ echo " with gui / qt = $bitcoin_enable_qt"
1897
1903
if test x$bitcoin_enable_qt != xno; then
1898
- echo " with qr = $use_qr"
1904
+ echo " with qr = $use_qr"
1899
1905
fi
1900
- echo " with zmq = $use_zmq"
1906
+ echo " with zmq = $use_zmq"
1901
1907
if test x$enable_fuzz == xno; then
1902
- echo " with test = $use_tests"
1908
+ echo " with test = $use_tests"
1903
1909
else
1904
- echo " with test = not building test_bitcoin because fuzzing is enabled"
1905
- echo " with fuzz = $enable_fuzz"
1910
+ echo " with test = not building test_bitcoin because fuzzing is enabled"
1911
+ echo " with fuzz = $enable_fuzz"
1906
1912
fi
1907
- echo " with bench = $use_bench"
1908
- echo " with upnp = $use_upnp"
1909
- echo " with natpmp = $use_natpmp"
1910
- echo " use asm = $use_asm"
1911
- echo " ebpf tracing = $have_sdt"
1912
- echo " sanitizers = $use_sanitizers"
1913
- echo " debug enabled = $enable_debug"
1914
- echo " gprof enabled = $enable_gprof"
1915
- echo " werror = $enable_werror"
1913
+ echo " with bench = $use_bench"
1914
+ echo " with upnp = $use_upnp"
1915
+ echo " with natpmp = $use_natpmp"
1916
+ echo " use asm = $use_asm"
1917
+ echo " ebpf tracing = $have_sdt"
1918
+ echo " sanitizers = $use_sanitizers"
1919
+ echo " debug enabled = $enable_debug"
1920
+ echo " gprof enabled = $enable_gprof"
1921
+ echo " werror = $enable_werror"
1916
1922
echo
1917
- echo " target os = $TARGET_OS"
1918
- echo " build os = $build_os"
1923
+ echo " target os = $TARGET_OS"
1924
+ echo " build os = $build_os"
1919
1925
echo
1920
- echo " CC = $CC"
1921
- echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"
1922
- echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS"
1923
- echo " CXX = $CXX"
1924
- echo " CXXFLAGS = $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS"
1925
- echo " LDFLAGS = $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS"
1926
- echo " ARFLAGS = $ARFLAGS"
1926
+ echo " CC = $CC"
1927
+ echo " CFLAGS = $PTHREAD_CFLAGS $CFLAGS"
1928
+ echo " CPPFLAGS = $DEBUG_CPPFLAGS $HARDENED_CPPFLAGS $CPPFLAGS"
1929
+ echo " CXX = $CXX"
1930
+ echo " CXXFLAGS = $DEBUG_CXXFLAGS $HARDENED_CXXFLAGS $WARN_CXXFLAGS $NOWARN_CXXFLAGS $ERROR_CXXFLAGS $GPROF_CXXFLAGS $CXXFLAGS"
1931
+ echo " LDFLAGS = $PTHREAD_LIBS $HARDENED_LDFLAGS $GPROF_LDFLAGS $LDFLAGS"
1932
+ echo " ARFLAGS = $ARFLAGS"
1927
1933
echo
0 commit comments