Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
[EMAIL PROTECTED] writes: > Ick! If anything, pkg-config should use libtool. I don't think libtool > should *depend* on pkg-config at all. Libtool might be enhanced to > help pkg-config get at certain data but I hope it does no more than > that. That said, *.la files are already easy to parse.

Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
Alexandre Oliva <[EMAIL PROTECTED]> writes: > > You wouldn't. This is totally out of the scope of libtool. Libtool > is about linking with libraries, not compiling source files so that > they can be linked with them. Not that it couldn't be extended so as > to record user-directed flags at th

Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
Alexandre Oliva <[EMAIL PROTECTED]> writes: > On Apr 22, 2001, Havoc Pennington <[EMAIL PROTECTED]> wrote: > > > pkg-config has some intelligence, i.e. if you request two libs at once > > it will nuke duplicate flags and order the -l flags properly. > > Err... It won't always remove duplicate

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
Martijn van Beers wrote: > On Sun, Apr 22, 2001 at 07:34:42AM -0300, Alexandre Oliva wrote: > > On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > > > >> Currently, they just install their .pc file into pkg-config's data directory. > > Which is exactly the wrong approach. A package shoul

Re: Problems with test -L on Solaris

2001-04-22 Thread Albert Chin-A-Young
On Sun, Apr 22, 2001 at 01:19:03PM +0200, Peter Eisentraut wrote: > Albert Chin-A-Young writes: > > > Because of this, the following code snippet in ltmain.in will always > > fail (and thus 'make uninstall' will always fail on Solaris): > > # Don't error if the file doesn't exist and rm -f was

Re: Making hardcode.test more robust [patch against HEAD]

2001-04-22 Thread libtool
On Sun, Apr 22, 2001 at 07:54:30AM -0300, Alexandre Oliva wrote: > On Apr 22, 2001, [EMAIL PROTECTED] wrote: > > > Patch below to override the fgrep test for IRIX 6.x, Solaris 2.x, > > and Tru64 UNIX 4.x, 5.x. > > It should at least retain the original behavior on other platforms. > And you shou

Re: Problems with test -L on Solaris

2001-04-22 Thread Peter Eisentraut
Albert Chin-A-Young writes: > > Try changing the code to look like this: > > > > if test -L "$file" >/dev/null 2>&1 || test -h "$file" >/dev/null 2>&1 || test >-f "$file"; then > > Well, examine the following: > $ /bin/sh > $ test -X "/etc/passwd" || echo foo > test: argument expected

Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
Eric Lemings <[EMAIL PROTECTED]> writes: > > Well I for one was unaware of the PKG_CONFIG_PATH variable. If that is true > however, how are client packages supposed to know where their .pc files are > supposed to be installed if this variable can be changed? Right now, I think most > assume th

Re: libtool-1.4

2001-04-22 Thread Gary V . Vaughan
Hi Chris, On Saturday 21 April 2001 10:28 pm, Christoph Pfisterer wrote: > I ran the test suite on Mac OS X 10.0.1, a.k.a. Darwin 1.3, host type > powerpc-apple-darwin1.3, with automake 1.4, autoconf 2.13, Apple cc > (based on gcc 2.95.2), Apple ld (_not_ based on gld). Thanks! > It failed 8 of

Re: Fix: Interlibrary dependencies SCO Uw7

2001-04-22 Thread Gary V . Vaughan
On Saturday 21 April 2001 9:36 pm, Matthew Schalit wrote: > Hi Gary, I gave your patch a try and it didn't work correctly in the > end, which was odd. I looked at configure, and the patch was corrupted. > The square brackets were missing: My bad. Since libtool.m4 is processed by m4, one level

Re: Missing header on Uw7

2001-04-22 Thread Gary V . Vaughan
On Saturday 21 April 2001 10:02 pm, Matthew Schalit wrote: > The only other thing I noticed was this section in libltdl/configure: > --- > echo "$as_me:7795: checking whether deplibs are loaded by dlopen" >&5 > echo $ECHO_N "c

Re: libtool-1.4

2001-04-22 Thread Gary V . Vaughan
On Saturday 21 April 2001 11:20 pm, Peter Eisentraut wrote: > Gary V. Vaughan writes: > > Failing major disasters, or the discovery of a showstopper, there are > > less than 18 hours to go before the release of libtool-1.4 from CVS HEAD. > > I think that's going to be a problem for you: > > libtoo

Re: libtool-1.4

2001-04-22 Thread Gary V . Vaughan
On Saturday 21 April 2001 11:20 pm, Peter Eisentraut wrote: > > I'm not sure whether the compilation error is valid, but this system has > a pretty pedantic C99 compiler. Here's a patch: > > 2001-04-21 Peter Eisentraut <[EMAIL PROTECTED]> > > * libltdl/ltdl.c (trim): Don't inline. Unixwa

libtool-1.4 release

2001-04-22 Thread Gary V . Vaughan
On Saturday 21 April 2001 6:12 pm, I wrote: > Failing major disasters, or the discovery of a showstopper, there are less > than 18 hours to go before the release of libtool-1.4 from CVS HEAD. I think that the problem several hosts are having with quote.test are a showstopper -- particularly wit

Re: Problems with test -L on Solaris

2001-04-22 Thread libtool
On Sun, Apr 22, 2001 at 08:05:38PM +0200, Peter Eisentraut wrote: > Albert Chin-A-Young writes: > > > > Try changing the code to look like this: > > > > > > if test -L "$file" >/dev/null 2>&1 || test -h "$file" >/dev/null 2>&1 || >test -f "$file"; then > > > > Well, examine the following: >

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
Eric Lemings wrote: > What I do know though is that a few (if not several) packages are already using > pkg-config. So if libtool is extended with that functionality, it should be > compatible with the current behavior of pkg-config. This means that libtool > would first look for the .pc files

Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
Alexandre Oliva <[EMAIL PROTECTED]> writes: > On Apr 21, 2001, Havoc Pennington <[EMAIL PROTECTED]> wrote: > > > This would also help handle -R on Solaris and stuff like that. > > If it could handle a list of packages at once, yes, it would probably > help on other systems such as DU too. But

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
[EMAIL PROTECTED] wrote: > On Sun, Apr 22, 2001 at 01:29:23AM -0600, Eric Lemings wrote: > > > I was thinking that if the data maintained by pkg-config could somehow be > > added to the .la files and libtool could keep track (a registry perhaps) of > > installed .la files, that would just about c

Re: Libtool and Pkg-Config

2001-04-22 Thread libtool
On Sun, Apr 22, 2001 at 01:29:23AM -0600, Eric Lemings wrote: > Alexandre Oliva wrote: > > I could do it with the current scheme, and tweaking PATH > > is all it takes for me to choose which one a certain package will > > find. I don't see how you'd accomplish that with a single pkg-config. > >

Re: Libtool and Pkg-Config

2001-04-22 Thread Havoc Pennington
Alexandre Oliva <[EMAIL PROTECTED]> writes: > On Apr 21, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > > > 2.0 spawned a separate tool called pkg-config that allows all packages > > to use one tool rather than several different scripts to query compile > > flags, link flags, and other configur

Making hardcode.test more robust [patch against HEAD]

2001-04-22 Thread libtool
The fgrep of .libs in the executable to detect if .libs was hardcoded is very weak. Methinks a much better approach is to dump the .dynamic section of the executable and look at RPATH (or equivalent). Patch below to override the fgrep test for IRIX 6.x, Solaris 2.x, and Tru64 UNIX 4.x, 5.x. -- a

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
Alexandre Oliva wrote: > On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > > > It works the same more or less. New Autoconf macros that use pkg-config > > look for it in the current path and it looks for data on installed > > libraries in its data directory. > > And how are packages goi

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
Havoc Pennington wrote: I think for libtool it's as simple as having a concept of a "package" in addition to a concept of a library, so we can pass "gtk+-2.0" to libtool instead of "-L/home/hp/unst/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXext -lgdk_pixbuf-1.3 -lm -lpangox -lX11 -lpango

Problems with test -L on Solaris

2001-04-22 Thread Albert Chin-A-Young
While running 'make check' on the 1.4 branch for Solaris, the *-unst tests were failing. Does anyone know if 'test -L' is portable? Solaris /bin/sh doesn't like it: $ uname -a SunOS gax 5.8 Generic_108528-02 sun4u sparc SUNW,Ultra-2 $ /bin/sh $ /usr/bin/test -L /tmp/foo $ test -L /tmp/fo

Re: Libtool and Pkg-Config

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > It works the same more or less. New Autoconf macros that use pkg-config > look for it in the current path and it looks for data on installed > libraries in its data directory. And how are packages going to register their own data into p

Re: Libtool and Pkg-Config

2001-04-22 Thread Eric Lemings
Alexandre Oliva wrote: > On Apr 21, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > > > 2.0 spawned a separate tool called pkg-config that allows all packages > > to use one tool rather than several different scripts to query compile > > flags, link flags, and other configuration data. > > What I

Re: libtool-1.4

2001-04-22 Thread Nick Hudson
"Gary V. Vaughan" wrote: > > Hi everyone, > $ ./configure > ... > > Configuring libtool 1.3e (1.900 2001/04/20 20:55:18) > > ... > checking host system type... i686-pc-linux-gnu This is an

Re: Libtool and Pkg-Config

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > Currently, they just install their .pc file into pkg-config's data directory. Which is exactly the wrong approach. A package should never, ever install anything outside the --prefix/--exec-prefix/--*dir specified by the user. Having st

Re: Libtool and Pkg-Config

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, Havoc Pennington <[EMAIL PROTECTED]> wrote: > There's a PKG_CONFIG_PATH that controls where pkg-config looks for the > data files. So now you don't actually have to do PATH, just > PKG_CONFIG_PATH. Phew! Good :-) -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.

Re: Libtool and Pkg-Config

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, Havoc Pennington <[EMAIL PROTECTED]> wrote: > pkg-config has some intelligence, i.e. if you request two libs at once > it will nuke duplicate flags and order the -l flags properly. Err... It won't always remove duplicate -l flags, will it? This isn't always correct. > Also, i

Re: Libtool and Pkg-Config

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > Exactly. So how would you get the compiler flags into libtool? You wouldn't. This is totally out of the scope of libtool. Libtool is about linking with libraries, not compiling source files so that they can be linked with them. Not t

Re: Making hardcode.test more robust [patch against HEAD]

2001-04-22 Thread Alexandre Oliva
On Apr 22, 2001, [EMAIL PROTECTED] wrote: > Patch below to override the fgrep test for IRIX 6.x, Solaris 2.x, > and Tru64 UNIX 4.x, 5.x. It should at least retain the original behavior on other platforms. And you shouldn't assume host == build, which you seem to do by invoking host-specific prog

Re: Libtool and Pkg-Config

2001-04-22 Thread Martijn van Beers
On Sun, Apr 22, 2001 at 07:34:42AM -0300, Alexandre Oliva wrote: > On Apr 22, 2001, Eric Lemings <[EMAIL PROTECTED]> wrote: > >> Currently, they just install their .pc file into pkg-config's data directory. > Which is exactly the wrong approach. A package should never, ever > install anything ou

Re: Problems with test -L on Solaris

2001-04-22 Thread Peter Eisentraut
Albert Chin-A-Young writes: > Because of this, the following code snippet in ltmain.in will always > fail (and thus 'make uninstall' will always fail on Solaris): > # Don't error if the file doesn't exist and rm -f was used. > if test -L "$file" >/dev/null 2>&1 || test -f "$file"; then >