]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: simplify UL_ENABLE_ALIAS() semantic
authorKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2017 10:00:19 +0000 (11:00 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 21 Feb 2017 10:00:19 +0000 (11:00 +0100)
Let's follow only $enable_ variables. In this case the MASTERNAME
(e.g. [schedutils] for --enable-schedutils) has to be without
UL_BUILD_INIT.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
m4/ul.m4

index be282f04c23dfb8e93ce4876049e136b29ece8b0..8f2c22031b46bcd9204fe3e8a2db1bd3d31c8a4f 100644 (file)
@@ -1905,9 +1905,8 @@ AM_CONDITIONAL([BUILD_SETTERM], [test "x$build_setterm" = xyes])
 # ionice, taskset and chrt
 AC_ARG_ENABLE([schedutils],
   AS_HELP_STRING([--disable-schedutils], [do not build chrt, ionice, taskset]),
-  [], [UL_DEFAULT_ENABLE([schedutils], [yes])]
+  [], [UL_DEFAULT_ENABLE([schedutils], [check])]
 )
-UL_BUILD_INIT([schedutils])
 
 
 UL_ENABLE_ALIAS([ionice], [schedutils])
index ed7227c512fc8562fc706713f22ab402c87f254b..db04c12691d74e27034a0b80880d0a781e600f9b 100644 (file)
--- a/m4/ul.m4
+++ b/m4/ul.m4
@@ -432,7 +432,7 @@ AC_DEFUN([UL_DEFAULT_ENABLE], [
 
 dnl UL_ENABLE_ALIAS(NAME, MASTERNAME)
 dnl
-dnl Initializes $enable_<name> variable according to $build_<mastername>.  This
+dnl Initializes $enable_<name> variable according to $enable_<mastername>. This
 dnl is usefull for example if you want to use one --enable-mastername option
 dnl for group of programs.
 dnl
@@ -440,7 +440,7 @@ AC_DEFUN([UL_ENABLE_ALIAS], [
   m4_define([suffix], $1)
   m4_define([mastersuffix], $2)
 
-  enable_[]suffix=$build_[]mastersuffix
+  enable_[]suffix=$enable_[]mastersuffix
 ])