Add lookup of linker flags of libgwenhyfar-gui-gtk2.

It is still disabled until more testing has been done, though.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19446 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-08-17 21:30:17 +00:00
parent 0f7bed2537
commit 0af1c605c2
3 changed files with 7 additions and 6 deletions

View File

@ -766,6 +766,8 @@ then
AC_MSG_ERROR([Could not find aqbanking > 1.6.0. If you use --enable-aqbanking or --enable-hbci, you *have* to have aqbanking installed!])
])
])
# For libgwenhywfar > 3.99.20, look for its library gwengui-gtk2.
PKG_CHECK_MODULES([GWENGUI_GTK2], [gwengui-gtk2 gwenhywfar], [has_gwengui_gtk2=1], [has_gwengui_gtk2=0])
# also check for ktoblzcheck
AC_CHECK_HEADERS(ktoblzcheck.h)

View File

@ -45,6 +45,7 @@ libgncmod_aqbanking_la_LIBADD = \
${GNOME_LIBS} \
${GLADE_LIBS} \
${GLIB_LIBS} \
${GWENGUI_GTK2_LIBS} \
${AQBANKING_LIBS}
AM_CFLAGS = \

View File

@ -47,17 +47,15 @@
#if GWENHYWFAR_VERSION_INT > 39913
/* Only for the brave: You can enable the gwenhywfar gtk2 gui object
* by un-commenting this here. Note: Also need to add "-lgwengui-gtk2"
* to the LIBADD section in Makefile.am because that library can't be
* looked up automatically so far! */
* by un-commenting this here. */
/*# define USING_GWENHYWFAR_GTK2_GUI*/
#endif
#ifdef USING_GWENHYWFAR_GTK2_GUI
# if GWENHYWFAR_VERSION_INT < 39920
# include <../gwen-gui-gtk2/gtk2_gui.h>
# else
# if GWENHYWFAR_VERSION_INT >= 39920
# include <gwen-gui-gtk2/gtk2_gui.h>
# else
# error "You must be using libgwenhywfar >= 3.99.20 because otherwise the -lgwengui-gtk2 is not added into the linker flags"
# endif
#endif