diff options
author | Karel Zak | 2017-02-20 14:17:37 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-20 14:17:37 +0100 |
commit | 6f2eb03433bcb2d3c351efed848a1f8554a7ff78 (patch) | |
tree | b47c2c598a22b32f6b52d5b30c70029ccaa0d338 /m4/ul.m4 | |
parent | tests: another improvement to the sfdisk wipe test (diff) | |
download | kernel-qcow2-util-linux-6f2eb03433bcb2d3c351efed848a1f8554a7ff78.tar.gz kernel-qcow2-util-linux-6f2eb03433bcb2d3c351efed848a1f8554a7ff78.tar.xz kernel-qcow2-util-linux-6f2eb03433bcb2d3c351efed848a1f8554a7ff78.zip |
build-sys: fix --disable-all-programs --enable-schedutils
* add UL_ENABLE_ALIAS(NAME, MASTERNAME) to initialize $enable_<name>
according to MASTERNAME. Note that we have to use $build_<mastername>,
the $enable_<mastername> is just AC_ARG_ENABLE() stuff only. The
$build_ is evaluated and modified by our UL_...() functions.
* add enable-schedutils.conf to have build-system regression test for
this use-case
Addresses: https://github.com/karelzak/util-linux/issues/415
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'm4/ul.m4')
-rw-r--r-- | m4/ul.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -429,6 +429,21 @@ AC_DEFUN([UL_DEFAULT_ENABLE], [ fi ]) + +dnl UL_ENABLE_ALIAS(NAME, MASTERNAME) +dnl +dnl Initializes $enable_<name> variable according to $build_<mastername>. This +dnl is usefull for example if you want to use one --enable-mastername option +dnl for group of programs. +dnl +AC_DEFUN([UL_ENABLE_ALIAS], [ + m4_define([suffix], $1) + m4_define([mastersuffix], $2) + + enable_[]suffix=$build_[]mastersuffix +]) + + dnl UL_NCURSES_CHECK(NAME) dnl dnl Initializes $have_<name>, NCURSES_LIBS and NCURSES_CFLAGS variables according to |