Support pre 8.0 PostgreSQL which does not have
authorTatsuo Ishii <ishii at sraoss.co.jp>
Sun, 24 May 2009 08:43:39 +0000 (08:43 +0000)
committerTatsuo Ishii <ishii at sraoss.co.jp>
Sun, 24 May 2009 08:43:39 +0000 (08:43 +0000)
pg_config --pgxs option.
Patch provided by Enrico Pirozzi with slight modification by Tatsuo Ishii

sql/pgpool-recovery/Makefile

index 2900da597a85db7c64b244f98750778d14a24f9b..9422666aea69ace5764bd3d37aa9241dcbc16506 100644 (file)
@@ -1,5 +1,20 @@
 MODULES = pgpool-recovery
 DATA_built = pgpool-recovery.sql
 
-PGXS := $(shell pg_config --pgxs)
+# if you are using PostgreSQL 8.0 or later,
+# using pg_config is recommended.
+# if you are not, comment out following line and...
+USE_PGXS = true
+# set top_builddir to the PostgreSQL build source tree top.
+# (for example /usr/local/src/postgresql-8.4) 
+top_builddir = ../..
+
+ifdef USE_PGXS
+PGXS = $(shell pg_config --pgxs)
 include $(PGXS)
+else
+subdir = contrib/pgpool-recovery
+#top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/contrib/contrib-global.mk
+endif