Quoting Daniel Espinosa <[EMAIL PROTECTED]>:
> AFAIK outside the backend code there's a file with the management to
> load that backend when a URI is written, sorry I don't remember for
> the moment but if you follow the GLADE3 support in gnomedb you'll see
> in configure.in:
[snip]
> PKG_CHECK_MODULES(GLADE3, $GLADE3_MODULES, have_glade3=yes, have_glade3=no)
> AM_CONDITIONAL(HAVE_GLADE3, test x"$have_glade3" = "xyes")
>
[snip]
> then in Makefile.am in the backend you can do like in Makefile.am in
> gnomedb for glade3:
>
> if HAVE_GLADE3
> GLADE3_DIRECTORY=glade3
> else
> GLADE3_DIRECTORY=
> endif
>
> (...)
[snip]
> Then if glade3 doesn't exist the gda's subdirectory will never be
> compiled (like in glade3 for gnomedb).
While this approach works fine, it's much more complicated than
the approach we already use, where configure.in knows the name
of the (in our case) gda subdirectory. That way we can just use
an AC_SUBST() instead of an AM_CONDITIONAL.
Both approaches work, but I think our approach is fewer lines in
configure.in and also fewer lines in Makefile.am
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
[EMAIL PROTECTED] PGP key available
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel