* Thus wrote Anas Mughal ([EMAIL PROTECTED]):
> I have followed the instructions in the PHP documentation on how to 
> build a custom dynamic extension. After running ext_skel, I did NOT add 
> any custom methods. I built the extension using the followind commands:
> 
> Compiling cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. 
> -I../Zend -c -o <your_object_file> <your_c_file>
> 
> Linking cc -shared -L/usr/local/lib -rdynamic -o <your_module_file> 
> <your_object_file(s)>

1. edit the config.m4 and remove the dnl's on the lines that look
somethign like:
  dnl PHP_ARG_ENABLE(baz, whether to enable baz support,
  dnl Make sure that the comment is aligned:
  dnl [  --enable-baz           Enable baz support])

2. ./phpize  

Creates the configure environment

3. ./configure --enable-baz
4. make
5. make install

the make install just copies the file in the modules/ dir to your
php module directory.

HTH,

Curt
-- 
If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus Lerdorf, BDFL of PHP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to