Skip to content

Commit e531e34

Browse files
committed
build: fix configuring with --without-experimental-kernel-lib
Fixes #25994.
1 parent 604015a commit e531e34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

configure.ac

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,11 +1695,12 @@ AM_CONDITIONAL([BUILD_BITCOIN_UTIL], [test $build_bitcoin_util = "yes"])
16951695
AC_MSG_RESULT($build_bitcoin_util)
16961696

16971697
AC_MSG_CHECKING([whether to build experimental bitcoin-chainstate])
1698-
if test "$build_experimental_kernel_lib" = "no"; then
1699-
AC_MSG_ERROR([experimental bitcoin-chainstate cannot be built without the experimental bitcoinkernel library. Use --with-experimental-kernel-lib]);
1700-
else
1701-
AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"])
1698+
if test "$build_bitcoin_chainstate" = "yes"; then
1699+
if test "$build_experimental_kernel_lib" = "no"; then
1700+
AC_MSG_ERROR([experimental bitcoin-chainstate cannot be built without the experimental bitcoinkernel library. Use --with-experimental-kernel-lib]);
1701+
fi
17021702
fi
1703+
AM_CONDITIONAL([BUILD_BITCOIN_CHAINSTATE], [test $build_bitcoin_chainstate = "yes"])
17031704
AC_MSG_RESULT($build_bitcoin_chainstate)
17041705

17051706
AC_MSG_CHECKING([whether to build libraries])

0 commit comments

Comments
 (0)