While configuring with a non-supported version of QT libraries, configure should exit with an error.
Environment:
0$ git log --oneline -1
19e7dc68 Merge [#15616](/bitcoin-bitcoin/15616/): rpc: Clarify decodescript RPCResult doc
2$ ls /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2
3/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2
4$ /usr/lib/x86_64-linux-gnu/qt5/bin/moc --version
5moc 5.3.2
6$ uname -srv
7Linux 4.9.0-0.bpo.7-amd64 [#1](/bitcoin-bitcoin/1/) SMP Debian 4.9.110-3+deb9u2~deb8u1 (2018-08-14)
Steps to replicate:
0$ ./autogen.sh
1$ ./configure --with-incompatible-bdb >/dev/null 2>/dev/null && echo OK
2OK
Expected behavior: configure should exit with an error due to version of QT libraries not supported.
Details:
0$ ./configure --with-incompatible-bdb | grep -i qt
1configure: WARNING: Found Berkeley DB other than 4.8; wallets opened by this build will not be portable!
2checking for QT5... yes
3checking for QT_TEST... yes
4checking for QT_DBUS... yes
5checking for static Qt... no
6checking whether -fPIE can be used with this Qt config... no
7checking for moc-qt5... no
8checking for moc... /usr/lib/x86_64-linux-gnu/qt5/bin/moc
9checking for uic-qt5... no
10checking for uic... /usr/lib/x86_64-linux-gnu/qt5/bin/uic
11checking for rcc-qt5... no
12checking for rcc... /usr/lib/x86_64-linux-gnu/qt5/bin/rcc
13checking for lrelease-qt5... no
14checking for lrelease... /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease
15checking for lupdate-qt5... no
16checking for lupdate... /usr/lib/x86_64-linux-gnu/qt5/bin/lupdate
17checking whether to build Bitcoin Core GUI... yes (Qt5)
18configure: WARNING: libzmq version 4.x or greater not found, disabling
19checking whether to build test_bitcoin-qt... yes
20config.status: creating share/qt/Info.plist
21 with gui / qt = yes