Hi,

I was having some issues compiling Ingres support into PHP on my mandrake machine. I found I could also compile support for Ingres as a self-contained-extension. I've done this and was succesfull, but I don't seem to understand how to get PHP to actually use it.

The last bit of the README on self-contained-extensions says:

ADDING SHARED MODULE SUPPORT TO A MODULE

In order to be useful, a self-contained extension must be loadable
as a shared module. I will explain now how you can add shared module
support to an existing module called foo.

1. In config.m4, use PHP_ARG_WITH/PHP_ARG_ENABLE. Then you will
automatically be able to use --with-foo=shared or
--enable-foo=shared.

2. In config.m4, use PHP_EXTENSION(foo, $ext_shared) to enable
building the extension.

3. Add the following line to Makefile.in:

LTLIBRARY_SHARED_NAME = foo.la

4. Add the following lines to your C source file:

#ifdef COMPILE_DL_FOO
ZEND_GET_MODULE(foo)
#endif
But I'm not sure which config.m4 this should be done in. Do I add this to the M4 file I used to compile the extension? And if so do I need to recompile? Also what C source file are they talking about in point 4?

thanx