Changeset 621:8668892b8bf2


Ignore:
Timestamp:
05/08/08 13:51:16 (2 years ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@688
Message:

first attempt at a --with-geotiff, adapted from GDAL #46

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r611 r621  
    9999AM_CONDITIONAL([GDAL_IS_CONFIG], [test $GDAL_CONFIG != no]) 
    100100 
     101dnl --------------------------------------------------------------------------- 
     102dnl Select a libgeotiff library to use. 
     103dnl --------------------------------------------------------------------------- 
     104 
     105AC_ARG_WITH(geotiff,[  --with-geotiff=ARG    Libgeotiff library to use (yes or path)],,) 
     106AC_MSG_CHECKING([for libgeotiff]) 
     107if test "$with_geotiff" = "no" -o "$with_geotiff" = "" ; then 
     108  GEOTIFF_CONFIG="no" 
     109  AC_MSG_RESULT([no]) 
     110 
     111else 
     112 
     113  GEOTIFF_SETTING=external 
     114  dnl We now require libgeotiff 1.2.1 (for XTIFFClientOpen).  
     115  dnl first check if $with_geotiff/lib has the library: 
     116  AC_CHECK_LIB(geotiff,XTIFFClientOpen,GEOTIFF_CONFIG=external,GEOTIFF_CONFIG=no,-L$with_geotiff/lib) 
     117fi 
     118 
     119if test "$GEOTIFF_CONFIG" != "no" ; then 
     120 
     121  if test $GEOTIFF_CONFIG = "external" ; then 
     122    LIBS="-L$with_geotiff/lib -lgeotiff $LIBS" 
     123    if test  -d $with_geotiff/include ; then 
     124      GEOTIFF_INC = "-I$with_geotiff/include" 
     125      AC_MSG_RESULT([using libgeotiff from $with_geotiff/include])  
     126    fi 
     127  fi 
     128 
     129fi 
     130 
     131AC_SUBST(GEOTIFF_INC GEOTIFF_PREFIX) 
     132AM_CONDITIONAL([GEOTIFF_IS_CONFIG], [test $GEOTIFF_CONFIG != no]) 
     133 
     134 
    101135AC_HAVE_LONG_LONG 
    102136 
     
    128162LOC_MSG([  Debugging support........: ${enable_debug}]) 
    129163LOC_MSG([  GDAL support........: ${GDAL_CONFIG}]) 
     164LOC_MSG([  GeoTIFF SRS support........: ${GEOTIFF_CONFIG}]) 
     165 
    130166LOC_MSG() 
Note: See TracChangeset for help on using the changeset viewer.