8000 Merge branch 'PR/bits-build' of https://github.com/karelzak/util-linu… · util-linux/util-linux@6ac5de3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ac5de3

Browse files
committed
Merge branch 'PR/bits-build' of https://github.com/karelzak/util-linux-work
* 'PR/bits-build' of https://github.com/karelzak/util-linux-work: bits: only build when cpu_set_t is available
2 parents d4ee078 + 45f943a commit 6ac5de3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

configure.ac

+5-1
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,11 @@ UL_REQUIRES_HAVE([scriptlive], [pty], [openpty function (libutil)])
23192319
AM_CONDITIONAL([BUILD_SCRIPTLIVE], [test "x$build_scriptlive" = xyes])
23202320

23212321

2322-
UL_BUILD_INIT([bits], [yes])
2322+
AC_ARG_ENABLE([bits],
2323+
AS_HELP_STRING([--disable-bits], [do not build bits]),
2324+
[], [UL_DEFAULT_ENABLE([bits], [check])])
2325+
UL_BUILD_INIT([bits])
2326+
UL_REQUIRES_HAVE([bits], [cpu_set_t], [cpu_set_t type])
23232327
AM_CONDITIONAL([BUILD_BITS], [test "x$build_bits" = xyes])
23242328

23252329
UL_BUILD_INIT([col], [check])

meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ endif
12611261

12621262
############################################################
12631263

1264-
opt = not get_option('build-bits').disabled()
1264+
opt = not get_option('build-bits').require(have_cpu_set_t).disabled()
12651265
exe = executable(
12661266
'bits',
12671267
bits_sources,

0 commit comments

Comments
 (0)
0