Make USE_NEW_MKDEPEND_FLAGS=YES if MKDEPENDHS >= GHC 609 2008-09-20 6_10_branch_has_been_forked
authorIan Lynagh <igloo@earth.li>
Fri, 12 Sep 2008 11:02:27 +0000 (11:02 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 12 Sep 2008 11:02:27 +0000 (11:02 +0000)
mk/boilerplate.mk

index a73b30d..164c19f 100644 (file)
@@ -31,7 +31,8 @@ WAYS=$(NoFibWays)
 SRC_HC_OPTS += $(NoFibHcOpts) -Rghc-timing
 
 HC        = $(WithNofibHc)
-MKDEPENDHS = $(WithNofibHc)  # ToDo: wrong, if $(WithNofibHc) isn't GHC.
+MKDEPENDHS := $(WithNofibHc)  # ToDo: wrong, if $(WithNofibHc) isn't GHC.
+USE_NEW_MKDEPEND_FLAGS := $(shell if test `$(MKDEPENDHS) --numeric-version | sed -e "s/\./0/" -e "s/\..*//"` -ge 609; then echo YES; else echo NO; fi)
 
 include $(NOFIB_TOP)/mk/paths.mk
 include $(NOFIB_TOP)/mk/opts.mk