Index: mono-uia-winforms.git/UIAutomationWinforms/Makefile.am
===================================================================
--- mono-uia-winforms.git.orig/UIAutomationWinforms/Makefile.am	2012-01-24 19:54:44.000000000 +0000
+++ mono-uia-winforms.git/UIAutomationWinforms/Makefile.am	2012-01-24 19:54:52.000000000 +0000
@@ -4,7 +4,7 @@
 # Warning: This is an automatically generated file, do not edit!
 
 if ENABLE_DEBUG
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(GMCS)
 ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -warnaserror -optimize+ -debug "-define:DEBUG" -keyfile:$(top_srcdir)/mono-uia.snk
 
 ASSEMBLY = bin/Debug/UIAutomationWinforms.dll
@@ -19,7 +19,7 @@
 endif
 
 if ENABLE_RELEASE
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(GMCS)
 ASSEMBLY_COMPILER_FLAGS = -keyfile:$(top_srcdir)/mono-uia.snk -noconfig -codepage:utf8 -warn:4 -warnaserror -optimize+
 ASSEMBLY = bin/Release/UIAutomationWinforms.dll
 ASSEMBLY_MDB = 
Index: mono-uia-winforms.git/UIAutomationWinformsTests/Makefile.am
===================================================================
--- mono-uia-winforms.git.orig/UIAutomationWinformsTests/Makefile.am	2012-01-24 19:54:44.000000000 +0000
+++ mono-uia-winforms.git/UIAutomationWinformsTests/Makefile.am	2012-01-24 19:54:59.000000000 +0000
@@ -4,7 +4,7 @@
 # Warning: This is an automatically generated file, do not edit!
 
 if ENABLE_DEBUG
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(GMCS)
 ASSEMBLY_COMPILER_FLAGS = -keyfile:$(top_srcdir)/mono-uia.snk -noconfig -codepage:utf8 -warn:4 -warnaserror -optimize+ -debug "-define:DEBUG"
 
 ASSEMBLY = bin/Debug/UIAutomationWinformsTests.dll
@@ -23,7 +23,7 @@
 endif
 
 if ENABLE_RELEASE
-ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_COMMAND = $(GMCS)
 ASSEMBLY_COMPILER_FLAGS = -keyfile:$(top_srcdir)/mono-uia.snk -noconfig -codepage:utf8 -warn:4 -warnaserror -optimize+
 ASSEMBLY = bin/Release/UIAutomationWinformsTests.dll
 ASSEMBLY_MDB = 
