[project @ 2003-07-01 11:21:57 by panne]
[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 ],
28 [
29 ObjectIOHTMLStart=""
30 ObjectIOHTMLEnd=""
31 ],
32 [
33 ObjectIOHTMLStart="<!--"
34 ObjectIOHTMLEnd="-->"
35 ]
36 )
37
38 AC_SUBST(ObjectIOHTMLStart)
39 AC_SUBST(ObjectIOHTMLEnd)
40
41 dnl Uncomment links to HOpenGL docs if necessary
42 AC_ARG_ENABLE(hopengl,
43 [  --enable-hopengl
44         Build HOpenGL, a Haskell binding for OpenGL/GLUT.
45 ],
46 [
47 HOpenGLHTMLStart=""
48 HOpenGLHTMLEnd=""
49 ],
50 [
51 HOpenGLHTMLStart="<!--"
52 HOpenGLHTMLEnd="-->"
53 ]
54 )
55
56 AC_SUBST(HOpenGLHTMLStart)
57 AC_SUBST(HOpenGLHTMLEnd)
58
59 dnl * Write the results...
60 AC_OUTPUT(ghc.spec docs/index.html docs/libraries.html)