Thanks for your help everybody ! it seems that the "better" way i found
is

cd <mydirectory> 
phpize 
autoconf 
./configure 
make 
make install

assuming that php is installed in the machine. I dont think the src are
needed. 
Thanks for your help

Michel

Andrey Hristov <[EMAIL PROTECTED]> wrote:

> Michel JORDA wrote: > Hi everybody > I Have to compile a library (namely,
> a payment library) and the bank > release a .c source. Therefore I need to
> make and compile it, but they > mention that > "you need to install the
> php-devel package in order to compile"... > what should I download > - on
> my macosx > - and on my linux > to compile that ? > Thanks for your help >
> MJ > Hi, you may get PHP sources from www.php.net . Then untar in some
> directory. Then you need to create the skeleton of your extension by
> either executing ext/ext_skel.sh or using PEAR's module for doing that.
> Then you need to edit your config.m4 which will be under ext/xyz/config.m4
> (xyz is the name of the extension). Then re-run ./buidlconf . After that
> just use configure (configure --help | less should show your extension).
> For compiling - make. Every time you change sth in config.m4 you have to
> re-run buildconf. There is a way to build only a specific directory with
> phpize but then you need to have this php-devel package or to have
> installed from source with make install.
> 
> HTH, Andrey

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to