summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-08-31 17:39:03 +0000
committerIan Lynagh <igloo@earth.li>2007-08-31 17:39:03 +0000
commitd668d368efdb8ea54dab178e6cc6178b8148e7cf (patch)
tree25fc3eba40f26926e1b11c0e017dbc9ce02d8163 /mk
parent93ff058d179e1c6f36d5df7fa290f326d79b680a (diff)
downloadhaskell-d668d368efdb8ea54dab178e6cc6178b8148e7cf.tar.gz
Don't use the --docdir etc that autoconf provides
Older autoconfs (<2.60?) don't understand them.
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in20
1 files changed, 15 insertions, 5 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 16109bfcaa..249da9efe2 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -550,11 +550,21 @@ datadir = $(datadir0)/ghc-$(ProjectVersion)
endif # Windows
headerdir = $(libdir)/include
-docdir = @docdir@
-htmldir = @htmldir@
-dvidir = @dvidir@
-pdfdir = @pdfdir@
-psdir = @psdir@
+
+# New autoconf (>= 2.60?) make a configure with --docdir=DIR etc flags.
+# However, in order to support older autoconf's we don't use them.
+
+#docdir = @docdir@
+#htmldir = @htmldir@
+#dvidir = @dvidir@
+#pdfdir = @pdfdir@
+#psdir = @psdir@
+
+docdir = $(datarootdir)/doc/ghc
+htmldir = $(docdir)
+dvidir = $(docdir)
+pdfdir = $(docdir)
+psdir = $(docdir)
# Default place for putting interface files is $(libdir)
# (overriden for packages in package.mk)