From: Denis Laxalde <denis.laxalde@logilab.fr>
Date: Mon, 5 May 2014 11:13:23 +0200
Subject: Check that DEST_CPU exists before reading it

Waf verion 1.6 (used by Aster currently) does not know all architectures
supported by Debian (e.g. s390x), so DEST_CPU environment key might be an
empty list (default in case of AttributeError in ConfigSet internal mechanism
of Waf). In such cases, let's just skip the check.
---
 wscript |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wscript b/wscript
index b0fac6f..d05fb7c 100644
--- a/wscript
+++ b/wscript
@@ -211,7 +211,7 @@ def check_platform(self):
         os_name = 'linux'
     elif os_name == 'sunos':
         os_name = 'solaris'
-    if self.env.DEST_CPU.endswith('64'):
+    if self.env.DEST_CPU and self.env.DEST_CPU.endswith('64'):
         os_name += '64'
         self.define('_USE_64_BITS', 1)
     os_name = os_name.upper()
