[project @ 2002-07-11 11:24:31 by panne]
authorpanne <unknown>
Thu, 11 Jul 2002 11:24:31 +0000 (11:24 +0000)
committerpanne <unknown>
Thu, 11 Jul 2002 11:24:31 +0000 (11:24 +0000)
Automagically insert links to the documentation of the OpenGL/GLUT
packages iff --enable-hopengl is used

ghc/configure.in
ghc/docs/index.html.in [moved from ghc/docs/index.html with 91% similarity]

index ac52dc5..f1cdd0a 100644 (file)
@@ -20,5 +20,24 @@ dnl These are needed by the .spec file.
 AC_SUBST(version)
 AC_SUBST(patchlevel)
 
+dnl Uncomment links to HOpenGL docs if necessary
+AC_ARG_ENABLE(hopengl,
+[  --enable-hopengl
+        Build HOpenGL, a Haskell binding for OpenGL/GLUT, too.
+        (This option is only relevant when hslibs are built.)
+],
+[
+HOpenGLHTMLStart=""
+HOpenGLHTMLEnd=""
+],
+[
+HOpenGLHTMLStart="<!--"
+HOpenGLHTMLEnd="-->"
+]
+)
+
+AC_SUBST(HOpenGLHTMLStart)
+AC_SUBST(HOpenGLHTMLEnd)
+
 dnl * Write the results...
-AC_OUTPUT(ghc.spec)
+AC_OUTPUT(ghc.spec docs/index.html)
similarity index 91%
rename from ghc/docs/index.html
rename to ghc/docs/index.html.in
index a955853..4280988 100644 (file)
             <A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>:
             manipulating Haskell source code.
           </LI>
+@HOpenGLHTMLStart@
+          <LI>
+            <A HREF="OpenGL/index.html"><TT>OpenGL</TT></a>:
+            3D rendering.
+          </LI>
+          <LI>
+            <A HREF="GLUT/index.html"><TT>GLUT</TT></a>:
+            the OpenGL utility toolkit.
+          </LI>
+@HOpenGLHTMLEnd@
         </UL>
       </LI>