]> err.no Git - sope/commitdiff
Add pg_config support for detectig postgresql include and libdir
authorley <ley@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 7 Aug 2005 22:37:33 +0000 (22:37 +0000)
committerley <ley@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 7 Aug 2005 22:37:33 +0000 (22:37 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@998 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-gdl1/PostgreSQL/GNUmakefile.preamble

index 5a9c572958d5aeb244cba33ee8f483d285a642e0..7308087f76e4af910e450f380712050ce53d7ca7 100644 (file)
@@ -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