From 0b412689c2239c30b59bdca19c324af48eb41b0a Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 16 Mar 2010 23:05:25 +0200 Subject: [PATCH] Allow to customize pg_config via PG_CONFIG variable. Patch by David E. Wheeler --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 878bd3a..7997570 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,12 @@ PLPROXY_VERSION = 2.1-cvs # libpq config -PQINC = $(shell pg_config --includedir) -PQLIB = $(shell pg_config --libdir) +PG_CONFIG = pg_config +PQINC = $(shell $(PG_CONFIG) --includedir) +PQLIB = $(shell $(PG_CONFIG) --libdir) # PostgreSQL version -PGVER = $(shell pg_config --version | sed 's/PostgreSQL //') +PGVER = $(shell $(PG_CONFIG) --version | sed 's/PostgreSQL //') SQLMED = $(shell test $(PGVER) "<" "8.4" && echo "false" || echo "true") # module setup @@ -47,7 +48,7 @@ endif REGRESS_OPTS = --dbname=regression # load PGXS makefile -PGXS = $(shell pg_config --pgxs) +PGXS = $(shell $(PG_CONFIG) --pgxs) include $(PGXS) ifeq ($(PORTNAME), win32) -- 2.39.5