@@ -53,8 +53,8 @@ dnl CAUTION: Do not use this inside of a conditional.
53
53
AC_DEFUN ( [ BITCOIN_QT_INIT] ,[
54
54
dnl enable qt support
55
55
AC_ARG_WITH ( [ gui] ,
56
- [ AS_HELP_STRING ( [ --with-gui@<:@ =no|qt4| qt5|auto@:>@ ] ,
57
- [ build bitcoin-qt GUI (default=auto, qt5 tried first )] ) ] ,
56
+ [ AS_HELP_STRING ( [ --with-gui@<:@ =no|qt5|auto@:>@ ] ,
57
+ [ build bitcoin-qt GUI (default=auto)] ) ] ,
58
58
[
59
59
bitcoin_qt_want_version=$withval
60
60
if test "x$bitcoin_qt_want_version" = xyes; then
@@ -94,82 +94,66 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
94
94
fi
95
95
96
96
if test "x$use_pkgconfig" = xyes; then
97
- BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG( [ $2 ] ) ] )
97
+ BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG] )
98
98
else
99
99
BITCOIN_QT_CHECK([ _BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG] )
100
100
fi
101
101
102
102
dnl This is ugly and complicated. Yuck. Works as follows:
103
- dnl We can't discern whether Qt4 builds are static or not. For Qt5, we can
104
- dnl check a header to find out. When Qt is built statically, some plugins must
105
- dnl be linked into the final binary as well. These plugins have changed between
106
- dnl Qt4 and Qt5. With Qt5, languages moved into core and the WindowsIntegration
107
- dnl plugin was added. Since we can't tell if Qt4 is static or not, it is
108
- dnl assumed for windows builds.
103
+ dnl For Qt5, we can check a header to find out whether Qt is build
104
+ dnl statically. When Qt is built statically, some plugins must be linked into
105
+ dnl the final binary as well.
106
+ dnl With Qt5, languages moved into core and the WindowsIntegration plugin was
107
+ dnl added.
109
108
dnl _BITCOIN_QT_CHECK_STATIC_PLUGINS does a quick link-check and appends the
110
109
dnl results to QT_LIBS.
111
110
BITCOIN_QT_CHECK([
112
111
TEMP_CPPFLAGS=$CPPFLAGS
113
112
TEMP_CXXFLAGS=$CXXFLAGS
114
113
CPPFLAGS="$QT_INCLUDES $CPPFLAGS"
115
114
CXXFLAGS="$PIC_FLAGS $CXXFLAGS"
116
- if test "x$bitcoin_qt_got_major_vers" = x5; then
117
- _BITCOIN_QT_IS_STATIC
118
- if test "x$bitcoin_cv_static_qt" = xyes; then
119
- _BITCOIN_QT_FIND_STATIC_PLUGINS
120
- AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
121
- AC_CACHE_CHECK ( for Qt < 5.4 , bitcoin_cv_need_acc_widget ,[
122
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
123
- #include <QtCore/qconfig.h>
124
- #ifndef QT_VERSION
125
- # include <QtCore/qglobal.h>
126
- #endif
127
- ] ] ,
128
- [ [
129
- #if QT_VERSION >= 0x050400
130
- choke
131
- #endif
132
- ] ] ) ] ,
133
- [ bitcoin_cv_need_acc_widget=yes] ,
134
- [ bitcoin_cv_need_acc_widget=no] )
135
- ] )
136
- if test "x$bitcoin_cv_need_acc_widget" = xyes; then
137
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(AccessibleFactory)] , [ -lqtaccessiblewidgets] )
138
- fi
139
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)] ,[ -lqminimal] )
140
- AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
141
- if test "x$TARGET_OS" = xwindows; then
142
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)] ,[ -lqwindows] )
143
- AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
144
- elif test "x$TARGET_OS" = xlinux; then
145
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)] ,[ -lqxcb -lxcb-static] )
146
- AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
147
- elif test "x$TARGET_OS" = xdarwin; then
148
- AX_CHECK_LINK_FLAG ( [ [ -framework IOKit] ] ,[ QT_LIBS="$QT_LIBS -framework IOKit"] ,[ AC_MSG_ERROR ( could not iokit framework ) ] )
149
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)] ,[ -lqcocoa] )
150
- AC_DEFINE ( QT_QPA_PLATFORM_COCOA , 1 , [ Define this symbol if the qt platform is cocoa] )
151
- fi
115
+ _BITCOIN_QT_IS_STATIC
116
+ if test "x$bitcoin_cv_static_qt" = xyes; then
117
+ _BITCOIN_QT_FIND_STATIC_PLUGINS
118
+ 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] )
152
136
fi
153
- else
137
+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QMinimalIntegrationPlugin)] ,[ -lqminimal] )
138
+ AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
154
139
if test "x$TARGET_OS" = xwindows; then
155
- AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
156
- _BITCOIN_QT_CHECK_STATIC_PLUGINS([
157
- Q_IMPORT_PLUGIN(qcncodecs)
158
- Q_IMPORT_PLUGIN(qjpcodecs)
159
- Q_IMPORT_PLUGIN(qtwcodecs)
160
- Q_IMPORT_PLUGIN(qkrcodecs)
161
- Q_IMPORT_PLUGIN(AccessibleFactory)] ,
162
- [ -lqcncodecs -lqjpcodecs -lqtwcodecs -lqkrcodecs -lqtaccessiblewidgets] )
140
+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)] ,[ -lqwindows] )
141
+ AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
142
+ elif test "x$TARGET_OS" = xlinux; then
143
+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)] ,[ -lqxcb -lxcb-static] )
144
+ AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
145
+ elif test "x$TARGET_OS" = xdarwin; then
146
+ AX_CHECK_LINK_FLAG ( [ [ -framework IOKit] ] ,[ QT_LIBS="$QT_LIBS -framework IOKit"] ,[ AC_MSG_ERROR ( could not iokit framework ) ] )
147
+ _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)] ,[ -lqcocoa] )
148
+ AC_DEFINE ( QT_QPA_PLATFORM_COCOA , 1 , [ Define this symbol if the qt platform is cocoa] )
163
149
fi
164
150
fi
165
151
CPPFLAGS=$TEMP_CPPFLAGS
166
152
CXXFLAGS=$TEMP_CXXFLAGS
167
153
] )
168
154
169
155
if test "x$use_pkgconfig$qt_bin_path" = xyes; then
170
- if test "x$bitcoin_qt_got_major_vers" = x5; then
171
- qt_bin_path="`$PKG_CONFIG --variable=host_bins Qt5Core 2>/dev/null`"
172
- fi
156
+ qt_bin_path="`$PKG_CONFIG --variable=host_bins Qt5Core 2>/dev/null`"
173
157
fi
174
158
175
159
if test "x$use_hardening" != xno; then
@@ -219,11 +203,11 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
219
203
] )
220
204
fi
221
205
222
- BITCOIN_QT_PATH_PROGS([ MOC] , [ moc-qt${bitcoin_qt_got_major_vers} moc${bitcoin_qt_got_major_vers} moc] , $qt_bin_path)
223
- BITCOIN_QT_PATH_PROGS([ UIC] , [ uic-qt${bitcoin_qt_got_major_vers} uic${bitcoin_qt_got_major_vers} uic] , $qt_bin_path)
224
- BITCOIN_QT_PATH_PROGS([ RCC] , [ rcc-qt${bitcoin_qt_got_major_vers} rcc${bitcoin_qt_got_major_vers} rcc] , $qt_bin_path)
225
- BITCOIN_QT_PATH_PROGS([ LRELEASE] , [ lrelease-qt${bitcoin_qt_got_major_vers} lrelease${bitcoin_qt_got_major_vers} lrelease] , $qt_bin_path)
226
- BITCOIN_QT_PATH_PROGS([ LUPDATE] , [ lupdate-qt${bitcoin_qt_got_major_vers} lupdate${bitcoin_qt_got_major_vers} lupdate] ,$qt_bin_path, yes)
206
+ BITCOIN_QT_PATH_PROGS([ MOC] , [ moc-qt5 moc5 moc] , $qt_bin_path)
207
+ BITCOIN_QT_PATH_PROGS([ UIC] , [ uic-qt5 uic5 uic] , $qt_bin_path)
208
+ BITCOIN_QT_PATH_PROGS([ RCC] , [ rcc-qt5 rcc5 rcc] , $qt_bin_path)
209
+ BITCOIN_QT_PATH_PROGS([ LRELEASE] , [ lrelease-qt5 lrelease5 lrelease] , $qt_bin_path)
210
+ BITCOIN_QT_PATH_PROGS([ LUPDATE] , [ lupdate-qt5 lupdate5 lupdate] ,$qt_bin_path, yes)
227
211
228
212
MOC_DEFS='-DHAVE_CONFIG_H -I$(srcdir)'
229
213
case $host in
@@ -262,7 +246,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
262
246
] ,[
263
247
bitcoin_enable_qt=no
264
248
] )
265
- AC_MSG_RESULT ( [ $bitcoin_enable_qt (Qt${bitcoin_qt_got_major_vers} )] )
249
+ AC_MSG_RESULT ( [ $bitcoin_enable_qt (Qt5 )] )
266
250
267
251
AC_SUBST ( QT_PIE_FLAGS )
268
252
AC_SUBST ( QT_INCLUDES )
@@ -272,7 +256,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
272
256
AC_SUBST ( QT_DBUS_LIBS )
273
257
AC_SUBST ( QT_TEST_INCLUDES )
274
258
AC_SUBST ( QT_TEST_LIBS )
275
- AC_SUBST ( QT_SELECT , qt${bitcoin_qt_got_major_vers} )
259
+ AC_SUBST ( QT_SELECT , qt5 )
276
260
AC_SUBST ( MOC_DEFS )
277
261
] )
278
262
@@ -301,7 +285,7 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
301
285
] ) ] )
302
286
303
287
dnl Internal. Check if the linked version of Qt was built as static libs.
304
- dnl Requires: Qt5. This check cannot determine if Qt4 is static.
288
+ dnl Requires: Qt5.
305
289
dnl Requires: INCLUDES and LIBS must be populated as necessary.
306
290
dnl Output: bitcoin_cv_static_qt=yes|no
307
291
dnl Output: Defines QT_STATICPLUGIN if plugins are static.
@@ -346,58 +330,50 @@ AC_DEFUN([_BITCOIN_QT_CHECK_STATIC_PLUGINS],[
346
330
] )
347
331
348
332
dnl Internal. Find paths necessary for linking qt static plugins
349
- dnl Inputs: bitcoin_qt_got_major_vers. 4 or 5.
350
333
dnl Inputs: qt_plugin_path. optional.
351
334
dnl Outputs: QT_LIBS is appended
352
335
AC_DEFUN ( [ _BITCOIN_QT_FIND_STATIC_PLUGINS] ,[
353
- if test "x$bitcoin_qt_got_major_vers" = x5; then
354
- if test "x$qt_plugin_path" != x; then
355
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
356
- if test -d "$qt_plugin_path/accessible"; then
357
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
358
- fi
336
+ if test "x$qt_plugin_path" != x; then
337
+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
338
+ if test -d "$qt_plugin_path/accessible"; then
339
+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
359
340
fi
360
- if test "x$use_pkgconfig" = xyes; then
361
- : dnl
362
- m4_ifdef ( [ PKG_CHECK_MODULES] ,[
363
- PKG_CHECK_MODULES([ QTPLATFORM] , [ Qt5PlatformSupport] , [ QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"] )
364
- if test "x$TARGET_OS" = xlinux; then
365
- PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
366
- if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
367
- PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
368
- fi
369
- elif test "x$TARGET_OS" = xdarwin; then
370
- PKG_CHECK_MODULES([ QTPRINT] , [ Qt5PrintSupport] , [ QT_LIBS="$QTPRINT_LIBS $QT_LIBS"] )
341
+ fi
342
+ if test "x$use_pkgconfig" = xyes; then
343
+ : dnl
344
+ m4_ifdef ( [ PKG_CHECK_MODULES] ,[
345
+ PKG_CHECK_MODULES([ QTPLATFORM] , [ Qt5PlatformSupport] , [ QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"] )
346
+ if test "x$TARGET_OS" = xlinux; then
347
+ PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
348
+ if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
349
+ PKG_CHECK_MODULES([ QTXCBQPA] , [ Qt5XcbQpa] , [ QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"] )
371
350
fi
372
- ] )
373
- else
374
- if test "x$TARGET_OS" = xwindows; then
375
- AC_CACHE_CHECK ( for Qt >= 5.6 , bitcoin_cv_need_platformsupport ,[
376
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
377
- #include <QtCore/qconfig.h>
378
- #ifndef QT_VERSION
379
- # include <QtCore/qglobal.h>
380
- #endif
381
- ] ] ,
382
- [ [
383
- #if QT_VERSION < 0x050600
384
- choke
385
- #endif
386
- ] ] ) ] ,
387
- [ bitcoin_cv_need_platformsupport=yes] ,
388
- [ bitcoin_cv_need_platformsupport=no] )
389
- ] )
390
- if test "x$bitcoin_cv_need_platformsupport" = xyes; then
391
- BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}PlatformSupport] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}PlatformSupport not found )) )
392
- fi
351
+ elif test "x$TARGET_OS" = xdarwin; then
352
+ PKG_CHECK_MODULES([ QTPRINT] , [ Qt5PrintSupport] , [ QT_LIBS="$QTPRINT_LIBS $QT_LIBS"] )
353
+ fi
354
+ ] )
355
+ else
356
+ if test "x$TARGET_OS" = xwindows; then
357
+ AC_CACHE_CHECK ( for Qt >= 5.6 , bitcoin_cv_need_platformsupport ,[
358
+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
359
+ #include <QtCore/qconfig.h>
360
+ #ifndef QT_VERSION
361
+ # include <QtCore/qglobal.h>
362
+ #endif
363
+ ] ] ,
364
+ [ [
365
+ #if QT_VERSION < 0x050600
366
+ choke
367
+ #endif
368
+ ] ] ) ] ,
369
+ [ bitcoin_cv_need_platformsupport=yes] ,
370
+ [ bitcoin_cv_need_platformsupport=no] )
371
+ ] )
372
+ if test "x$bitcoin_cv_need_platformsupport" = xyes; then
373
+ BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}PlatformSupport] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}PlatformSupport not found )) )
393
374
fi
394
375
fi
395
- else
396
- if test "x$qt_plugin_path" != x; then
397
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
398
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/codecs"
399
- fi
400
- fi
376
+ fi
401
377
] )
402
378
403
379
dnl Internal. Find Qt libraries using pkg-config.
@@ -406,38 +382,14 @@ dnl first.
406
382
dnl Inputs: $1 : If bitcoin_qt_want_version is "auto", check for this version
407
383
dnl first.
408
384
dnl Outputs: All necessary QT_* variables are set.
409
- dnl Outputs: bitcoin_qt_got_major_vers is set to "4" or "5".
410
385
dnl Outputs: have_qt_test and have_qt_dbus are set (if applicable) to yes|no.
411
386
AC_DEFUN ( [ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG] ,[
412
387
m4_ifdef ( [ PKG_CHECK_MODULES] ,[
413
- auto_priority_version=$1
414
- if test "x$auto_priority_version" = x; then
415
- auto_priority_version=qt5
416
- fi
417
- if test "x$bitcoin_qt_want_version" = xqt5 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt5 ); then
418
- QT_LIB_PREFIX=Qt5
419
- bitcoin_qt_got_major_vers=5
420
- else
421
- QT_LIB_PREFIX=Qt
422
- bitcoin_qt_got_major_vers=4
423
- fi
388
+ QT_LIB_PREFIX=Qt5
424
389
qt5_modules="Qt5Core Qt5Gui Qt5Network Qt5Widgets"
425
- qt4_modules="QtCore QtGui QtNetwork"
426
390
BITCOIN_QT_CHECK([
427
- if test "x$bitcoin_qt_want_version" = xqt5 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt5 ); then
428
- PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" have_qt=yes] ,[ have_qt=no] )
429
- elif test "x$bitcoin_qt_want_version" = xqt4 || ( test "x$bitcoin_qt_want_version" = xauto && test "x$auto_priority_version" = xqt4 ); then
430
- PKG_CHECK_MODULES([ QT4] , [ $qt4_modules] , [ QT_INCLUDES="$QT4_CFLAGS"; QT_LIBS="$QT4_LIBS" ; have_qt=yes] , [ have_qt=no] )
431
- fi
391
+ PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" have_qt=yes] ,[ have_qt=no] )
432
392
433
- dnl qt version is set to 'auto' and the preferred version wasn't found. Now try the other.
434
- if test "x$have_qt" = xno && test "x$bitcoin_qt_want_version" = xauto; then
435
- if test "x$auto_priority_version" = xqt5; then
436
- PKG_CHECK_MODULES([ QT4] , [ $qt4_modules] , [ QT_INCLUDES="$QT4_CFLAGS"; QT_LIBS="$QT4_LIBS" ; have_qt=yes; QT_LIB_PREFIX=Qt; bitcoin_qt_got_major_vers=4] , [ have_qt=no] )
437
- else
438
- PKG_CHECK_MODULES([ QT5] , [ $qt5_modules] , [ QT_INCLUDES="$QT5_CFLAGS"; QT_LIBS="$QT5_LIBS" ; have_qt=yes; QT_LIB_PREFIX=Qt5; bitcoin_qt_got_major_vers=5] , [ have_qt=no] )
439
- fi
440
- fi
441
393
if test "x$have_qt" != xyes; then
442
394
have_qt=no
443
395
BITCOIN_QT_FAIL([ Qt dependencies not found] )
@@ -458,7 +410,6 @@ dnl from the discovered headers.
458
410
dnl Inputs: bitcoin_qt_want_version (from --with-gui=). The version to use.
459
411
dnl If "auto", the version will be discovered by _BITCOIN_QT_CHECK_QT5.
460
412
dnl Outputs: All necessary QT_* variables are set.
461
- dnl Outputs: bitcoin_qt_got_major_vers is set to "4" or "5".
462
413
dnl Outputs: have_qt_test and have_qt_dbus are set (if applicable) to yes|no.
463
414
AC_DEFUN ( [ _BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG] ,[
464
415
TEMP_CPPFLAGS="$CPPFLAGS"
@@ -480,13 +431,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
480
431
if test "x$bitcoin_qt_want_version" = xauto; then
481
432
_BITCOIN_QT_CHECK_QT5
482
433
fi
483
- if test "x$bitcoin_cv_qt5" = xyes || test "x$bitcoin_qt_want_version" = xqt5; then
484
- QT_LIB_PREFIX=Qt5
485
- bitcoin_qt_got_major_vers=5
486
- else
487
- QT_LIB_PREFIX=Qt
488
- bitcoin_qt_got_major_vers=4
489
- fi
434
+ QT_LIB_PREFIX=Qt5
490
435
] )
491
436
492
437
BITCOIN_QT_CHECK([
@@ -508,9 +453,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
508
453
BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Core] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Core not found )) )
509
454
BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Gui] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Gui not found )) )
510
455
BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Network] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Network not found )) )
511
- if test "x$bitcoin_qt_got_major_vers" = x5; then
512
- BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Widgets] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Widgets not found )) )
513
- fi
456
+ BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Widgets] ,[ main] ,,BITCOIN_QT_FAIL ( lib${QT_LIB_PREFIX}Widgets not found )) )
514
457
QT_LIBS="$LIBS"
515
458
LIBS="$TEMP_LIBS"
516
459
0 commit comments