We should add a script testcflag.sh in the spirit of testcc.sh which simply tests whether the C compiler supports a certain command-line flag.
Apply attachment: 12367_testcflags.patch to the SAGE_ROOT repository.
Component: build
Author: Jeroen Demeyer
Reviewer: R. Andrew Ohana
Merged: sage-5.0.beta4
Issue created by migration from https://trac.sagemath.org/ticket/12367