[Freeciv-Dev] Re: Selecting wich componets to compile
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, 23 Jul 2004, Guillermo Lopez Alejos wrote:
> One of the entries of the puppeteer's TODO file is 'configure parameter
> "--enable-puppeteer"'.
>
> By one hand, client/puppeteer directory has to be included / excluded
> whether "--enable-puppeteer" is defined or not. I know what lines of the
> configure.ac and client/Makefile.am I have to modify to achieve this.
>
> But if puppeteer is not present, there are some lines of code (in
> agents_init() and main() in the civclient) that don't have to be compiled.
>
> I guess that I have to do something like:
>
> #ifdef FC_USE_PUPPETEER
> /* puppeteer calls */
> #endif
>
> But I don't know howto modify the configure.ac or Makefile.am to define
> automaticaly the "FC_USE_PUPPETEER". Could anyone tell me how?
You need to modify both configure.in and configure.ac, and
client/Makefile.am. Just look at how the other clients have done it, and
do it the same way.
- Per
|
|