views:

17

answers:

1

I've had a look at /etc/fpc.cfg and there is mention to some defines:

  • FPCAPACHE_1_3
  • FPCAPACHE_2_0

Then in the fcl-web examples there is mention to:

  • Apache1_3

The only one I've found is on the apr.pas on both these files:

  • /usr/share/fpcsrc/2.4.0/packages/httpd20/src/apr/apr.pas
  • /usr/share/fpcsrc/2.4.0/packages/httpd22/src/apr/apr.pas

So how does the compiler decide what version of APR to compile?

A: 

If you enable the right one of those conditionals/directives afaik, the rest of the fpc.cfg should put the corresponding httpd dir first in the compilers search path, so that that version gets taken.

So you should only define one of them.

Marco van de Voort
Thanks. But where would be a good place to drop that define?
Gustavo Carreno
I guess somewher near the top of the config file. It is part of the configuration of FPC.
Marco van de Voort
Just to be clear: you are talking about fpc.cfg right?
Gustavo Carreno
yes. I don't know if Lazarus overrides that though. Most my server app attempts always have been FPC only.
Marco van de Voort
Oky, fpc.cfg it will be. I'll keep in mind the fact that Lazarus can override it and, if so, will probably comment here or add another question. And thanks again Marco!!
Gustavo Carreno