  
  if env['suncc']:
 -	print 'warning: not building svga'
-+	print ('warning: not building svga')
++	print('warning: not building svga')
  	Return()
  
  env.Append(CPPDEFINES = [
 diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript
-index c578d7a..c5ab620 100644
+index b394cbc17e349a982e40..fdced66463c912048e04 100644
 --- a/src/gallium/drivers/swr/SConscript
 +++ b/src/gallium/drivers/swr/SConscript
 @@ -8,12 +8,12 @@ if not env['swr']:

 
 if not env['llvm']:
-    print 'warning: LLVM disabled: not building swr'
+    print ('warning: LLVM disabled: not building swr')
     env['swr'] = False
     Return()
 
 if env['LLVM_VERSION'] < distutils.version.LooseVersion('3.9'):
-    print "warning: swr requires LLVM >= 3.9: not building swr"
+    print ("warning: swr requires LLVM >= 3.9: not building swr")
     env['swr'] = False
     Return()
 

     llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config')
     llvm_includedir = env.backtick('%s --includedir' % llvm_config).rstrip()
-    print "llvm include dir %s" % llvm_includedir
+    print("llvm include dir %s" % llvm_includedir)
 
 if not env['msvc'] :
     env.Append(CCFLAGS = [
diff --git a/src/gallium/targets/dri/SConscript b/src/gallium/targets/dri/SConscript
index d7a8cbdca5d7545dc324..f5c2818d04f3c6773dd6 100644
--- a/src/gallium/targets/dri/SConscript
+++ b/src/gallium/targets/dri/SConscript
@@ -3,7 +3,7 @@ Import('*')
