]>
Commit | Line | Data |
---|---|---|
03467c88 | 1 | /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ |
302e27c8 | 2 | |
c2f1db8f | 3 | #pragma once |
302e27c8 LP |
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 | |
5430f7f2 LP |
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 | |
302e27c8 LP |
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 | |
5430f7f2 | 18 | Lesser General Public License for more details. |
302e27c8 | 19 | |
5430f7f2 | 20 | You should have received a copy of the GNU Lesser General Public License |
302e27c8 LP |
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_LIBWRAP | |
31 | #define _LIBWRAP_FEATURE_ "+LIBWRAP" | |
32 | #else | |
33 | #define _LIBWRAP_FEATURE_ "-LIBWRAP" | |
34 | #endif | |
35 | ||
36 | #ifdef HAVE_AUDIT | |
37 | #define _AUDIT_FEATURE_ "+AUDIT" | |
38 | #else | |
39 | #define _AUDIT_FEATURE_ "-AUDIT" | |
40 | #endif | |
41 | ||
42 | #ifdef HAVE_SELINUX | |
43 | #define _SELINUX_FEATURE_ "+SELINUX" | |
44 | #else | |
45 | #define _SELINUX_FEATURE_ "-SELINUX" | |
46 | #endif | |
47 | ||
81611586 RS |
48 | #ifdef HAVE_IMA |
49 | #define _IMA_FEATURE_ "+IMA" | |
50 | #else | |
51 | #define _IMA_FEATURE_ "-IMA" | |
52 | #endif | |
53 | ||
07459bb6 FF |
54 | #ifdef HAVE_SYSV_COMPAT |
55 | #define _SYSVINIT_FEATURE_ "+SYSVINIT" | |
56 | #else | |
57 | #define _SYSVINIT_FEATURE_ "-SYSVINIT" | |
58 | #endif | |
59 | ||
7838dc3a LP |
60 | #ifdef HAVE_LIBCRYPTSETUP |
61 | #define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP" | |
62 | #else | |
63 | #define _LIBCRYPTSETUP_FEATURE_ "-LIBCRYPTSETUP" | |
64 | #endif | |
65 | ||
feb12d3e LP |
66 | #ifdef HAVE_GCRYPT |
67 | #define _GCRYPT_FEATURE_ "+GCRYPT" | |
68 | #else | |
69 | #define _GCRYPT_FEATURE_ "-GCRYPT" | |
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 | #define SYSTEMD_FEATURES _PAM_FEATURE_ " " _LIBWRAP_FEATURE_ " " _AUDIT_FEATURE_ " " _SELINUX_FEATURE_ " " _IMA_FEATURE_ " " _SYSVINIT_FEATURE_ " " _LIBCRYPTSETUP_FEATURE_ " " _GCRYPT_FEATURE_ " " _ACL_FEATURE_ " " _XZ_FEATURE_ |