1
0
Fork 0

Added an error message on the conflict of --enable-ogrdecode and a missing OGR.

This commit is contained in:
Ralf Gerlich 2007-11-09 17:10:44 +01:00
parent 6933f75b11
commit 5a4428edd1

View file

@ -152,6 +152,13 @@ if test "$with_gdal" != "no" ; then
AC_SUBST(GDAL_CFLAGS) AC_SUBST(GDAL_CFLAGS)
fi fi
if test x$have_ogr != xyes -a x$enable_ogrdecode = xyes; then
AC_MSG_ERROR([ogrdecode was forcefully enabled but OGR was not found.
Please make sure that you have GDAL installed with OGR enabled
and gdal-config in your PATH resp. the path to gdal-config provided
using --with-gdal.])
fi
AM_CONDITIONAL(WANT_OGRDECODE, test x$have_ogr = xyes -a x$enable_ogrdecode != xno) AM_CONDITIONAL(WANT_OGRDECODE, test x$have_ogr = xyes -a x$enable_ogrdecode != xno)
dnl Check for MS Windows environment dnl Check for MS Windows environment