josegonzalez/homebrew-php — pull request #46 by gido (2012-03-26 08:46:12+00:00)
Title: Add autoconf dependency when installing APC Extension

Have just installed php on a clean mac with your great formula (thanks!) and have the following error when installing php-apc extension:

```
$ brew install Formula/apc-php.rb
==> Downloading http://pecl.php.net/get/APC-3.1.9.tgz
Already downloaded: /Library/Caches/Homebrew/apc-php-3.1.9.tgz
==> Patching
patching file APC-3.1.9/apc_lock.h
==> phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

==> Build Environment
CPU: quad-core 64-bit nehalem
MacOS: 10.7.3-x86_64
Xcode: 4.3.1
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments
MAKEFLAGS: -j4
Error: Failed executing: phpize (.rb:)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
```

add autoconf dependency fix the problem.

* Installled Xcode 4.3 form the App Store
* Mac OS X 10.7.3