-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
111 lines (92 loc) · 2.23 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([apertium-en-hi], [0.1.0], [ankitha.rao.t@gmail.com])
AM_INIT_AUTOMAKE([apertium-en-hi], [0.1.0], no-define)
AC_PROG_LN_S
AC_PROG_AWK
AC_CONFIG_HEADER([config])
AC_DEFUN([PKG_CHECK_APERTIUM], [
APERTIUM_VER=0
PKG_CHECK_MODULES(APERTIUM, apertium-1.0 >= 1.0.0,
[
APERTIUM_VER=10
],
[
PKG_CHECK_MODULES(APERTIUM, apertium-2.0 >= 2.0.0,
[
APERTIUM_VER=20
],
[
PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
[
APERTIUM_VER=30
],
[
PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0,
[
APERTIUM_VER=31
],
[
PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0)
APERTIUM_VER=32
])
])
])
])
AC_SUBST(APERTIUM_VER)
])
PKG_CHECK_APERTIUM
AC_SUBST(APERTIUM_VER)
#
# Check for VISL constraint grammar
#
AC_PATH_PROG(CGCOMP, cg-comp, no)
if test x$ac_cv_path_CGCOMP = x
then
AC_MSG_ERROR([You don't have cg-comp installed.])
fi
if test x$ac_cv_path_CGPROC = xno
then
AC_MSG_ERROR([You don't have cg-comp installed.])
fi
AC_PATH_PROG(CGPROC, cg-proc, no)
if test x$ac_cv_path_CGPROC = x
then
AC_MSG_ERROR([You don't have cg-proc installed.])
fi
if test x$ac_cv_path_CGPROC = xno
then
AC_MSG_ERROR([You don't have cg-proc installed.])
fi
#
# Check for xsltproc
#
AC_PATH_PROG(XSLTPROC, xsltproc, no)
if test x$ac_cv_path_XSLTPROC = x
then
AC_MSG_ERROR([You don't have xsltproc installed.])
fi
if test x$ac_cv_path_XSLTPROC = xno
then
AC_MSG_ERROR([You don't have xsltproc installed.])
fi
AC_PATH_PROG(LRXCOMP, lrx-comp, no)
if test x$ac_cv_path_LRXCOMP = x
then
AC_MSG_ERROR([You don't have lrx-comp installed.])
fi
if test x$ac_cv_path_LRXCOMP = xno
then
AC_MSG_ERROR([You don't have lrx-comp installed.])
fi
AC_PATH_PROG(LRXPROC, lrx-proc, no)
if test x$ac_cv_path_LRXPROC = x
then
AC_MSG_ERROR([You don't have lrx-proc installed.])
fi
if test x$ac_cv_path_LRXPROC = xno
then
AC_MSG_ERROR([You don't have lrx-proc installed.])
fi
AC_OUTPUT([Makefile])