From: ley Date: Sun, 7 Aug 2005 22:37:33 +0000 (+0000) Subject: Add pg_config support for detectig postgresql include and libdir X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=578cc38c26e227b1162aab67ac0c1f07cb558dec;p=sope Add pg_config support for detectig postgresql include and libdir git-svn-id: http://svn.opengroupware.org/SOPE/trunk@998 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-gdl1/PostgreSQL/GNUmakefile.preamble b/sope-gdl1/PostgreSQL/GNUmakefile.preamble index 5a9c5729..7308087f 100644 --- a/sope-gdl1/PostgreSQL/GNUmakefile.preamble +++ b/sope-gdl1/PostgreSQL/GNUmakefile.preamble @@ -47,6 +47,11 @@ ADDITIONAL_INCLUDE_DIRS += \ -I/usr/include/postgresql \ -I/usr/include \ +ifneq ($(shell which pg_config),) +ADDITIONAL_INCLUDE_DIRS += -I$(shell pg_config --includedir) +ADDITIONAL_LIB_DIRS += -L$(shell pg_config --libdir) +endif + ifneq ($(GNUSTEP_BUILD_DIR),) RELBUILD_DIR_SOPE=$(GNUSTEP_BUILD_DIR)/../.. RELBUILD_DIR_Core=$(RELBUILD_DIR_SOPE)/sope-core