From 616ddef1f7ef2c8c8d77723ede33b24cbed79e8a Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 22 Nov 2004 20:56:25 +0000 Subject: [PATCH] Add configure check for libofx version 0.7.0 and respective error message. 2004-11-22 Christian Stimming * configure.in, README: Add configure check for libofx version 0.7.0 and respective error message. Update docs. Fixes #159050 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/1.8@10339 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ README | 4 ++-- configure.in | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 833e6f01c1..8e5c657cbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-22 Christian Stimming + + * 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 * 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. diff --git a/README b/README index 9f46a42de4..4679efec3b 100644 --- a/README +++ b/README @@ -234,8 +234,8 @@ versions of required packages. 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 diff --git a/configure.in b/configure.in index cc03cb89b1..ffec3fe934 100644 --- a/configure.in +++ b/configure.in @@ -482,6 +482,21 @@ then 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}"