[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srcdir detection (was: Re: gettext 0.14.5 compile issue)
From: |
Stepan Kasal |
Subject: |
Re: srcdir detection (was: Re: gettext 0.14.5 compile issue) |
Date: |
Thu, 4 Aug 2005 13:53:00 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Thu, Aug 04, 2005 at 01:35:50PM +0200, Bruno Haible wrote:
> There are two ways for a user to arrive at the situation where $srcdir
> is the current directory but not ".":
> 1) ./configure --srcdir=`pwd`
> 2) `pwd`/configure
>
> Your patch addresses only the second one.
tes, that was my intention. If you give --srcdir explicitely, you are
on your own.
But it's understandable if a build system runs
cd $tmpdir/$package
$tmpdir/$package/configure
instead of
cd $tmpdir/$package
./configure
> PS:
> > if test -z "$srcdir"; then
> > ---
> > if test "x$srcdir" != x; then
>
> Ah, come on. You don't need to write sh code for the 1980'ies.
Well, I had in mind that srcdir can be defined by the user, so with
--srcdir== or --srcdir=-eq, older shells would have problems to understand
test -n =
or
test -n -eq
(I have never experienced this problem, but it is documented in the
Autoconf manual.)
But yes, you are right, I shouldn't obfuscate the code because of these
weird cases.
Stepan