@@ -116,24 +116,6 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
116116 if test "x$bitcoin_cv_static_qt" = xyes; then
117117 _BITCOIN_QT_FIND_STATIC_PLUGINS
118118 AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
119- AC_CACHE_CHECK ( for Qt < 5.4 , bitcoin_cv_need_acc_widget ,[
120- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
121- #include <QtCore/qconfig.h>
122- #ifndef QT_VERSION
123- # include <QtCore/qglobal.h>
124- #endif
125- ] ] ,
126- [ [
127- #if QT_VERSION >= 0x050400
128- choke
129- #endif
130- ] ] ) ] ,
131- [ bitcoin_cv_need_acc_widget=yes] ,
132- [ bitcoin_cv_need_acc_widget=no] )
133- ] )
134- if test "x$bitcoin_cv_need_acc_widget" = xyes; then
135- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(AccessibleFactory)] , [ -lqtaccessiblewidgets] )
136- fi
137119 _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)] ,[ -lqminimal] )
138120 AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
139121 if test "x$TARGET_OS" = xwindows; then
@@ -264,7 +246,7 @@ dnl All macros below are internal and should _not_ be used from the main
264246dnl configure.ac.
265247dnl ----
266248
267- dnl Internal. Check if the included version of Qt is Qt5.
249+ dnl Internal. Check included version of Qt against minimum specified in doc/dependencies.md
268250dnl Requires: INCLUDES must be populated as necessary.
269251dnl Output: bitcoin_cv_qt5=yes|no
270252AC_DEFUN ( [ _BITCOIN_QT_CHECK_QT5] ,[
@@ -276,7 +258,7 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
276258 #endif
277259 ] ] ,
278260 [ [
279- #if QT_VERSION < 0x050200 || QT_VERSION_MAJOR < 5
261+ #if QT_VERSION < 0x050501
280262 choke
281263 #endif
282264 ] ] ) ] ,
@@ -374,9 +356,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
374356 fi
375357 if test "x$TARGET_OS" = xlinux; then
376358 PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
377- if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
378- PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
379- fi
359+ PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
380360 elif test "x$TARGET_OS" = xdarwin; then
381361 PKG_CHECK_MODULES([ QTCLIPBOARD] , [ Qt5ClipboardSupport] , [ QT_LIBS="-lQt5ClipboardSupport $QT_LIBS"] )
382362 PKG_CHECK_MODULES([ QTGRAPHICS] , [ Qt5GraphicsSupport] , [ QT_LIBS="-lQt5GraphicsSupport $QT_LIBS"] )
@@ -527,4 +507,3 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
527507 CXXFLAGS="$TEMP_CXXFLAGS"
528508 LIBS="$TEMP_LIBS"
529509] )
530-
0 commit comments