automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relative path without realpath


From: Daniel Herring
Subject: Re: Relative path without realpath
Date: Fri, 9 Oct 2020 17:11:55 -0400 (EDT)
User-agent: Alpine 2.21 (DEB 202 2017-01-01)

I would use or copy the definition in GNU Autoconf. Portable and battle tested. You can dig through their macros or look in a configure script to see how they generate abs_builddir, abs_srcdir, abs_top_builddir, ...

- Daniel


On Fri, 9 Oct 2020, Cristian Morales Vega wrote:

I would like to send some patches making pkg-config files relocatable.
pkg-config offers the "pcfiledir" variable to do this.
The thing is that I need to be able to obtain prefix, libdir,
includedir, etc. relative to the directory where the .pc file gets
installed. I can easily do this with realpath, from coreutils, but
it's not POSIX and I'm not sure people will accept such a dependency.
The use of automake per se has no dependency to coreutils, does it?

There is any way to obtain the path of one directory relative to
another in automake without adding a new dependency? "realpath"
implemented as a m4 macro, maybe?

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]