From a72ad1216d8cf96be542e2e7a4dd1d6151d6087b Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 8 Feb 2026 00:25:40 +0000 Subject: [PATCH] build: fix --enable-single-binary=hardlinks with dash With dash as /bin/sh, you get the error ``` checking for sys/capability.h... yes ./configure: 95775: test: no: unexpected operator checking for working fork... yes ``` * configure.ac: Use '=' in test for equality, not '==', for POSIX shell compatibility. * NEWS: Mention the build fix. --- NEWS | 5 +++++ configure.ac | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5fbf1bdc5..a696b636f 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,11 @@ GNU coreutils NEWS -*- outline -*- 'kill --help' now has links to valid anchors in the html manual. [bug introduced in coreutils-9.10] +** Build-related + + ./configure --enable-single-binary=hardlinks is now supported on systems + with dash as the system shell at /bin/sh. + * Noteworthy changes in release 9.10 (2026-02-04) [stable] diff --git a/configure.ac b/configure.ac index ae00396ec..2da648987 100644 --- a/configure.ac +++ b/configure.ac @@ -134,7 +134,7 @@ if test "$gl_single_binary" = 'symlinks' || fi fi AM_CONDITIONAL([SINGLE_BINARY], [test "$gl_single_binary" != no]) -AM_CONDITIONAL([SINGLE_BINARY_HARD], [test "$gl_single_binary" == hardlinks]) +AM_CONDITIONAL([SINGLE_BINARY_HARD], [test "$gl_single_binary" = hardlinks]) AC_ARG_ENABLE([bold-man-page-references], [AS_HELP_STRING([--disable-bold-man-page-references],