mxcl/homebrew — pull request #15234 by tomasfrostensson (2012-10-02 07:13:43+00:00)
Title: Prepended the PATH to avoid issues with configuring log4cxx

Received the following errors while trying to build log4cxx:

==> ./autogen.sh
./autogen.sh
./autogen.sh: line 23: glibtoolize: command not found
./autogen.sh: line 27: aclocal: command not found
./autogen.sh: line 28: autoconf: command not found
./autogen.sh: line 29: automake: command not found
Error: Failure while executing: ./autogen.sh

The problem was that the path was incomplete, prepended #{HOMEBREW_PREFIX}/bin to the path so that the tools could be found.