Does this solve the problem of building CVS gimp-1-2 on a Unix system without glib-2.0.m4 and pkg.m4? Add at the start of configure.in this line: builtin(include, accompat.m4)dnl and add the file accompat.m4: ## Portability defines that help when running aclocal+autoconf without ## glib-2.0.m4 and pkg.m4 which are required when building on Win32. ifdef([AM_GLIB_GNU_GETTEXT],[],[ define([AM_GLIB_GNU_GETTEXT], [# This code is in the Win32 branch of an if statement. # If you get here, you are building for Win32 but # don't have the glib-2.0.m4 file from GLib-1.3.10 or later # properly installed. echo "You don't have glib-2.0.m4 properly installed" >&2 exit 1 ]) ]) ifdef([PKG_CHECK_MODULES],[],[ define([PKG_CHECK_MODULES], [# This code is in the Win32 branch of an if statement. # If you get here, you are building for Win32 but # don't have the pkg.m4 file from pkg-config # properly installed. echo "You don't have pkg.m4 properly installed" >&2 exit 1 ]) ]) No, it's not my idea, I noticed that GLib uses a similar trick. (But one thing I don't understand is how it could work if your m4 isn't GNU m4. Other m4s don't have the 'builtin' macro, do they? autoconf doesn't require GNU m4, does it? Or does autoconf provide an own 'builtin' macro if necessary?) --tml