fix mk/build.mk for HaveLibGmp/HaveFrameworkGMP
authorAustin Seipp <as@nijoruj.org>
Mon, 6 Jul 2009 21:39:37 +0000 (21:39 +0000)
committerAustin Seipp <as@nijoruj.org>
Mon, 6 Jul 2009 21:39:37 +0000 (21:39 +0000)
Previously if you were to set HaveFrameworkGMP/HaveLibGmp in
mk/build.mk (e.g. on mac os) the settings would be ignored, as
gmp/config.mk is included late in GHC's ghc.mk, meaning autoconf
overrides your settings. Now they ignore the values picked up by
configure if you set these variables.

gmp/config.mk.in

index db36659..08cd197 100644 (file)
@@ -1,4 +1,8 @@
 
-HaveLibGmp = @HaveLibGmp@
-HaveFrameworkGMP = @HaveFrameworkGMP@
+ifeq ($(HaveLibGmp),"")
+ HaveLibGmp = @HaveLibGmp@
+endif
 
+ifeq ($(HaveFrameworkGMP),"")
+ HaveFrameworkGMP = @HaveFrameworkGMP@
+endif