What's the right way to add a HAVE_XX option to a php extention project?
<p>In the config.m4, I just put some simple lines,</p>

<pre><code>dnl $Id$

PHP_ARG_ENABLE(XXX, whether to enable XXX support,
[  --enable-XXX Enable XXX support])

if test "$PHP_XXX" != "no"; then
  PHP_NEW_EXTENSION(XXX, xxx.c, $ext_shared)
fi
</code></pre>

<p>In xxx.c, I use:</p>

<pre><code>#ifndef HAVE_LOGPATH
#define HAVE_LOGPATH "/tmp/my.log"
#endif
</code></pre>

<p>How do I make <code>HAVE_LOGPATH</code> configurable through the m4 file?</p>

<p>P.S: I know it wasn't the right way of doing so, I should be using PHP settings, but this was just a minimized example of what I'm trying to archive.</p>
