If it was stuck in what looked like an infinite loop, you might want to check that you have flex/bison installed on your system.
I was indeed missing flex/bison at first, but that caused the compilation to directly error-out. Which I still consider a bug, it should error-out at the ./configure stage, but at least I knew what to do. So I installed them and fired off a new compile, which then hung. The same git-snapshot compiled fine on the laptop.