[Gdal-dev] configure problem on FreeBSD

Frank Warmerdam fwarmerdam at gmail.com
Wed Mar 2 23:41:19 EST 2005


On Wed, 2 Mar 2005 14:30:37 +0200, John Hay <jhay at icomtek.csir.co.za> wrote:
> Hi,
> 
> I have tried both version 1.2.5 and 1.2.6b3 on FreeBSD and it looks
> like the configure script is using a bash specific feature which
> isn't available in the FreeBSD /bin/sh. It is the two lines:
> 
> if test ${MYSQL_VERSION:0:1} -ge 4 ; then
> if test "${VERSION:0:1}" -lt 2 ; then
> 
> The FreeBSD /bin/sh does not know how to handle the ${variable:0:1}.
> 
> What about rather using a case statement for it? Something like:

John,

Patched as suggested, though it took a few tries to escape the [ and ] 
properly since they are spectial quotes to autoconf.  Test on Mysql 3
and 4. 

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
_______________________________________________
Gdal-dev mailing list
Gdal-dev at xserve.flids.com
http://xserve.flids.com/mailman/listinfo/gdal-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050302/b9c28c5a/attachment.html


More information about the Gdal-dev mailing list