To answer your subsequent question, dnl is the line comment marker in .m4 files, so these lines currently do nothing. This is probably normal, since they are mostly applicable only if you use an external library (and by convention, using the --with-myextension configure option rather than --enable-myextension ).
Thus, the above file (starting with version 3) is equivalent to:
PHP_ARG_ENABLE(tanlib, whether to enable tanlib support, [ --enable-tanlib Enable tanlib support]) if test "$PHP_TANLIB" != "no"; then AC_DEFINE(HAVE_TANLIBLIB,1,[ Whether you have tanlib]) PHP_NEW_EXTENSION(tanlib, tanlib.c, $ext_shared) fi
So, if you do the following in this directory, it should work (I think I do not have a suitable Linux machine to check this):
phpize ./configure --enable-tanlib make make install
Finally, make sure the extension is included in /etc/php5/conf.d .
Remember that you will need to restart apache ( sudo /etc/init.d/apache2 restart ) to get any extension changes.
source share