mxcl/homebrew — pull request #12943 by 2bits (2012-06-20 18:41:55+00:00)
Title: py2cairo: use configure for Lion & Mt. Lion

Py2cairo miscompiles on Lion and Mt. Lion when HB Python exists.
See the issue for a complete explanation. The result is the
cairo module fails to import.

Add a conditional to use `configure` on Lion and Mt. Lion.
Use waf otherwise because it is preferred and works.
Add deps on `automake` and `libtool` if XCode >= 4.3.
Use `autoreconf` to supply the missing files like `install-sh`.
Note `configure` doesn't work on SL due to `autoconf` being old.

Tested on Lion and SL using system Python, HB framework Python,
HB non-framework Python with clang and llvm, building both native
and universal binaries, by importing the cairo module into Python.

Fixes #12893