[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Speed up progname, progpath setting
From: |
Ralf Wildenhues |
Subject: |
Re: Speed up progname, progpath setting |
Date: |
Thu, 10 Apr 2008 23:34:31 +0200 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
* Peter O'Gorman wrote on Thu, Apr 10, 2008 at 11:21:01PM CEST:
> Peter O'Gorman wrote:
> > Ralf Wildenhues wrote:
> >> curwd=`cd . && pwd`
> >>
> >> Do we know when (with which shells) this can be replaced by $PWD
> >> portably?
> >
> > The ones that are not buggy and comply with the standards? :) (I don't
> > know, maybe all of them).
>
> Maybe, instead of using $PWD, when the package is not libtool itself, we
> can substitute abs_top_builddir into the libtool script and use that for
> when progdir=.?
We can also just test for working $PWD in configure, and if it works,
then
curwd=$PWD
cd "..."
progdir=$PWD
cd "curwd"
On systems where $PWD happens to not work, we shouldn't care about
performance, they are so rare.
Given that we more and more rely on the shell we test in configure is
the same as the one executing libtool, I am tending more and more to
putting Bruno's patch in.
Cheers,
Ralf
- Speed up progname, progpath setting, Ralf Wildenhues, 2008/04/09
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/10
- Re: Speed up progname, progpath setting, Eric Blake, 2008/04/10
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/10
- Re: Speed up progname, progpath setting,
Ralf Wildenhues <=
- Re: Speed up progname, progpath setting, Bob Friesenhahn, 2008/04/10
- Re: Speed up progname, progpath setting, Ralf Wildenhues, 2008/04/10
- Re: Speed up progname, progpath setting, Peter O'Gorman, 2008/04/11