gh-115119: Detect _decimal dependencies using pkg-config (#115406)

pkg-config is supported for libmpdec 4.0.0 and newer.
This commit is contained in:
Erlend E. Aasland 2024-04-29 08:58:57 +02:00 committed by GitHub
parent ab6eda0ee5
commit c7e7bfc4ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 211 additions and 104 deletions

View file

@ -389,6 +389,17 @@ Options for third-party dependencies
C compiler and linker flags for ``libffi``, used by :mod:`ctypes` module,
overriding ``pkg-config``.
.. option:: LIBMPDEC_CFLAGS
.. option:: LIBMPDEC_LIBS
C compiler and linker flags for ``libmpdec``, used by :mod:`decimal` module,
overriding ``pkg-config``.
.. note::
These environment variables have no effect unless
:option:`--with-system-libmpdec` is specified.
.. option:: LIBLZMA_CFLAGS
.. option:: LIBLZMA_LIBS
@ -798,6 +809,8 @@ Libraries options
.. versionadded:: 3.3
.. seealso:: :option:`LIBMPDEC_CFLAGS` and :option:`LIBMPDEC_LIBS`.
.. option:: --with-readline=readline|editline
Designate a backend library for the :mod:`readline` module.