title: Compile a project (say, Emacs) to LLVM bytecode
body: <p>I cloned the Emacs source, with the intention of compiling to LLVM bytecode. I have been fiddling with Makefile flags for hours, but with no luck. Whenever I Google this, I get completely unrelated results about compiling <code>.el</code> files.</p>
  
  <p>So I ask you this: how can I compile a project like Emacs to LLVM bytecode?</p>
  
  <p>I am on OS X 10.9 Mavericks.</p>
  
  <p>EDIT: I ran these commands:
  <code>CC=clang CFLAGS=-emit-llvm ./configure --with-jpeg=no --with-gif=no --with-tiff=no</code>
  then
  <code>CC=clang CFLAGS=-emit-llvm make</code></p>
  
  <p>Then I got this error:</p>
  
  <pre><code>xml.c:23:10: fatal error: 'libxml/tree.h' file not found
  #include &lt;libxml/tree.h&gt;
           ^
  1 error generated.
  </code></pre>
  
  <p>When in fact libxml2 is already installed.</p>