automake
[Top][All Lists]
Advanced

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

Re: Getting web content past distcheck


From: Stepan Kasal
Subject: Re: Getting web content past distcheck
Date: Mon, 18 Oct 2004 11:08:53 +0200
User-agent: Mutt/1.4.1i

Hello,

On Fri, Oct 15, 2004 at 10:13:15AM +0200, address@hidden wrote:
> > WEBDIR=${WEBDIR-\$(pkgdatadir)}
> 
> Isn't it ${WEBDIR:-\$(pkgdatadir)}?
>                 ^^^

``man bash'' says:

... omitting the colon results in a test only for a parameter that is unset.

As for the portability, autoconf manual says:

`${VAR:-VALUE}'
     Old BSD shells, including the Ultrix `sh', don't accept the colon
     for any shell substitution, and complain and die.

And it doesn't seem to have anything against plain ${VAR-VALUE}.

We usually want to respect a parameter if it is set to empty string.
This, together with the small portability issue, probably led to the
decision to use ${VAR-VALUE} in autoconf.

HTH,
        Stepan Kasal




reply via email to

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