acb9aa
We should ideally provide '/bin/pg_config' in postgresql-server-devel, and
acb9aa
provide no pg_config binary in libpq package.  But most of the Fedora packages
acb9aa
that use pg_config actually only build against PG libraries (and
acb9aa
postgresql-server-devel isn't needed).  So.., to avoid the initial rush around
acb9aa
rhbz#1618698 change, rather provide pg_server_config binary, which int urn means
acb9aa
that we'll have to fix only a minimal set of packages which really build
acb9aa
PostgreSQL server modules.
acb9aa
acb9aa
diff --git a/src/bin/pg_config/Makefile b/src/bin/pg_config/Makefile
acb9aa
index 02e6f9d..f7c844f 100644
acb9aa
--- a/src/bin/pg_config/Makefile
acb9aa
+++ b/src/bin/pg_config/Makefile
acb9aa
@@ -11,28 +11,30 @@
acb9aa
 PGFILEDESC = "pg_config - report configuration information"
acb9aa
 PGAPPICON=win32
acb9aa
 
acb9aa
+PG_CONFIG = pg_server_config$(X)
acb9aa
+
acb9aa
 subdir = src/bin/pg_config
acb9aa
 top_builddir = ../../..
acb9aa
 include $(top_builddir)/src/Makefile.global
acb9aa
 
acb9aa
 OBJS=   pg_config.o $(WIN32RES)
acb9aa
 
acb9aa
-all: pg_config
acb9aa
+all: $(PG_CONFIG)
acb9aa
 
acb9aa
-pg_config: $(OBJS) | submake-libpgport
acb9aa
-	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
acb9aa
+$(PG_CONFIG): $(OBJS) | submake-libpgport
acb9aa
+	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@
acb9aa
 
acb9aa
 install: all installdirs
acb9aa
-	$(INSTALL_SCRIPT) pg_config$(X) '$(DESTDIR)$(bindir)/pg_config$(X)'
acb9aa
+	$(INSTALL_SCRIPT) $(PG_CONFIG) '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
acb9aa
 
acb9aa
 installdirs:
acb9aa
 	$(MKDIR_P) '$(DESTDIR)$(bindir)'
acb9aa
 
acb9aa
 uninstall:
acb9aa
-	rm -f '$(DESTDIR)$(bindir)/pg_config$(X)'
acb9aa
+	rm -f '$(DESTDIR)$(bindir)/$(PG_CONFIG)'
acb9aa
 
acb9aa
 clean distclean maintainer-clean:
acb9aa
-	rm -f pg_config$(X) $(OBJS)
acb9aa
+	rm -f $(PG_CONFIG)  $(OBJS)
acb9aa
 	rm -rf tmp_check
acb9aa
 
acb9aa
 check:
acb9aa
diff --git a/src/bin/pg_config/nls.mk b/src/bin/pg_config/nls.mk
acb9aa
index 1d41f90..0f34f37 100644
acb9aa
--- a/src/bin/pg_config/nls.mk
acb9aa
+++ b/src/bin/pg_config/nls.mk
acb9aa
@@ -1,4 +1,4 @@
acb9aa
 # src/bin/pg_config/nls.mk
acb9aa
-CATALOG_NAME     = pg_config
acb9aa
+CATALOG_NAME     = pg_server_config
acb9aa
 AVAIL_LANGUAGES  = cs de es fr he it ja ko pl pt_BR ro ru sv tr uk vi zh_CN zh_TW
acb9aa
 GETTEXT_FILES    = pg_config.c ../../common/config_info.c ../../common/exec.c