199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
|
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
|
# Default is GTK3 version of BaConGUI
if test "$GTK3" = true -o "$GTK4" = false -a "$TK" = false -a "$FLTK" = false -a "$LEGACY" = false; then
AC_CHECK_PROG(PKG_CONFIG, pkg-config, found, missing)
if test "$PKG_CONFIG" = missing; then
GTK3="false"
else
AC_MSG_CHECKING(if GTK3 and supporting GtkSourceView4 libraries are installed)
GTK3=`pkg-config --silence-errors --libs gtk+-3.0`
SRC3=`pkg-config --silence-errors --libs gtksourceview-4`
if test -z "$GTK3" -o -z "$SRC3"; then
AC_MSG_RESULT(not found)
GTK3="false"
AC_MSG_CHECKING(if GTK3 developer files are installed)
GTK3=`pkg-config --silence-errors --cflags gtk+-3.0`
if test -n "$GTK3"; then
AC_MSG_RESULT(found)
AC_MSG_CHECKING(if GtkSourceView4 developer files are installed)
SRC3=`pkg-config --silence-errors --cflags gtksourceview-4`
if test -n "$SRC3"; then
AC_MSG_RESULT(found)
GTK3="true"
else
AC_MSG_RESULT(not found - skipping BaConGUI for GTK3)
GTK3="false"
fi
else
AC_MSG_RESULT(found)
GTK3="true"
AC_MSG_RESULT(not found - skipping BaConGUI for GTK3)
GTK3="false"
fi
fi
fi
# No GTK3 found? Then verify presence of GTK4 library
if test "$GTK4" = true -o "$GTK3" = false -a "$TK" = false -a "$FLTK" = false -a "$LEGACY" = false; then
AC_CHECK_PROG(PKG_CONFIG, pkg-config, found, missing)
if test "$PKG_CONFIG" = missing; then
GTK4="false"
else
AC_MSG_CHECKING(if GTK4 and supporting GtkSourceView5 libraries are installed)
GTK4=`pkg-config --silence-errors --libs gtk4`
SRC4=`pkg-config --silence-errors --libs gtksourceview-5`
if test -z "$GTK4" -o -z "$SRC4"; then
AC_MSG_RESULT(not found)
GTK4="false"
AC_MSG_CHECKING(if GTK4 developer files are installed)
GTK4=`pkg-config --silence-errors --cflags gtk4`
if test -n "$GTK4"; then
AC_MSG_RESULT(found)
AC_MSG_CHECKING(if GtkSourceView5 developer files are installed)
SRC4=`pkg-config --silence-errors --cflags gtksourceview-5`
if test -n "$SRC4"; then
AC_MSG_RESULT(found)
GTK4="true"
else
AC_MSG_RESULT(not found - skipping BaConGUI for GTK4)
GTK4="false"
fi
else
AC_MSG_RESULT(found)
GTK4="true"
AC_MSG_RESULT(not found - skipping BaConGUI for GTK4)
GTK4="false"
fi
fi
fi
# No GTK4 found? Then verify presence of TK library
if test "$TK" = true -o "$GTK3" = false -a "$GTK4" = false -a "$FLTK" = false -a "$LEGACY" = false; then
AC_CHECK_PROG(PKG_CONFIG, pkg-config, found, missing)
if test "$PKG_CONFIG" = missing; then
TK="false"
else
AC_MSG_CHECKING(if TK library is installed)
TK=`pkg-config --silence-errors --libs tk`
if test -z "$TK"; then
AC_MSG_RESULT(not found)
TK="false"
AC_MSG_CHECKING(if TK developer files are installed)
TK=`pkg-config --silence-errors --cflags tk`
if test -n "$TK"; then
AC_MSG_RESULT(found)
TK="true"
else
AC_MSG_RESULT(found)
TK="true"
AC_MSG_RESULT(not found - skipping BaConGUI for TK)
TK="false"
fi
fi
fi
# No GTK3, GTK4 nor TK found? Then verify presence of FLTK library
if test "$FLTK" = true -o "$GTK3" = false -a "$GTK4" = false -a "$TK" = false -a "$LEGACY" = false; then
AC_CHECK_PROG(FLTK_CONFIG, fltk-config, found, missing)
|
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
|
+
|
else
AC_MSG_RESULT([$FL_PATCH_VERSION])
AC_CHECK_HEADERS([FL/fl_utf8.h], [FLTK="true"], [FLTK="false"])
fi
fi
fi
else
AC_MSG_RESULT(not found - skipping BaConGUI for FLTK)
FLTK="false"
fi
fi
# No suitable toolkit? Fall back to legacy GUI
if test "$LEGACY" = true -o "$GTK3" = false -a "$GTK4" = false -a "$TK" = false -a "$FLTK" = false; then
LEGACY="true"
|