ok, it's compiling here with this dirty fix. However it needed some extra tweaks.
After adding the Makefile with SUBDIRS, like you said, it complains about two other files,
but i made these with touch
touch src/plugins/contrib/profiler/Makefile.in
touch src/plugins/contrib/profiler/resources/Makefile.in
now configure went alright, and i'm running make as we... uhh.. write.
-st3vie