Home Explore Blog CI



postgresql

36th chunk of `doc/src/sgml/installation.sgml`
6839689d147df6ddc630ba89bb74378358bc6e73f0f543c90000000100000fb0
 <application>psql</application> and is strongly recommended.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-libedit-preferred-meson">
      <term><option>-Dlibedit_preferred={ true | false }</option></term>
      <listitem>
       <para>
        Setting this to true favors the use of the BSD-licensed
        <application>libedit</application> library rather than GPL-licensed
        <application>Readline</application>.  This option is significant only
        if you have both libraries installed; the default is false, that is to
        use <application>Readline</application>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-zlib-meson">
      <term><option>-Dzlib={ auto | enabled | disabled }</option></term>
      <listitem>
       <para>
        <indexterm>
         <primary>zlib</primary>
        </indexterm>
        Enables use of the <application>Zlib</application> library.
        It defaults to auto and enables
        support for compressed archives in <application>pg_dump</application>,
        <application>pg_restore</application> and <application>pg_basebackup</application> and is recommended.
       </para>
      </listitem>
     </varlistentry>

    </variablelist>
   </sect3>

   <sect3 id="meson-options-build-process">
    <title>Build Process Details</title>

    <variablelist>
     <varlistentry id="configure-auto-features-meson">
      <term><option>--auto-features={ auto | enabled | disabled }</option></term>
      <listitem>
       <para>
        Setting this option allows you to override the value of all
        <quote>auto</quote> features (features that are enabled automatically
        if the required software is found).  This can be useful when you want
        to disable or enable all the <quote>optional</quote> features at once
        without having to set each of them manually. The default value for
        this parameter is auto.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-backend-meson">
      <term><option>--backend=<replaceable>BACKEND</replaceable></option></term>
      <listitem>
       <para>
        The default backend Meson uses is ninja and that should suffice for
        most use cases.  However, if you'd like to fully integrate with Visual
        Studio, you can set the <replaceable>BACKEND</replaceable> to
        <literal>vs</literal>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-c-args-meson">
      <term><option>-Dc_args=<replaceable>OPTIONS</replaceable></option></term>
      <listitem>
       <para>
        This option can be used to pass extra options to the C compiler.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-c-link-args-meson">
      <term><option>-Dc_link_args=<replaceable>OPTIONS</replaceable></option></term>
      <listitem>
       <para>
        This option can be used to pass extra options to the C linker.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-extra-include-dirs-meson">
      <term><option>-Dextra_include_dirs=<replaceable>DIRECTORIES</replaceable></option></term>
      <listitem>
       <para>
        <replaceable>DIRECTORIES</replaceable> is a comma-separated list of
        directories that will be added to the list the compiler searches for
        header files. If you have optional packages (such as GNU
        <application>Readline</application>) installed in a non-standard
        location, you have to use this option and probably also the
        corresponding <option>-Dextra_lib_dirs</option> option.
       </para>

       <para>
        Example: <literal>-Dextra_include_dirs=/opt/gnu/include,/usr/sup/include</literal>.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry id="configure-extra-lib-dirs-meson">
      <term><option>-Dextra_lib_dirs=<replaceable>DIRECTORIES</replaceable></option></term>

Title: Meson Build Configuration and Process Options
Summary
This section details various Meson options for configuring the build process, including settings for auto-features, backend selection, compiler and linker options, and directory settings for include files and libraries, allowing for customization and fine-tuning of the build process for specific use cases and environments.