Add the WriteCompilerDetectionHeader module.

Provide a function to write a portable header to detect compiler
features.
Merge topic 'WriteCompilerDetectionHeader-module' into next

a7989eca Add the WriteCompilerDetectionHeader module.