r14995 - gnucash/branches/swig-redo - Update the swig requirement to 1.3.28 (needed for %delobject)
Derek Atkins
warlord at cvs.gnucash.org
Tue Oct 10 14:33:34 EDT 2006
Author: warlord
Date: 2006-10-10 14:33:33 -0400 (Tue, 10 Oct 2006)
New Revision: 14995
Trac: http://svn.gnucash.org/trac/changeset/14995
Modified:
gnucash/branches/swig-redo/configure.in
gnucash/branches/swig-redo/macros/ac_pkg_swig.m4
Log:
Update the swig requirement to 1.3.28 (needed for %delobject)
Make the swig version check failure an error instead of a warning,
because we really do need swig to build. This could change if
we modify the build system to distribute the swig-generated files
so we don't need swig at build time, just at 'make dist' (or when
building from SVN). But that can happen later.
Modified: gnucash/branches/swig-redo/configure.in
===================================================================
--- gnucash/branches/swig-redo/configure.in 2006-10-10 16:19:59 UTC (rev 14994)
+++ gnucash/branches/swig-redo/configure.in 2006-10-10 18:33:33 UTC (rev 14995)
@@ -116,8 +116,9 @@
AC_MSG_ERROR([Cannot find ltdl.h -- libtool-devel (or libtool-ltdl-devel) not installed?])
fi
-# Not sure if this is new enough
-AC_PROG_SWIG(1.3.25)
+# We need at least version 1.3.28 to build properly.
+# 1.3.28 added %delobject
+AC_PROG_SWIG(1.3.28)
# These are unavailable on windows/mingw32
AC_CHECK_HEADERS(X11/Xlib.h glob.h)
Modified: gnucash/branches/swig-redo/macros/ac_pkg_swig.m4
===================================================================
--- gnucash/branches/swig-redo/macros/ac_pkg_swig.m4 2006-10-10 16:19:59 UTC (rev 14994)
+++ gnucash/branches/swig-redo/macros/ac_pkg_swig.m4 2006-10-10 18:33:33 UTC (rev 14995)
@@ -70,7 +70,7 @@
if test $available_major -ne $required_major \
-o $available_minor -ne $required_minor \
-o $available_patch -lt $required_patch ; then
- AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version. You should look at http://www.swig.org])
+ 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
AC_MSG_NOTICE([SWIG executable is '$SWIG'])
@@ -78,7 +78,7 @@
AC_MSG_NOTICE([SWIG library directory is '$SWIG_LIB'])
fi
else
- AC_MSG_WARN([cannot determine SWIG version])
+ AC_MSG_ERROR([cannot determine SWIG version])
SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
fi
fi
More information about the gnucash-changes
mailing list