r8826: Make configure generate config.mk files (with the external libraries