aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/libtheora-config-guess.patch
blob: 9529ea710159a2105b5abf627fad97bd574f08f3 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Minimally patch libtheora's ancient config.guess to support mips64.

--- libtheora/config.guess.orig	2009-02-23 22:50:50.000000000 -0500
+++ libtheora/config.guess	2013-10-31 23:49:48.155999944 -0400
@@ -798,25 +798,24 @@
     m68*:Linux:*:*)
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
 	exit 0 ;;
-    mips:Linux:*:*)
+    mips:Linux:*:* | mips64:Linux:*:*)
 	eval $set_cc_for_build
 	sed 's/^	//' << EOF >$dummy.c
 	#undef CPU
-	#undef mips
-	#undef mipsel
+	#undef ${UNAME_MACHINE}
+	#undef ${UNAME_MACHINE}el
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
-	CPU=mipsel
+	CPU=${UNAME_MACHINE}el
 	#else
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
-	CPU=mips
+	CPU=${UNAME_MACHINE}
 	#else
 	CPU=
 	#endif
 	#endif
 EOF
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
-	rm -f $dummy.c && rmdir $tmpdir
-	test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit 0; }
 	;;
     ppc:Linux:*:*)
 	echo powerpc-unknown-linux-gnu
on-control.scm?id=d512990d157865e98be917b32797e4e4d4535cf5'>gnu: vc-dwim: Update to 1.10....Efraim Flashner 2020-09-27gnu: Add grokmirror....Kyle Meyer 2020-09-10gnu: Add python-hg-evolve....Tanguy Le Carrour 2020-09-09gnu: mercurial: Update to 5.5.1....Dr. Arne Babenhauserheide 2020-09-08gnu: pre-commit: Update to 2.7.1....Vinicius Monego 2020-08-28gnu: git-lfs: Make usage text available....Prafulla Giri 2020-08-25gnu: git-lfs: Don't install source....Efraim Flashner 2020-08-25gnu: git-lfs: Update to v2.11.0....Prafulla Giri 2020-08-25gnu: git-lfs: Install man pages....Prafulla Giri 2020-08-15gnu: gitolite: Update to 3.6.12....Tobias Geerinckx-Rice