Re: [Evolution-hackers] DBus port of EDS



Ross Burton writes:
 > if WITH_DBUS
 > test_LDADD = $top_srcdir/addressbook/libebook-dbus/libebook.la
 > else
 > test_LDADD = $top_srcdir/addressbook/libebook/libebook.la
 > endif

Why not something like this in configure.in:

if test $with_dbus = yes; then
  API_ALTERNATIVE='-dbus'
else
  API_ALTERNATIVE=''
fi
AC_SUBST(API_ALTERNATIVE)

and then in Makefile.am:

foo_LDADD = $(top_builddir)/addressbook/libebook$(API_ALTERNATIVE)/libebook.la
INCLUDES = ... -I $(top_srcdir)/addressbook/libebook$(API_ALTERNATIVE)

--tml




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]