title: binutils/bfd.h wants config.h now?
body: <p>I'm trying to use the BFD library, and so I've installed package <code>binutils-dev</code> and have included: </p>
  
  <pre><code>#include &lt;bfd.h&gt;
  </code></pre>
  
  <p>and am calling <code>bfd_openr</code> and <code>bfd_close</code> and so on from my code.</p>
  
  <p>Recently I have upgraded packages and now I get an error from here:</p>
  
  <p>bfd.h:</p>
  
  <pre><code>/* PR 14072: Ensure that config.h is included first.  */
  #if !defined PACKAGE &amp;&amp; !defined PACKAGE_VERSION
  #error config.h must be included before this header
  #endif
  </code></pre>
  
  <p>...that I should include <code>config.h</code> - but I am not using autoconf.</p>
  
  <p>Am I including the wrong header file?  How are you supposed to use binutils-dev?  </p>
  
  <p>Here is a demo program:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;bfd.h&gt;
  
  int main()
  {
      bfd_init();
  
      bfd* file = bfd_openr("a.out", 0);
  
      if (!file)
          return -1;
  
      if (bfd_check_format(file, bfd_object))
          printf("object file\n");
      else
          printf("not object file\n");
  
      bfd_close(file);
  
      return 0;
  }
  </code></pre>
  
  <p>try to compile and run as follows:</p>
  
  <pre><code>$ sudo apt-get install binutils-dev
  $ gcc test.c
  In file included from test.c:3:0:
  /usr/include/bfd.h:37:2: error: #error config.h must be included before this header
  </code></pre>