From dec7b457b6771588d79190f3f6bd007310fc7fe7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Dec 2023 08:48:15 -0500 Subject: [PATCH] AC_PROG_MKDIR_P: Fix detection of busybox mkdir. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some versions of BusyBox mkdir respond to ‘mkdir --version’ by printing “mkdir: unrecognized option: --version” to stderr, and then the version message we’re looking for, also to stderr. Adjust the pattern matching in AC_PROG_MKDIR_P to account for this. Problem reported by Valery Ushakov. Resolves . * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Fix detection of busybox mkdir. --- lib/autoconf/programs.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index d06d18c4..8226a7c7 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -700,7 +700,7 @@ if test -z "$MKDIR_P"; then AS_EXECUTABLE_P(["$as_dir$ac_prog$ac_exec_ext"]) || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; -- 2.47.2