From: Mark Cave-Ayland Date: Thu, 24 Jul 2008 10:22:16 +0000 (+0000) Subject: Add PROJ.4 version check to ensure that a minimum version of 4.5.0 is installed.... X-Git-Tag: 1.4.0b1~818 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f829b9b3469169e828ad2487971dc9971b5f02b;p=postgis Add PROJ.4 version check to ensure that a minimum version of 4.5.0 is installed. This is to ensure that the pj_set_searchpath() function is present (note: it was actually added in 4.4.9, however we version detect on major.minor rather than major.minor.release) git-svn-id: http://svn.osgeo.org/postgis/trunk@2882 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index e65495515..72048bb13 100644 --- a/configure.ac +++ b/configure.ac @@ -346,6 +346,11 @@ AC_DEFINE_UNQUOTED([POSTGIS_PROJ_VERSION], [$POSTGIS_PROJ_VERSION], [PROJ librar AC_SUBST([POSTGIS_PROJ_VERSION]) CPPFLAGS="$CPPFLAGS_SAVE" +dnl Ensure that we are using PROJ >= 4.5.0 (requires pj_set_searchpath) +if test ! "$POSTGIS_PROJ_VERSION" -ge 45; then + AC_MSG_ERROR([PostGIS requires PROJ >= 4.5.0]) +fi + dnl Ensure we can link against libproj LIBS_SAVE="$LIBS" LIBS="$PROJ_LDFLAGS"