[Gnucash-changes] Add configure check for libofx version 0.7.0 and respective error

Christian Stimming cstim at cvs.gnucash.org
Mon Nov 22 15:56:27 EST 2004


Log Message:
-----------
Add configure check for libofx version
	0.7.0 and respective error message.

2004-11-22  Christian Stimming  <stimming at tuhh.de>

	* configure.in, README: Add configure check for libofx version
	0.7.0 and respective error message. Update docs. Fixes #159050

Tags:
----
gnucash-1-8-branch

Modified Files:
--------------
    gnucash:
        ChangeLog
        configure.in
        README

Revision Data
-------------
Index: configure.in
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/configure.in,v
retrieving revision 1.358.2.41
retrieving revision 1.358.2.42
diff -Lconfigure.in -Lconfigure.in -u -r1.358.2.41 -r1.358.2.42
--- configure.in
+++ configure.in
@@ -482,6 +482,21 @@
 	LIBOFX_CFLAGS="-I${OFXPREFIX}/include"
     fi
 
+    # check libofx version
+    AC_MSG_CHECKING(for libofx version >= 0.7.0)
+    if test x${OFXPREFIX} = x ; then
+	LIBOFX_VERSION=`ofxdump --version | cut -d" " -f2`
+    else
+	LIBOFX_VERSION=`${OFXPREFIX}/bin/ofxdump --version | cut -d" " -f2`
+    fi
+    if test `echo ${LIBOFX_VERSION} | cut -d. -f1` -ge 1 -o \
+	     `echo ${LIBOFX_VERSION} | cut -d. -f2` -ge 7; then
+	# This is libofx >= 0.7.x
+	AC_MSG_RESULT([found ${LIBOFX_VERSION}])
+    else
+	AC_MSG_ERROR([Libofx 0.7.0 or newer needed for ofx support])
+    fi
+
     AC_MSG_CHECKING(for libofx/libofx.h)
     AS_SCRUB_INCLUDE(LIBOFX_CFLAGS)
     save_CPPFLAGS="${CPPFLAGS}"
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1461.2.371
retrieving revision 1.1461.2.372
diff -LChangeLog -LChangeLog -u -r1.1461.2.371 -r1.1461.2.372
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,8 @@
+2004-11-22  Christian Stimming  <stimming at tuhh.de>
+
+	* configure.in, README: Add configure check for libofx version
+	0.7.0 and respective error message. Update docs. Fixes #159050
+
 2004-11-15  Benoit Grégoire <bock at step.polymtl.ca>
  	* po/fr.po: Yet again updated french translation, by  
 Gérard Delafond this time.  Merging with the previous one was not amusing, let's hope we don't have to do that again.  With all the contributions to the french translation since 1.8.9, this is really a major overhaull.
Index: README
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/README,v
retrieving revision 1.173.2.4
retrieving revision 1.173.2.5
diff -LREADME -LREADME -u -r1.173.2.4 -r1.173.2.5
--- README
+++ README
@@ -234,8 +234,8 @@
 To use the new import features (OFX and HBCI) you need to obtain
 the following;
   libofx: This library provide support for OFX file imports. 
-    GnuCash has mostly been tested against the 0.6.2 version, though
-    any newer version should also work. Sources can be found at
+    GnuCash-1.8.10 and newer needs at least the version libofx-0.7.0
+    or newer. Sources can be found at
     http://sourceforge.net/projects/libofx/
   aqbanking/aqhbci: This library provide support for HBCI file imports. 
     GnuCash has mostly been tested against the 0.9.7 version, though


More information about the gnucash-changes mailing list