After #24322, libraries, which were promoted from EXTRA_LIBRARIES to noinst_LTLIBRARIES, are built regardless whether they are actually required as dependencies.
This PR makes build system to create such libraries conditionally.
Some other improvements of configure.ac are incorporated in this PR.
A use case example:
- on master (9ba73758c908ce0c49f1bd9727ea496958e24d54)
./configure \
--disable-tests \
--disable-bench \
--without-libs \
--without-daemon \
--without-gui \
--disable-fuzz-binary \
--without-utils \
--enable-util-util
...
configure: error: No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui --enable-fuzz(-binary) --enable-bench or --enable-tests
- with this PR the
configurescript finishes successfully, and thebitcoin-utilbinary can be built.