@@ -36,9 +36,9 @@ dnl Output: $1 is set to the path of $2 if found. $2 are searched in order.
36
36
AC_DEFUN ( [ BITCOIN_QT_PATH_PROGS] ,[
37
37
BITCOIN_QT_CHECK([
38
38
if test "x$3 " != x; then
39
- AC_PATH_PROGS ( $1 , $2 ,, $3 )
39
+ AC_PATH_PROGS ( [ $1 ] , [ $2 ] , [ ] , [ $3 ] )
40
40
else
41
- AC_PATH_PROGS ( $1 , $2 )
41
+ AC_PATH_PROGS ( [ $1 ] , [ $2 ] )
42
42
fi
43
43
if test "x$$1 " = x && test "x$4 " != xyes; then
44
44
BITCOIN_QT_FAIL([ $1 not found] )
@@ -139,29 +139,29 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
139
139
140
140
if test "x$TARGET_OS" != xandroid; then
141
141
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QMinimalIntegrationPlugin] , [ -lqminimal] )
142
- AC_DEFINE ( QT_QPA_PLATFORM_MINIMAL , 1 , [ Define this symbol if the minimal qt platform exists] )
142
+ AC_DEFINE ( [ QT_QPA_PLATFORM_MINIMAL] , [ 1 ] , [ Define this symbol if the minimal qt platform exists] )
143
143
fi
144
144
if test "x$TARGET_OS" = xwindows; then
145
145
dnl Linking against wtsapi32 is required. See #17749 and
146
146
dnl https://bugreports.qt.io/browse/QTBUG-27097.
147
147
AX_CHECK_LINK_FLAG ( [ -lwtsapi32] , [ QT_LIBS="$QT_LIBS -lwtsapi32"] , [ AC_MSG_ERROR ( [ could not link against -lwtsapi32] ) ] )
148
148
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QWindowsIntegrationPlugin] , [ -lqwindows] )
149
149
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QWindowsVistaStylePlugin] , [ -lqwindowsvistastyle] )
150
- AC_DEFINE ( QT_QPA_PLATFORM_WINDOWS , 1 , [ Define this symbol if the qt platform is windows] )
150
+ AC_DEFINE ( [ QT_QPA_PLATFORM_WINDOWS] , [ 1 ] , [ Define this symbol if the qt platform is windows] )
151
151
elif test "x$TARGET_OS" = xlinux; then
152
152
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QXcbIntegrationPlugin] , [ -lqxcb] )
153
- AC_DEFINE ( QT_QPA_PLATFORM_XCB , 1 , [ Define this symbol if the qt platform is xcb] )
153
+ AC_DEFINE ( [ QT_QPA_PLATFORM_XCB] , [ 1 ] , [ Define this symbol if the qt platform is xcb] )
154
154
elif test "x$TARGET_OS" = xdarwin; then
155
- AX_CHECK_LINK_FLAG ( [ [ -framework Carbon] ] , [ QT_LIBS="$QT_LIBS -framework Carbon"] ,[ AC_MSG_ERROR ( could not link against Carbon framework ) ] )
156
- AX_CHECK_LINK_FLAG ( [ [ -framework IOSurface] ] , [ QT_LIBS="$QT_LIBS -framework IOSurface"] ,[ AC_MSG_ERROR ( could not link against IOSurface framework ) ] )
157
- AX_CHECK_LINK_FLAG ( [ [ -framework Metal] ] , [ QT_LIBS="$QT_LIBS -framework Metal"] ,[ AC_MSG_ERROR ( could not link against Metal framework ) ] )
158
- AX_CHECK_LINK_FLAG ( [ [ -framework QuartzCore] ] , [ QT_LIBS="$QT_LIBS -framework QuartzCore"] ,[ AC_MSG_ERROR ( could not link against QuartzCore framework ) ] )
155
+ AX_CHECK_LINK_FLAG ( [ -framework Carbon] , [ QT_LIBS="$QT_LIBS -framework Carbon"] , [ AC_MSG_ERROR ( could not link against Carbon framework ) ] )
156
+ AX_CHECK_LINK_FLAG ( [ -framework IOSurface] , [ QT_LIBS="$QT_LIBS -framework IOSurface"] , [ AC_MSG_ERROR ( could not link against IOSurface framework ) ] )
157
+ AX_CHECK_LINK_FLAG ( [ -framework Metal] , [ QT_LIBS="$QT_LIBS -framework Metal"] , [ AC_MSG_ERROR ( could not link against Metal framework ) ] )
158
+ AX_CHECK_LINK_FLAG ( [ -framework QuartzCore] , [ QT_LIBS="$QT_LIBS -framework QuartzCore"] , [ AC_MSG_ERROR ( could not link against QuartzCore framework ) ] )
159
159
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QCocoaIntegrationPlugin] , [ -lqcocoa] )
160
160
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QMacStylePlugin] , [ -lqmacstyle] )
161
- AC_DEFINE ( QT_QPA_PLATFORM_COCOA , 1 , [ Define this symbol if the qt platform is cocoa] )
161
+ AC_DEFINE ( [ QT_QPA_PLATFORM_COCOA] , [ 1 ] , [ Define this symbol if the qt platform is cocoa] )
162
162
elif test "x$TARGET_OS" = xandroid; then
163
163
QT_LIBS="-Wl,--export-dynamic,--undefined=JNI_OnLoad -lplugins_platforms_qtforandroid${qt_lib_suffix} -ljnigraphics -landroid -lqtfreetype${qt_lib_suffix} $QT_LIBS"
164
- AC_DEFINE ( QT_QPA_PLATFORM_ANDROID , 1 , [ Define this symbol if the qt platform is android] )
164
+ AC_DEFINE ( [ QT_QPA_PLATFORM_ANDROID] , [ 1 ] , [ Define this symbol if the qt platform is android] )
165
165
fi
166
166
fi
167
167
CPPFLAGS=$TEMP_CPPFLAGS
@@ -174,7 +174,7 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
174
174
175
175
if test "x$use_hardening" != xno; then
176
176
BITCOIN_QT_CHECK([
177
- AC_MSG_CHECKING ( whether - fPIE can be used with this Qt config )
177
+ AC_MSG_CHECKING ( [ whether -fPIE can be used with this Qt config] )
178
178
TEMP_CPPFLAGS=$CPPFLAGS
179
179
TEMP_CXXFLAGS=$CXXFLAGS
180
180
CPPFLAGS="$QT_INCLUDES $CORE_CPPFLAGS $CPPFLAGS"
@@ -190,15 +190,15 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
190
190
choke
191
191
#endif
192
192
] ] ) ] ,
193
- [ AC_MSG_RESULT ( yes ) ; QT_PIE_FLAGS=$PIE_FLAGS ] ,
194
- [ AC_MSG_RESULT ( no ) ; QT_PIE_FLAGS=$PIC_FLAGS]
193
+ [ AC_MSG_RESULT ( [ yes] ) ; QT_PIE_FLAGS=$PIE_FLAGS ] ,
194
+ [ AC_MSG_RESULT ( [ no ] ) ; QT_PIE_FLAGS=$PIC_FLAGS]
195
195
)
196
196
CPPFLAGS=$TEMP_CPPFLAGS
197
197
CXXFLAGS=$TEMP_CXXFLAGS
198
198
] )
199
199
else
200
200
BITCOIN_QT_CHECK([
201
- AC_MSG_CHECKING ( whether - fPIC is needed with this Qt config )
201
+ AC_MSG_CHECKING ( [ whether -fPIC is needed with this Qt config] )
202
202
TEMP_CPPFLAGS=$CPPFLAGS
203
203
CPPFLAGS="$QT_INCLUDES $CORE_CPPFLAGS $CPPFLAGS"
204
204
AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
@@ -212,8 +212,8 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
212
212
choke
213
213
#endif
214
214
] ] ) ] ,
215
- [ AC_MSG_RESULT ( no ) ] ,
216
- [ AC_MSG_RESULT ( yes ) ; QT_PIE_FLAGS=$PIC_FLAGS]
215
+ [ AC_MSG_RESULT ( [ no ] ) ] ,
216
+ [ AC_MSG_RESULT ( [ yes] ) ; QT_PIE_FLAGS=$PIC_FLAGS]
217
217
)
218
218
CPPFLAGS=$TEMP_CPPFLAGS
219
219
] )
@@ -247,12 +247,12 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
247
247
BITCOIN_QT_CHECK([
248
248
MOC_DEFS="${MOC_DEFS} -DQ_OS_MAC"
249
249
base_frameworks="-framework Foundation -framework AppKit"
250
- AX_CHECK_LINK_FLAG ( [ [ $base_frameworks] ] , [ QT_LIBS="$QT_LIBS $base_frameworks"] ,[ AC_MSG_ERROR ( could not find base frameworks ) ] )
250
+ AX_CHECK_LINK_FLAG ( [ $base_frameworks] , [ QT_LIBS="$QT_LIBS $base_frameworks"] , [ AC_MSG_ERROR ( could not find base frameworks ) ] )
251
251
] )
252
252
;;
253
253
*mingw*)
254
254
BITCOIN_QT_CHECK([
255
- AX_CHECK_LINK_FLAG ( [ [ -mwindows] ] , [ QT_LDFLAGS="$QT_LDFLAGS -mwindows"] ,[ AC_MSG_WARN ( - mwindows linker support not detected ) ] )
255
+ AX_CHECK_LINK_FLAG ( [ -mwindows] , [ QT_LDFLAGS="$QT_LDFLAGS -mwindows"] , [ AC_MSG_WARN ( [ -mwindows linker support not detected] ) ] )
256
256
] )
257
257
esac
258
258
0 commit comments