title: '-std=c++11' is valid for C++/ObjC++ but not for C
body: <p>I m trying to build json-c with the following configuration:</p>
  
  <pre><code>./configure --target=arm-linux-androideabi --host=arm-linux-androideabi \
              --build=x86_64-unknown-linux-gnu
  </code></pre>
  
  <p>but I got the following error:</p>
  
  <pre><code>cc1: error: command line option '-std=c++11' is valid for C++/ObjC++ but not for C [-Werror]
  </code></pre>
  
  <p>I tried to add <code>--disable-std-c++11</code> and <code>--disable-std-cpp11</code> to the configure but I got always the same problem.</p>
  
  <p>How to fix that?</p>