title: Vim failing to compile with python on OS X
body: <p>I've been trying to compile <strong>vim 7.3</strong> with <strong>python 2.7</strong> support on <strong>mac OS X 10.6</strong>. Vim itself compiles fine, but the embedded python not so much.  </p>
  
  <p>The steps I've taken:</p>
  
  <pre><code>hg clone https:/vim.googlecode.com/hg/ vim
  cd vim/src
  ./configure --without-x --disable-gui --disable-darwin \
              --enable-pythoninterp --with-features=huge
  make
  make install
  </code></pre>
  
  <p>That gives me a working vim but without python.</p>
  
  <p>The <strong>auto/config.log</strong> indicates there's a file error:</p>
  
  <pre><code>configure:5387: checking if compile and link flags for Python are sane
  configure:5404: gcc -o conftest -g -O2 
       -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
       -DPYTHON_HOME=\"/Library/Frameworks/Python.framework/Versions/2.7\"   
       -L/usr/local/lib conftest.c  
       -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config 
       -lpython2.7 -ldl -framework CoreFoundation 
       -u _PyMac_Error Python.framework/Versions/2.7/Python &gt;&amp;5
  i686-apple-darwin10-gcc-4.2.1: Python.framework/Versions/2.7/Python: No such file or directory
  
  &lt;command-line&gt;: warning: missing terminating " character
  configure:5404: $? = 1
  configure: failed program was:
  | /* confdefs.h */
  | #define PACKAGE_NAME ""
  | #define PACKAGE_TARNAME ""
  | #define PACKAGE_VERSION ""
  | #define PACKAGE_STRING ""
  | #define PACKAGE_BUGREPORT ""
  | #define PACKAGE_URL ""
  | #define UNIX 1
  | #define STDC_HEADERS 1
  | #define HAVE_SYS_WAIT_H 1
  | #define FEAT_HUGE 1
  | #define USE_XSMP_INTERACT 1
  | /* end confdefs.h.  */
  | 
  | int
  | main ()
  | {
  |  
  |   ;
  |   return 0;
  | }
  configure:5408: result: no: PYTHON DISABLED
  </code></pre>
  
  <p>I get this error whether I run configure with or without the <strong>--with-python-conf-dir</strong> option. It looks like the <code>-u _PyMac_Error Python.framework/Versions/2.7/Python</code> is the source of the problem, but I'm not sure where to go from here. </p>
  
  <p>Any suggestions?</p>