glib/m4macros
Simon McVittie 54cbc9bccf m4macros: Fix detection of glib-2.0 alone
We unconditionally appended ">= $min_glib_version" to the modules to
look for, even though we had already included
"glib-2.0 >= $min_glib_version" in our list. When requesting additional
modules, this was fine, for example

    AM_PATH_GLIB_2_0([2.58], [:], [:], [gobject gio])

ended up asking pkg-config for

    glib-2.0 >= 2.58 gobject-2.0 gio-2.0 >= 2.58

which is redundant (since they all share a version number) but
otherwise OK.

However,

    AM_PATH_GLIB_2_0([2.58], [:], [:], [])

ended up asking pkg-config for

    glib-2.0 >= 2.58 >= 2.58

which is not OK; the second ">=" was parsed as a bizarrely-named package
to check for, and obviously few people have ">=.pc" installed.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Fixes: 4bb16f48 "m4macros: Allow information from pkg-config to be overridden"
2018-10-11 12:50:21 +01:00
..
.gitignore Improve .gitignore 2011-03-31 15:51:01 +05:30
attributes.m4 configure: Enable set of standard -Werror=foo flags 2012-11-02 09:03:52 -04:00
glib-2.0.m4 m4macros: Fix detection of glib-2.0 alone 2018-10-11 12:50:21 +01:00
glib-gettext.m4 build: Add #serial lines to m4 files 2017-10-26 12:26:14 +01:00
glibtests.m4 build: Add #serial lines to m4 files 2017-10-26 12:26:14 +01:00
gsettings.m4 m4macros: Allow information from pkg-config to be overridden 2018-10-04 20:47:29 +01:00
Makefile.am Revert "Use upstream gettext instead the glib one" 2016-01-10 22:44:24 +00:00