['os-release', '5', [], ''],
['pam_systemd', '8', [], 'HAVE_PAM'],
['resolved.conf', '5', ['resolved.conf.d'], 'ENABLE_RESOLVED'],
- ['runlevel', '8', [], 'HAVE_UTMP'],
+ ['runlevel', '8', [], 'ENABLE_UTMP'],
['sd-bus-errors',
'3',
['SD_BUS_ERROR_ACCESS_DENIED',
['systemd-update-utmp.service',
'8',
['systemd-update-utmp', 'systemd-update-utmp-runlevel.service'],
- 'HAVE_UTMP'],
+ 'ENABLE_UTMP'],
['systemd-user-sessions.service', '8', ['systemd-user-sessions'], 'HAVE_PAM'],
['systemd-vconsole-setup.service',
'8',
<refentry id="runlevel"
xmlns:xi="http://www.w3.org/2001/XInclude"
- conditional="HAVE_UTMP">
+ conditional="ENABLE_UTMP">
<refentryinfo>
<title>runlevel</title>
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
-->
-<refentry id="systemd-update-utmp.service" conditional="HAVE_UTMP">
+<refentry id="systemd-update-utmp.service" conditional="ENABLE_UTMP">
<refentryinfo>
<title>systemd-update-utmp.service</title>
endif
conf.set10('ENABLE_REMOTE', have)
-foreach pair : [['utmp', 'HAVE_UTMP'],
+foreach pair : [['utmp', 'ENABLE_UTMP'],
['hibernate', 'ENABLE_HIBERNATE'],
['environment-d', 'ENABLE_ENVIRONMENT_D'],
['binfmt', 'ENABLE_BINFMT'],
#define _SYSVINIT_FEATURE_ "-SYSVINIT"
#endif
-#if HAVE_UTMP
+#if ENABLE_UTMP
#define _UTMP_FEATURE_ "+UTMP"
#else
#define _UTMP_FEATURE_ "-UTMP"
shared_sources += ['acl-util.c']
endif
-if conf.get('HAVE_UTMP') == 1
+if conf.get('ENABLE_UTMP') == 1
shared_sources += ['utmp-wtmp.c']
endif
#include "time-util.h"
#include "util.h"
-#if HAVE_UTMP
+#if ENABLE_UTMP
int utmp_get_runlevel(int *runlevel, int *previous);
int utmp_put_shutdown(void);
bool (*match_tty)(const char *tty, void *userdata),
void *userdata);
-#else /* HAVE_UTMP */
+#else /* ENABLE_UTMP */
static inline int utmp_get_runlevel(int *runlevel, int *previous) {
return -ESRCH;
return 0;
}
-#endif /* HAVE_UTMP */
+#endif /* ENABLE_UTMP */
L /var/run - - - - ../run
d /var/log 0755 - - -
-m4_ifdef(`HAVE_UTMP',
+m4_ifdef(`ENABLE_UTMP',
f /var/log/wtmp 0664 root utmp -
f /var/log/btmp 0600 root utmp -
f /var/log/lastlog 0664 root utmp -
'sysinit.target.wants/'],
['systemd-update-done.service', '',
'sysinit.target.wants/'],
- ['systemd-update-utmp-runlevel.service', 'HAVE_UTMP HAVE_SYSV_COMPAT',
+ ['systemd-update-utmp-runlevel.service', 'ENABLE_UTMP HAVE_SYSV_COMPAT',
'multi-user.target.wants/ graphical.target.wants/ rescue.target.wants/'],
- ['systemd-update-utmp.service', 'HAVE_UTMP',
+ ['systemd-update-utmp.service', 'ENABLE_UTMP',
'sysinit.target.wants/'],
['systemd-user-sessions.service', '',
'multi-user.target.wants/'],