configure: refactor list of programs into a variable