diff --git a/acinclude.m4 b/acinclude.m4
index c0528ff..e137eaa 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -571,7 +571,8 @@ AC_DEFUN([SETUP_POSTGRESQL],
 		AC_LANG_RESTORE
 
 		PG_INCLUDE=`${PG_CONFIG} --includedir` 
-		CPPFLAGS="$CPPFLAGS -I${PG_INCLUDE}"
+		PG_PKGINCLUDE=`${PG_CONFIG} --pkgincludedir`
+		CPPFLAGS="$CPPFLAGS -I${PG_INCLUDE} -I${PG_PKGINCLUDE}"
 	
 		PG_VERSION=`${PG_CONFIG} --version`
 
