[Gnucash-changes] r13146 - gnucash/trunk - Improve check for
aqbanking by looking for the pkg-config file first and using
the old method as a fallback
Christian Stimming
cstim at cvs.gnucash.org
Tue Feb 7 16:07:30 EST 2006
Author: cstim
Date: 2006-02-07 16:07:30 -0500 (Tue, 07 Feb 2006)
New Revision: 13146
Trac: http://svn.gnucash.org/trac/changeset/13146
Modified:
gnucash/trunk/configure.in
Log:
Improve check for aqbanking by looking for the pkg-config file first and using the old method as a fallback
Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in 2006-02-07 21:06:26 UTC (rev 13145)
+++ gnucash/trunk/configure.in 2006-02-07 21:07:30 UTC (rev 13146)
@@ -1530,7 +1530,9 @@
if test x${MT940_DIR} = xmt940 ;
then
AC_MSG_ERROR([Sorry, MT940 support is currently broken since it depended on the hbci module with the old openhbci 0.9.x library. But the hbci module has now been ported to a new hbci library called aqbanking. That library contains a MT940 parser, too, so porting shouldnt be too difficult. Nevertheless someone needs to do the porting work before this can be enabled again.])
- AC_AQBANKING(1,0,0)
+ PKG_CHECK_MODULES(MT940, aqbanking >= "1.0.0", [], [
+ AC_AQBANKING(1,0,0)
+ ])
# Note: HBCI_LIBS is changed again below in the --enable-hbci
# section. So check for mt940 first and *not* the other way round!
HBCI_LIBS="${OPENHBCI_LIBS}"
@@ -1552,13 +1554,15 @@
if test x${HBCI_DIR} = xhbci ;
then
# Check for Aqbanking library
- AC_AQBANKING(1,0,0)
- if test x${have_aqbanking} != xyes;
- then
- AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
- fi
- HBCI_LIBS="${aqbanking_libs}"
- HBCI_CFLAGS="${aqbanking_includes}"
+ PKG_CHECK_MODULES(HBCI, aqbanking >= "1.0.0", [], [
+ AC_AQBANKING(1,0,0)
+ if test x${have_aqbanking} != xyes;
+ then
+ AC_MSG_ERROR([Could not find aqbanking. If you use --enable-hbci, you *have* to enable aqbanking.])
+ fi
+ HBCI_LIBS="${aqbanking_libs}"
+ HBCI_CFLAGS="${aqbanking_includes}"
+ ])
# also check for ktoblzcheck
AC_CHECK_HEADERS(ktoblzcheck.h)
More information about the gnucash-changes
mailing list