]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/build.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / basic / build.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
302e27c8
LP
3
4/***
5 This file is part of systemd.
6
7 Copyright 2010 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
302e27c8
LP
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 17 Lesser General Public License for more details.
302e27c8 18
5430f7f2 19 You should have received a copy of the GNU Lesser General Public License
302e27c8
LP
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
349cc4a5 23#if HAVE_PAM
302e27c8
LP
24#define _PAM_FEATURE_ "+PAM"
25#else
26#define _PAM_FEATURE_ "-PAM"
27#endif
28
349cc4a5 29#if HAVE_AUDIT
302e27c8
LP
30#define _AUDIT_FEATURE_ "+AUDIT"
31#else
32#define _AUDIT_FEATURE_ "-AUDIT"
33#endif
34
349cc4a5 35#if HAVE_SELINUX
302e27c8
LP
36#define _SELINUX_FEATURE_ "+SELINUX"
37#else
38#define _SELINUX_FEATURE_ "-SELINUX"
39#endif
40
349cc4a5 41#if HAVE_APPARMOR
eef65bf3
MS
42#define _APPARMOR_FEATURE_ "+APPARMOR"
43#else
44#define _APPARMOR_FEATURE_ "-APPARMOR"
45#endif
46
392fd235 47#if ENABLE_IMA
81611586
RS
48#define _IMA_FEATURE_ "+IMA"
49#else
50#define _IMA_FEATURE_ "-IMA"
51#endif
52
f9fa32f0 53#if ENABLE_SMACK
0340a83b
LP
54#define _SMACK_FEATURE_ "+SMACK"
55#else
56#define _SMACK_FEATURE_ "-SMACK"
57#endif
58
349cc4a5 59#if HAVE_SYSV_COMPAT
07459bb6
FF
60#define _SYSVINIT_FEATURE_ "+SYSVINIT"
61#else
62#define _SYSVINIT_FEATURE_ "-SYSVINIT"
63#endif
64
3211da4b 65#if ENABLE_UTMP
37161c51
ERB
66#define _UTMP_FEATURE_ "+UTMP"
67#else
68#define _UTMP_FEATURE_ "-UTMP"
69#endif
70
349cc4a5 71#if HAVE_LIBCRYPTSETUP
7838dc3a
LP
72#define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP"
73#else
74#define _LIBCRYPTSETUP_FEATURE_ "-LIBCRYPTSETUP"
75#endif
76
349cc4a5 77#if HAVE_GCRYPT
feb12d3e
LP
78#define _GCRYPT_FEATURE_ "+GCRYPT"
79#else
80#define _GCRYPT_FEATURE_ "-GCRYPT"
81#endif
82
349cc4a5 83#if HAVE_GNUTLS
0340a83b
LP
84#define _GNUTLS_FEATURE_ "+GNUTLS"
85#else
86#define _GNUTLS_FEATURE_ "-GNUTLS"
87#endif
88
349cc4a5 89#if HAVE_ACL
feb12d3e
LP
90#define _ACL_FEATURE_ "+ACL"
91#else
92#define _ACL_FEATURE_ "-ACL"
93#endif
94
349cc4a5 95#if HAVE_XZ
feb12d3e
LP
96#define _XZ_FEATURE_ "+XZ"
97#else
98#define _XZ_FEATURE_ "-XZ"
99#endif
100
349cc4a5 101#if HAVE_LZ4
0340a83b
LP
102#define _LZ4_FEATURE_ "+LZ4"
103#else
104#define _LZ4_FEATURE_ "-LZ4"
105#endif
106
349cc4a5 107#if HAVE_SECCOMP
c0467cf3
RC
108#define _SECCOMP_FEATURE_ "+SECCOMP"
109#else
110#define _SECCOMP_FEATURE_ "-SECCOMP"
111#endif
112
349cc4a5 113#if HAVE_BLKID
0340a83b
LP
114#define _BLKID_FEATURE_ "+BLKID"
115#else
116#define _BLKID_FEATURE_ "-BLKID"
117#endif
118
349cc4a5 119#if HAVE_ELFUTILS
0340a83b
LP
120#define _ELFUTILS_FEATURE_ "+ELFUTILS"
121#else
122#define _ELFUTILS_FEATURE_ "-ELFUTILS"
123#endif
124
349cc4a5 125#if HAVE_KMOD
0340a83b
LP
126#define _KMOD_FEATURE_ "+KMOD"
127#else
128#define _KMOD_FEATURE_ "-KMOD"
129#endif
130
349cc4a5 131#if HAVE_LIBIDN2
87057e24
ZJS
132#define _IDN2_FEATURE_ "+IDN2"
133#else
134#define _IDN2_FEATURE_ "-IDN2"
135#endif
136
349cc4a5 137#if HAVE_LIBIDN
0340a83b
LP
138#define _IDN_FEATURE_ "+IDN"
139#else
140#define _IDN_FEATURE_ "-IDN"
141#endif
142
5a94b187
ZJS
143#define _CGROUP_HIEARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME
144
0340a83b
LP
145#define SYSTEMD_FEATURES \
146 _PAM_FEATURE_ " " \
147 _AUDIT_FEATURE_ " " \
148 _SELINUX_FEATURE_ " " \
149 _IMA_FEATURE_ " " \
150 _APPARMOR_FEATURE_ " " \
151 _SMACK_FEATURE_ " " \
152 _SYSVINIT_FEATURE_ " " \
37161c51 153 _UTMP_FEATURE_ " " \
0340a83b
LP
154 _LIBCRYPTSETUP_FEATURE_ " " \
155 _GCRYPT_FEATURE_ " " \
156 _GNUTLS_FEATURE_ " " \
157 _ACL_FEATURE_ " " \
158 _XZ_FEATURE_ " " \
159 _LZ4_FEATURE_ " " \
160 _SECCOMP_FEATURE_ " " \
161 _BLKID_FEATURE_ " " \
162 _ELFUTILS_FEATURE_ " " \
163 _KMOD_FEATURE_ " " \
87057e24 164 _IDN2_FEATURE_ " " \
5a94b187
ZJS
165 _IDN_FEATURE_ " " \
166 _CGROUP_HIEARCHY_