Blame SOURCES/0008-build-Protect-against-unsupported-CPU-types.patch

71361e
From 75ef0de24167daa84c11774f4bc9d1b4a9eaacfa Mon Sep 17 00:00:00 2001
71361e
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
71361e
Date: Tue, 5 Jul 2016 18:07:45 -0400
71361e
Subject: [PATCH 08/16] build: Protect against unsupported CPU types
71361e
71361e
---
71361e
 configure.ac | 6 ++++--
71361e
 1 file changed, 4 insertions(+), 2 deletions(-)
71361e
71361e
diff --git a/configure.ac b/configure.ac
71361e
index 5ec8517..1fcbd53 100644
71361e
--- a/configure.ac
71361e
+++ b/configure.ac
71361e
@@ -73,7 +73,8 @@ AS_CASE(["${host}"],
71361e
         [
71361e
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
71361e
          HAVE_WIN=1
71361e
-        ]
71361e
+        ],
71361e
+    [AC_MSG_ERROR([Unsupported host $host])]
71361e
 )
71361e
 AC_SUBST(PLATFORM_CFLAGS)
71361e
 AM_CONDITIONAL(HAVE_POSIX, [test "x${HAVE_POSIX}" = "x1"])
71361e
@@ -94,8 +95,9 @@ AS_CASE(["${host_cpu}"],
71361e
         [
71361e
          HAVE_ARM=1
71361e
          ARCH_CFLAGS="-DWEBRTC_ARCH_ARM"
71361e
-        ]
71361e
+        ],
71361e
     # FIXME: Add MIPS support, see webrtc/BUILD.gn for defines
71361e
+    [AC_MSG_ERROR([Unsupported CPU type $host_cpu])]
71361e
 )
71361e
 AM_CONDITIONAL(HAVE_X86, [test "x${HAVE_X86}" = "x1"])
71361e
 AM_CONDITIONAL(HAVE_ARM, [test "x${HAVE_ARM}" = "x1"])
71361e
-- 
71361e
2.14.3
71361e