title: Linux make PHP from source to '.so' file
body: <p>I'm trying to 'make' PHP 5.5 on Ubuntu , but for my project I need call PHP cli interpreter like a build in module , like '.so' file, not executble. 
  I can't find any information about it. The general question is " How to make correct &lt;./configure > and &lt; make >  commands to build PHP from sourse to '.so' files ? ".</p>
  
  <p>I want to compile PHP source to '.so' file. 
  It's possible from standard GCC compiler options but in PHP many virtual file paths and other hard codded parts in C files.
  If anybody have experience in compiling PHP or other make project to '.so' files , please help me.</p>
  
  <p>Thanks.</p>