--- Makefile.PL.orig	2011-07-15 22:50:57.000000000 -0700
+++ Makefile.PL	2011-07-15 22:53:15.000000000 -0700
@@ -165,7 +165,7 @@ sub CheckCCode
 		return 0;
 	}
 
-	foreach my $cc (qw/cc gcc/)
+	my $cc = '@CC@';
 	{
 		unlink($test);
 		system "$cc $cflags -o $test $test.c $ldflags";
