Do not use variable from configure to detect the feature. (cherry picked from commit 759a7b4ce3)
759a7b4ce3