diff --git a/mk/config.mk.in b/mk/config.mk.in
index 2c3a29240ec0512d248c1e908e90025891f5ad46..760e7dd997431d5be547578faa9e3075eca40dfc 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -147,7 +147,7 @@ IncludeTestDirsInBuild=NO
 #		       	     HC_ROJEMO_NHC
 #		       	     HC_UNSPECIFIED
 
-WithGhcHc = $(HC)
+WithGhcHc = @WithHc@
 
 # Variable which is set to the version number of the $(WithGhcHc) we're using.
 # Not currently used, but might come in handy sometime soon.
@@ -281,7 +281,7 @@ HaveLibReadline=@HaveLibReadline@
 ################################################################################
 
 # The compiler you'd like to use to compile Happy
-WithHappyHc = $(HC)
+WithHappyHc = @WithHc@
 
 # HappyHcOpts gives the flags to pass to the Haskell compiler used
 # 	      to compile the Happy sources with.
@@ -502,7 +502,7 @@ GHC		= @GHC@
 HBC		= @HBC@
 NHC		= @NHC@
 
-HC		= @WithHc@
+HC	        = @WithHc@
 MKDEPENDHS	= $(GHC)
 
 # Sometimes we want to invoke ghc from the build tree in different