Ruediger Pluem wrote:
If there is no way I can use the same module, I would like to atleast
maintain the same code base, so what is the best way to do it. Is setting
compile time variable using #ifdef the best way out.
This should be possible. Depending on what your module does and what API's
it uses it is even possible that you need no #ifdef's at all.
Chances are you'll need some ifdefs, but they should be pretty trivial
(there's a much smaller chance you'll need something nontrivial - most
likely if it's an authentication module).
You can see examples amongst my modules at apache.webthing.com.
The use of an ifdef in mod_proxy_html is probably fairly typical
of the sort of thing you might need to do. That is, provided
you don't hit an API that's changed significantly.
--
Nick Kew