[project @ 2003-07-01 12:25:49 by panne]
authorpanne <unknown>
Tue, 1 Jul 2003 12:25:49 +0000 (12:25 +0000)
committerpanne <unknown>
Tue, 1 Jul 2003 12:25:49 +0000 (12:25 +0000)
Mention unix package only for non-WinDoze builds.

ghc/configure.in
ghc/docs/libraries.html.in

index fd56092..7a4f062 100644 (file)
@@ -20,6 +20,26 @@ dnl These are needed by the .spec file.
 AC_SUBST(version)
 AC_SUBST(patchlevel)
 
+dnl Uncomment links to unix docs if necessary dnl NOTE: This is a slight
+dnl hack: It needs to be synchronized with fptools/configure.in and
+dnl fptools/libraries/Makefile and should probably use target features
+dnl instead of host.
+AC_CANONICAL_HOST
+
+case $host in
+i[3456]86-*-mingw32*)
+       unixHTMLStart="<!--"
+       unixHTMLEnd="-->"
+       ;;
+*)
+       unixHTMLStart=""
+       unixHTMLEnd=""
+       ;;
+esac
+
+AC_SUBST(unixHTMLStart)
+AC_SUBST(unixHTMLEnd)
+
 dnl Uncomment links to ObjectIO docs if necessary
 AC_ARG_ENABLE(objectio,
 [  --enable-objectio
index 2f757c3..5d38c7c 100644 (file)
       </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 (not all platforms).
+       supplies POSIX functionality.
       </DD>
+@unixHTMLEnd@
 @HOpenGLHTMLStart@
       <DT>
        <A HREF="OpenGL/index.html"><TT>OpenGL</TT></a>
 
       <DT><A HREF="http://www.haskell.org/hugs/">Hugs 98</A></DT>
       <DD>
-       Hugs provides almost all of the modules in the <tt>base</tt> package,
-       all the modules in the
-       <tt>haskell98</tt>, <tt>network</tt> and <tt>haskell-src</tt> packages,
-       and some of those in the <tt>unix</tt> package.
-       These modules are always available, as a single hierarchy;
+       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="network/index.html"><TT>network</TT></a> and
+       <A HREF="haskell-src/index.html"><TT>haskell-src</TT></a> packages.
+@unixHTMLStart@
+       Some of the modules in the <A HREF="unix/index.html"><TT>unix</TT></a> package are supported, too.
+@unixHTMLEnd@
+       All those modules are always available, as a single hierarchy;
        Hugs does not use the package subdivision.
       </DD>