Ticket #66 (new defect)

Opened 4 months ago

Last modified 4 months ago

./configure --with-geotiff=yes does not set libgeotiff

Reported by: mloskot Owned by: hobu
Priority: major Milestone: 1.0
Component: Build System Version: svn-trunk
Keywords: geotiff libgeotiff Cc:
LAS Format Version: Not Applicable

Description

The ./configure help says that --with-geotiff accepts yes or path. Considering libgeotiff installed on Debian-like distributions, under standard prefix /usr, ./configure --with-geotiff=yes says that geotiff has been detected but actually Makefile files are not generated properly.

This is because detection is based on AC_CHECK_LIB and this test succeeds. However, include directories are set using $with_geotiff value which is yes, so Makefile gets wrong or empty include directory paths.

The solution is to redesign geotiff determination to two tests, distinguishing these cases:

  • --with-geotiff=yes - check standard prefixes like /usr and /usr/local for headers and library
  • --with-geotiff=/path/to/install/prefox - check given prefix only for all files

Change History

Changed 4 months ago by hobu

Mateusz,

Please strengthen the detection in the geotiff and gdal macros as you see fit (and port it to GDAL where appropriate too, as that's where we stole it from :) )

Howard

Note: See TracTickets for help on using tickets.