[project @ 2003-07-01 12:25:49 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 unix docs if necessary dnl NOTE: This is a slight
24 dnl hack: It needs to be synchronized with fptools/configure.in and
25 dnl fptools/libraries/Makefile and should probably use target features
26 dnl instead of host.
27 AC_CANONICAL_HOST
28
29 case $host in
30 i[3456]86-*-mingw32*)
31         unixHTMLStart="<!--"
32         unixHTMLEnd="-->"
33         ;;
34 *)
35         unixHTMLStart=""
36         unixHTMLEnd=""
37         ;;
38 esac
39
40 AC_SUBST(unixHTMLStart)
41 AC_SUBST(unixHTMLEnd)
42
43 dnl Uncomment links to ObjectIO docs if necessary
44 AC_ARG_ENABLE(objectio,
45 [  --enable-objectio
46         Build ObjectIO, a portable GUI library for Haskell.
47 ],
48 [
49 ObjectIOHTMLStart=""
50 ObjectIOHTMLEnd=""
51 ],
52 [
53 ObjectIOHTMLStart="<!--"
54 ObjectIOHTMLEnd="-->"
55 ]
56 )
57
58 AC_SUBST(ObjectIOHTMLStart)
59 AC_SUBST(ObjectIOHTMLEnd)
60
61 dnl Uncomment links to HOpenGL docs if necessary
62 AC_ARG_ENABLE(hopengl,
63 [  --enable-hopengl
64         Build HOpenGL, a Haskell binding for OpenGL/GLUT.
65 ],
66 [
67 HOpenGLHTMLStart=""
68 HOpenGLHTMLEnd=""
69 ],
70 [
71 HOpenGLHTMLStart="<!--"
72 HOpenGLHTMLEnd="-->"
73 ]
74 )
75
76 AC_SUBST(HOpenGLHTMLStart)
77 AC_SUBST(HOpenGLHTMLEnd)
78
79 dnl * Write the results...
80 AC_OUTPUT(ghc.spec docs/libraries.html)