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
pull/407/head
Matthew Seaman 2016-03-26 12:46:42 +00:00
parent b21327bd56
commit 77fa8494dd
1 changed files with 3 additions and 0 deletions

View File

@ -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