configure.ac 1.42 KB
Newer Older
Roland Levillain's avatar
Roland Levillain committed
1
# Copyright (C) 2003, 2004, 2005, 2006, 2012  Robert Anisko
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# This file is part of HAVM.  This program is free software; you can
# redistribute it and/or modify it under the terms of the GNU General
# Public License version 2 as published by the Free Software
# Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA.

18
19
# Catch "HAVM_*" macros that are not expanded.
m4_pattern_forbid([^HAVM_])
20
AC_PREREQ([2.59])
Roland Levillain's avatar
Roland Levillain committed
21
AC_INIT([HAVM], [0.24], [tiger-patches@lrde.epita.fr])
22
AC_CONFIG_AUX_DIR([build-aux])
23
AM_INIT_AUTOMAKE([1.9.6 dist-bzip2])
24

25
26
27
28
29
30
31
32
33
34
35
36
37
HAVM_PROG([ghc], [6.4], [GHC], [Glasgow Haskell Compiler])
# Pick up the right package depending on GHC's version.
dnl $actual_version is set by HAVM_PROG
case "$actual_version" in
  6.4*)
    AM_GHC_FLAGS='-package data'
    ;;
  *) # >6.4
    AM_GHC_FLAGS='-package base'
    ;;
esac
AC_SUBST([AM_GHC_FLAGS])

38
AM_MISSING_PROG([HAPPY], [happy])
39

40
41
42
AC_CONFIG_FILES([
   Makefile
   src/Config.hs
43
   src/Makefile
44
   tests/Makefile tests/defs
45
   debian/Makefile
46
   doc/Makefile])
47
AC_OUTPUT