Add Automake logic for building as part of a larger tree.