updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / libkml / swig-version-check.patch
blobbcad12066d326fde5f9615693d745f35f8c2ea26
1 diff -aur libkml-1.2.0.orig/configure libkml-1.2.0/configure
2 --- libkml-1.2.0.orig/configure
3 +++ libkml-1.2.0/configure
4 @@ -16934,11 +16934,15 @@
6 if test "x$SWIG" != x; then
7 SWIG_VERSION=`swig -version 2>&1|grep Version|cut -d" " -f3`
8 - if test ${SWIG_VERSION:4} -lt 35; then
9 + SWIG_VERSION_MAJOR=${SWIG_VERSION:0:1}
10 + SWIG_VERSION_MINOR=${SWIG_VERSION:2:1}
11 + SWIG_VERSION_LAST=${SWIG_VERSION:4}
12 + if test ${SWIG_VERSION_MAJOR} -le 1 && test ${SWIG_VERSION_MINOR} -le 3 && ${SWIG_VERSION_LAST} -lt 35; then
13 { $as_echo "$as_me:$LINENO: WARNING: You have SWIG $SWIG_VERSION installed, but libkml requires at least SWIG 1.3.35. The bindings will not be built." >&5
14 $as_echo "$as_me: WARNING: You have SWIG $SWIG_VERSION installed, but libkml requires at least SWIG 1.3.35. The bindings will not be built." >&2;}
15 SWIG=
17 + unset SWIG_VERSION_MAJOR SWIG_VERSION_MINOR SWIG_VERSION_LAST
20 if test "x$SWIG" != x; then