38595bf4f7c28d0b931c53965c4d6329baa52a8b
[ghc-hetmet.git] / ghc / configure.in
1 dnl GHC-only part of fptools configuration
2 dnl 
3 dnl Copyright (c) 1999 Manuel M. T. Chakravarty <chak@acm.org>
4 dnl 
5 dnl This file is subject to the same free software license as GHC.
6
7 dnl ######################################################################
8 dnl Process this file with autoconf to produce a configure script.
9 dnl ######################################################################
10
11
12 dnl * Initialise and check sanity.
13 AC_INIT(ghc.spec.in)
14
15 dnl * Compute the version number.
16 version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
17 patchlevel=1
18
19 dnl These are needed by the .spec file.
20 AC_SUBST(version)
21 AC_SUBST(patchlevel)
22
23 dnl Uncomment links to ObjectIO docs if necessary
24 AC_ARG_ENABLE(objectio,
25 [  --enable-objectio
26         Build ObjectIO, a portable GUI library for Haskell.
27         (This option is only relevant when libraries are built.)
28 ],
29 [
30 ObjectIOHTMLStart=""
31 ObjectIOHTMLEnd=""
32 ],
33 [
34 ObjectIOHTMLStart="<!--"
35 ObjectIOHTMLEnd="-->"
36 ]
37 )
38
39 AC_SUBST(ObjectIOHTMLStart)
40 AC_SUBST(ObjectIOHTMLEnd)
41
42 dnl Uncomment links to HOpenGL docs if necessary
43 AC_ARG_ENABLE(hopengl,
44 [  --enable-hopengl
45         Build HOpenGL, a Haskell binding for OpenGL/GLUT, too.
46         (NOTE: Work in progress, currently only GLUT is supported!)
47 ],
48 [
49 HOpenGLHTMLStart=""
50 HOpenGLHTMLEnd=""
51 ],
52 [
53 HOpenGLHTMLStart="<!--"
54 HOpenGLHTMLEnd="-->"
55 ]
56 )
57
58 AC_SUBST(HOpenGLHTMLStart)
59 AC_SUBST(HOpenGLHTMLEnd)
60
61 dnl * Write the results...
62 AC_OUTPUT(ghc.spec docs/index.html docs/libraries.html)