From 77fa8494dd47f630aad2068461c6e8988a549106 Mon Sep 17 00:00:00 2001 From: Matthew Seaman Date: Sat, 26 Mar 2016 12:46:42 +0000 Subject: [PATCH] Modify ${CPPFLAGS} to add pg_config's setting for PGINCLUDEDIR to the include path during compilation. On FreeBSD at least, postgresql's include files are installed into /usr/local/include/postgresql --- configure.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.in b/configure.in index 209c29252..09aea8f35 100644 --- a/configure.in +++ b/configure.in @@ -58,6 +58,9 @@ SAVE_CFLAGS="$CFLAGS" AC_PROG_CC([$($PG_CONFIG --cc)]) CFLAGS="$SAVE_CFLAGS" +# Add the Postgres PKGINCLUDEDIR to the include search path +CPPFLAGS="$CPPFLAGS -I$($PG_CONFIG --pkgincludedir)" + # check for a number of CFLAGS that make development easier # CITUSAC_PROG_CC_CFLAGS_OPT