On 07/28/2009 01:28 PM, Erik van Pienbroek wrote: > by /usr/share/aclocal/glib-2.0.m4 / glib2-devel) isn't cross-compile > aware. It provides an option called --disable-glibtest to disable the > runtime tests, but it isn't activated when a cross-compile is requested.
AM_PATH_GLIB_2_0 supports cross-compilation. It uses PKG_PROG_PKG_CONFIG (so it will find i686-pc-mingw32-pkg-config correctly). And for a *real* cross-compile it works even if you don't pass --disable-glibtest: the AC_RUN_IFELSE does have a cross-compilation case that assumes everything tests okay. The root cause (I wouldn't say the root problem; you can construe it as a bug or a feature) is that cross_compiling=no when using Wine. Regarding the usage of touch, that's bug 513824. Actually, on reading the code of AM_PATH_GLIB_2_0, I'm actually not sure whether the lack of "touch" is important as long as the rest of the test program runs okay (which means as long as it finds pkg-config correctly, on which we agreed). > The best place to get this fixed would be in glib2 itself, not here. Sure. But we'd have to deal with legacy packages not updating their autoconf macros literally for years, and with dead packages not being released anymore and keeping the old macros. > It looks like X-Chat is just one of the > few programs which has been using the AM_PATH_GLIB_2_0 macro. The GIMP is another one, and the Google code searches I gave have thousands of results. As I said, AM_PATH_GLIB_2_0 does have some advantages over PKG_CHECK_MODULES. If it didn't, the glib maintainers could have removed the --enable-glibtest code altogether. Paolo _______________________________________________ fedora-mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
