How to compile sources on MAC OS in 2017?
On a Mac Pro with MacOS Sierra 10.12.6 I got a clean compilation by following the instructions in doc/build-osx.md.

The sequence of commands is:

1) First install Xcode and HomeBrew by executing (in Terminal)

xcode-select --install

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &lt; /dev/null 2&gt; /dev/null


2) Then install required libraries with

brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf qt libevent python3


(note: I added python3 otherwise there would be errors during "make check")

3) Download and compile

git clone https://github.com/bitcoin/bitcoin
cd bitcoin
./autogen.sh
./configure
make
make check