From: Paul Eggert Date: Wed, 13 Dec 2023 13:48:15 +0000 (-0500) Subject: AC_PROG_MKDIR_P: Fix detection of busybox mkdir. X-Git-Tag: v2.72e~9 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dec7b457b6771588d79190f3f6bd007310fc7fe7;p=thirdparty%2Fautoconf.git AC_PROG_MKDIR_P: Fix detection of busybox mkdir. 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. --- 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;;