[Liblas-commits] r1312 - trunk

liblas-commits at liblas.org liblas-commits at liblas.org
Sat Jul 25 15:39:46 EDT 2009


Author: hobu
Date: Sat Jul 25 15:39:46 2009
New Revision: 1312
URL: http://liblas.org/changeset/1312

Log:
require libgeotiff if GDAL is request in the form of a binary #132

Modified:
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sat Jul 25 15:39:46 2009
@@ -155,6 +155,8 @@
     if test "$OGR" != "yes" ; then
         AC_MSG_ERROR([$GDAL_CONFIG says OGR is not enabled])
     fi
+	
+
     HAVE_GDAL="yes"
   fi
 fi
@@ -284,8 +286,11 @@
     LIBS="$BOOST_LDFLAGS -lboost_iostreams-gcc40-mt $LIBS"
 fi
 
-
-
+if test "${HAVE_GDAL}" != "no" ; then
+	if test "${GEOTIFF_CONFIG}" = "no" -a "${USE_GDAL_SOURCE_TREE}" != "yes"; then
+		AC_MSG_ERROR([You must configure a libgeotiff if you are using GDAL binaries.  You can configure using a GDAL source tree without libgeotiff, but not from binaries.])
+	fi
+fi
 
 dnl #########################################################################
 dnl Determine other features of compiler


More information about the Liblas-commits mailing list