]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build: Fix --disable-copyfilerange
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 9 Apr 2026 15:23:41 +0000 (17:23 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 9 Apr 2026 15:23:41 +0000 (17:23 +0200)
The --disable-copyfilerange flag is overridden by BUILD_INIT, because
it's given a second argument.

Remove it to make copyfilerange an option tool (built by default) as
intended.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
configure.ac

index 4c824eb12416253860107cd3d61adae419acb35e..97a5b697d9d43f622c70dcb9d67e44197e5c1e80 100644 (file)
@@ -2674,8 +2674,7 @@ AC_ARG_ENABLE([copyfilerange],
   AS_HELP_STRING([--disable-copyfilerange], [do not build copyfilerange]),
   [], [UL_DEFAULT_ENABLE([copyfilerange], [check])]
 )
-
-UL_BUILD_INIT([copyfilerange], [check])
+UL_BUILD_INIT([copyfilerange])
 UL_REQUIRES_LINUX([copyfilerange])
 UL_REQUIRES_SYSCALL_CHECK([copyfilerange], [UL_CHECK_SYSCALL([copy_file_range])], [copy_file_range])
 AM_CONDITIONAL([BUILD_COPYFILERANGE], [test "x$build_copyfilerange" = xyes])