Compiling the test skeleton extension
% cd /tmp/xmms
% vi config.m4
The config.m4 file
The config.m4 file adds any extension-specific configuration options. If
your extension relies on external libraries and header files, you need to
define those in this file and uncomment the --with-xmms section. If your
extension does not rely on any external libraries, uncomment the
--enable-xmms section.
Configure, build and install
% ./configure
% make
% cp modules/xmms.so /usr/local/lib/php
Testing your extension
The ext_skel script created a sample xmms.php script. A quick way to check
if your extension is working is to edit this script and add dl('xmms.so') to
the top. Then run it through your command-line PHP parser:
% php -q xmms.php
Congratulations!
You have successfully modified ext/xmms/config.m4.
Module xmms is now compiled into PHP.