  
  if env['suncc']:
 -    print 'warning: not building dri-vmwgfx'
-+    print ('warning: not building dri-vmwgfx')
++    print('warning: not building dri-vmwgfx')
      Return()
  
  env.Append(CPPPATH = [

 
 if not env['llvm']:
-    print 'warning: LLVM disabled: not building llvmpipe'
+    print ('warning: LLVM disabled: not building llvmpipe')
     Return()
 
 env = env.Clone()
diff --git a/src/gallium/drivers/svga/SConscript b/src/gallium/drivers/svga/SConscript
index 2d60ceb..665fc0a 100644
--- a/src/gallium/drivers/svga/SConscript
+++ b/src/gallium/drivers/svga/SConscript
@@ -5,7 +5,7 @@ env = env.Clone()

 
 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()
 
