Automagically insert links to the documentation of the OpenGL/GLUT
packages iff --enable-hopengl is used
AC_SUBST(version)
AC_SUBST(patchlevel)
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...
dnl * Write the results...
+AC_OUTPUT(ghc.spec docs/index.html)
<A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>:
manipulating Haskell source code.
</LI>
<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@