From 6f01554bf1d049f42b443bd48ddfe791fae0b315 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sun, 7 May 2023 05:23:59 +0000
Subject: build system: ./configure: base SHELL on the environment's
 CONFIG_SHELL.

---
 config.usage              | 2 +-
 configure                 | 2 +-
 sofort/config/config.vars | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.usage b/config.usage
index 33d1e58..41fe629 100644
--- a/config.usage
+++ b/config.usage
@@ -143,7 +143,7 @@ supported variables:
 	TOOLCHAIN
 	SYSROOT
 	CROSS_COMPILE
-	SHELL
+	CONFIG_SHELL
 
 	PKGCONF
 	PKGCONFIG
diff --git a/configure b/configure
index e79d154..8641815 100755
--- a/configure
+++ b/configure
@@ -275,7 +275,7 @@ init_vars()
 	mb_toolchain=$TOOLCHAIN
 	mb_sysroot=$SYSROOT
 	mb_cross_compile=$CROSS_COMPILE
-	mb_shell=$SHELL
+	mb_shell=$CONFIG_SHELL
 
 	# pkgconf
 	mb_pkgconf=$PKGCONF
diff --git a/sofort/config/config.vars b/sofort/config/config.vars
index 0c01a29..38d5616 100644
--- a/sofort/config/config.vars
+++ b/sofort/config/config.vars
@@ -54,6 +54,7 @@ zealous
 sysroot
 freestanding
 cross_compile
+config_shell
 shell
 
 pkgconf
-- 
cgit v1.2.3