You should use `autoReconfHook`. It will automatically pull in `autoconf` and `automake` and also add a phase before `configurePhase` to run `autoreconf`.