RE: [PHP-DEV] PHP 4.0 Zend API

From: Date: Thu, 08 Mar 2001 08:50:50 +0000
Subject: RE: [PHP-DEV] PHP 4.0 Zend API
Groups: php.dev 
Request: Send a blank email to php-dev+get-48214@lists.php.net to get a copy of this message
>I am building my custom php extension. For the windows platform it went >fine, but I still have a problems on Linux. I had a couple of problems as well, but managed it after a while. Please read the README.SELF-CONTAINED-EXTENSIONS in the php-folder, as it helps. In short, create a config.m4 like this PHP_ARG_ENABLE(dbx,whether to enable dbx, [ --enable-dbx Enable dbx]) if test "$PHP_DBX" != "no"; then PHP_EXTENSION(dbx, $ext_shared) fi and replace dbx with whatever your module is called. Create a Makefile.in like this LTLIBRARY_SHARED_NAME = dbx.la LTLIBRARY_SOURCES = dbx.c dbx_mysql.c dbx_odbc.c include $(top_srcdir)/build/dynlib.mk where you include all your c source files. I then found that the phpize-script returned an error for some AC_WHATEVER thing it couldn't find, so I ran (from my modules src folder) phpize /usr/local/bin/aclocal /usr/local/bin/autoconf /usr/local/bin/autoheader /usr/local/bin/libtoolize -f -c phpize generates this AC_ error, but by running the next four commands (that are at the end of phpize) by hand I got it to work... Then it's simply ./configure --with-php-config=/usr/local/bin/php-config make make install And voila! Hope this helps! Cheerio, Marc.

« previous php.dev (#48214) next »