I tried to use the build script after adding --enable-dom to the compile flags and once completed doing a ./php -v on the compiled binary causes the following error:
./php: /usr/lib/libssl.so.10: version `libssl.so.10' not found (required by ./php)
./php: /usr/lib/libcrypto.so.10: version `OPENSSL_1.0.1' not found (required by ./php)
./php: /usr/lib/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by ./php)
./php: /usr/lib/libcrypto.so.10: version `libcrypto.so.10' not found (required by ./php)