]>
Commit | Line | Data |
---|---|---|
663996b3 MS |
1 | #pragma once |
2 | ||
3 | /*** | |
4 | This file is part of systemd. | |
5 | ||
6 | Copyright 2010 Lennart Poettering | |
7 | ||
8 | systemd is free software; you can redistribute it and/or modify it | |
9 | under the terms of the GNU Lesser General Public License as published by | |
10 | the Free Software Foundation; either version 2.1 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | systemd is distributed in the hope that it will be useful, but | |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | Lesser General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU Lesser General Public License | |
19 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
20 | ***/ | |
21 | ||
22 | #ifdef HAVE_PAM | |
23 | #define _PAM_FEATURE_ "+PAM" | |
24 | #else | |
25 | #define _PAM_FEATURE_ "-PAM" | |
26 | #endif | |
27 | ||
663996b3 MS |
28 | #ifdef HAVE_AUDIT |
29 | #define _AUDIT_FEATURE_ "+AUDIT" | |
30 | #else | |
31 | #define _AUDIT_FEATURE_ "-AUDIT" | |
32 | #endif | |
33 | ||
34 | #ifdef HAVE_SELINUX | |
35 | #define _SELINUX_FEATURE_ "+SELINUX" | |
36 | #else | |
37 | #define _SELINUX_FEATURE_ "-SELINUX" | |
38 | #endif | |
39 | ||
60f067b4 JS |
40 | #ifdef HAVE_APPARMOR |
41 | #define _APPARMOR_FEATURE_ "+APPARMOR" | |
42 | #else | |
43 | #define _APPARMOR_FEATURE_ "-APPARMOR" | |
44 | #endif | |
45 | ||
663996b3 MS |
46 | #ifdef HAVE_IMA |
47 | #define _IMA_FEATURE_ "+IMA" | |
48 | #else | |
49 | #define _IMA_FEATURE_ "-IMA" | |
50 | #endif | |
51 | ||
5eef597e MP |
52 | #ifdef HAVE_SMACK |
53 | #define _SMACK_FEATURE_ "+SMACK" | |
54 | #else | |
55 | #define _SMACK_FEATURE_ "-SMACK" | |
56 | #endif | |
57 | ||
663996b3 MS |
58 | #ifdef HAVE_SYSV_COMPAT |
59 | #define _SYSVINIT_FEATURE_ "+SYSVINIT" | |
60 | #else | |
61 | #define _SYSVINIT_FEATURE_ "-SYSVINIT" | |
62 | #endif | |
63 | ||
5eef597e MP |
64 | #ifdef HAVE_UTMP |
65 | #define _UTMP_FEATURE_ "+UTMP" | |
66 | #else | |
67 | #define _UTMP_FEATURE_ "-UTMP" | |
68 | #endif | |
69 | ||
663996b3 MS |
70 | #ifdef HAVE_LIBCRYPTSETUP |
71 | #define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP" | |
72 | #else | |
73 | #define _LIBCRYPTSETUP_FEATURE_ "-LIBCRYPTSETUP" | |
74 | #endif | |
75 | ||
76 | #ifdef HAVE_GCRYPT | |
77 | #define _GCRYPT_FEATURE_ "+GCRYPT" | |
78 | #else | |
79 | #define _GCRYPT_FEATURE_ "-GCRYPT" | |
80 | #endif | |
81 | ||
5eef597e MP |
82 | #ifdef HAVE_GNUTLS |
83 | #define _GNUTLS_FEATURE_ "+GNUTLS" | |
84 | #else | |
85 | #define _GNUTLS_FEATURE_ "-GNUTLS" | |
86 | #endif | |
87 | ||
663996b3 MS |
88 | #ifdef HAVE_ACL |
89 | #define _ACL_FEATURE_ "+ACL" | |
90 | #else | |
91 | #define _ACL_FEATURE_ "-ACL" | |
92 | #endif | |
93 | ||
94 | #ifdef HAVE_XZ | |
95 | #define _XZ_FEATURE_ "+XZ" | |
96 | #else | |
97 | #define _XZ_FEATURE_ "-XZ" | |
98 | #endif | |
99 | ||
5eef597e MP |
100 | #ifdef HAVE_LZ4 |
101 | #define _LZ4_FEATURE_ "+LZ4" | |
102 | #else | |
103 | #define _LZ4_FEATURE_ "-LZ4" | |
104 | #endif | |
105 | ||
60f067b4 JS |
106 | #ifdef HAVE_SECCOMP |
107 | #define _SECCOMP_FEATURE_ "+SECCOMP" | |
108 | #else | |
109 | #define _SECCOMP_FEATURE_ "-SECCOMP" | |
110 | #endif | |
111 | ||
5eef597e MP |
112 | #ifdef HAVE_BLKID |
113 | #define _BLKID_FEATURE_ "+BLKID" | |
114 | #else | |
115 | #define _BLKID_FEATURE_ "-BLKID" | |
116 | #endif | |
117 | ||
118 | #ifdef HAVE_ELFUTILS | |
119 | #define _ELFUTILS_FEATURE_ "+ELFUTILS" | |
120 | #else | |
121 | #define _ELFUTILS_FEATURE_ "-ELFUTILS" | |
122 | #endif | |
123 | ||
124 | #ifdef HAVE_KMOD | |
125 | #define _KMOD_FEATURE_ "+KMOD" | |
126 | #else | |
127 | #define _KMOD_FEATURE_ "-KMOD" | |
128 | #endif | |
129 | ||
130 | #ifdef HAVE_LIBIDN | |
131 | #define _IDN_FEATURE_ "+IDN" | |
132 | #else | |
133 | #define _IDN_FEATURE_ "-IDN" | |
134 | #endif | |
135 | ||
136 | #define SYSTEMD_FEATURES \ | |
137 | _PAM_FEATURE_ " " \ | |
138 | _AUDIT_FEATURE_ " " \ | |
139 | _SELINUX_FEATURE_ " " \ | |
140 | _IMA_FEATURE_ " " \ | |
141 | _APPARMOR_FEATURE_ " " \ | |
142 | _SMACK_FEATURE_ " " \ | |
143 | _SYSVINIT_FEATURE_ " " \ | |
144 | _UTMP_FEATURE_ " " \ | |
145 | _LIBCRYPTSETUP_FEATURE_ " " \ | |
146 | _GCRYPT_FEATURE_ " " \ | |
147 | _GNUTLS_FEATURE_ " " \ | |
148 | _ACL_FEATURE_ " " \ | |
149 | _XZ_FEATURE_ " " \ | |
150 | _LZ4_FEATURE_ " " \ | |
151 | _SECCOMP_FEATURE_ " " \ | |
152 | _BLKID_FEATURE_ " " \ | |
153 | _ELFUTILS_FEATURE_ " " \ | |
154 | _KMOD_FEATURE_ " " \ | |
f47781d8 | 155 | _IDN_FEATURE_ |