When running this as non-root user (as most Mac users do), the script will complete compilation, and pretend to complete installation with no error message. But the installation (to /usr/local/) silently fail. (The compiler/linker artifacts appear to be removed after that, too.)
Expected behavior is for the script to fail and print a message about privilege when this happens.