[102] in Athena User Interface
gtk-config hack does work right
daemon@ATHENA.MIT.EDU (Richard Tibbetts)
Sat Jun 3 15:01:33 2000
Message-Id: <200006031901.PAA27416@hikari-no-ken.mit.edu>
To: testers@MIT.EDU
cc: aui@MIT.EDU
Date: Sat, 03 Jun 2000 15:01:21 -0400
From: Richard Tibbetts <tibbetts@MIT.EDU>
(CC'd to aui since the aui build uses the same hacks and has the same
problems)
From /usr/athena/bin/gtk-config:
glib_libs="-L/.srvd/usr/athena/lib -lgmodule -lglib -ldl"
glib_cflags="-I/.srvd/usr/athena/lib/glib/include -I/.srvd/usr/athena/include"
This file is autogenerated. It seems that at build time gtk calls
glib-config to find out its libs and cflags, and then hardcodes those
values into gtk-config. This is bad, because the build system want
different values at build time from the values after install.
I might suggest patching gtk-config.in to change
glib_libs="@glib_libs@"
glib_clags="@glib_cflags@"
to
glib_libs=`glib-config --libs gmodule glib`
glib_cflags=`glib-config --cflags gmodule glib`
Possibly this patch should be at a higher level. This might even be
considered a bug in the automake macro AM_PATH_GLIB.
tibbetts
-*- http://www.mit.edu/~tibbetts -*- finger tibbetts@monk.mit.edu -*-