diff --git a/configure b/configure index 8e4775be8c..ae0eddac6c 100755 --- a/configure +++ b/configure @@ -4833,7 +4833,7 @@ check_cxxflags -std=c++11 || check_cxxflags -std=c++0x # some compilers silently accept -std=c11, so we also need to check that the # version macro is defined properly -check_cpp_condition ctype.h "__STDC_VERSION__ >= 201112L" -std=c11 && +test_cflags_cc -std=c11 ctype.h "__STDC_VERSION__ >= 201112L" && add_cflags -std=c11 || check_cflags -std=c99