Signed-off-by: Karel Zak <kzak@redhat.com>
AM_CONDITIONAL(BUILD_CRAMFS, test "x$build_cramfs" = xyes)
+AC_ARG_ENABLE([switch_root],
+ AS_HELP_STRING([--disable-switch_root], [do not build switch_root]),
+ [], enable_switch_root=no
+)
+AM_CONDITIONAL(BUILD_SWITCH_ROOT, test "x$enable_switch_root" = xyes)
+
+
AC_ARG_ENABLE([elvtune],
AS_HELP_STRING([--enable-elvtune], [build elvtune (only works with 2.2 and 2.4 kernels)]),
[], enable_elvtune=no
include $(top_srcdir)/config/include-Makefile.am
bin_PROGRAMS =
-sbin_PROGRAMS = switch_root
+sbin_PROGRAMS =
usrbinexec_PROGRAMS = flock ipcrm ipcs ipcmk renice setsid
usrsbinexec_PROGRAMS = readprofile
dist_man_MANS += pivot_root.8
endif
+if BUILD_SWITCH_ROOT
+sbin_PROGRAMS += switch_root
+endif
+
if BUILD_ARCH
bin_PROGRAMS += arch
dist_man_MANS += arch.1