SVG icons

Nikolas Zimmermann wildfox at kde.org
Thu Apr 11 21:56:12 BST 2002


On Wednesday 10 April 2002 19:09, Michael Matz wrote:
> Hi,
>
> On Wed, 10 Apr 2002, Nikolas Zimmermann wrote:
> > > > To detect wheter it's installed or not.
> > >
> > > We also don't do this for e.g. libxml, we just install it.  We provide
> > > (by the above ADD_MODULE's) --with-blabla switches to configure
> > > (defaulting to yes) so the user can choose which modules from
> > > kdesupport he wants.  This is enough.
> >
> > I meant to detect in kdelibs/* if kdesupport/libart is installed or not..
>
> Ohh, I see.  Just add something like
>
> kde_save_LIBS="$LIBS"
> LIBS="$LIBS -lwhatever-is-needed-for-libart"
> AC_CHECK_LIB(libart, a_function_defined_in_libart,
>  [libart_exists=yes;
>   AC_DEFINE(HAVE_LIBART, 1, [Define if you want to use libart])
>   other shell code perhaps setting LIBART, and AC_SUBST it.;
>  ], libart_exists=no)
> LIBS="$kde_save_LIBS"
>
> into an appropriate configure.in.in (I guess kdecore/configure.in.in is
> good).  If you want to check for the exact version of libart, or if it
> contains your patches, a larger test is needed.  I suggest to first get it
> working in principle, with kdesupport/libart.  Then you can #ifdef out all
> code using libart based on that HAVE_LIBART preprocessor symbol.  This
> needs to be done, so the API doesn't change if libart is available or not.
> And after that we can refine the test for libart.

ah great :) Thank you very much
will look into..

Bye
 Bye
  Niko

>
>
> Ciao,
> Michael.

-- 
Nikolas Zimmermann
wildfox at kde.org




More information about the kde-core-devel mailing list