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