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