[project @ 2003-08-22 10:21:46 by panne]
authorpanne <unknown>
Fri, 22 Aug 2003 10:21:47 +0000 (10:21 +0000)
committerpanne <unknown>
Fri, 22 Aug 2003 10:21:47 +0000 (10:21 +0000)
The autoconf magic for the library documentation belongs to
libraries/, not ghc/.

configure.ac
ghc/aclocal.m4
ghc/configure.ac
ghc/docs/Makefile
ghc/docs/libraries.html.in [deleted file]

index c8e75b0..d24e1e3 100644 (file)
@@ -24,9 +24,9 @@ AC_PREREQ(2.52)
 dnl * Declare subdirectories that have a private configure script
 dnl
 dnl After the toplevel configuration is complete, the script will recurse into
-dnl these subdirectories (the use of cache values makes repeated checks cheap)
-dnl (We probably have to add hslibs/{OpenGL,GLUT} here later...)
-AC_CONFIG_SUBDIRS(ghc)
+dnl these subdirectories if they exist. The use of a cache file makes repeated
+dnl checks cheap.
+AC_CONFIG_SUBDIRS([ghc libraries])
 
 # -------------------------------------------------------------------------
 # Prepare to generate the following header files
index e22229b..d4fba2e 100644 (file)
@@ -1,9 +1,3 @@
-# FP_HTML_COMMENT(VARIABLE, PREFIX)
-# ---------------------------------
-AC_DEFUN([FP_HTML_COMMENT],
-[AS_IF([$1],
-       [$2HTMLStart="";     $2HTMLEnd=""],
-       [$2HTMLStart="<!--"; $2HTMLEnd="-->"])[]dnl
-AC_SUBST([$2HTMLStart])[]dnl
-AC_SUBST([$2HTMLEnd])[]dnl
-])# FP_HTML_COMMENT
+# Although we don't need any local macros currently, we leave this file here.
+# Otherwise autoreconf invokes aclocal from the automake tools, which might
+# be nonexistent or too old.
index 338678c..31d06a6 100644 (file)
@@ -1,5 +1,5 @@
 # Initialise and check sanity.
-AC_INIT(ghc.spec.in)
+AC_INIT([ghc.spec.in])
 
 # Compute the version number.
 version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
@@ -9,29 +9,5 @@ patchlevel=1
 AC_SUBST(version)
 AC_SUBST(patchlevel)
 
-# Uncomment links to unix docs if necessary.
-# NOTE: This is a slight hack: It needs to be synchronized with
-# fptools/configure.ac and fptools/libraries/Makefile and should probably use
-# target features instead of host.
-AC_CANONICAL_HOST
-
-case $host in
-i[[3456]]86-*-mingw32*) fp_supports_unix=no  ;;
-*)                      fp_supports_unix=yes ;;
-esac
-FP_HTML_COMMENT([test x"$fp_supports_unix" = xyes], [unix])
-
-# Uncomment links to ObjectIO docs if necessary.
-AC_ARG_ENABLE([objectio],
-  AC_HELP_STRING([--enable-objectio],
-                 [Build ObjectIO, a portable GUI library for Haskell.]))
-FP_HTML_COMMENT([test x"$enable_objectio" = xyes], [ObjectIO])
-
-# Uncomment links to HOpenGL docs if necessary
-AC_ARG_ENABLE([hopengl],
-  AC_HELP_STRING([--enable-hopengl],
-                 [Build HOpenGL, a Haskell binding for OpenGL/GLUT.]))
-FP_HTML_COMMENT([{ test x"$enable_hopengl" = xyes || test x"$enable_hopengl" = xx11; }], [HOpenGL])
-
 # Write the results...
-AC_OUTPUT(ghc.spec docs/libraries.html)
+AC_OUTPUT([ghc.spec])
index 467d39d..d11e3ad 100644 (file)
@@ -3,7 +3,7 @@ include $(TOP)/mk/boilerplate.mk
 
 SUBDIRS = users_guide
 
-PAGES = index.html libraries.html
+PAGES = index.html
 
 install-docs :: $(PAGES)
        $(INSTALL_DIR) $(datadir)/html
diff --git a/ghc/docs/libraries.html.in b/ghc/docs/libraries.html.in
deleted file mode 100644 (file)
index 3c4605f..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<HTML>
-  <HEAD>
-    <TITLE>Haskell Hierarchical Libraries</TITLE>
-  </HEAD>
-
-  <BODY>
-    <H1>Haskell Hierarchical Libraries</H1>
-
-    <P>The libraries are divided into several <EM>packages</EM>.
-    NOTE: there is not always a clean division between packages in the
-    hierarchy, which means a node and its children might be in
-    different packages.  If you're looking for a specific module, try
-    all the packages below.</P>
-
-    <DL>
-      <DT>
-       <A HREF="base/index.html"><TT>base</TT></a>
-      </DT><DD>
-       the Prelude, and a large collection of useful libraries.
-      </DD>
-      <DT>
-       <A HREF="haskell98/index.html"><TT>haskell98</TT></a>
-      </DT><DD>
-       Haskell 98 and FFI Standard Libraries.
-      </DD>
-      <DT>
-       <A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>
-      </DT><DD>
-       manipulating Haskell source code.
-      </DD>
-      <DT>
-       <A HREF="network/index.html"><TT>network</TT></a>
-      </DT><DD>
-       networking support libraries.
-      </DD>
-      <DT>
-       <A HREF="parsec/index.html"><TT>parsec</TT></a>
-      </DT><DD>
-       monadic parser combinators.
-      </DD>
-      <DT>
-       <A HREF="QuickCheck/index.html"><TT>QuickCheck</TT></a>
-      </DT><DD>
-       automatic specification-based testing.
-      </DD>
-      <DT>
-       <A HREF="readline/index.html"><TT>readline</TT></a>
-      </DT><DD>
-       a library for interactively reading input from the console.
-      </DD>
-@unixHTMLStart@
-      <DT>
-       <A HREF="unix/index.html"><TT>unix</TT></a>
-      </DT><DD>
-       supplies POSIX functionality.
-      </DD>
-@unixHTMLEnd@
-@HOpenGLHTMLStart@
-      <DT>
-       <A HREF="OpenGL/index.html"><TT>OpenGL</TT></a>
-      </DT><DD>
-       3D rendering.
-      </DD>
-      <DT>
-       <A HREF="GLUT/index.html"><TT>GLUT</TT></a>
-      </DT><DD>
-       the OpenGL utility toolkit.
-      </DD>
-@HOpenGLHTMLEnd@
-@ObjectIOHTMLStart@
-      <DT>
-       <A HREF="ObjectIO/index.html"><TT>ObjectIO</TT></a>
-      </DT><DD>
-       GUI library.
-      </DD>
-@ObjectIOHTMLEnd@
-    </DL>
-
-    <H2>Implementation-specific notes</H2>
-
-    <DL>
-      <DT><A HREF="http://www.haskell.org/ghc/">GHC/GHCi</A></DT>
-      <DD>
-       Most of the time, all the packages are available without the
-       need to use any additional command-line options.  The only
-       time when this is not the case is when linking a program on the
-       command line, without using the <tt>--make</tt> option: in this
-       case you must list all the packages to link to by adding the
-       <tt>-package</tt> <i>P</i> flag (where <i>P</i> is the package
-       name) to the command line for each package.
-       See the <a href="users_guide/users-guide.html">User's Guide</a>
-       for more details.
-      </DD>
-
-      <DT><A HREF="http://www.haskell.org/hugs/">Hugs 98</A></DT>
-      <DD>
-       Hugs provides almost all of the modules in the
-       <A HREF="base/index.html"><TT>base</TT></a> package
-       and all the modules in the
-       <A HREF="haskell98/index.html"><TT>haskell98</TT></a>,
-       <A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>,
-       <A HREF="network/index.html"><TT>network</TT></a>,
-       <A HREF="parsec/index.html"><TT>parsec</TT></a> and
-       <A HREF="QuickCheck/index.html"><TT>QuickCheck</TT></a> packages.
-@unixHTMLStart@
-       Most of the modules in the <A HREF="unix/index.html"><TT>unix</TT></a>
-       package are supported, too.
-@unixHTMLEnd@
-@HOpenGLHTMLStart@
-       If the target platform supports OpenGL, the
-       <A HREF="OpenGL/index.html"><TT>OpenGL</TT></a> and
-       <A HREF="GLUT/index.html"><TT>GLUT</TT></a> packages are supported too.
-@HOpenGLHTMLEnd@
-       All those modules are always available, as a single hierarchy;
-       Hugs does not use the package subdivision.
-      </DD>
-
-      <DT><A HREF="http://www.haskell.org/nhc98/">Nhc98</A></DT>
-      <DD>
-       The modules of the <tt>haskell98</tt> package are available
-       without the need to use any additional compile-time options.
-       To use modules from some other package <i>P</i> with Nhc98,
-       add the compile-time option <tt>-package</tt> <i>P</i>.
-       Nhc98 currently provides many of the modules in the
-       <tt>base</tt> package (see the
-       <a href="http://www.haskell.org/nhc98/libraries.html">Nhc98 libraries page</a>
-       for a list).
-      </DD>
-
-    </DL>
-
-  </BODY>
-</HTML>