[project @ 2002-07-11 11:24:31 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 HOpenGL docs if necessary
24 AC_ARG_ENABLE(hopengl,
25 [  --enable-hopengl
26         Build HOpenGL, a Haskell binding for OpenGL/GLUT, too.
27         (This option is only relevant when hslibs are built.)
28 ],
29 [
30 HOpenGLHTMLStart=""
31 HOpenGLHTMLEnd=""
32 ],
33 [
34 HOpenGLHTMLStart="<!--"
35 HOpenGLHTMLEnd="-->"
36 ]
37 )
38
39 AC_SUBST(HOpenGLHTMLStart)
40 AC_SUBST(HOpenGLHTMLEnd)
41
42 dnl * Write the results...
43 AC_OUTPUT(ghc.spec docs/index.html)