From 3d416a577d7cc35d13dfe265c4f5cb19e4f27e88 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 23 Jul 2002 10:08:58 +0000 Subject: [PATCH] [project @ 2002-07-23 10:08:58 by simonmar] Add FPTOOLS_HADDOCK to detect an installed version of Haddock. --- aclocal.m4 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/aclocal.m4 b/aclocal.m4 index 4542f41..e34db88 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl $Id: aclocal.m4,v 1.106 2002/07/20 05:37:10 dons Exp $ +dnl $Id: aclocal.m4,v 1.107 2002/07/23 10:08:58 simonmar Exp $ dnl dnl Extra autoconf macros for the Glasgow fptools dnl @@ -223,6 +223,26 @@ AC_SUBST(HappyVersion) ]) dnl +dnl Check for Haddock and version. If there's no installed Haddock, we look +dnl for a haddock source tree and point the build system at that instead. +dnl +AC_DEFUN(FPTOOLS_HADDOCK, +[ +if test -d $srcdir/haddock; then + SrcTreeHaddockCmd=$hardtop/haddock/src/haddock-inplace +fi +if test x"$UseSrcTreeHaddock" = xYES; then + HaddockCmd=$SrcTreeHaddockCmd +else + AC_PATH_PROG(HaddockCmd,haddock,$SrcTreeHaddockCmd) +fi +dnl Darn, I forgot to make Haddock print out its version number when +dnl invoked with -v. We could try generating some HTML and grepping +dnl through that to find the version number, but I think we'll make +dnl do without it for now. +]) + +dnl dnl What's the best way of doing context diffs? dnl dnl (NB: NeXTStep thinks diff'ing a file against itself is "trouble") -- 1.7.10.4