how to let configure know include and library path for library foo?

2019-01-24 Thread Sébastien Hinderer
Dear all, When an autoconf-driven project has a dependency on library foo, what's the best / recommended way to let users specify the directories for header files and library files when configuring the project? For the XWindow system, for instance, there are the --x-includes=DIR and --x-libraries

Re: how to let configure know include and library path for library foo?

2019-01-24 Thread Peter Johansson
Hi Sebastien, On 1/24/2019 8:16 PM, Sébastien Hinderer wrote: Dear all, When an autoconf-driven project has a dependency on library foo, what's the best / recommended way to let users specify the directories for header files and library files when configuring the project? I would expect there

Re: how to let configure know include and library path for library foo?

2019-01-24 Thread Bob Friesenhahn
On Thu, 24 Jan 2019, Sébastien Hinderer wrote: I assume it's good to also provide three options for each library: one to let configure know whether it should be enabled or not, i.e. an equivalent of --with-x, and two options to specify the header and library directories. But, of course, it is no

Re: how to let configure know include and library path for library foo?

2019-01-24 Thread Sébastien Hinderer
Dear Bob, Many thanks for your response. Sure, I understand the problem you describe and it makes perfect sense to me. But then, what would be an appropriate way to deal with it, according to you? Shall one let users put their directories in CFLAGS and LDFLAGS? Thanks! Sébastien. _

Re: how to let configure know include and library path for library foo?

2019-01-24 Thread Bob Friesenhahn
On Thu, 24 Jan 2019, Sébastien Hinderer wrote: Sure, I understand the problem you describe and it makes perfect sense to me. But then, what would be an appropriate way to deal with it, according to you? Shall one let users put their directories in CFLAGS and LDFLAGS? The ability for the user t

Re: how to let configure know include and library path for library foo?

2019-01-24 Thread Sébastien Hinderer
Sure, I understand and fully agree with what you write. Thanks. Sébastien. ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Where are the original commands defined?

2019-01-24 Thread Peng Yu
Hi, I got the following int config.log when I run http://git.savannah.gnu.org/cgit/bash.git/tree/configure configure:3772: gcc -g -finstrument-functions -L/root/linux/bin/wrappercomposite/src/xplat/llvmxplat/src/mkvar/bin/Linux conftest.c -ltrace >&5 /usr/bin/ld: /root/linux/bin/wrappercomposite

Re: Where are the original commands defined?

2019-01-24 Thread Peng Yu
Please answer my original question. I know the things that you answered. - I know the problem is fPIC was not enabled. - I use root as its just a docker image with root as the default login. On Thu, Jan 24, 2019 at 9:54 AM Zack Weinberg wrote: > > On Thu, Jan 24, 2019 at 10:48 AM Peng Yu wrot

Re: Where are the original commands defined?

2019-01-24 Thread Zack Weinberg
On Thu, Jan 24, 2019 at 10:48 AM Peng Yu wrote: > I got the following int config.log when I run > http://git.savannah.gnu.org/cgit/bash.git/tree/configure ... > configure also runs many other commands. How to figure out where the > original commands are defined? Thanks. It's very complicated, but

Re: Where are the original commands defined?

2019-01-24 Thread Eric Blake
On 1/24/19 10:00 AM, Peng Yu wrote: > Please answer my original question. > > I know the things that you answered. > > - I know the problem is fPIC was not enabled. > - I use root as its just a docker image with root as the default login. > Even if you don't care whether the configure could hav