diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 593202f4fb25..4846ada81c43 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -2510,12 +2510,7 @@ ninja install
Build with support for GSSAPI authentication. MIT Kerberos is required
- to be installed for GSSAPI. On many systems, the GSSAPI system (a part
- of the MIT Kerberos installation) is not installed in a location
- that is searched by default (e.g., /usr/include,
- /usr/lib). In
- those cases, PostgreSQL will query pkg-config to
- detect the required compiler and linker options. Defaults to auto.
+ to be installed for GSSAPI. Defaults to auto.
meson configure will check for the required
header files and libraries to make sure that your GSSAPI installation
is sufficient before proceeding.
@@ -2677,12 +2672,6 @@ ninja install
Build with libxml2, enabling SQL/XML support. Defaults to
auto. Libxml2 version 2.6.23 or later is required for this feature.
-
-
- To use a libxml2 installation that is in an unusual location, you
- can set pkg-config-related environment
- variables (see its documentation).
-
@@ -3262,6 +3251,50 @@ ninja install
&targets-meson;
+
+ Steps to use libraries installed in an unusual location
+
+
+ PostgreSQL will query pkg-config to detect the required compiler and linker options.
+ To use modules installed in an unusual location, set pkg-config-related
+ environment variables (see its documentation). For example, if you want to add
+ the library to the PostgreSQL build, add the directory where the .pc file resides
+ to PKG_CONFIG_PATH.
+
+ Sample procedures to include libraries for PostgreSQL build are as follows:
+
+
+
+
+ Building and Installation library
+
+ Check the path where the .pc file (e.g.libxml-2.0.pc) is created.
+ Many libraries create the .pc files when built using vcpkg.
+ You might want to create the .pc file manually.
+
+
+
+ Add path to .pc directory to PKG_CONFIG_PATH
+
+ PKG_CONFIG_PATH is the list of directories separated by PATH separator
+ ( ; in Windows, : in Unix).
+
+
+
+ Building and Installation PostgreSQL with Meson
+
+
+meson setup build
+
+ For some libraries (e.g. .pc file not created gettext),
+ the path can be specified with the
+ -Dextra_include_dirs, -Dextra_lib_dirs option.
+
+
+
+
+
+