Do you want to detect the dependency automatically?
On which systems?

Or do you want to have a parameter like "configure --with-my-dependency"?