build: list of dependencies at the top of configure.ac

So that it's more convenient to change.