build: don't require glib 2.58 for g_canonicalize_file

GLib version is probably still a bit too new, so simply lift the
function needed.

Fixes: #1712.
This commit is contained in:
Dirk-Jan C. Binnema
2020-05-28 00:37:29 +03:00
parent 9192fd71a0
commit 0a49cead33
4 changed files with 154 additions and 2 deletions

View File

@ -138,7 +138,7 @@ AS_IF([test -z "$PKG_CONFIG"],
)
# glib2?
PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.38 gobject-2.0 gio-2.0)
PKG_CHECK_MODULES(GLIB,glib-2.0 >= 2.50 gobject-2.0 gio-2.0)
glib_version="$($PKG_CONFIG --modversion glib-2.0)"
# gmime, version 3.0 or higher