Properly check for SWIG version 2.0.0 and later.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19287 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2010-06-23 07:05:31 +00:00
parent 0b87e05c53
commit 53c6330c12

View File

@ -67,9 +67,11 @@ AC_DEFUN([AC_PROG_SWIG],[
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 -lt $required_major \
-o \( $available_major -eq $required_major \
-a \( $available_minor -lt $required_minor \
-o \( $available_minor -eq $required_minor \
-a $available_patch -lt $required_patch \) \) \) ; then
AC_MSG_ERROR([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