Index: tools/autotool.py
===================================================================
--- tools/autotool.py	(revision 63d46341182c752620dcc5a2233d205cee1075dd)
+++ tools/autotool.py	(revision b83ec692ece791c1367db526f77c9d28fd800692)
@@ -323,7 +323,9 @@
 
 	common['GCC'] = "%sgcc" % prefix
+	common['GPP'] = "%sg++" % prefix
 
 	if (not path is None):
 		common['GCC'] = "%s/%s" % (path, common['GCC'])
+		common['GPP'] = "%s/%s" % (path, common['GPP'])
 
 	check_app([common['GCC'], "--version"], "GNU GCC", details)
@@ -613,4 +615,7 @@
 			common['CC'] = " ".join([common['GCC']] + cc_args)
 			common['CC_AUTOGEN'] = common['CC']
+
+			check_common(common, "GPP")
+			common['CPP'] = common['GPP']
 
 		if (config['COMPILER'] == "gcc_native"):
