From bd6713471f125eafbd6dd464414b4787e4c8f6fc Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 9 Jun 2009 10:15:28 +0200 Subject: [PATCH] build-sys: add --disable-switch_root Signed-off-by: Karel Zak --- configure.ac | 7 +++++++ sys-utils/Makefile.am | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f700f578..ac5fecd6 100644 --- a/configure.ac +++ b/configure.ac @@ -628,6 +628,13 @@ fi 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 diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index 856d6a1f..6700677f 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -1,7 +1,7 @@ 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 @@ -28,6 +28,10 @@ sbin_PROGRAMS += pivot_root 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 -- 2.39.5