Bug 1263 - waf configure fails on FreeBSD 9.0-BETA2 amd64
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 23 Sep 2011 11:42:49 +0100
changeset 7534 a42c512034f3
parent 7533 00d2a1ff85b2
child 7535 2024597e0ad8
Bug 1263 - waf configure fails on FreeBSD 9.0-BETA2 amd64
src/internet/wscript
--- a/src/internet/wscript	Fri Sep 23 11:34:43 2011 +0100
+++ b/src/internet/wscript	Fri Sep 23 11:42:49 2011 +0100
@@ -53,17 +53,17 @@
                                      "NSC not found (see option --with-nsc)")
 	return
     
-    if sys.platform in ['linux2']:
+    if Options.platform in ['linux', 'freebsd']:
         arch = os.uname()[4]
     else:
         arch = None
     ok = False
-    if arch in ('x86_64', 'i686', 'i586', 'i486', 'i386'):
+    if arch in ('amd64', 'x86_64', 'i686', 'i586', 'i486', 'i386'):
         conf.env['NSC_ENABLED'] = True
         conf.env.append_value('CXXDEFINES', 'NETWORK_SIMULATION_CRADLE')
         conf.check_nonfatal(mandatory=True, lib='dl', define_name='HAVE_DL', uselib_store='DL')
         ok = True
-    conf.msg('Checking for NSC supported architecture ' + arch, ok)
+    conf.msg('Checking for NSC supported architecture ' + (arch or ''), ok)
     
     if not ok:
         conf.env['NSC_ENABLED'] = False