From: <mar...@bt...> - 2002-11-18 08:07:13
|
A flag to disable the checks would be a great idea. At the moment, if you wish to compile GLib and pkg-config on Windows with MinGW, you need the dlls/headers to begin with. This to me is seems a little "chicken and egg" way of doing it. I can appreciate that pkg-config is required because of the .pc file ...etc but it isn't actually required as part of the make. Perhaps the whole process could be done by: - making GLib --disable-pkg-config-checks - making pkgconfig - making GLib This way... the second build of GLib has pkgconfig built and the .pc file could be installed. Thoughts? Regards, Martyn > -----Original Message----- > From: Owen Taylor [mailto:ot...@re...] > Sent: 15 November 2002 23:17 > To: Tor Lillqvist > Cc: mar...@bt...; min...@li...; > gtk...@gn... > Subject: Re: [Mingw-users] glib and pkg-config build on win2k > > > > Tor Lillqvist <tm...@ik...> writes: > > > mar...@bt... writes: > > > Tell me, why does the configure script for glib require > pkg-config? > > > > Umm, good catch. GLib's configure script checks for pkg-config being > > present, but then doesn't ask pkg-config for anything. I was > > flabbergasted. > > > > But then I realized the reasoning is that GLib wants to install it's > > own .pc file, and requires a pkg-config installation so > that there is > > somewhere to install it. > > > > > If glib was able to be build without pkg-config, you > would then avoid the > > > pkg-config depending on glib and visa versa malarkey. > > > > Indeed. IMHO GLib should not check for pkg-config being > present, there > > isn't any harm in installing its .pc file in > $libdir/pkgconfig even if > > there is no pkg-config installed on the machine. (Of course, the .pc > > file is useless then, until pkg-config gets installed, but so what.) > > The reasoning is that pkg-config is the *only* approved way of > using GLib. There is no way to know what compilation flags to > use for GLib without using pkg-config. > > Plus, we need to be able to do version checks on pkg-config. > > Is the concern wanting to use the system glib to compile pkg-config > on Windows? Maybe we need a --disable-pkg-config-checks configure > option. > > Regards, > Owen > |