Model: MacBook Pro (15-inch 2017) OS: macOS High Sierra
$ time ./configure
[...]
./configure 29.65s user 542.02s system 96% cpu 9:50.57 total
Same problem seems to be present on co-workers' mac. Linux (ubuntu) runs much faster, but I believe I have seen occasions where linux box slows down in this manner as well.
Update: antivirus software may have been a part of the reason for the slow-down. Still slow after uninstall, but still several minutes.