Re: AC_SEARCH_LIBS and non-cdecl calling conventions (was: pkg-config wisdom)

2009-10-27 Thread Matěj Týč
On Mon, 2009-10-26 at 21:34 +0100, Ralf Wildenhues wrote: 3) The pressing issue that Matěj complained about was when configure fails to detect all libraries, because all of them have a different calling convention. Right? The situation that I have encountered the case of cross-compilation.

AC_SEARCH_LIBS and non-cdecl calling conventions (was: pkg-config wisdom)

2009-10-26 Thread Ralf Wildenhues
* Matěj Týč wrote on Sun, Oct 25, 2009 at 03:05:26PM CET: There is one big issue with AC_SEARCH_LIBS: If you use a different calling convention than cdecl (like stdcall, but I don't know, they've just told me), you will get unresolved symbols if you try to link without a proper include file

Re: [autoconf] Re: pkg-config wisdom

2009-10-26 Thread Tim Post
On Fri, 2009-10-23 at 12:36 +0900, mpsuz...@hiroshima-u.ac.jp wrote: * Their custom built library is not used, the system's is. Indeed. It might be popular when default pkg-config prefix is differnt from the prefix that users install their own libraries. Have you experienced the troubles

Re: pkg-config wisdom

2009-10-26 Thread Tim Post
On Sun, 2009-10-25 at 11:07 -1000, William Pursell wrote: Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of

Re: pkg-config wisdom

2009-10-26 Thread Tim Post
On Mon, 2009-10-26 at 12:28 +1100, Russell Shaw wrote: William Pursell wrote: Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of

Re: pkg-config wisdom

2009-10-26 Thread John Calcote
Matěj, On 10/25/2009 8:05 AM, Matěj Týč wrote: There is one big issue with AC_SEARCH_LIBS: If you use a different calling convention than cdecl (like stdcall, but I don't know, they've just told me), you will get unresolved symbols if you try to link without a proper include file (or something

AC_SEARCH_LIBS and non-cdecl calling conventions (was: pkg-config wisdom)

2009-10-26 Thread Ralf Wildenhues
Hello, * John Calcote wrote on Mon, Oct 26, 2009 at 05:46:07PM CET: On 10/25/2009 8:05 AM, Matěj Týč wrote: There is one big issue with AC_SEARCH_LIBS: If you use a different calling convention than cdecl (like stdcall, but I don't know, they've just told me), you will get unresolved symbols

Re: pkg-config wisdom

2009-10-25 Thread Ralf Wildenhues
* Bob Friesenhahn wrote on Sat, Oct 24, 2009 at 06:33:18PM CEST: On Sat, 24 Oct 2009, Peter Johansson wrote: Is there anything conceptually stopping us from writing a new AC_LINK_IFELSE that links using libtool? That would make life easier and avoid problems that only occur in configure and

Re: pkg-config wisdom

2009-10-25 Thread William Pursell
Alfred M. Szmidt wrote: pkg-config tries to solve an important problem, but it does so in the wrong way. pkg-config checks for an exact library name, PKG_CHECK_MODULES does not check for a library name at all, but for the name of the .pc file. This gives the administrator

Re: pkg-config wisdom

2009-10-25 Thread Matěj Týč
On Thu, 2009-10-22 at 11:44 -0700, Murray S. Kucherawy wrote: What's the current general wisdom on using the pkg-config extensions? I presume there's a reason they've not been incorporated into basic autoconf, so I'm keen to learn what common practices there are toward adopting it into

Re: pkg-config wisdom

2009-10-25 Thread William Pursell
Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of libraries. It checks for the existence of a .pc file and assumes that the user (or

Re: pkg-config wisdom

2009-10-25 Thread Alfred M. Szmidt
pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of libraries. It checks for the existence of a .pc file and assumes that the user (or

Re: pkg-config wisdom

2009-10-25 Thread William Pursell
Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of libraries. It checks for the existence of a .pc file and assumes

Re: pkg-config wisdom

2009-10-25 Thread Russell Shaw
William Pursell wrote: Alfred M. Szmidt wrote: pkg-config is broken because it checks for the existance of libraries, and not for the features that are required for the program to run. It does not even check for the existence of libraries. It checks for the existence of a .pc file and

Re: pkg-config wisdom

2009-10-24 Thread Alfred M. Szmidt
And please, don't say about Linux has interlibrary dependency for shared libraries. First at all, not all libraries are shared (even under Linux). Second, Linux is not only one flavor of Unix. Linux is a kernel, the operating system you are refering to is called GNU or in conjuction

Re: pkg-config wisdom

2009-10-24 Thread Alfred M. Szmidt
pkg-config tries to solve an important problem, but it does so in the wrong way. pkg-config checks for an exact library name, PKG_CHECK_MODULES does not check for a library name at all, but for the name of the .pc file. This gives the administrator one extra level of

Re: pkg-config wisdom

2009-10-24 Thread Russell Shaw
Alfred M. Szmidt wrote: pkg-config tries to solve an important problem, but it does so in the wrong way. pkg-config checks for an exact library name, PKG_CHECK_MODULES does not check for a library name at all, but for the name of the .pc file. This gives the administrator

Re: pkg-config wisdom

2009-10-24 Thread Bob Friesenhahn
On Fri, 23 Oct 2009, John Calcote wrote: If your project uses libxml's API, then you as the maintainer should be very aware of requisite dependencies of that library. The AC_CHECK_LIB macro accepts a fifth argument, other-libraries, which is a whitespace-separated list of dependent libraries

Re: pkg-config wisdom

2009-10-24 Thread Peter Johansson
Bob Friesenhahn wrote: In this case life would be better if all libraries had a .la file and if Autoconf used libtool type functionality (e.g. consult the .la files) as part of its testing. Is there anything conceptually stopping us from writing a new AC_LINK_IFELSE that links using libtool?

Re: pkg-config wisdom

2009-10-24 Thread Bob Friesenhahn
On Sat, 24 Oct 2009, Peter Johansson wrote: Bob Friesenhahn wrote: In this case life would be better if all libraries had a .la file and if Autoconf used libtool type functionality (e.g. consult the .la files) as part of its testing. Is there anything conceptually stopping us from writing a

Re: [autoconf] Re: pkg-config wisdom

2009-10-23 Thread Bob Friesenhahn
On Fri, 23 Oct 2009, mpsuz...@hiroshima-u.ac.jp wrote: The most popular scenario I think is: the pkg-config itself is bundled to the system (/usr/bin/pkg-config etc) but the users install their own libraries to non-system directory (e.g. /usr/local/xxx), and the users slipped to set

Re: [autoconf] Re: pkg-config wisdom

2009-10-23 Thread William Pursell
Bob Friesenhahn wrote: Configure scripts which trust pkg-config include and library paths and simpy concatenate them together (often in some random order) cause big problems for users since the user has no control over the paths used. I don't understand the comment about random order. The

Re: [autoconf] Re: pkg-config wisdom

2009-10-23 Thread Bob Friesenhahn
On Fri, 23 Oct 2009, William Pursell wrote: Configure scripts which trust pkg-config include and library paths and simpy concatenate them together (often in some random order) cause big problems for users since the user has no control over the paths used. I don't understand the comment about

Re: pkg-config wisdom

2009-10-23 Thread Andrew W. Nosenko
On Fri, Oct 23, 2009 at 00:50, Alfred M. Szmidt a...@gnu.org wrote: The way is to simply not use pkg-config, and use AC_CHECK_* functions to find what is needed; and let the user specify where/what, using *FLAGS. Can I ask hard to me and seems easy to you question: how I can detect using

Re: pkg-config wisdom

2009-10-23 Thread John Calcote
Hi Andrew, On 10/23/2009 5:34 PM, Andrew W. Nosenko wrote: On Fri, Oct 23, 2009 at 00:50, Alfred M. Szmidta...@gnu.org wrote: The way is to simply not use pkg-config, and use AC_CHECK_* functions to find what is needed; and let the user specify where/what, using *FLAGS. Can I ask

Re: pkg-config wisdom

2009-10-23 Thread Ben Pfaff
John Calcote john.calc...@gmail.com writes: If your project uses libxml's API, then you as the maintainer should be very aware of requisite dependencies of that library. The AC_CHECK_LIB macro accepts a fifth argument, other-libraries, which is a whitespace-separated list of dependent

pkg-config wisdom

2009-10-22 Thread Murray S. Kucherawy
What's the current general wisdom on using the pkg-config extensions? I presume there's a reason they've not been incorporated into basic autoconf, so I'm keen to learn what common practices there are toward adopting it into people's builds (or avoiding it). Cheers, -MSK

RE: pkg-config wisdom

2009-10-22 Thread Murray S. Kucherawy
-Original Message- From: autoconf-bounces+msk=cloudmark@gnu.org [mailto:autoconf- bounces+msk=cloudmark@gnu.org] On Behalf Of Ben Pfaff Sent: Thursday, October 22, 2009 12:31 PM To: autoconf@gnu.org Subject: Re: pkg-config wisdom I imagine that pkg-config has not been

Re: pkg-config wisdom

2009-10-22 Thread Adam Mercer
On Thu, Oct 22, 2009 at 14:31, Ben Pfaff b...@cs.stanford.edu wrote: I imagine that pkg-config has not been integrated into Autoconf because it does not fit well into the Autoconf philosophy. I use pkg-config quite heavily in one of my projects, I'm just wondering is there a more autoconf way

Re: pkg-config wisdom

2009-10-22 Thread Tim Post
On Thu, 2009-10-22 at 11:44 -0700, Murray S. Kucherawy wrote: What's the current general wisdom on using the pkg-config extensions? I presume there's a reason they've not been incorporated into basic autoconf, so I'm keen to learn what common practices there are toward adopting it into

Re: [autoconf] Re: pkg-config wisdom

2009-10-22 Thread mpsuzuki
Although pkg-config is useful in some cases, I agree with others' negative evaluation against the idea to builtin pkg-config support of autoconf. I want autoconf to keep the library detection without pkg-config. On Fri, 23 Oct 2009 09:48:30 +0800 Tim Post e...@echoreply.us wrote: I have

Re: [autoconf] Re: pkg-config wisdom

2009-10-22 Thread Rhys Ulerich
The most popular scenario I think is: the pkg-config itself is bundled to the system (/usr/bin/pkg-config etc) but the users install their own libraries to non-system directory (e.g. /usr/local/xxx), and the users slipped to set PKG_CONFIG_PATH manually. Definitely very useful, especially in