[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] AC_PROG_MKDIR_P: Fix detection of busybox mkdir.
From: |
Zack Weinberg |
Subject: |
[PATCH] AC_PROG_MKDIR_P: Fix detection of busybox mkdir. |
Date: |
Wed, 13 Dec 2023 08:56:54 -0500 |
From: Paul Eggert <eggert@cs.ucla.edu>
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 <https://savannah.gnu.org/support/?110971>.
* 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.41.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] AC_PROG_MKDIR_P: Fix detection of busybox mkdir.,
Zack Weinberg <=