patch applied (ghc): Explicitly set "docdir" when calling make, configure's --docdir seems to be ignored

Ian Lynagh igloo at earth.li
Sun Sep 2 15:54:35 EDT 2007


On Sun, Sep 02, 2007 at 11:04:51AM -0700, Judah Jacobson wrote:
> On 9/2/07, Sven Panne <Sven.Panne at aedion.de> wrote:
> >   * Explicitly set "docdir" when calling make, configure's --docdir seems to be ignored

The reason is:

# 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.

> I've actually been looking at that problem (in an effort to learn more
> about ghc's make system), and I think I tracked down the cause of this
> issue.  In config.mk.in, there is
> 
> > prefix			= @prefix@
> > datarootdir		= @datarootdir@
> > exec_prefix		= @exec_prefix@
> > bindir			= @bindir@
> (etc.)
> 
> and later:
> 
> > docdir    = $(datarootdir)/doc/ghc
> > htmldir   = $(docdir)
> > dvidir    = $(docdir)
> > pdfdir    = $(docdir)
> > psdir     = $(docdir)
> 
> But the variable "datarootdir" appears nowhere else in the ghc tree,
> so it's set to "@datarootdir@" when config.mk.in is turned into
> config.mk.

Hmm, code to set datarootdir should come from autoreconf, when it makes
configure. Can you please tell me what these commands say for you in a
configured GHC tree?

autoreconf --version
make show VALUE=bindir
make show VALUE=datarootdir
make show VALUE=datadir
make show VALUE=docdir


Thanks
Ian



More information about the Cvs-ghc mailing list