@@ -2,9 +2,9 @@ AC_PREREQ([2.69])
22define(_CLIENT_VERSION_MAJOR, 3)
33define(_CLIENT_VERSION_MINOR, 4)
44define(_CLIENT_VERSION_REVISION, 0)
5- define(_CLIENT_VERSION_BUILD, 1 )
5+ define(_CLIENT_VERSION_BUILD, 4 )
66define(_CLIENT_VERSION_RC, 0)
7- define(_CLIENT_VERSION_IS_RELEASE, true )
7+ define(_CLIENT_VERSION_IS_RELEASE, false )
88define(_COPYRIGHT_YEAR, 2023)
99define(_COPYRIGHT_HOLDERS,[The %s developers])
1010define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[SCC Core]])
@@ -246,25 +246,11 @@ AC_ARG_WITH([system-univalue],
246246 [system_univalue=$withval],
247247 [system_univalue=no]
248248)
249-
250- AC_ARG_WITH([openssl],
251- [AS_HELP_STRING([--with-openssl],
252- [enable openssl (default is yes if OpenSSL is found)])],
253- [use_openssl=$withval],
254- [use_openssl=yes])
255-
256249AC_ARG_ENABLE([zmq],
257250 [AS_HELP_STRING([--disable-zmq],
258251 [disable ZMQ notifications])],
259252 [use_zmq=$enableval],
260253 [use_zmq=yes])
261- AC_ARG_ENABLE([bip70],
262- [AS_HELP_STRING([--disable-bip70],
263- [disable BIP70 (payment protocol) support in GUI (enabled by default)])],
264- [enable_bip70=$enableval],
265- [enable_bip70=auto])
266-
267- AC_ARG_WITH([protoc-bindir],[AS_HELP_STRING([--with-protoc-bindir=BIN_DIR],[specify protoc bin path])], [protoc_bin_path=$withval], [])
268254
269255AC_ARG_ENABLE(man,
270256 [AS_HELP_STRING([--disable-man],
@@ -692,16 +678,8 @@ case $host in
692678 dnl Homebrew where each one is located, then adjust paths accordingly.
693679 dnl It's safe to add these paths even if the functionality is disabled by
694680 dnl the user (--without-wallet or --without-gui for example).
695-
696681 bdb_prefix=`$BREW --prefix berkeley-db4 2>/dev/null`
697682 qt5_prefix=`$BREW --prefix qt5 2>/dev/null`
698- if test x$use_openssl != xno; then
699- openssl_prefix=`$BREW --prefix openssl 2>/dev/null`
700- if test x$openssl_prefix != x; then
701- PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
702- export PKG_CONFIG_PATH
703- fi
704- fi
705683 if test x$bdb_prefix != x; then
706684 CPPFLAGS="$CPPFLAGS -I$bdb_prefix/include"
707685 LIBS="$LIBS -L$bdb_prefix/lib"
@@ -929,7 +907,7 @@ if test x$TARGET_OS = xdarwin; then
929907 AX_CHECK_LINK_FLAG([[-Wl,-bind_at_load]], [HARDENED_LDFLAGS="$HARDENED_LDFLAGS -Wl,-bind_at_load"])
930908fi
931909
932- AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h])
910+ AC_CHECK_HEADERS([endian.h sys/endian.h byteswap.h stdio.h stdlib.h unistd.h strings.h sys/types.h sys/stat.h sys/select.h sys/prctl.h sys/sysctl.h vm/vm_param.h sys/vmmeter.h sys/resources.h ])
933911
934912# FD_ZERO may be dependent on a declaration of memcpy, e.g. in SmartOS
935913# check that it fails to build without memcpy, then that it builds with
@@ -1105,6 +1083,18 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
11051083 [ AC_MSG_RESULT(no)]
11061084)
11071085
1086+ AC_MSG_CHECKING(for sysctl)
1087+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
1088+ #include <sys/sysctl.h>]],
1089+ [[ static const int name[2] = {CTL_KERN, KERN_VERSION};
1090+ #ifdef __linux__
1091+ #error "Don't use sysctl on Linux, it's deprecated even when it works"
1092+ #endif
1093+ sysctl(name, 2, nullptr, nullptr, nullptr, 0); ]])],
1094+ [ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYSCTL, 1,[Define this symbol if the BSD sysctl() is available]) ],
1095+ [ AC_MSG_RESULT(no)]
1096+ )
1097+
11081098AC_MSG_CHECKING(for sysctl KERN_ARND)
11091099AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
11101100 #include <sys/sysctl.h>]],
@@ -1239,7 +1229,6 @@ if test "x$enable_fuzz" = "xyes"; then
12391229 bitcoin_enable_qt_dbus=no
12401230 enable_wallet=no
12411231 use_bench=no
1242- use_openssl=no
12431232 use_upnp=no
12441233 use_natpmp=no
12451234 use_zmq=no
@@ -1435,13 +1424,6 @@ if test x$use_pkgconfig = xyes; then
14351424 m4_ifdef(
14361425 [PKG_CHECK_MODULES],
14371426 [
1438- if test x$use_openssl != xno; then
1439- PKG_CHECK_MODULES([SSL], [libssl],, [use_openssl=no])
1440- PKG_CHECK_MODULES([CRYPTO], [libcrypto],, [use_openssl=no])
1441- fi
1442- if test x$enable_bip70 != xno; then
1443- BITCOIN_QT_CHECK([PKG_CHECK_MODULES([PROTOBUF], [protobuf], [have_protobuf=yes], [have_protobuf=no])])
1444- fi
14451427 if test x$use_qr != xno; then
14461428 BITCOIN_QT_CHECK([PKG_CHECK_MODULES([QR], [libqrencode], [have_qrencode=yes], [have_qrencode=no])])
14471429 fi
@@ -1464,13 +1446,6 @@ if test x$use_pkgconfig = xyes; then
14641446 ]
14651447 )
14661448else
1467- if test x$use_openssl != xno; then
1468- AC_CHECK_HEADER([openssl/crypto.h],,[use_openssl=no])
1469- AC_CHECK_LIB([crypto], [main],CRYPTO_LIBS=-lcrypto, [use_openssl=no])
1470-
1471- AC_CHECK_HEADER([openssl/ssl.h],, [use_openssl=no])
1472- AC_CHECK_LIB([ssl], [main],SSL_LIBS=-lssl, [use_openssl=no])
1473- fi
14741449
14751450 if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests != xnononono; then
14761451 AC_CHECK_HEADER([event2/event.h],, AC_MSG_ERROR(libevent headers missing),)
@@ -1503,22 +1478,12 @@ else
15031478 esac
15041479 fi
15051480
1506- if test x$enable_bip70 != xno; then
1507- BITCOIN_QT_CHECK(AC_CHECK_LIB([protobuf] ,[main],[PROTOBUF_LIBS=-lprotobuf], [have_protobuf=no]))
1508- fi
15091481 if test x$use_qr != xno; then
15101482 BITCOIN_QT_CHECK([AC_CHECK_LIB([qrencode], [main],[QR_LIBS=-lqrencode], [have_qrencode=no])])
15111483 BITCOIN_QT_CHECK([AC_CHECK_HEADER([qrencode.h],, have_qrencode=no)])
15121484 fi
15131485fi
15141486
1515- save_CXXFLAGS="${CXXFLAGS}"
1516- CXXFLAGS="${CXXFLAGS} ${CRYPTO_CFLAGS} ${SSL_CFLAGS}"
1517- AC_CHECK_DECLS([EVP_MD_CTX_new],,,[AC_INCLUDES_DEFAULT
1518- #include <openssl/x509_vfy.h>
1519- ])
1520- CXXFLAGS="${save_CXXFLAGS}"
1521-
15221487dnl univalue check
15231488
15241489need_bundled_univalue=yes
@@ -1574,12 +1539,6 @@ AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
15741539AC_SUBST(UNIVALUE_CFLAGS)
15751540AC_SUBST(UNIVALUE_LIBS)
15761541
1577-
1578- if test x$have_protobuf != xno &&
1579- test x$enable_bip70 != xno; then
1580- BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path)
1581- fi
1582-
15831542AC_MSG_CHECKING([whether to build sccd])
15841543AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
15851544AC_MSG_RESULT($build_bitcoind)
@@ -1728,33 +1687,6 @@ if test x$bitcoin_enable_qt != xno; then
17281687 else
17291688 AC_MSG_RESULT([no])
17301689 fi
1731-
1732- AC_MSG_CHECKING([whether to build BIP70 support])
1733- if test x$have_protobuf = xno; then
1734- if test x$enable_bip70 = xyes; then
1735- AC_MSG_ERROR(protobuf missing)
1736- fi
1737- enable_bip70=no
1738- AC_MSG_RESULT(no)
1739- elif test x$use_openssl = xno; then
1740- if test x$enable_bip70 = xyes; then
1741- AC_MSG_ERROR(OpenSSL missing)
1742- fi
1743- enable_bip70=no
1744- AC_MSG_RESULT(no)
1745- else
1746- if test x$enable_bip70 != xno; then
1747- AC_DEFINE([ENABLE_BIP70],[1],[Define if BIP70 support should be compiled in])
1748- enable_bip70=yes
1749- AC_MSG_RESULT([yes])
1750- else
1751- AC_MSG_RESULT([no])
1752- fi
1753- fi
1754- fi
1755-
1756- if test x$use_openssl = xyes; then
1757- AC_DEFINE([USE_OPENSSL],[1],[Define to 1 to use OpenSSL])
17581690fi
17591691
17601692AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"])
@@ -1799,7 +1731,6 @@ AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes])
17991731AM_CONDITIONAL([ENABLE_FUZZ],[test x$enable_fuzz = xyes])
18001732AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes])
18011733AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
1802- AM_CONDITIONAL([ENABLE_BIP70],[test x$enable_bip70 = xyes])
18031734AM_CONDITIONAL([ENABLE_BENCH],[test x$use_bench = xyes])
18041735AM_CONDITIONAL([USE_QRCODE], [test x$use_qr = xyes])
18051736AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
@@ -1867,15 +1798,12 @@ AC_SUBST(BOOST_LIBS)
18671798AC_SUBST(TESTDEFS)
18681799AC_SUBST(MINIUPNPC_CPPFLAGS)
18691800AC_SUBST(MINIUPNPC_LIBS)
1870- AC_SUBST(CRYPTO_LIBS)
1871- AC_SUBST(SSL_LIBS)
18721801AC_SUBST(GMP_LIBS)
18731802AC_SUBST(NATPMP_CPPFLAGS)
18741803AC_SUBST(NATPMP_LIBS)
18751804AC_SUBST(EVENT_LIBS)
18761805AC_SUBST(EVENT_PTHREADS_LIBS)
18771806AC_SUBST(ZMQ_LIBS)
1878- AC_SUBST(PROTOBUF_LIBS)
18791807AC_SUBST(QR_LIBS)
18801808AC_SUBST(DSYMUTIL_FLAT)
18811809AC_SUBST(HAVE_FDATASYNC)
@@ -1939,10 +1867,8 @@ echo "Options used to compile and link:"
19391867echo " with wallet = $enable_wallet"
19401868echo " with gui / qt = $bitcoin_enable_qt"
19411869if test x$bitcoin_enable_qt != xno; then
1942- echo " with bip70 = $enable_bip70"
19431870 echo " with qr = $use_qr"
19441871fi
1945- echo " with openssl = $use_openssl"
19461872echo " with zmq = $use_zmq"
19471873echo " with test = $use_tests"
19481874echo " with bench = $use_bench"
0 commit comments