configure.ac 1.72 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Configure template for Extended-SDF2.                  -*-Autoconf-*-
#
# Copyright (C) 2004 Laboratoire de Recherche et Developpement
# de l'EPITA.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# 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; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307  USA

AC_PREREQ(2.57)

23
AC_INIT([esdf], 0.1, [transformers-bugs@lrde.epita.fr])
24
25
26
27

AC_CONFIG_AUX_DIR([config])
AC_CONFIG_FILES([config/Makefile])

28
AM_INIT_AUTOMAKE([foreign 1.8.3 dist-bzip2])
29
30
31
32
33

# Make sure $prefix is defined.
test "x$prefix" = xNONE && prefix=$ac_default_prefix
USE_XT_PACKAGES
test -f $PGEN/bin/sdf2table ||
34
  AC_MSG_ERROR([cannot find sdf2table.  Use --with-sdf.])
35
36
test -f $STRC/bin/strc ||
  AC_MSG_ERROR([cannot find strc.  Use --with-strategoxt.])
37

38
39
AC_CHECK_PROGS([HELP2MAN], [help2man], [NONE])
if test x"$HELP2MAN" = xNONE; then
40
41
  AC_MSG_WARN([cannot find help2man. This isn't mandatory. You will
               only not be able to generate manpages.])  
42
fi
43
AM_CONDITIONAL([HAVE_HELP2MAN], [test x"$HELP2MAN" != xNONE])
44
45
AC_SUBST([HELP2MAN])

46

47
48
49
50
51
52
53
AC_PROG_CC
AC_PROG_INSTALL

AC_CONFIG_FILES([Makefile
		src/Makefile
		src/sdf-purify/Makefile
		src/pack-esdf/Makefile
54
		config/version.str])
55
AC_OUTPUT