* configure.in -- fix OFX search to look in /usr/local if it cannot

find it in /usr.  It skips the second check if you supply an ofx-prefix.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7509 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins
2002-11-19 02:54:52 +00:00
parent 3f318a6325
commit 366f7d26a2
2 changed files with 15 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2002-11-18 Derek Atkins <derek@ihtfp.com>
* configure.in -- fix OFX search to look in /usr/local if it cannot
find it in /usr. It skips the second check if you supply an ofx-prefix.
2002-11-18 David Hampton <hampton@employees.org>
* configure.in: Fix problems with gtkhtml 1.1.

View File

@@ -456,14 +456,22 @@ then
LIBOFX_LIBS="-L${OFXPREFIX}/lib"
LIBOFX_CFLAGS="-I${OFXPREFIX}/include"
fi
LIBOFX_LIBS="${LIBOFX_LIBS} -lofx -lstdc++"
AC_MSG_CHECKING(for libofx/libofx.h)
save_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} ${LIBOFX_CFLAGS}"
AC_TRY_CPP( [#include <libofx/libofx.h>], AC_MSG_RESULT(yes),
[ AC_MSG_ERROR([cannot find libofx header, needed for OFX support.]) ] )
AC_TRY_CPP( [#include <libofx/libofx.h>], AC_MSG_RESULT(yes), OFXfound=no )
if test x${OFXPREFIX} = x -a x${OFXfound} = no ; then
LIBOFX_LIBS="-L$/usr/local/lib"
LIBOFX_CFLAGS="-I$/usr/local/include"
CPPFLAGS="${CPPFLAGS} ${LIBOFX_CFLAGS}"
AC_TRY_CPP( [#include <libofx/libofx.h>], AC_MSG_RESULT([yes (in /usr/local)]),
[ AC_MSG_ERROR([cannot find libofx header, needed for OFX support.]) ] )
fi
LIBOFX_LIBS="${LIBOFX_LIBS} -lofx -lstdc++"
AC_MSG_CHECKING(for libofx)
save_LIBS="${LIBS}"
LIBS="${LIBS} ${LIBOFX_LIBS}"