[PHP-DEV] Bug in building standalone DSO modules From: Petr Cech (cech <email protected>)
Date: 05/15/01

Hi,
I've been strugling for some time with the possibility of building some
extension not inside of ext/ dir, but using phpize to just add some module
later. Strangely, it didn't work - mostly. configure was created, Makefiles,
config.h ... Just great, but the resulting .so did not. But only in some
modules. And I fond also why:

Modules don't #include config.h generated by the ./configure - including
this right at the top fixes the problems.

So, putting in every module and having phpize generate -DHAVE_CONFIG_H would
make it really painless for everyone to build his favorite extension

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
                                Petr Cech

-- 
Debian GNU/Linux maintainer - www.debian.{org,cz}
           cech <email protected>

Phear my "Typical bloody smart-arse debian attitude."

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>