OS part is os2-emx not emx.
* build-aux/config.sub [i*86-pc-os2-emx]: Set os to os2-emx.
---
build-aux/config.sub | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 9bc49a7e9..9fb81d598 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1292,6 +1292,10 @@ case $basic_os in
kernel=nto
os=`echo $basic_os | sed -e 's|nto-qnx|qnx|'`
;;
+ os2*)
+ kernel=
+ os=$basic_os
+ ;;
*-*)
# shellcheck disable=SC2162
IFS="-" read kernel os <<EOF
--
2.22.0