adameros wrote in php

I'm trying to build the php_imlib module, but I'm getting the following error. I did a man and an info on autoconf, but it doesn't saw where I can put the recoomended code:
[adam@web1 imlib]$ phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20040412
Zend Extension Api No:   220040412
configure:3166: error: possibly undefined macro: AC_ADD_LIBRARY_WITH_PATH
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
</blockquote>
Any idea how I can fix this?