summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-oc-es/configure.ac.patch
blob: f157125501cbd3afa6202060e4f9473e35d1d4e6 (plain)
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
--- ../apertium-oc-es-1.0.5/configure.ac	2008-07-21 14:53:50.000000000 +0200
+++ apertium-oc-es-1.0.5/configure.ac	2010-09-15 16:57:39.000000000 +0200
@@ -11,7 +11,7 @@
 AC_PROG_AWK
 AC_CONFIG_HEADER([config])
 
-AC_DEFUN(PKG_CHECK_APERTIUM, [
+AC_DEFUN([PKG_CHECK_APERTIUM], [
   APERTIUM_VER=0
   PKG_CHECK_MODULES(APERTIUM, apertium-1.0 >= 1.0.0,
   [
@@ -23,8 +23,20 @@
           APERTIUM_VER=20
       ],
       [
-          PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0)
-          APERTIUM_VER=30
+          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)