Fix the build when GMP_INCLUDE_DIRS == ""
authorIan Lynagh <igloo@earth.li>
Wed, 15 Aug 2007 11:14:32 +0000 (11:14 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 15 Aug 2007 11:14:32 +0000 (11:14 +0000)
includes/Makefile

index 2acf075..32ab5f8 100644 (file)
@@ -27,10 +27,13 @@ ifeq "$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO"
 SRC_CC_OPTS += -DTABLES_NEXT_TO_CODE
 endif
 
+SRC_CC_OPTS += -I. -I../rts
 ifeq "$(HaveLibGmp)" "YES"
-SRC_CC_OPTS += -I. -I../rts -I$(GMP_INCLUDE_DIRS)
+ifneq "$(GMP_INCLUDE_DIRS)" ""
+SRC_CC_OPTS += -I$(GMP_INCLUDE_DIRS)
+endif
 else
-SRC_CC_OPTS += -I. -I../rts -I../gmp/gmpbuild
+SRC_CC_OPTS += -I../gmp/gmpbuild
 endif
 
 ifneq "$(GhcWithSMP)" "YES"