-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
41 lines (32 loc) · 1.18 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
AC_PREREQ(2.52)
m4_define([required_apertium_version], [3.2.0])
m4_define([required_lttoolbox_version], [3.2.0])
AC_INIT([apertium-fao-isl], [0.1.0], [ftyers@users.sourceforge.net])
AM_INIT_AUTOMAKE([apertium-fao-isl], [0.1.0], no-define)
AC_PROG_LN_S
AC_PROG_AWK
AC_CONFIG_HEADER([config])
PKG_CHECK_MODULES(APERTIUM, apertium >= required_apertium_version, [], [PKG_CHECK_MODULES(APERTIUM, apertium-3.4 >= required_apertium_version)])
PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= required_lttoolbox_version, [], [PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox-3.4 >= required_lttoolbox_version)])
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
PKG_CHECK_MODULES(REGTEST, apertium-regtest >= 0.0.1, [],
[AC_MSG_WARN([Running tests requires apertium-regtest])])
AP_MKINCLUDE
AC_OUTPUT([Makefile])