@@ -406,6 +406,18 @@ AC_ARG_WITH([utils],
406
406
[ build_bitcoin_utils=$withval] ,
407
407
[ build_bitcoin_utils=yes] )
408
408
409
+ AC_ARG_ENABLE ( [ util-cli] ,
410
+ [ AS_HELP_STRING ( [ --enable-util-cli] ,
411
+ [ build bitcoin-cli] ) ] ,
412
+ [ build_bitcoin_cli=$enableval] ,
413
+ [ build_bitcoin_cli=$build_bitcoin_utils] )
414
+
415
+ AC_ARG_ENABLE ( [ util-tx] ,
416
+ [ AS_HELP_STRING ( [ --enable-util-tx] ,
417
+ [ build bitcoin-tx] ) ] ,
418
+ [ build_bitcoin_tx=$enableval] ,
419
+ [ build_bitcoin_tx=$build_bitcoin_utils] )
420
+
409
421
AC_ARG_WITH ( [ libs] ,
410
422
[ AS_HELP_STRING ( [ --with-libs] ,
411
423
[ build libraries (default=yes)] ) ] ,
@@ -886,7 +898,7 @@ BITCOIN_QT_INIT
886
898
dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus
887
899
BITCOIN_QT_CONFIGURE([ $use_pkgconfig] )
888
900
889
- if test x$build_bitcoin_utils$ build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono ; then
901
+ if test x$build_bitcoin_cli$build_bitcoin_tx$ build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnononononono ; then
890
902
use_boost=no
891
903
else
892
904
use_boost=yes
@@ -1074,7 +1086,7 @@ if test x$use_pkgconfig = xyes; then
1074
1086
if test x$use_qr != xno; then
1075
1087
BITCOIN_QT_CHECK([ PKG_CHECK_MODULES([ QR] , [ libqrencode] , [ have_qrencode=yes] , [ have_qrencode=no] )] )
1076
1088
fi
1077
- if test x$build_bitcoin_utils$ build_bitcoind$bitcoin_enable_qt$use_tests != xnononono ; then
1089
+ if test x$build_bitcoin_cli$build_bitcoin_tx$ build_bitcoind$bitcoin_enable_qt$use_tests != xnonononono ; then
1078
1090
PKG_CHECK_MODULES([ EVENT] , [ libevent] ,, [ AC_MSG_ERROR ( libevent not found. ) ] )
1079
1091
if test x$TARGET_OS != xwindows; then
1080
1092
PKG_CHECK_MODULES([ EVENT_PTHREADS] , [ libevent_pthreads] ,, [ AC_MSG_ERROR ( libevent_pthreads not found. ) ] )
@@ -1099,7 +1111,7 @@ else
1099
1111
AC_CHECK_HEADER ( [ openssl/ssl.h] ,, AC_MSG_ERROR ( libssl headers missing ) ,)
1100
1112
AC_CHECK_LIB ( [ ssl] , [ main] ,SSL_LIBS=-lssl , AC_MSG_ERROR ( libssl missing ) )
1101
1113
1102
- if test x$build_bitcoin_utils$ build_bitcoind$bitcoin_enable_qt$use_tests != xnononono ; then
1114
+ if test x$build_bitcoin_cli$build_bitcoin_tx$ build_bitcoind$bitcoin_enable_qt$use_tests != xnonononono ; then
1103
1115
AC_CHECK_HEADER ( [ event2/event.h] ,, AC_MSG_ERROR ( libevent headers missing ) ,)
1104
1116
AC_CHECK_LIB ( [ event] ,[ main] ,EVENT_LIBS=-levent ,AC_MSG_ERROR ( libevent missing ) )
1105
1117
if test x$TARGET_OS != xwindows; then
@@ -1164,7 +1176,7 @@ dnl univalue check
1164
1176
1165
1177
need_bundled_univalue=yes
1166
1178
1167
- if test x$build_bitcoin_utils$ build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono ; then
1179
+ if test x$build_bitcoin_cli$build_bitcoin_tx$ build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnononononono ; then
1168
1180
need_bundled_univalue=no
1169
1181
else
1170
1182
@@ -1214,9 +1226,13 @@ AC_MSG_CHECKING([whether to build bitcoind])
1214
1226
AM_CONDITIONAL([ BUILD_BITCOIND] , [ test x$build_bitcoind = xyes] )
1215
1227
AC_MSG_RESULT ( $build_bitcoind )
1216
1228
1217
- AC_MSG_CHECKING ( [ whether to build utils (bitcoin-cli bitcoin-tx)] )
1218
- AM_CONDITIONAL([ BUILD_BITCOIN_UTILS] , [ test x$build_bitcoin_utils = xyes] )
1219
- AC_MSG_RESULT ( $build_bitcoin_utils )
1229
+ AC_MSG_CHECKING ( [ whether to build bitcoin-cli] )
1230
+ AM_CONDITIONAL([ BUILD_BITCOIN_CLI] , [ test x$build_bitcoin_cli = xyes] )
1231
+ AC_MSG_RESULT ( $build_bitcoin_cli )
1232
+
1233
+ AC_MSG_CHECKING ( [ whether to build bitcoin-tx] )
1234
+ AM_CONDITIONAL([ BUILD_BITCOIN_TX] , [ test x$build_bitcoin_tx = xyes] )
1235
+ AC_MSG_RESULT ( $build_bitcoin_tx )
1220
1236
1221
1237
AC_MSG_CHECKING ( [ whether to build libraries] )
1222
1238
AM_CONDITIONAL([ BUILD_BITCOIN_LIBS] , [ test x$build_bitcoin_libs = xyes] )
@@ -1342,7 +1358,7 @@ else
1342
1358
AC_MSG_RESULT ( [ no] )
1343
1359
fi
1344
1360
1345
- if test x$build_bitcoin_utils$ build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnononononono ; then
1361
+ if test x$build_bitcoin_cli$build_bitcoin_tx$ build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnonononononono ; then
1346
1362
AC_MSG_ERROR ( [ No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui --enable-bench or --enable-tests] )
1347
1363
fi
1348
1364
0 commit comments