> Looks like some systems prefer gio-unix-2.0 instead of gio-2.0.
It is not that some systems prefer it, but that some software requires it. For example, audio-recorder requires gio/gdesktopappinfo.h header, which is provided by gio-unix-2.0.
Apparently it works on some systems without explicitly declaring the dependency because GTK sometimes adds `-I.../include/gio-unix-2.0` to Cflags but that should not be relied on.
Regarding the options, 1) would not work since glib-unix.h header from glib-2.0 package is completely different thing from gio-unix-2.0 package. 2) is closer, it would need to be changed to correct package name (gio-unix instead of glib-unix) and the variables would need to be added to the correct Makefile.in files.
> Looks like some systems prefer gio-unix-2.0 instead of gio-2.0.
It is not that some systems prefer it, but that some software requires it. For example, audio-recorder requires gio/gdesktopapp info.h header, which is provided by gio-unix-2.0.
Apparently it works on some systems without explicitly declaring the dependency because GTK sometimes adds `-I.../ include/ gio-unix- 2.0` to Cflags but that should not be relied on.
Regarding the options, 1) would not work since glib-unix.h header from glib-2.0 package is completely different thing from gio-unix-2.0 package. 2) is closer, it would need to be changed to correct package name (gio-unix instead of glib-unix) and the variables would need to be added to the correct Makefile.in files.