5cc7cb
From 3a49e5147822bdfea2c763c863a7ca6b6baee609 Mon Sep 17 00:00:00 2001
5cc7cb
From: Joachim Breitner <mail@joachim-breitner.de>
5cc7cb
Date: Mon, 5 Sep 2011 09:37:24 +0200
5cc7cb
Subject: [PATCH] Add s390x to list of supported architectures
5cc7cb
5cc7cb
---
5cc7cb
 aclocal.m4   |    3 +++
5cc7cb
 configure.ac |    2 +-
5cc7cb
 2 files changed, 4 insertions(+), 1 deletions(-)
5cc7cb
5cc7cb
Index: ghc-7.0.4/aclocal.m4
5cc7cb
===================================================================
5cc7cb
--- ghc-7.0.4.orig/aclocal.m4	2011-08-31 08:44:42.000000000 +0200
5cc7cb
+++ ghc-7.0.4/aclocal.m4	2011-09-05 14:08:59.000000000 +0200
5cc7cb
@@ -1457,6 +1457,9 @@
5cc7cb
   rs6000)
5cc7cb
     $2="rs6000"
5cc7cb
     ;;
5cc7cb
+  s390x*)
5cc7cb
+    $2="s390x"
5cc7cb
+    ;;
5cc7cb
   s390*)
5cc7cb
     $2="s390"
5cc7cb
     ;;
5cc7cb
Index: ghc-7.0.4/configure.ac
5cc7cb
===================================================================
5cc7cb
--- ghc-7.0.4.orig/configure.ac	2011-06-13 19:10:04.000000000 +0200
5cc7cb
+++ ghc-7.0.4/configure.ac	2011-09-05 14:08:59.000000000 +0200
5cc7cb
@@ -244,7 +244,7 @@
5cc7cb
 
5cc7cb
 checkArch() {
5cc7cb
     case $1 in
5cc7cb
-    alpha|arm|hppa|hppa1_1|i386|ia64|m68k|mips|mipseb|mipsel|powerpc|powerpc64|rs6000|s390|sparc|sparc64|vax|x86_64)
5cc7cb
+    alpha|arm|hppa|hppa1_1|i386|ia64|m68k|mips|mipseb|mipsel|powerpc|powerpc64|rs6000|s390|s390x|sparc|sparc64|vax|x86_64)
5cc7cb
         ;;
5cc7cb
     *)
5cc7cb
         echo "Unknown arch $1"