From 578cc38c26e227b1162aab67ac0c1f07cb558dec Mon Sep 17 00:00:00 2001 From: ley Date: Sun, 7 Aug 2005 22:37:33 +0000 Subject: [PATCH] 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 --- sope-gdl1/PostgreSQL/GNUmakefile.preamble | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5