El Capitan

command line tools

xcode-select --install

build

./configure --prefix=/opt --localstatedir=/opt/var --sysconfdir=/opt/etc \
--mandir=/opt/share/man --infodir=/opt/share/info --includedir=/opt/include \
--enable-shared