summaryrefslogtreecommitdiff
path: root/media-sound/lash/files/lash-0.5.4-swig_version_comparison.patch
blob: 6dcd4366da7cc21032a9f4d4c83b41cb2433094f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- acinclude.m4
+++ acinclude.m4
@@ -40,9 +40,9 @@
                         if test -z "$available_patch" ; then
                                 [available_patch=0]
                         fi
-                        if test $available_major -ne $required_major \
-                                -o $available_minor -ne $required_minor \
-                                -o $available_patch -lt $required_patch ; then
+                        if ! { test $available_major -gt $required_major \
+                                || test $available_major -eq $required_major -a $available_minor -ge $required_minor \
+                                || test $available_major -eq $required_major -a $available_minor -eq $required_minor -a $available_patch -ge $required_patch; } ; then
                                 AC_MSG_WARN([SWIG version >= $1 is required.  You have $swig_version.  You should look at http://www.swig.org])
                                 SWIG='echo "Error: SWIG version >= $1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
                         else