summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorEmil Renner Berthing <systemd@esmil.dk>2014-09-24 17:25:00 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-09-26 07:48:35 -0400
commit37161c5148396448921841ae1026b281c7949652 (patch)
tree09dc44c0d051268fc31518dadbd4eb6255d85dbf /Makefile.am
parent440c61c500ead1bdc6f987b8ba7c5e7f7a9c9f59 (diff)
make utmp/wtmp support configurable
This adds --disable-utmp option to configure. If it is used, all utmp-related functionality, including querying runlevel support, is removed.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 21 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 0f54c5c014..e0cba76329 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -378,7 +378,6 @@ rootlibexec_PROGRAMS = \
systemd \
systemd-cgroups-agent \
systemd-initctl \
- systemd-update-utmp \
systemd-shutdownd \
systemd-shutdown \
systemd-remount-fs \
@@ -391,6 +390,11 @@ rootlibexec_PROGRAMS = \
systemd-socket-proxyd \
systemd-update-done
+if HAVE_UTMP
+rootlibexec_PROGRAMS += \
+ systemd-update-utmp
+endif
+
systemgenerator_PROGRAMS = \
systemd-getty-generator \
systemd-fstab-generator \
@@ -517,8 +521,6 @@ nodist_systemunit_DATA = \
units/systemd-initctl.service \
units/systemd-shutdownd.service \
units/systemd-remount-fs.service \
- units/systemd-update-utmp.service \
- units/systemd-update-utmp-runlevel.service \
units/systemd-ask-password-wall.service \
units/systemd-ask-password-console.service \
units/systemd-sysctl.service \
@@ -544,6 +546,12 @@ nodist_systemunit_DATA = \
units/systemd-nspawn@.service \
units/systemd-update-done.service
+if HAVE_UTMP
+nodist_systemunit_DATA += \
+ units/systemd-update-utmp.service \
+ units/systemd-update-utmp-runlevel.service
+endif
+
dist_userunit_DATA = \
units/user/basic.target \
units/user/default.target \
@@ -804,7 +812,6 @@ libsystemd_shared_la_SOURCES = \
src/shared/cgroup-show.h \
src/shared/unit-name.c \
src/shared/unit-name.h \
- src/shared/utmp-wtmp.c \
src/shared/utmp-wtmp.h \
src/shared/watchdog.c \
src/shared/watchdog.h \
@@ -878,6 +885,11 @@ libsystemd_shared_la_SOURCES = \
src/shared/switch-root.c \
src/shared/nss-util.h
+if HAVE_UTMP
+libsystemd_shared_la_SOURCES += \
+ src/shared/utmp-wtmp.c
+endif
+
nodist_libsystemd_shared_la_SOURCES = \
src/shared/errno-from-name.h \
src/shared/errno-to-name.h \
@@ -5856,6 +5868,7 @@ SOCKETS_TARGET_WANTS += \
systemd-initctl.socket \
systemd-shutdownd.socket
+if HAVE_UTMP
if HAVE_SYSV_COMPAT
RUNLEVEL1_TARGET_WANTS += \
systemd-update-utmp-runlevel.service
@@ -5870,7 +5883,10 @@ RUNLEVEL5_TARGET_WANTS += \
endif
SYSINIT_TARGET_WANTS += \
- systemd-update-utmp.service \
+ systemd-update-utmp.service
+endif
+
+SYSINIT_TARGET_WANTS += \
systemd-update-done.service
LOCAL_FS_TARGET_WANTS += \