Description: Fix loong64 FTBFS by teaching bundled config.guess/config.sub about loongarch64
 The bundled autotools helper scripts (config.guess timestamp 2018-02-24,
 config.sub timestamp 2018-02-22) predate LoongArch support, so ./configure
 fails on loong64 with:
 .
   checking build system type... ./config.guess: unable to guess system type
   configure: error: cannot guess build type; you must specify one
 .
 Add the loongarch64 machine entries to both scripts so that the build
 triplet is recognized (e.g. loongarch64-unknown-linux-gnu).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-10-26

--- atari800-5.2.0.orig/config.guess
+++ atari800-5.2.0/config.guess
@@ -1002,6 +1002,9 @@ EOF
     mips64el:Linux:*:*)
 	echo "$UNAME_MACHINE"-${VENDOR}-linux-"$LIBC"
 	exit ;;
+    loongarch64:Linux:*:*)
+	echo "$UNAME_MACHINE"-${VENDOR}-linux-"$LIBC"
+	exit ;;
     openrisc*:Linux:*:*)
 	echo or1k-${VENDOR}-linux-"$LIBC"
 	exit ;;
--- atari800-5.2.0.orig/config.sub
+++ atari800-5.2.0/config.sub
@@ -270,6 +270,7 @@ case $basic_machine in
 	| mips | mipsbe | mipseb | mipsel | mipsle \
 	| mips16 \
 	| mips64 | mips64el \
+	| loongarch64 \
 	| mips64octeon | mips64octeonel \
 	| mips64orion | mips64orionel \
 	| mips64r5900 | mips64r5900el \
@@ -397,6 +398,7 @@ case $basic_machine in
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 	| mips16-* \
 	| mips64-* | mips64el-* \
+	| loongarch64-* \
 	| mips64octeon-* | mips64octeonel-* \
 	| mips64orion-* | mips64orionel-* \
 	| mips64r5900-* | mips64r5900el-* \
