Re: Support building in a different directory on Solaris

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ian Lance Taylor <ian(at)airs(dot)com>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Support building in a different directory on Solaris
Date: 2001-08-10 22:09:51
Message-ID: Pine.LNX.4.30.0108102356410.703-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane writes:

> Ian Lance Taylor <ian(at)airs(dot)com> writes:
> > the test built in to /bin/sh does not support -ef, although
> > /usr/bin/test does support it.
>
> Rather than assuming a test with -ef is available, ISTM the portable
> answer is not to depend on it at all. Why not forget the whole thing
> and use something like
>
> if [ `cd "$srcdir" ; /bin/pwd` = `/bin/pwd` ] ; then : ; else

That doesn't work in some setups; that's why we have what we have now.
The problem is that this test would actually evaluate to "not equal" and
the prep_buildtree would run on top of the source tree. Ugh.

Another way to find out if you're in the source tree might be to use
something like

test -f configure

but that's of course less than 100% positive. Ian, you seem to use this a
lot; any ideas?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ian Lance Taylor 2001-08-10 22:20:32 Re: Support building in a different directory on Solaris
Previous Message Tom Lane 2001-08-10 21:44:49 Re: Support building in a different directory on Solaris