RSS/Atom feed Twitter
Site is read-only, email is disabled

dependancies

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

dependancies Tor Lillqvist 07 Jun 10:34
  dependancies Sven Neumann 07 Jun 13:57
  dependancies Nathan Carl Summers 08 Jun 00:26
Tor Lillqvist
2002-06-07 10:34:42 UTC (almost 22 years ago)

dependancies

Philip Brown writes:

so far, you seem to have described a situation that implies that autoconf can work without pkgconfig, but pkgconfig isnt that useful without autoconf.

Sure it is, it can be used in simple hand-written Makefiles, or even directly from the command line.

You did not mention, however, why pkgconfig was suddenly added to gimp1.3.7, when it was not neccessary for gimp1.2.x

Because it's there (even on Win32), it would be stupid not to use it.

However, using pkg-config makes the configure.in files *less* complex.)

really?

Yes.

Your comparisons of configure.in sizes between GIMP 1.2.3 and 1.3.7 is unfair, because there are obviously lots of other changes in there, too.

--tml

Sven Neumann
2002-06-07 13:57:41 UTC (almost 22 years ago)

dependancies

Hi,

Tor Lillqvist writes:

Your comparisons of configure.in sizes between GIMP 1.2.3 and 1.3.7 is unfair, because there are obviously lots of other changes in there, too.

the difference in size is mostly due to the fact that we the configure script in the 1.2 tarballs was generated using autoconf-2.13 while the latest gimp-1.3 tarballs include a configure script generated from autoconf-2.52.

The slightly larger configure.in in the 1.3 tree is mostly caused by the fact that I've lately added a lot of comments to improve its readability.

Salut, Sven

Nathan Carl Summers
2002-06-08 00:26:00 UTC (almost 22 years ago)

dependancies

On Fri, 7 Jun 2002, Tor Lillqvist wrote:

Philip Brown writes:

You did not mention, however, why pkgconfig was suddenly added to gimp1.3.7, when it was not neccessary for gimp1.2.x

Because it's there (even on Win32), it would be stupid not to use it.

It also is required for gtk 2.0.

However, using pkg-config makes the configure.in files *less* complex.)

really?

Yes.

Before pkg-config, lots of different libraries had scripts that did the exact same thing (and most of the time shared about 99% of the code in common.) The purpose of these scripts was just to tell autoconf which arguments were needed to use a library (locations, etc.) It made sense to combine all of these foo-configs into one unified program.

Before that, compiling a big program like gimp was a nightmare if you had libraries installed in any location other than /usr/lib. Autoconf only looks for libraries in a couple of locations and then gives up, unless you explicitly tell it where the libraries are. So you would have to do something horrible like:
./configure --with-libfoo=/home/notroot/lib --with-libbar=/home/notroot/lib --with-libbaz=/home/notroot/lib

a tiresome, annoying, and error-prone process, especially if many libraries were involved. But the same thing with pkg-config (asumming all of the libraries are pkg-configized) is just

PKG_CONFIG_PATH=/home/notroot/pkgconfig ./configure

much much much better.

We have tried very hard to make gimp easy to compile for people in somewhat unusual conditions, and pkg-config helps this immensely.

Rockwalrus