libffi 3.0.10 fails to build on OS X; 3.0.9 built fine. The problem is with the included ax_enable_builddir macro; here's my report to the developers of that macro with a fix: https://savannah.gnu.org/patch/index.php?7619