Execute probes only when necessary

In many cases, it's enough to check whether a test program compiles.
This allows to simplify the probe code and speeds up the configuration
process.
7 files changed