[postgis-users] Re: ver 1.1.5 configure fails on Ubuntu

Greg Troxel gdt at ir.bbn.com
Fri Nov 10 06:07:12 PST 2006


strk at refractions.net writes:

> On Thu, Nov 09, 2006 at 09:23:20PM -0500, Steven Johnson wrote:
>> strk,
>> Thanks for your response to my ./configure woes. I tried your suggestion and
>> these are the results:
>> test !-f "/usr/bin/geos-config" yields
>> test flex --version "/usr/bin/geos-config"
>> bash: test: --version: binary operator expected
>
> Ops.. it seems that the '!' char is interpreted as a seek in 
> the history...
> Try replacing that with:
>
> if test -f "$variable"; then
>  :
> else
>  .... original code here ....
> fi
>
> (in configure.in)
>
> --strk;

>From the man page on NetBSD, it seems ! is legal (POSIX.2), but that
it has to be followed by a space.
It then works with NetBSD's /bin/sh, known for complying with POSIX.2
and not implementing bash extensions and thus a good test case:

$ test ! -f /etc/passwd || echo foo
foo




More information about the postgis-users mailing list