check dependencies before setting CONFIG_*/ENABLE_*