]> granicus.if.org Git - postgis/commitdiff
Fix so custom --with-projdir= configure switch works again.
authorRegina Obe <lr@pcorp.us>
Wed, 26 Dec 2018 04:06:50 +0000 (04:06 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 26 Dec 2018 04:06:50 +0000 (04:06 +0000)
References #4279 for PostGIS 2.5

git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@17119 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 21d83f82b41ae56fa54fa369196c5f0a6777fcf7..1a1afb266d002df72487d4e59791d461827a3821 100644 (file)
@@ -834,6 +834,8 @@ if test ! "x$PROJDIR" = "x"; then
 fi
 
 dnl Check that we can find the proj_api.h header file
+CPPFLAGS_SAVE="$CPPFLAGS"
+CPPFLAGS="$PROJ_CPPFLAGS"
 AC_CHECK_HEADER([proj_api.h], [], [AC_MSG_ERROR([could not find proj_api.h - you may need to specify the directory of a PROJ.4 installation using --with-projdir])],
 [
 #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1