3 space=$(nothing) $(nothing)
5 # We rely on all the CONFIGURE_ARGS being quoted with '...', and there
6 # being no 's inside the values.
7 FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\
8 $(space)--configure-option=',\
9 $(space)$(CONFIGURE_ARGS))
11 COMMON_CONFIGURE_FLAGS = \
12 --libsubdir='$$pkgid' \
14 $(addprefix --hsc2hs-option=,$(SRC_HSC2HS_OPTS))
16 ifneq "$(HSCOLOUR)" ""
17 COMMON_CONFIGURE_FLAGS += --with-hscolour=$(HSCOLOUR)
21 COMMON_CONFIGURE_FLAGS += --with-alex=$(ALEX)
25 COMMON_CONFIGURE_FLAGS += --with-haddock=$(HADDOCK)
29 COMMON_CONFIGURE_FLAGS += --with-happy=$(HAPPY)
32 COMMON_CONFIGURE_FLAGS += $(FLAGGED_CONFIGURE_ARGS) \
33 --configure-option=--with-cc=$(CC)
35 # We put non-existant paths in when configuring things that we plan to
36 # install, as we require that builds don't depend on these paths when
38 INSTALL_CONFIGURE_FLAGS = \
39 --prefix=$(NONEXISTENT) \
40 --bindir=$(NONEXISTENT) \
41 --libdir=$(NONEXISTENT) \
42 --libexecdir=$(NONEXISTENT) \
43 --datadir=$(NONEXISTENT) \
44 --docdir=$(NONEXISTENT) \
45 --haddockdir=$(NONEXISTENT) \
46 --htmldir=$(NONEXISTENT) \
47 --with-compiler=$(FPTOOLS_TOP_ABS)/compiler/stage1/ghc-inplace \
48 --with-hc-pkg=$(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg-inplace \
49 --with-hsc2hs=$(HSC2HS_INPLACE) \
50 $(COMMON_CONFIGURE_FLAGS)
52 INPLACE_CONFIGURE_FLAGS = \
53 --prefix=`$(TOP)/utils/pwd/pwd forwardslash`/install-inplace \
54 --with-compiler=$(GHC) \
55 --with-hc-pkg=$(GHC_PKG) \
56 --package-db $(FPTOOLS_TOP_ABS)/libraries/bootstrapping.conf \
57 $(COMMON_CONFIGURE_FLAGS)
60 # --bindir='$$prefix/bin' \
61 # --libdir='$$prefix/lib' \
62 # --libexecdir='$$prefix/libexec' \
63 # --datadir='$$prefix/data' \
64 # --docdir='$$prefix/doc' \
65 # --haddockdir='$$prefix/haddock' \
66 # --htmldir='$$prefix/html' \
68 BUILD_FLAGS = $(addprefix --ghc-option=,$(SRC_HC_OPTS))