@@ -84,7 +84,7 @@ dnl Outputs: bitcoin_enable_qt, bitcoin_enable_qt_dbus, bitcoin_enable_qt_test
8484AC_DEFUN ( [ BITCOIN_QT_CONFIGURE] ,[
8585 use_pkgconfig=$1
8686
87- if test x$use_pkgconfig == x; then
87+ if test x$use_pkgconfig = x; then
8888 use_pkgconfig=yes
8989 fi
9090
@@ -106,9 +106,9 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
106106 BITCOIN_QT_CHECK([
107107 TEMP_CPPFLAGS=$CPPFLAGS
108108 CPPFLAGS=$QT_INCLUDES
109- if test x$bitcoin_qt_got_major_vers == x5; then
109+ if test x$bitcoin_qt_got_major_vers = x5; then
110110 _BITCOIN_QT_IS_STATIC
111- if test x$bitcoin_cv_static_qt == xyes; then
111+ if test x$bitcoin_cv_static_qt = xyes; then
112112 AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
113113 if test x$qt_plugin_path != x; then
114114 QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
@@ -118,14 +118,14 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
118118 PKG_CHECK_MODULES([ QTPLATFORM] , [ Qt5PlatformSupport] , [ QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"] )
119119 fi
120120 _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(AccessibleFactory)] , [ -lqtaccessiblewidgets] )
121- if test x$TARGET_OS == xwindows; then
121+ if test x$TARGET_OS = xwindows; then
122122 _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)] ,[ -lqwindows] )
123123 AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
124- elif test x$TARGET_OS == xlinux; then
124+ elif test x$TARGET_OS = xlinux; then
125125 PKG_CHECK_MODULES([ X11XCB] , [ x11-xcb] , [ QT_LIBS="$X11XCB_LIBS $QT_LIBS"] )
126126 _BITCOIN_QT_CHECK_STATIC_PLUGINS([ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)] ,[ -lqxcb -lxcb-static] )
127127 AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
128- elif test x$TARGET_OS == xdarwin; then
128+ elif test x$TARGET_OS = xdarwin; then
129129 if test x$use_pkgconfig = xyes; then
130130 PKG_CHECK_MODULES([ QTPRINT] , [ Qt5PrintSupport] , [ QT_LIBS="$QTPRINT_LIBS $QT_LIBS"] )
131131 fi
@@ -135,7 +135,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
135135 fi
136136 fi
137137 else
138- if test x$TARGET_OS == xwindows; then
138+ if test x$TARGET_OS = xwindows; then
139139 AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
140140 if test x$qt_plugin_path != x; then
141141 QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
@@ -196,7 +196,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
196196 if test x$use_dbus = xyes && test x$have_qt_dbus = xno; then
197197 AC_MSG_ERROR ( "libQtDBus not found. Install libQtDBus or remove -- with-qtdbus." )
198198 fi
199- if test x$LUPDATE == x; then
199+ if test x$LUPDATE = x; then
200200 AC_MSG_WARN ( "lupdate is required to update qt translations" )
201201 fi
202202 ] ,[
@@ -291,10 +291,10 @@ dnl Outputs: have_qt_test and have_qt_dbus are set (if applicable) to yes|no.
291291AC_DEFUN ( [ _BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG] ,[
292292 m4_ifdef ( [ PKG_CHECK_MODULES] ,[
293293 auto_priority_version=$1
294- if test x$auto_priority_version == x; then
294+ if test x$auto_priority_version = x; then
295295 auto_priority_version=qt5
296296 fi
297- if test x$bitcoin_qt_want_version == xqt5 || ( test x$bitcoin_qt_want_version == xauto && test x$auto_priority_version = = xqt5 ); then
297+ if test x$bitcoin_qt_want_version = xqt5 || ( test x$bitcoin_qt_want_version = xauto && test x$auto_priority_version = xqt5 ); then
298298 QT_LIB_PREFIX=Qt5
299299 bitcoin_qt_got_major_vers=5
300300 else
@@ -304,14 +304,14 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITH_PKGCONFIG],[
304304 qt5_modules="Qt5Core Qt5Gui Qt5Network Qt5Widgets"
305305 qt4_modules="QtCore QtGui QtNetwork"
306306 BITCOIN_QT_CHECK([
307- if test x$bitcoin_qt_want_version == xqt5 || ( test x$bitcoin_qt_want_version == xauto && test x$auto_priority_version = = xqt5 ); then
307+ if test x$bitcoin_qt_want_version = xqt5 || ( test x$bitcoin_qt_want_version = xauto && test x$auto_priority_version = xqt5 ); then
308308 PKG_CHECK_MODULES([ QT] , [ $qt5_modules] , [ QT_INCLUDES="$QT_CFLAGS"; have_qt=yes] ,[ have_qt=no] )
309- elif test x$bitcoin_qt_want_version == xqt4 || ( test x$bitcoin_qt_want_version == xauto && test x$auto_priority_version = = xqt4 ); then
309+ elif test x$bitcoin_qt_want_version = xqt4 || ( test x$bitcoin_qt_want_version = xauto && test x$auto_priority_version = xqt4 ); then
310310 PKG_CHECK_MODULES([ QT] , [ $qt4_modules] , [ QT_INCLUDES="$QT_CFLAGS"; have_qt=yes] , [ have_qt=no] )
311311 fi
312312
313313 dnl qt version is set to 'auto' and the preferred version wasn't found. Now try the other.
314- if test x$have_qt == xno && test x$bitcoin_qt_want_version = = xauto; then
314+ if test x$have_qt = xno && test x$bitcoin_qt_want_version = xauto; then
315315 if test x$auto_priority_version = x$qt5; then
316316 PKG_CHECK_MODULES([ QT] , [ $qt4_modules] , [ QT_INCLUDES="$QT_CFLAGS"; have_qt=yes; QT_LIB_PREFIX=Qt; bitcoin_qt_got_major_vers=4] , [ have_qt=no] )
317317 else
@@ -358,7 +358,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
358358 if test x$bitcoin_qt_want_version = xauto; then
359359 _BITCOIN_QT_CHECK_QT5
360360 fi
361- if test x$bitcoin_cv_qt5 == xyes || test x$bitcoin_qt_want_version = xqt5; then
361+ if test x$bitcoin_cv_qt5 = xyes || test x$bitcoin_qt_want_version = xqt5; then
362362 QT_LIB_PREFIX=Qt5
363363 bitcoin_qt_got_major_vers=5
364364 else
@@ -373,7 +373,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
373373 LIBS="$LIBS -L$qt_lib_path"
374374 fi
375375
376- if test x$TARGET_OS == xwindows; then
376+ if test x$TARGET_OS = xwindows; then
377377 AC_CHECK_LIB ( [ imm32] , [ main] ,, BITCOIN_QT_FAIL ( libimm32 not found ))
378378 fi
379379 ] )
@@ -385,7 +385,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
385385 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Core] ,[ main] ,,BITCOIN_QT_FAIL ( lib$QT_LIB_PREFIXCore not found )) )
386386 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Gui] ,[ main] ,,BITCOIN_QT_FAIL ( lib$QT_LIB_PREFIXGui not found )) )
387387 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Network] ,[ main] ,,BITCOIN_QT_FAIL ( lib$QT_LIB_PREFIXNetwork not found )) )
388- if test x$bitcoin_qt_got_major_vers == x5; then
388+ if test x$bitcoin_qt_got_major_vers = x5; then
389389 BITCOIN_QT_CHECK(AC_CHECK_LIB ( [ ${QT_LIB_PREFIX}Widgets] ,[ main] ,,BITCOIN_QT_FAIL ( lib$QT_LIB_PREFIXWidgets not found )) )
390390 fi
391391 QT_LIBS="$LIBS"
0 commit comments