[project @ 2002-01-29 19:26:38 by krasimir]
[ghc-hetmet.git] / ghc / driver / Makefile
index 445ad74..a7667bf 100644 (file)
@@ -22,11 +22,15 @@ PKGCONF_OPTS = "$(TARGETPLATFORM)"          \
               "$(GHC_LIB_DIR)"                 \
               "$(GHC_RUNTIME_DIR)"             \
               "$(GHC_UTILS_DIR)"               \
-              "$(GHC_INCLUDE_DIR)"
+              "$(GHC_INCLUDE_DIR)"             \
+              "$(X_CFLAGS)"                    \
+              "$(X_LIBS)"
+
+# the latter two are needed to setup the package details for hslibs/xlib
 
 SRC_HC_OPTS += -fglasgow-exts -cpp 
 
-ghc_407_at_least = $(shell if (test $(GhcCanonVersion) -ge 4070); then echo YES; else echo NO; fi)
+ghc_407_at_least = $(shell if (test $(GhcCanonVersion) -ge 407); then echo YES; else echo NO; fi)
 
 ifeq "$(ghc_407_at_least)" "YES"
 SRC_HC_OPTS += -package concurrent -package text