Index: SConstruct
===================================================================
--- SConstruct	(revisión: 4688)
+++ SConstruct	(copia de trabajo)
@@ -59,6 +59,7 @@
     BoolOption('GPROFILE', 'Compile with support for gprofile (Developers only)', 0),
     BoolOption('FREEDESKTOP', 'Install MIME type, icons and .desktop file as per the freedesktop.org spec (requires xdg-utils and shared-mime-info). "scons uninstall" removes associations in desktop database', 0),
     BoolOption('TRANZPORT', 'Compile with support for Frontier Designs (if libusb is available)', 1),
+    BoolOption('KERNELTRANZPORT', 'Compile with linux kernel support for Frontier Designs', 1),
     BoolOption('AUBIO', "Use Paul Brossier's aubio library for feature detection (if available)", 1),
     BoolOption('AUSTATE', "Build with support for AU settings & presets saving/loading", 0)
 )
@@ -1203,18 +1204,24 @@
 
 surface_subdirs = [ 'libs/surfaces/control_protocol',
                     'libs/surfaces/generic_midi',
-                    'libs/surfaces/tranzport',
                     'libs/surfaces/mackie',
                     'libs/surfaces/powermate',
 		    'libs/surfaces/wiimote'
                     ]
 
 if env['SURFACES']:
-    if have_libusb:
-        env['TRANZPORT'] = 1
+    if config[config_kernel] == 'linux' :
+	env['KERNELTRANZPORT'] = 1
+	surface_subdirs += [ 'libs/surfaces/frontier/tranzport' ]
+	print 'Building Linux Kernel based Tranzport code'
     else:
-        env['TRANZPORT'] = 0
-        print 'Disabled building Tranzport code because libusb could not be found'
+    	if have_libusb:
+		env['TRANZPORT'] = 1
+		surface_subdirs += [ 'libs/surfaces/tranzport' ]
+		print 'Building libusb Tranzport code'
+	else:
+		env['TRANZPORT'] = 0
+		print 'Disabled building Tranzport code because libusb could not be found'
 
     if have_linux_input:
         env['POWERMATE'] = 1
