gplugin/gplugin

Fix plugin search with GLib 2.69.

2021-07-30, Elliott Sales de Andrade
fd4bb8956d03
Fix plugin search with GLib 2.69.

Named groups in `GRegex` with GLib 2.69 appear to return empty, not `NULL` strings, so handle that when running version comparison.

This is actually what GLib documents should happen, but I guess didn't work right before.

Testing Done:
Compiled and ran tests on Fedora Rawhide with GLib 2.69.

Reviewed at https://reviews.imfreedom.org/r/856/
summary('tcc', get_option('tcc'), section : 'Loader Support', bool_yn : true)
if get_option('tcc')
GPLUGIN_TCC_SOURCES = [
'gplugin-tcc-core.c',
'gplugin-tcc-loader.c',
'gplugin-tcc-plugin.c',
]
GPLUGIN_TCC_HEADERS = [
'gplugin-tcc-loader.h',
'gplugin-tcc-plugin.h',
]
if not compiler.has_header('libtcc.h')
error('libtcc.h not found')
endif
TCC = compiler.find_library('tcc')
gplugin_tcc = shared_library('gplugin-tcc',
GPLUGIN_TCC_SOURCES,
GPLUGIN_TCC_HEADERS,
name_prefix : '',
dependencies : [TCC, gplugin_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'
)
endif # tcc
subdir('tests')