<<< Date Index >>>     <<< Thread Index >>>

Re: Build system



* Ralf Wildenhues <wildenhues@xxxxxxxxxxxxxxx> schrieb:
> * Rocco Rutte wrote on Fri, Apr 28, 2006 at 12:16:00PM CEST:
> > 
> > Also, what I could need help with is to a find a nice way solving empty 
> > source file problem. Files like utf8.c are compiled unconditionally but 
> > the whole content is wrapped in a #ifdef. If we know we don't need them, 
> > then just don't attempt to compile it. I can go and grep for a list of 
> > files affected and their #ifdefs so we know how to extend configure.in.
> 
> One way to solve this cleanly:
> 
> In configure.ac: 
>   AM_CONDITIONAL([NEED_WC_FUNCS], [test "$wc_funcs" != yes])
> 
> In Makefile.am:
>   if NEED_WC_FUNCS
>   mutt_SOURCES += utf8.c
>   endif
> 
> Then, there is also AC_REPLACE_FUNCS (but it doesn't fit this case).

Yeah, this works. But after my personal experiences with automake,
I'd not suggest moving more complexity to it.


BTW: I'm currently developing an new buildsystem with an completely
different approach: structure modeling instead of build rules, 
and the whole build process is controlled by the buildsystem, not
the package. Maybe I'll find the time for porting mutt to it.

Here are a few words about it:

    http://wiki.metux.de/public/TreeBuild


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact@xxxxxxxx
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------