mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-05-28 13:05:47 +03:00
build.h: add a bunch of missing features strings
Let's make "systemctl --version" more useful for detecting when build-time features/deps are enabled and which ones arent't again.
This commit is contained in:
parent
140105b730
commit
6c822dc2d5
@ -69,12 +69,24 @@
|
||||
#define _GNUTLS_FEATURE_ "-GNUTLS"
|
||||
#endif
|
||||
|
||||
#if HAVE_OPENSSL
|
||||
#define _OPENSSL_FEATURE_ "+OPENSSL"
|
||||
#else
|
||||
#define _OPENSSL_FEATURE_ "-OPENSSL"
|
||||
#endif
|
||||
|
||||
#if HAVE_ACL
|
||||
#define _ACL_FEATURE_ "+ACL"
|
||||
#else
|
||||
#define _ACL_FEATURE_ "-ACL"
|
||||
#endif
|
||||
|
||||
#if HAVE_ZLIB
|
||||
#define _ZLIB_FEATURE_ "+ZLIB"
|
||||
#else
|
||||
#define _ZLIB_FEATURE_ "-ZLIB"
|
||||
#endif
|
||||
|
||||
#if HAVE_XZ
|
||||
#define _XZ_FEATURE_ "+XZ"
|
||||
#else
|
||||
@ -93,6 +105,12 @@
|
||||
#define _ZSTD_FEATURE_ "-ZSTD"
|
||||
#endif
|
||||
|
||||
#if HAVE_BZIP2
|
||||
#define _BZIP2_FEATURE_ "+BZIP2"
|
||||
#else
|
||||
#define _BZIP2_FEATURE_ "-BZIP2"
|
||||
#endif
|
||||
|
||||
#if HAVE_SECCOMP
|
||||
#define _SECCOMP_FEATURE_ "+SECCOMP"
|
||||
#else
|
||||
@ -135,6 +153,66 @@
|
||||
#define _PCRE2_FEATURE_ "-PCRE2"
|
||||
#endif
|
||||
|
||||
#if HAVE_PWQUALITY
|
||||
#define _PWQUALITY_FEATURE_ "+PWQUALITY"
|
||||
#else
|
||||
#define _PWQUALITY_FEATURE_ "-PWQUALITY"
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBFDISK
|
||||
#define _FDISK_FEATURE_ "+FDISK"
|
||||
#else
|
||||
#define _FDISK_FEATURE_ "-FDISK"
|
||||
#endif
|
||||
|
||||
#if HAVE_P11KIT
|
||||
#define _P11KIT_FEATURE_ "+P11KIT"
|
||||
#else
|
||||
#define _P11KIT_FEATURE_ "-P11KIT"
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBFIDO2
|
||||
#define _FIDO2_FEATURE_ "+FIDO2"
|
||||
#else
|
||||
#define _FIDO2_FEATURE_ "-FIDO2"
|
||||
#endif
|
||||
|
||||
#if HAVE_QRENCODE
|
||||
#define _QRENCODE_FEATURE_ "+QRENCODE"
|
||||
#else
|
||||
#define _QRENCODE_FEATURE_ "-QRENCODE"
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBCURL
|
||||
#define _CURL_FEATURE_ "+CURL"
|
||||
#else
|
||||
#define _CURL_FEATURE_ "-CURL"
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBIPTC
|
||||
#define _IPTC_FEATURE_ "+IPTC"
|
||||
#else
|
||||
#define _IPTC_FEATURE_ "-IPTC"
|
||||
#endif
|
||||
|
||||
#if HAVE_ELFUTILS
|
||||
#define _ELFUTILS_FEATURE_ "+ELFUTILS"
|
||||
#else
|
||||
#define _ELFUTILS_FEATURE_ "-ELFUTILS"
|
||||
#endif
|
||||
|
||||
#if HAVE_XKBCOMMON
|
||||
#define _XKBCOMMON_FEATURE_ "+XKBCOMMON"
|
||||
#else
|
||||
#define _XKBCOMMON_FEATURE_ "-XKBCOMMON"
|
||||
#endif
|
||||
|
||||
#if HAVE_BLKID
|
||||
#define _BLKID_FEATURE_ "+BLKID"
|
||||
#else
|
||||
#define _BLKID_FEATURE_ "-BLKID"
|
||||
#endif
|
||||
|
||||
#define _CGROUP_HIERARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME
|
||||
|
||||
#define SYSTEMD_FEATURES \
|
||||
@ -149,10 +227,13 @@
|
||||
_LIBCRYPTSETUP_FEATURE_ " " \
|
||||
_GCRYPT_FEATURE_ " " \
|
||||
_GNUTLS_FEATURE_ " " \
|
||||
_OPENSSL_FEATURE_ " " \
|
||||
_ACL_FEATURE_ " " \
|
||||
_ZLIB_FEATURE_ " " \
|
||||
_XZ_FEATURE_ " " \
|
||||
_LZ4_FEATURE_ " " \
|
||||
_ZSTD_FEATURE_ " " \
|
||||
_BZIP2_FEATURE_ " " \
|
||||
_SECCOMP_FEATURE_ " " \
|
||||
_BLKID_FEATURE_ " " \
|
||||
_ELFUTILS_FEATURE_ " " \
|
||||
@ -160,6 +241,16 @@
|
||||
_IDN2_FEATURE_ " " \
|
||||
_IDN_FEATURE_ " " \
|
||||
_PCRE2_FEATURE_ " " \
|
||||
_PWQUALITY_FEATURE_ " " \
|
||||
_FDISK_FEATURE_ " " \
|
||||
_P11KIT_FEATURE_ " " \
|
||||
_FIDO2_FEATURE_ " " \
|
||||
_QRENCODE_FEATURE_ " " \
|
||||
_CURL_FEATURE_ " " \
|
||||
_IPTC_FEATURE_ " " \
|
||||
_ELFUTILS_FEATURE_ " " \
|
||||
_XKBCOMMON_FEATURE_ " " \
|
||||
_BLKID_FEATURE_ " " \
|
||||
_CGROUP_HIERARCHY_
|
||||
|
||||
enum {
|
||||
|
Loading…
x
Reference in New Issue
Block a user