add if to force configure the dependency