[project @ 2003-08-21 20:08:43 by panne]
[ghc-hetmet.git] / ghc / configure.ac
1 # Initialise and check sanity.
2 AC_INIT(ghc.spec.in)
3
4 # Compute the version number.
5 version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
6 patchlevel=1
7
8 # These are needed by the .spec file.
9 AC_SUBST(version)
10 AC_SUBST(patchlevel)
11
12 # Uncomment links to unix docs if necessary.
13 # NOTE: This is a slight hack: It needs to be synchronized with
14 # fptools/configure.ac and fptools/libraries/Makefile and should probably use
15 # target features instead of host.
16 AC_CANONICAL_HOST
17
18 case $host in
19 i[[3456]]86-*-mingw32*) fp_supports_unix=no  ;;
20 *)                      fp_supports_unix=yes ;;
21 esac
22 FP_HTML_COMMENT([test x"$fp_supports_unix" = xyes], [unix])
23
24 # Uncomment links to ObjectIO docs if necessary.
25 AC_ARG_ENABLE([objectio],
26   AC_HELP_STRING([--enable-objectio],
27                  [Build ObjectIO, a portable GUI library for Haskell.]))
28 FP_HTML_COMMENT([test x"$enable_objectio" = xyes], [ObjectIO])
29
30 # Uncomment links to HOpenGL docs if necessary
31 AC_ARG_ENABLE([hopengl],
32   AC_HELP_STRING([--enable-hopengl],
33                  [Build HOpenGL, a Haskell binding for OpenGL/GLUT.]))
34 FP_HTML_COMMENT([{ test x"$enable_hopengl" = xyes || test x"$enable_hopengl" = xx11; }], [HOpenGL])
35
36 # Write the results...
37 AC_OUTPUT(ghc.spec docs/libraries.html)