[Gdal-dev] GDAL changes affecting GRASS?

William Kyngesburye woklist at kyngchaos.com
Wed Nov 30 12:01:44 EST 2005


As I was testing leaving out various options, I found (re-found, it  
just never was a big deal before) a configure bug: --with-geotiff=/ 
path/to/geotiff/base does not work by itself.  In my situation, I  
isolate groups of libraries into separate, non-standard locations,  
for my installer packages, so I need the --with options to work.   
There are graphicslibs and gislibs.

It isn't adding the with path to the test for some reason.  It  
usually works for two reasons:

- due to your config logic, the config tests accumulate previous LIBS  
in successive tests, instead of isolating each test with only the  
necessary libs for the test.  So, by the time it gets to geotiff, it  
has /usr/local/gislibs/lib in LIBS (because of cfitsio).

- due to the behaviour of Apple's linker (or is it normal?), all the - 
L options get lumped together before it attempts to find the  
libraries.  So even tho -L/usr/local/gislibs/lib might appear after - 
lgeotiff, it still finds /usr/local/gislibs/lib/libgeotiff.dylib.

So, leaving out cfitsio, the only other gislib before geotiff in  
configure, it doesn't find geotiff.

Looking at the configure logic for geotiff, it seems to be  
backwards.  What I see (generalized, ignoring the internal tests):

if with=yes [which means look for geotiff in default locations]
   test for geotiff using the 'with' value for -L + current LIBS
   (LIBS="-lgeotiff -L$with_geotiff/lib $LIBS)
else [look for it in user pecified location]
   test for goetiff using default locations + current LIBS
   (LIBS="-lgeotiff $LIBS)


-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an  
illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy




More information about the Gdal-dev mailing list