Simplify passing of configure arguments to pg_config

Peter Eisentraut <peter@eisentraut.org>

Commit: b691c189c671ca9b88743ed6546b60641e5199e4
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2020-02-10T18:23:41Z
Releases: 13.0
Simplify passing of configure arguments to pg_config

The previous system had configure put the value into the makefiles and
then have the makefiles pass them to the build of pg_config.  That was
put in place when pg_config was a shell script.  We can simplify that
by having configure put the value into pg_config.h directly.  This
also makes the standard build system match how the MSVC build system
already does it.

Discussion: https://www.postgresql.org/message-id/flat/6e457870-cef5-5f1d-b57c-fc89cfb8a788%402ndquadrant.com

Files

PathChange+/−
configure modified +4 −2
configure.in modified +1 −1
src/common/config_info.c modified +1 −5
src/common/Makefile modified +0 −1
src/include/pg_config.h.in modified +3 −0
src/Makefile.global.in modified +0 −3
src/tools/msvc/Solution.pm modified +1 −6

Discussion